@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;800&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Canvas de fondo */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -9999;
    display: block;
}

/* Header */
header {
    background-color: rgba(165, 136, 244, 0.85);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 0 0 20px 20px;
}
header h1 {
    font-size: 3rem;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.25);
}

/* Secciones */
section {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem 1rem;
    background-color: rgba(255,255,255,0.9);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
section h2 {
    font-family: 'Space Mono', monospace;
    color: #A588F4;
    margin-bottom: 1rem;
    text-align: center;
}

/* Portafolio */
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.tarjeta {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 350px;
}
.tarjeta img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.tarjeta h3 {
    text-align: center;
    padding: 0.5rem 0;
    font-family: 'Space Mono', monospace;
    color: #A588F4;
    margin-top: auto;
}
.tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
/* Tarjetas futuras */
.tarjeta.futura .placeholder-img {
    width: 100%;
    height: 200px;
    background-color: #e0d4f7;
    border-radius: 15px 15px 0 0;
}

/* Botón Wiki */
.boton-wiki {
    display: block;
    width: max-content;
    margin: 2rem auto;
    background-color: #A588F4;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, background-color 0.3s;
}
.boton-wiki:hover {
    background-color: #8b5fd6;
    transform: scale(1.05);
}

/* Acordeones */
.acordeon {
    background-color: #A588F4;
    color: white;
    cursor: pointer;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-align: left;
    outline: none;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    transition: background-color 0.3s, transform 0.3s;
}
.acordeon:hover {
    background-color: #8b5fd6;
    transform: scale(1.02);
}
.panel {
    padding: 0.5rem 1rem;
    display: none;
    background-color: #f9f9f9;
    border-left: 4px solid #A588F4;
    border-radius: 0 0 12px 12px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    background-color: rgba(165, 136, 244, 0.85);
    color: white;
    margin-top: 2rem;
}

/* Responsivo */
@media (max-width: 768px) {
    header h1 { font-size: 2.2rem; }
    .galeria { grid-template-columns: 1fr; }
    section { margin: 1rem; padding: 1.5rem; }
}
