:root {
    --nombre: "Valentina";
    --fecha: "20 Diciembre de 2026";
    --hora: "7:00 PM";
    --lugar: "Salón Megané";
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: #000;
    background-image: url('../img/background-texture.png');
    background-size: cover;
    background-position: center;
    padding: 0;
    overflow-y: auto;
}

.invitacion {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    padding: 80px 0;
}

.capa img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Z-3: contenido de texto */
.contenido {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
    gap: 30px;
    padding: 60px 20px;
}

.invitacion-texto {
    font-family: 'Great Vibes', cursive;
    color: #fff;
    font-size: clamp(2rem, 6vw, 3.5rem);
}

.xv {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #fff;
    font-size: clamp(3rem, 10vw, 6rem);
    letter-spacing: 0.1em;
}

.anos {
    font-family: 'Great Vibes', cursive;
    color: #fff;
    font-size: clamp(2rem, 6vw, 3.5rem);
}

.xv {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #fff;
    font-size: clamp(3rem, 10vw, 6rem);
    letter-spacing: 0.1em;
}

.fifteen-img {
    width: 50%;
    max-width: 280px;
}

.fifteen-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.play-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
}

.stop-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
}

.play-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.stop-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
    50% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
}

.play-btn:hover {
    transform: scale(1.1);
}

.play-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.icon-stop {
    display: none;
}

.play-btn.playing .icon-play {
    display: none;
}

.play-btn.playing .icon-stop {
    display: block;
}

.play-btn.playing .icon-stop {
    display: none;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
    50% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
}

.nombre-inv {
    font-family: 'Great Vibes', cursive;
    color: #fff;
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-top: 30px;
    margin-bottom: 30px;
}

.divider-content {
    width: 50%;
    max-width: 160px;
    margin: 10px 0;
}

.divider-content img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Columnas info */
.info-columns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 8vw, 60px);
    margin: 10px 0;
    width: 100%;
}

.col-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.col-separator svg {
    width: 1px;
    height: 100%;
}

.confirm-btn {
    display: inline-block;
    font-family: 'Great Vibes', cursive;
    color: #fff;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    text-decoration: none;
    padding: clamp(10px, 2vw, 16px) clamp(24px, 6vw, 48px);
    border: 1px solid #fff;
    margin-top: 30px;
    transition: background-color 0.3s, color 0.3s;
}

.confirm-btn:hover {
    background-color: #fff;
    color: #000;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(16px, 5vw, 40px);
    margin: 10px 0;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.countdown-num {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #fff;
    font-size: clamp(1.8rem, 6vw, 3rem);
    line-height: 1;
}

.countdown-label {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: clamp(0.6rem, 1.8vw, 0.85rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.dresscode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 10px 0;
}

.dresscode-title {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: clamp(0.7rem, 2vw, 1rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.dresscode-value {
    font-family: 'Great Vibes', cursive;
    color: #fff;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
}

.info-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.info-icon {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    line-height: 1;
}

.info-label {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    color: #fff;
    font-size: clamp(0.7rem, 2vw, 1rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.info-value {
    font-family: 'Great Vibes', cursive;
    color: #fff;
    font-size: clamp(0.9rem, 3vw, 1.4rem);
}

.map-link {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: clamp(0.6rem, 1.8vw, 0.85rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.map-link:hover {
    opacity: 1;
}

.map-link:visited {
    color: #fff;
}

/* Z-4: banner-top */
.banner-top {
    position: fixed;
    top: 0;
    left: 0%;
    right: 50%;
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.banner-top img {
    width: 100%;
    height: auto;
    display: block;
}

/* Z-5: banner-bottom */
.banner-bottom {
    position: fixed;
    bottom: 0;
    left: 50%;
    right: 0%;
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.banner-bottom img {
    width: 100%;
    height: auto;
    display: block;
}

/* Z-6: crown */
.crown {
    z-index: 6;
    width: 30%;
    max-width: 360px;
    margin-bottom: 10px;
}

.crown img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Z-7: corners */
.corner {
    position: fixed;
    width: 25%;
    z-index: 7;
}

.corner img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.corner-tl { top: 0; left: 0; }
.corner-tr { top: 0; right: 0; }
.corner-bl { bottom: 0; left: 0; }
.corner-br { bottom: 0; right: 0; }

/* ===== Galería de Fotos ===== */
.gallery-section {
    width: 100%;
    max-width: 800px;
    margin: -10px auto 0;
    padding: 0 10px;
}

.gallery-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

.gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    flex: 1 1 0;
    min-width: 0;
    max-width: 200px;
    flex-shrink: 0;
}

.gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-plus {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #fff;
    font-weight: 300;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-plus {
    transform: scale(1.15);
}

/* Lightbox2: ocultar flechas visuales, solo dejar áreas táctiles */
.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0 !important;
}

/* Gallery responsive — siempre en una sola línea */
@media (max-width: 700px) {
    .gallery-grid {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
    }
    .gallery-item {
        flex: 0 0 120px;
        scroll-snap-align: start;
    }
    .gallery-item img {
        height: 120px;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .corner { width: 16%; }
    .info-columns { gap: 12px; }
    .contenido { gap: 20px; }
    .crown { max-width: 900px; }
}