/* ===== RESET Y VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --fondo-oscuro: #0d0f14;
    --fondo-panel: #161a23;
    --neon-rosa: #ff00a0;
    --neon-cyan: #00f0ff;
    --neon-naranja: #ff9900;
    --texto-claro: #e0e0e0;
    --texto-mutado: #9aa0a6;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background-color: var(--fondo-oscuro);
    color: var(--texto-claro);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== HEADER / HERO ===== */
header {
    background: radial-gradient(circle at center, #1a1e29 0%, var(--fondo-oscuro) 70%);
    padding: 4rem 2rem 3rem;
    text-align: center;
    position: relative;
    border-bottom: 2px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.header-logo {
    width: 280px;
    max-width: 80%;
    height: auto;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px rgba(255, 0, 160, 0.4), 0 0 60px rgba(0, 240, 255, 0.2);
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05) rotate(2deg);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 0 10px var(--neon-rosa), 0 0 20px var(--neon-rosa);
    letter-spacing: 2px;
}

header p {
    font-size: 1.2rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
    font-style: italic;
}

/* ===== CONTENEDOR GENERAL ===== */
.contenedor {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

/* ===== TÍTULOS DE SECCIÓN ===== */
.descripcion h2,
.galeria h2,
.autor h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.8rem;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.descripcion h2::after,
.galeria h2::after,
.autor h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-rosa), var(--neon-cyan));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* ===== DESCRIPCIÓN ===== */
.descripcion {
    background-color: var(--fondo-panel);
}

.descripcion p {
    max-width: 750px;
    margin: 0 auto 1rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--texto-mutado);
}

/* ===== GALERÍA ===== */
.galeria {
    background-color: var(--fondo-oscuro);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
    cursor: pointer;
    aspect-ratio: 4 / 3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(255, 0, 160, 0.3);
    border-color: var(--neon-rosa);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.8) contrast(1.1);
}

.galeria-item:hover img {
    transform: scale(1.08);
    filter: brightness(1) contrast(1.1);
}

.galeria-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(13, 15, 20, 0.9));
    color: var(--neon-cyan);
    padding: 1.5rem 1rem 0.8rem;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

.galeria-item:hover .caption {
    opacity: 1;
}

/* ===== AUTOR ===== */
.autor {
    background-color: var(--fondo-panel);
}

.autor-card {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--fondo-oscuro);
    border: 1px solid rgba(255, 0, 160, 0.3);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(255, 0, 160, 0.15);
}

.autor-foto {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    flex-shrink: 0;
}

.autor-info h3 {
    font-size: 1.6rem;
    color: white;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 10px var(--neon-rosa);
}

.autor-info .rol {
    color: var(--neon-cyan);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.autor-info p {
    color: var(--texto-mutado);
    font-size: 1rem;
}

/* ===== FOOTER ===== */
footer {
    background-color: #08090c;
    color: var(--texto-mutado);
    text-align: center;
    padding: 2.5rem 1rem;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
}

footer p {
    margin: 0.3rem 0;
}

footer .corazon {
    color: var(--neon-rosa);
    text-shadow: 0 0 8px var(--neon-rosa);
}

footer .redes {
    margin-top: 1rem;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
}

/* ===== LIGHTBOX (visor de imágenes) ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox.activo {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.3);
    animation: aparecer 0.3s ease;
}

@keyframes aparecer {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-cerrar {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    color: var(--neon-rosa);
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: color 0.2s, text-shadow 0.2s;
    text-shadow: 0 0 10px var(--neon-rosa);
}

.lightbox-cerrar:hover {
    color: white;
    text-shadow: 0 0 20px white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
    header h1 {
    font-size: 2rem;
    }

    header p {
    font-size: 1rem;
    }

    .autor-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    }

    .autor-foto {
    width: 130px;
    height: 130px;
    }

    section {
    padding: 3rem 0;
    }
}