* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fff;
}

header {
    background-image: radial-gradient(circle, rgba(0,0,0,0.3), rgba(255,255,255,0.3)), url(./img/galeria/quinceaños/foto24.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}

.titulo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.parrafo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ── Logo ── */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10% 0;
}

.img_logo {
    width: 40%;
    max-width: 300px;
}

/* ── Redes ── */
.redes {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 5% 5%;
}

/* El <a> toma el lugar del contenedor en el flex */
.redes a {
    text-decoration: none;
    color: inherit;
    flex: 1 1 20%;
    margin: 2% 3%;
}

.contenedor {
    text-align: center;
    background-color: #ffffffc0;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Los contenedores sin <a> (Ubicación y Correo) mantienen su propio flex */
.redes > .contenedor {
    flex: 1 1 20%;
    margin: 2% 3%;
}

.contenedor:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* ── Descripción ── */
.descripcion {
    border-top: gold solid 3px;
    border-bottom: gold solid 3px;
    padding: 40px 10%;
    text-align: center;
}

.descripcion .logo {
    padding: 5% 0;
}

/* ── Galería ── */
.galeria {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 60px 0;
}

/* ── Carrusel ── */
.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 30px 0 50px;
}

.carousel-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.carousel-track .img-galeria {
    flex-shrink: 0;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    cursor: pointer;
    margin: 0;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 215, 0, 0.85);
    border: none;
    font-size: 26px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background 0.3s ease, transform 0.3s ease;
}

.prev:hover, .next:hover {
    background: gold;
    transform: translateY(-50%) scale(1.1);
}

.prev { left: 10px; }
.next { right: 10px; }

/* ── Lightbox ── */
.imagen-light {
    position: fixed;
    background: rgba(0,0,0,0.6);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.2s ease-in-out;
    z-index: 100;
}

.show {
    transform: translateX(0);
}

.agregar-imagen {
    width: 35%;
    height: 90%;
    border-radius: 10px;
    object-fit: contain;
    transform: scale(0);
    transition: transform 0.3s 0.2s;
}

.showImage {
    transform: scale(1);
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    cursor: pointer;
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
    .titulo {
        font-size: 2rem;
    }

    .parrafo {
        font-size: 1rem;
    }

    .img_logo {
        width: 50%;
    }

    .redes a,
    .redes > .contenedor {
        flex: 1 1 25%;
        margin: 2%;
    }
}

/* Móvil grande (max 768px) */
@media (max-width: 768px) {
    header {
        background-attachment: scroll;
    }

    .logo {
        padding: 15% 0 5%;
    }

    .img_logo {
        width: 65%;
    }

    /* Redes: 3 por fila */
    .redes a,
    .redes > .contenedor {
        flex: 1 1 28%;
        margin: 2% 1.5%;
    }

    .contenedor {
        padding: 12px;
    }

    .img {
        width: 32px;
        height: 32px;
    }

    .contenedor .titulo {
        font-size: 0.75rem;
        margin-bottom: 0;
    }

    .descripcion {
        padding: 30px 6%;
    }

    .titulo {
        font-size: 1.6rem;
    }

    .parrafo {
        font-size: 0.95rem;
    }

    .carousel-track {
        gap: 12px;
    }

    .carousel-track .img-galeria {
        height: 220px;
    }

    .prev, .next {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .agregar-imagen {
        width: 92%;
        height: auto;
        max-height: 80vh;
    }
}

/* Móvil pequeño (max 480px) */
@media (max-width: 480px) {
    .img_logo {
        width: 75%;
    }

    /* Redes: 2 por fila */
    .redes a,
    .redes > .contenedor {
        flex: 1 1 40%;
        margin: 2% 3%;
    }

    .titulo {
        font-size: 1.4rem;
    }

    .carousel-track .img-galeria {
        height: 180px;
    }

    .galeria {
        width: 95%;
        padding: 30px 0;
    }
}