:root {
    --turquoise: #07515a;
    --turquoise-dark: #032d3a;
    --turquoise-light: #126b73;
    --gold: #d8b45b;
    --gold-light: #f3d991;
    --cream: #f5eddb;
    --ivory: #fffaf0;
    --green-text: #315d58;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    background: var(--turquoise-dark);
    color: var(--cream);
    font-family: 'Montserrat', sans-serif;
}

[hidden] {
    display: none !important;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}


/* ======================================
   PORTADA
====================================== */

.cover {
    position: relative;
    min-height: 100vh;
    padding: 55px 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 35%,
            #16717a 0%,
            #07515a 48%,
            #042e38 100%
        );

    transition: opacity .65s ease, transform .65s ease;
}

.cover::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .2;

    background-image:
        radial-gradient(#ffffff20 .7px, transparent .7px);

    background-size: 5px 5px;
}

.cover.cover-closing {
    opacity: 0;
    transform: scale(1.025);
    pointer-events: none;
}

.cover-texture {
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(216,180,91,.45);
    pointer-events: none;
}

.cover-texture::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(216,180,91,.2);
}

.cover-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    text-align: center;
}

.eyebrow {
    margin-bottom: 25px;
    color: var(--gold-light);
    font-size: 10px;
    letter-spacing: 6px;
}

   MODIFICAR AQUÍ EL TAMAÑO DE LA IMAGEN
====================================== */

.princess-container {
    width: 100%;
    max-width: 180px; /* ANCHO DE LA IMAGEN */
    margin: auto;
}

.princess {
    display: block;
    width: 100%;
    max-height: 230px; /* ALTURA MÁXIMA DE LA IMAGEN */
    object-fit: contain;
    filter: drop-shadow(0 12px 25px #001c2470);
    animation: appear 1.5s ease;
}
.small-title {
    display: block;
    margin-bottom: 5px;
    font-family: 'Great Vibes', cursive;
    font-size: 43px;
    color: var(--gold-light);
}

.title-container h1 {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(48px, 11vw, 76px);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.15;
    color: #f5d98d;
    text-shadow: 0 2px 2px #684515, 0 4px 15px #00000045;
}

.title-container h2 {
    margin-top: 15px;
    font-family: 'Great Vibes', cursive;
    font-size: clamp(45px, 10vw, 65px);
    font-weight: 400;
    line-height: 1.3;
    color: #f4d68a;
    text-shadow: 0 3px 12px #00000045;
}

.gold-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 150px;
    margin: 18px auto;
    color: var(--gold);
}

.gold-divider::before,
.gold-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gold);
}

.subtitle {
    color: var(--cream);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.8;
}

.date-ornament {
    max-width: 310px;
    margin: 30px auto 12px;
    padding: 13px 15px;
    border-top: 1px solid rgba(243,217,145,.65);
    border-bottom: 1px solid rgba(243,217,145,.65);
}

.date-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.date-day {
    color: var(--gold-light);
    font-family: 'Cinzel Decorative', serif;
    font-size: 66px;
    line-height: 1;
}

.date-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.date-month {
    color: var(--gold-light);
    font-family: 'Cinzel Decorative', serif;
    font-size: 15px;
    letter-spacing: 2px;
}

.date-year {
    color: var(--cream);
    font-size: 10px;
    letter-spacing: 2px;
}

.event-time {
    color: var(--gold-light);
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    letter-spacing: 3px;
}

.open-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    margin-top: 30px;
    padding: 16px 32px;

    border: 1px solid var(--gold);
    border-radius: 30px;

    background: linear-gradient(135deg, #f3d991, #c39a42);
    color: #263c36;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;

    cursor: pointer;
    transition: .3s ease;
}

.open-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px #d8b45b40;
}

.open-button:disabled {
    opacity: .7;
    cursor: default;
}

.footer-note {
    margin-top: 30px;
    color: var(--gold-light);
    font-size: 8px;
    letter-spacing: 3px;
}

.ornament {
    position: absolute;
    color: var(--gold);
    font-size: 35px;
}

.ornament-top {
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
}

.ornament-bottom {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}


/* ======================================
   CONTENIDO Y ESCENA MÁGICA
====================================== */

.invitation-content {
    overflow: hidden;
    background: var(--turquoise-dark);
    animation: invitationReveal 1s ease both;
}

@keyframes invitationReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.magic-scene {
    position: relative;
    min-height: 720px;
    padding: 75px 20px 45px;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    background:
        linear-gradient(
            to bottom,
            rgba(3, 30, 43, .30) 0%,
            rgba(3, 30, 43, .48) 52%,
            rgba(3, 25, 38, .82) 100%
        ),
        url("../img/decoracion/escena-magica.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.magic-scene::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background: linear-gradient(
        to bottom,
        transparent 40%,
        rgba(3,27,39,.75)
    );
}

.magic-stars {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;

    background-image:
        radial-gradient(2px 2px at 10% 20%, #ffe8a6 99%, transparent),
        radial-gradient(2px 2px at 80% 15%, #fff2c4 99%, transparent),
        radial-gradient(2px 2px at 25% 60%, #ffe8a6 99%, transparent),
        radial-gradient(2px 2px at 90% 50%, #fff2c4 99%, transparent),
        radial-gradient(3px 3px at 60% 10%, #ffe8a6 99%, transparent);

    animation: starsTwinkle 4s infinite alternate;
}

@keyframes starsTwinkle {
    from { opacity: .4; }
    to { opacity: 1; }
}

.magic-moon {
    position: absolute;
    top: 45px;
    right: 12%;
    color: var(--gold-light);
    font-size: 75px;
    text-shadow: 0 0 30px #f4c76c;
}

.magic-palace {
    position: absolute;
    z-index: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 65%;
    opacity: .4;

    background: linear-gradient(
        to top,
        rgba(3,20,34,.95),
        rgba(7,67,84,.08)
    );

    clip-path: polygon(
        0 100%,0 60%,10% 60%,12% 42%,14% 60%,
        23% 60%,25% 32%,27% 60%,38% 60%,
        40% 20%,43% 60%,47% 60%,50% 0,
        53% 60%,58% 60%,61% 30%,64% 60%,
        76% 60%,79% 35%,82% 60%,91% 60%,
        93% 45%,95% 60%,100% 60%,100% 100%
    );
}

.palace-glow {
    position: absolute;
    inset: 20% 20% 0;
    z-index: 0;
    background: radial-gradient(
        ellipse,
        rgba(255,190,86,.22),
        transparent 70%
    );
}

.magic-scene-content {
    position: relative;
    z-index: 2;
}

.magic-eyebrow,
.section-label {
    color: #d8b66e;
    font-size: 10px;
    letter-spacing: 4px;
}

.magic-scene h2 {
    margin: 20px 0 12px;
    color: #fff0d1;
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(26px, 5vw, 42px);
    line-height: 1.4;
    font-weight: 400;
}

.magic-subtitle {
    color: #e9d6ae;
    font-family: 'Cormorant Garamond', serif;
    font-size: 21px;
}

.magic-princess {
    max-width: 850px;
    margin: 15px auto 0;
}

.magic-princess img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,.25));
}

.magic-name {
    margin-top: -5px;
    color: #f4d38e;
    font-family: 'Great Vibes', cursive;
    font-size: clamp(42px, 7vw, 65px);
    text-shadow: 0 3px 20px rgba(255,205,108,.35);
}

.magic-date {
    display: block;
    margin-top: 12px;
    color: #e9d7b0;
    font-size: 10px;
    letter-spacing: 3px;
}

.magic-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    color: #f4dca9;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 2px;
}

.scroll-arrow {
    display: block;
    margin-top: 10px;
    font-size: 25px;
    animation: arrowDown 1.5s infinite;
}

@keyframes arrowDown {
    50% { transform: translateY(7px); }
}


/* ======================================
   BIENVENIDA
====================================== */

.magic-welcome {
    padding: 85px 22px;
    background: radial-gradient(ellipse at center, #f8f0df, #eee2c9);
    color: var(--green-text);
}

.welcome-content {
    max-width: 680px;
    margin: auto;
    text-align: center;
}

.magic-welcome h2 {
    margin-top: 18px;
    color: #28564f;
    font-family: 'Playfair Display', serif;
    font-size: clamp(35px, 6vw, 49px);
    font-weight: 400;
}

.magic-welcome p {
    margin-top: 20px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 21px;
    line-height: 1.8;
}

.magic-welcome .signature {
    color: #a88a50;
}

.magic-welcome .signature strong {
    font-family: 'Great Vibes', cursive;
    font-size: 38px;
    font-weight: 400;
}


/* ======================================
   RELOJ DE ARENA Y CONTADOR
====================================== */

.hourglass-section {
    position: relative;
    padding: 75px 20px;
    text-align: center;

    background:
        radial-gradient(
            ellipse at center,
            #126070,
            #063e48 70%,
            #032d3a
        );
}

.hourglass-container {
    max-width: 800px;
    margin: auto;
}

.hourglass-section h2 {
    margin: 20px 0;
    color: #f4dfb1;
    font-family: 'Marcellus', serif;
    font-size: clamp(25px, 4vw, 36px);
}

.hourglass-description {
    color: #e8dcc4;
    font-family: 'Cormorant Garamond', serif;
    font-size: 21px;
}

.hourglass-visual {
    position: relative;
    display: grid;
    place-items: center;
    width: 160px;
    height: 175px;
    margin: 25px auto;
}

.hourglass-icon {
    position: relative;
    z-index: 1;
    width: 110px;
    height: 130px;
    color: #f3d28b;
    filter: drop-shadow(0 0 18px rgba(255,201,106,.6));
    animation: hourglassGlow 3s infinite alternate;
}

@keyframes hourglassGlow {
    to { transform: scale(1.06); }
}

.hourglass-glow {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(235,185,94,.13);
    filter: blur(25px);
}

.hourglass-sparkle {
    position: absolute;
    color: #ffe5a2;
    animation: sparkleFloat 3s infinite ease-in-out;
}

.sparkle-one { top: 15px; left: 10px; }
.sparkle-two { top: 65px; right: 0; animation-delay: .7s; }
.sparkle-three { bottom: 10px; left: 15px; animation-delay: 1.2s; }

@keyframes sparkleFloat {
    50% {
        transform: translateY(-12px);
        opacity: .45;
    }
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    max-width: 600px;
    margin: 30px auto;
}

.countdown-item {
    padding: 18px 8px;
    border: 1px solid rgba(231,198,128,.6);
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(8px);
}

.countdown-item span {
    display: block;
    color: #f7d994;
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(22px, 4vw, 34px);
}

.countdown-item small {
    display: block;
    margin-top: 7px;
    color: #f1e4c7;
    font-size: 9px;
    letter-spacing: 1.5px;
}

.countdown-message {
    color: #f0d9a7;
    font-family: 'Cormorant Garamond', serif;
    font-size: 21px;
}


/* ======================================
   TRES ACCESOS CIRCULARES
====================================== */

.quick-access-section {
    padding: 65px 18px;
    text-align: center;
    background: #f5eddd;
    color: #28564f;
}

.quick-access-section h2 {
    margin: 16px 0 35px;
    color: #315d58;
    font-family: 'Playfair Display', serif;
    font-size: clamp(25px, 5vw, 38px);
    font-weight: 400;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 620px;
    margin: auto;
}

.quick-access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;

    min-width: 0;
    padding: 8px 3px;

    border: 0;
    background: transparent;
    color: #315d58;
    text-decoration: none;

    cursor: pointer;
    font: inherit;
}

.quick-icon {
    display: grid;
    place-items: center;

    width: 68px;
    height: 68px;

    border: 1px solid #c9a75f;
    border-radius: 50%;

    background: linear-gradient(145deg, #fffaf0, #eadbbd);
    color: #a47e3e;

    box-shadow: 0 6px 18px rgba(68,54,30,.12);

    transition: transform .3s ease, box-shadow .3s ease;
}

.quick-icon svg {
    display: block;
    width: 28px;
    height: 28px;
    stroke: currentColor;
}

.quick-access-item:hover .quick-icon,
.quick-access-item:focus-visible .quick-icon {
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(68,54,30,.2);
}

.quick-label {
    color: #315d58;
    font-family: 'Marcellus', serif;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.quick-access-item:focus-visible {
    outline: 2px solid #b99553;
    outline-offset: 5px;
    border-radius: 12px;
}


/* ======================================
   TARJETA DE EVENTO
====================================== */

.magic-event {
    padding: 75px 18px;
    text-align: center;

    background:
        radial-gradient(
            ellipse at top,
            #126071,
            #063e48 75%
        );
}

.magic-event h2 {
    margin: 17px 0;
    color: #f3dfb6;
    font-family: 'Marcellus', serif;
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 400;
}

.event-card {
    max-width: 560px;
    margin: 30px auto 0;
    padding: 28px 32px;

    border: 1px solid rgba(221,187,113,.7);
    border-radius: 18px;

    background: rgba(255,255,255,.07);
    box-shadow: 0 15px 40px rgba(0,0,0,.18);
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 13px 0;
    text-align: left;
}

.event-icon {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;

    border: 1px solid rgba(231,198,128,.6);
    border-radius: 50%;

    color: #e9c77f;
}

.event-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event-detail h3 {
    margin-bottom: 4px;
    color: #f3d99e;
    font-family: 'Marcellus', serif;
    font-size: 14px;
    font-weight: 400;
}

.event-detail p {
    color: #f4e9d3;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    line-height: 1.5;
}

.event-detail .venue-name {
    font-weight: 600;
}

.event-detail .venue-address {
    margin-top: 4px;
    color: #e8d8b3;
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
}

.event-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(221,187,113,.5),
        transparent
    );
}

.location-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    max-width: 240px;
    min-height: 46px;

    margin: 22px auto 0;
    padding: 12px 18px;

    border: 1px solid #d6b66f;
    border-radius: 30px;

    background: linear-gradient(135deg, #b18a48, #d6b66f);
    color: #183c40;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-decoration: none;

    transition: .3s ease;
}

.location-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.location-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
}


/* ======================================
   DESPEDIDA
====================================== */

.magic-footer {
    padding: 60px 20px;
    text-align: center;
    background: #031f30;
    color: #f3dfb6;
}

.footer-stars {
    margin-bottom: 20px;
    color: #e8c77d;
    font-size: 24px;
    letter-spacing: 15px;
}

.magic-footer p {
    max-width: 500px;
    margin: auto;
    font-family: 'Cormorant Garamond', serif;
    font-size: 23px;
    line-height: 1.5;
}

.footer-signature {
    display: block;
    margin: 18px 0;
    color: #d9b66f;
    font-family: 'Great Vibes', cursive;
    font-size: 45px;
}

.magic-footer small {
    font-size: 10px;
    letter-spacing: 3px;
}


/* ======================================
   MODAL DE CONFIRMACIÓN
====================================== */

.rsvp-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 18px;

    background: rgba(0,20,30,.78);
    backdrop-filter: blur(7px);
}

.rsvp-modal.is-open {
    display: flex;
}

.rsvp-modal-content {
    position: relative;
    width: 100%;
    max-width: 430px;
    padding: 38px 25px;

    border: 1px solid #c7a45e;
    border-radius: 18px;

    background: #f8f0df;
    color: #315d58;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.rsvp-modal-content h2 {
    margin: 15px 0;
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 400;
}

.rsvp-modal-content p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    line-height: 1.5;
}

.rsvp-modal-content label {
    display: block;
    margin: 17px 0 7px;
    text-align: left;
    font-size: 12px;
}

.rsvp-modal-content input,
.rsvp-modal-content select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;

    border: 1px solid #cdbb96;
    border-radius: 8px;

    background: #fffdf7;
    color: #315d58;
    font: inherit;
}

.rsvp-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 24px;

    border: 0;
    border-radius: 30px;

    background: #08606a;
    color: white;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;

    cursor: pointer;
}

.rsvp-close {
    position: absolute;
    top: 9px;
    right: 15px;

    border: 0;
    background: transparent;
    color: #315d58;

    font-size: 30px;
    cursor: pointer;
}

.modal-open {
    overflow: hidden;
}


/* ======================================
   MÚSICA FLOTANTE
====================================== */

.music-toggle {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border: 1px solid rgba(218,183,111,.8);
    border-radius: 50%;

    background: rgba(6,62,72,.95);
    color: #e8cb8b;

    font-family: 'Montserrat', sans-serif;
    font-size: 20px;

    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,.22);
}

.music-toggle.is-playing {
    animation: musicPulse 2s infinite;
}

@keyframes musicPulse {
    50% {
        box-shadow: 0 0 0 9px rgba(218,183,111,0);
    }
}


/* ======================================
   ANIMACIONES Y ACCESIBILIDAD
====================================== */

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #d9b66f;
    outline-offset: 4px;
}


/* ======================================
   RESPONSIVE: TABLETS Y CELULARES
====================================== */

@media (max-width: 600px) {

    .cover {
        padding: 45px 20px;
    }

    .cover-texture {
        inset: 12px;
    }

/* CENTRAR LA IMAGEN DE PORTADA EN CELULARES */
.princess-container {
    max-width: 150px; /* MODIFICAR AQUÍ EL ANCHO */
    margin-left: auto; /* CENTRADO HORIZONTAL */
    margin-right: auto; /* CENTRADO HORIZONTAL */
}

    .small-title {
        font-size: 37px;
    }

    .title-container h1 {
        font-size: clamp(43px, 12vw, 58px);
    }

    .title-container h2 {
        font-size: clamp(42px, 11vw, 54px);
    }

    .date-ornament {
        max-width: 275px;
    }

    .date-day {
        font-size: 58px;
    }

    .date-month {
        font-size: 13px;
    }

    .event-time {
        font-size: 18px;
    }

    .magic-scene {
        min-height: auto;
        padding: 65px 14px 35px;
    }

    .magic-moon {
        top: 25px;
        right: 8%;
        font-size: 48px;
    }

    .magic-eyebrow,
    .section-label {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .magic-scene h2 {
        font-size: 26px;
    }

    .magic-subtitle {
        font-size: 18px;
    }

    .magic-welcome {
        padding: 65px 23px;
    }

    .hourglass-section {
        padding: 60px 15px;
    }

    .countdown-grid {
        gap: 7px;
    }

    .countdown-item {
        padding: 13px 3px;
        border-radius: 9px;
    }

    .countdown-item span {
        font-size: 19px;
    }

    .countdown-item small {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .quick-access-section {
        padding: 55px 12px;
    }

    .quick-access-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
        max-width: 100%;
    }

    .quick-icon {
        width: 58px;
        height: 58px;
    }

    .quick-icon svg {
        width: 25px;
        height: 25px;
    }

    .quick-label {
        font-size: 9px;
        line-height: 1.35;
    }

    .magic-event {
        padding: 60px 14px;
    }

    .event-card {
        padding: 22px 17px;
    }

    .event-detail {
        gap: 12px;
    }

    .event-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .event-detail p {
        font-size: 14px;
    }

    .event-detail .venue-address {
        font-size: 15px;
    }

    .music-toggle {
        right: 13px;
        bottom: 13px;
        width: 44px;
        height: 44px;
    }

}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}

/* ======================================
   GALERÍA DE RECUERDOS
====================================== */

.gallery-section {
    padding: 76px 20px 82px;
    background: linear-gradient(145deg, #f8f1e3, #eee1c7);
    color: #315d58;
    text-align: center;
}

.gallery-container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.gallery-section h2 {
    margin: 16px 0 12px;
    color: #315d58;
    font-family: 'Playfair Display', serif;
    font-size: clamp(27px, 5vw, 40px);
    font-weight: 400;
}

.gallery-description {
    max-width: 620px;
    margin: 0 auto 30px;
    color: #55716a;
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    line-height: 1.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.gallery-item {
    display: block;
    min-height: 190px;
    overflow: hidden;
    border: 1px solid rgba(181, 143, 71, .65);
    border-radius: 13px;
    background: #e6d8bc;
    box-shadow: 0 8px 22px rgba(55, 48, 32, .12);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform .45s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.045);
}

.gallery-note {
    margin-top: 20px;
    color: #8a744e;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
}

.gallery-item[hidden] {
    display: none !important;
}

@media (max-width: 700px) {
    .gallery-section {
        padding: 58px 14px 64px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .gallery-item {
        min-height: 145px;
    }

    .gallery-item img {
        height: 175px;
    }
}

@media (max-width: 360px) {
    .quick-access-grid {
        gap: 2px;
    }

    .quick-icon {
        width: 52px;
        height: 52px;
    }

    .quick-label {
        font-size: 8px;
    }
}

/* Evita que el fondo decorativo se repita si el viewport es muy alto. */
@media (min-width: 900px) {
    .magic-scene {
        background-attachment: scroll;
    }
}
/* ==========================================
   MEJORA DEL RELOJ DE ARENA
   Animación de arena y efectos mágicos
========================================== */

.hourglass-visual {
    width: 190px;
    height: 220px;
    margin: 30px auto;
    isolation: isolate;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .18));
}

.hourglass-svg {
    position: relative;
    z-index: 2;
    display: block;
    width: 155px;
    height: 210px;
    overflow: visible;
    animation: hourglassFloat 4s ease-in-out infinite;
}

/* Arena superior que va disminuyendo */

.hourglass-svg .sand-top {
    transform-box: fill-box;
    transform-origin: center top;
    animation: sandTopFlow 5s ease-in-out infinite;
}

/* Arena inferior que va acumulándose */

.hourglass-svg .sand-bottom {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: sandBottomFill 5s ease-in-out infinite;
}

/* Hilo de arena que cae */

.hourglass-svg .falling-sand {
    stroke-dasharray: 4 5;
    animation: fallingSandFlow .45s linear infinite;
}

/* Movimiento suave del reloj */

@keyframes hourglassFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

/* Cada cierto tiempo, el reloj gira y vuelve a su posición */
@keyframes hourglassTurn {
    0%, 76% {
        rotate: 0deg;
    }

    82%, 88% {
        rotate: 180deg;
    }

    94%, 100% {
        rotate: 360deg;
    }
}

@keyframes sandTopFlow {
    0% {
        transform: scaleY(1);
    }

    85%, 100% {
        transform: scaleY(.12);
    }
}

@keyframes sandBottomFill {
    0% {
        transform: scaleY(.12);
    }

    85%, 100% {
        transform: scaleY(1);
    }
}

@keyframes fallingSandFlow {
    to {
        stroke-dashoffset: -9;
    }
}

/* Destellos dorados */

.hourglass-sparkle {
    z-index: 3;
    text-shadow: 0 0 12px rgba(255, 220, 145, .9);
}

.sparkle-one {
    animation: sparkleMagic 2.4s ease-in-out infinite;
}

.sparkle-two {
    animation: sparkleMagic 3s ease-in-out infinite .5s;
}

.sparkle-three {
    animation: sparkleMagic 2.7s ease-in-out infinite 1s;
}

@keyframes sparkleMagic {
    0%, 100% {
        opacity: .35;
        transform: scale(.75) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.3) rotate(45deg);
    }
}
/* ==========================================
   ACABADO GENERAL Y CENTRADO RESPONSIVE
========================================== */

html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: clip;
}

.invitation {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.invitation-content,
.magic-scene,
.welcome,
.hourglass-section,
.quick-access-section,
.magic-event,
.gallery-section,
.magic-footer {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.magic-scene-content,
.welcome-content,
.hourglass-container,
.event-container,
.gallery-container {
    margin-left: auto;
    margin-right: auto;
}

.quick-access-grid {
    justify-content: center;
    align-items: start;
}

.quick-access-item {
    text-align: center;
}

.gallery-grid {
    align-items: stretch;
}

.gallery-item {
    position: relative;
    min-width: 0;
    background: #e8dcc3;
}

.gallery-item img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: center;
}

.event-card {
    width: 100%;
}

.event-detail {
    min-width: 0;
}

.event-detail p {
    overflow-wrap: anywhere;
}

/* Tipografía más refinada */

.magic-scene h2,
.hourglass-section h2,
.magic-event h2,
.gallery-section h2,
.magic-welcome h2 {
    letter-spacing: .3px;
}

.magic-subtitle,
.hourglass-description,
.gallery-description,
.magic-welcome p,
.event-detail p {
    font-family: 'Cormorant Garamond', serif;
}

.section-label,
.magic-eyebrow {
    font-family: 'Marcellus', serif;
    font-weight: 400;
}

.countdown-item {
    box-shadow: 0 8px 22px rgba(0, 0, 0, .10);
    transition: transform .25s ease,
                background .25s ease;
}

.countdown-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .10);
}

/* Tablet */

@media (max-width: 900px) {

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* Celulares */

@media (max-width: 600px) {

    .magic-scene,
    .magic-welcome,
    .hourglass-section,
    .quick-access-section,
    .magic-event,
    .gallery-section {
        width: 100%;
        overflow: hidden;
    }

    .countdown-grid {
        width: 100%;
        max-width: 420px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .countdown-item {
        min-width: 0;
        padding: 14px 2px;
    }

    .quick-access-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        max-width: 390px;
    }

    .quick-icon {
        width: 55px;
        height: 55px;
    }

    .quick-label {
        font-size: 9px;
        overflow-wrap: break-word;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .gallery-item img {
        height: 175px;
    }

    .event-card {
        padding: 20px 14px;
    }

}

/* Celulares pequeños */

@media (max-width: 360px) {

    .quick-access-grid {
        gap: 2px;
    }

    .quick-icon {
        width: 49px;
        height: 49px;
    }

    .quick-label {
        font-size: 8px;
    }

    .countdown-grid {
        gap: 5px;
    }

    .countdown-item small {
        font-size: 7px;
    }

    .gallery-item img {
        height: 145px;
    }

}

/* Accesibilidad: respetar la preferencia de movimiento */

@media (prefers-reduced-motion: reduce) {

    .hourglass-svg,
    .hourglass-svg .sand-top,
    .hourglass-svg .sand-bottom,
    .hourglass-svg .falling-sand,
    .hourglass-sparkle {
        animation: none !important;
    }

}
/* ==========================================
   PÁGINA INDEPENDIENTE DE GALERÍA
========================================== */

.gallery-page {
    min-height: 100vh;
    background:
        radial-gradient(
            ellipse at top,
            #fff9ec 0%,
            #f5eddb 55%,
            #eee1c7 100%
        );

    color: #315d58;
}

.gallery-page-container {
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    margin: auto;
    padding: 65px 25px 40px;
}

.gallery-header {
    text-align: center;
    margin: 0 auto 42px;
}

.gallery-header h1 {
    margin: 18px 0 10px;
    color: #315d58;
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 400;
}

.gallery-header > p {
    margin-top: 20px;
    color: #647a70;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(19px, 3vw, 23px);
}

.gallery-name {
    display: block;
    margin-top: 12px;
    color: #b18a48;
    font-family: 'Great Vibes', cursive;
    font-size: 36px;
}

.gallery-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-photo {
    display: block;
    position: relative;
    height: 290px;
    overflow: hidden;

    border: 1px solid rgba(181, 143, 71, .65);
    border-radius: 15px;

    background: #e8dcc3;

    box-shadow: 0 9px 25px rgba(55, 48, 32, .12);

    transition: transform .3s ease,
                box-shadow .3s ease;
}

.gallery-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(55, 48, 32, .18);
}

.gallery-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease;
}

.gallery-photo:hover img {
    transform: scale(1.05);
}

.gallery-footer {
    margin: 55px auto 0;
    text-align: center;
}

.gallery-footer p {
    color: #7e7967;
    font-family: 'Cormorant Garamond', serif;
    font-size: 19px;
}

.gallery-footer > span {
    display: block;
    margin: 5px 0 12px;
    color: #b18a48;
    font-family: 'Great Vibes', cursive;
    font-size: 43px;
}

.gallery-footer small {
    display: block;
    color: #8b8068;
    font-size: 10px;
    letter-spacing: 3px;
}

.gallery-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 48px;
    margin-top: 30px;
    padding: 13px 25px;

    border: 1px solid #c9a75f;
    border-radius: 30px;

    background: linear-gradient(135deg, #f3d991, #c39a42);
    color: #263c36;

    font-family: 'Marcellus', serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-decoration: none;

    transition: transform .3s ease,
                box-shadow .3s ease;
}

.gallery-back:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(68, 54, 30, .2);
}


/* TABLETS */

@media (max-width: 800px) {

    .gallery-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .gallery-photo {
        height: 250px;
    }

}


/* CELULARES */

@media (max-width: 500px) {

    .gallery-page-container {
        padding: 45px 14px 30px;
    }

    .gallery-header {
        margin-bottom: 30px;
    }

    .gallery-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .gallery-photo {
        height: 190px;
        border-radius: 11px;
    }

    .gallery-name {
        font-size: 32px;
    }

    .gallery-footer {
        margin-top: 40px;
    }

}

@media (max-width: 350px) {

    .gallery-photo {
        height: 155px;
    }

    .gallery-back {
        padding: 12px 16px;
        font-size: 9px;
    }

}
/* Icono musical independiente del texto de JavaScript */

#musicIcon {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 0;
}

#musicIcon::before {
    content: "\266B";
    display: block;
    color: #e8cb8b;
    font-family: Arial, sans-serif;
    font-size: 25px;
    line-height: 1;
}

.music-toggle {
    display: grid;
    place-items: center;
}
/* =========================================
   MEJORA DE CONTRASTE: BIENVENIDA
========================================= */

.magic-welcome {
    background-color: #f5edda;
}

.magic-welcome .section-label {
    color: #92702f !important;
    font-weight: 600;
    letter-spacing: 2px;
}

.magic-welcome h2 {
    color: #164f4b !important;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.magic-welcome .welcome-content > p {
    color: #405d53 !important;
    font-family: 'Cormorant Garamond', serif;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.85;
}

.magic-welcome .signature {
    color: #665638 !important;
}

.magic-welcome .signature strong {
    color: #94702f !important;
    font-family: 'Great Vibes', cursive;
    font-size: 37px;
    font-weight: 500;
}
/* =========================================
   ACCESOS RÁPIDOS: MAYOR LEGIBILIDAD
========================================= */

.quick-access-section {
    background-color: #f5edda;
}

.quick-access-section .section-label {
    color: #92702f !important;
    font-weight: 600;
}

.quick-access-section h2 {
    color: #164f4b !important;
    font-weight: 600;
}

.quick-access-item .quick-label {
    color: #31564d !important;
    font-weight: 600;
    font-size: 12px;
}

.quick-access-item .quick-icon {
    color: #987334 !important;
    border-color: #c6a45f;
}

.quick-access-item:focus-visible {
    outline: 3px solid #987334;
    outline-offset: 5px;
}
/* =========================================
   RESPONSIVE: LEGIBILIDAD EN MÓVILES
========================================= */

@media (max-width: 600px) {

    .magic-welcome .section-label,
    .quick-access-section .section-label {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .magic-welcome h2,
    .quick-access-section h2 {
        font-size: clamp(27px, 7vw, 34px);
        line-height: 1.25;
    }

    .magic-welcome .welcome-content > p {
        font-size: 19px;
        line-height: 1.75;
        padding-left: 5px;
        padding-right: 5px;
    }

    .magic-welcome .signature strong {
        font-size: 34px;
    }

    .quick-access-item .quick-label {
        font-size: 10px;
        line-height: 1.4;
    }

}
/* ==================================================
   MI GRAN DÍA - DISEÑO ELEGANTE PREMIUM
   Fecha, hora y ubicación
================================================== */

.event-section.magic-event {
    background:
        radial-gradient(ellipse at top, #12616a 0%, #064650 65%, #043740 100%);
    padding: 75px 20px;
}

.magic-event .event-container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

/* Encabezado */

.magic-event .section-label {
    color: #e4c887 !important;
    font-family: 'Marcellus', serif;
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 600;
}

.magic-event h2 {
    color: #fff0ce !important;
    font-family: 'Playfair Display', serif;
    font-size: clamp(34px, 6vw, 46px);
    font-weight: 500;
    margin: 15px 0 12px;
    line-height: 1.2;
}

.magic-event .gold-divider {
    margin: 20px auto 30px;
}

/* Tarjeta principal */

.magic-event .event-card {
    width: 100%;
    max-width: 620px;
    margin: 30px auto 0;
    padding: 32px;
    border: 1px solid rgba(224, 195, 125, .65);
    border-radius: 24px;

    background: linear-gradient(
        145deg,
        rgba(255,255,255,.12),
        rgba(255,255,255,.045)
    );

    box-shadow:
        0 18px 45px rgba(0,0,0,.20),
        inset 0 1px 0 rgba(255,255,255,.12);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Cada dato: fecha, hora y lugar */

.magic-event .event-detail {
    display: grid;
    grid-template-columns: 58px 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px;
    align-items: center;

    padding: 20px 12px;
    text-align: left;
    border-radius: 17px;

    background: rgba(255,255,255,.055);
    border: 1px solid rgba(224,195,125,.28);

    transition: background .3s ease,
                border-color .3s ease,
                transform .3s ease;
}

.magic-event .event-detail:hover {
    background: rgba(255,255,255,.11);
    border-color: rgba(230,202,143,.65);
    transform: translateY(-2px);
}

/* Iconos */

.magic-event .event-icon {
    grid-column: 1;
    grid-row: 1 / 3;

    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #d9bb79;
    border-radius: 50%;

    color: #f5d995 !important;
    font-size: 23px;

    background: rgba(222,190,119,.09);
    box-shadow: 0 0 18px rgba(218,185,112,.10);
}

/* Etiquetas */

.magic-event .event-detail h3 {
    grid-column: 2;
    grid-row: 1;

    margin: 0 0 5px;
    color: #e6c985 !important;

    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Información */

.magic-event .event-detail p {
    grid-column: 2;
    grid-row: 2;

    margin: 0;
    color: #fff5e2 !important;

    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
}

/* Nombre del local */

.magic-event .event-detail .venue-name {
    color: #fff0ce !important;
    font-size: 21px;
    font-weight: 700;
}

/* Dirección */

.magic-event .event-detail .venue-address {
    margin-top: 3px;
    color: #e6e5d9 !important;
    font-size: 18px;
}

/* Separadores */

.magic-event .event-divider {
    width: calc(100% - 30px);
    height: 1px;
    margin: 10px auto;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(220,190,125,.55),
        transparent
    );
}

/* Botón cómo llegar */

.magic-event .location-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-width: 230px;
    min-height: 50px;
    margin: 27px auto 0;
    padding: 13px 28px;

    border: 1px solid #f0d99e;
    border-radius: 35px;

    background: linear-gradient(
        135deg,
        #f1d99b,
        #c49a50
    );

    color: #174b49 !important;

    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-decoration: none;

    box-shadow: 0 8px 22px rgba(0,0,0,.17);

    transition: transform .3s ease,
                box-shadow .3s ease;
}

.magic-event .location-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0,0,0,.25);
}

/* ==================================================
   RESPONSIVE - TABLETS Y CELULARES
================================================== */

@media (max-width: 600px) {

    .event-section.magic-event {
        padding: 55px 15px;
    }

    .magic-event .event-container {
        max-width: 100%;
    }

    .magic-event .event-card {
        padding: 17px;
        border-radius: 20px;
    }

    .magic-event .event-detail {
        grid-template-columns: 48px 1fr;
        column-gap: 13px;
        padding: 17px 12px;
        border-radius: 15px;
    }

    .magic-event .event-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .magic-event .event-detail h3 {
        font-size: 9px;
        letter-spacing: 1.7px;
    }

    .magic-event .event-detail p {
        font-size: 18px;
        line-height: 1.45;
    }

    .magic-event .event-detail .venue-name {
        font-size: 19px;
    }

    .magic-event .event-detail .venue-address {
        font-size: 17px;
    }

    .magic-event .location-button {
        width: 100%;
        max-width: 260px;
        min-height: 49px;
        margin-top: 23px;
    }

}

/* Celulares pequeños */

@media (max-width: 360px) {

    .magic-event .event-card {
        padding: 12px;
    }

    .magic-event .event-detail {
        grid-template-columns: 42px 1fr;
        column-gap: 10px;
        padding: 14px 9px;
    }

    .magic-event .event-icon {
        width: 39px;
        height: 39px;
    }

    .magic-event .event-detail p {
        font-size: 16px;
    }

    .magic-event .event-detail .venue-name {
        font-size: 17px;
    }

}
/* ==========================================
   ACCESOS RÁPIDOS - 3 ELEMENTOS CENTRADOS
========================================== */

.quick-access-section .quick-access-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 110px)) !important;
    justify-content: center !important;
    justify-items: center;
    align-items: start;
    gap: 28px;
    width: 100%;
    max-width: 440px;
    margin: 35px auto 0;
}

.quick-access-section .quick-access-item {
    width: 100%;
    max-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

/* Iconos */
.quick-access-section .quick-icon {
    margin: 0 auto 10px;
}

/* Etiquetas */
.quick-access-section .quick-label {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1.4;
}

/* CELULARES */
@media (max-width: 600px) {

    .quick-access-section .quick-access-grid {
        grid-template-columns: repeat(3, minmax(0, 90px)) !important;
        justify-content: center !important;
        gap: 18px;
        max-width: 100%;
        margin-top: 28px;
    }

    .quick-access-section .quick-access-item {
        max-width: 90px;
    }

}

/* CELULARES PEQUEÑOS */
@media (max-width: 360px) {

    .quick-access-section .quick-access-grid {
        grid-template-columns: repeat(3, minmax(0, 82px)) !important;
        gap: 10px;
    }

}
/* =====================================================
   GALERÍA DE RECUERDOS - ANGHELI FIORELLA
   Diseño elegante inspirado en Las mil y una noches
===================================================== */

body.gallery-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at top, rgba(201, 158, 73, 0.13), transparent 55%),
        linear-gradient(180deg, #073e48 0%, #052f39 55%, #031f2a 100%);
    color: #f8f0df;
    font-family: 'Cormorant Garamond', serif;
    overflow-x: hidden;
}

.gallery-page *,
.gallery-page *::before,
.gallery-page *::after {
    box-sizing: border-box;
}

.gallery-elegant {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 55px 35px 35px;
}

/* ENCABEZADO */

.gallery-hero {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
    padding: 15px 20px 0;
}

.gallery-ornament {
    color: #e8c779;
    font-size: 32px;
    margin-bottom: 18px;
    text-shadow: 0 0 18px rgba(232, 199, 121, 0.5);
}

.gallery-eyebrow {
    display: block;
    color: #e7c982;
    font-family: 'Marcellus', serif;
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 17px;
}

.gallery-hero h1 {
    margin: 0;
    color: #f8e7bd;
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
}

.gallery-gold-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 17px;
    margin: 25px auto;
    color: #e8c779;
    font-size: 20px;
}

.gallery-gold-divider span {
    display: block;
    width: 75px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d9b66e);
}

.gallery-gold-divider span:last-child {
    transform: rotate(180deg);
}

.gallery-intro {
    max-width: 610px;
    margin: 0 auto;
    color: #e7e0d2;
    font-family: 'Cormorant Garamond', serif;
    font-size: 21px;
    line-height: 1.65;
    font-weight: 400;
}

.gallery-script {
    display: block;
    margin-top: 25px;
    color: #e9c77f;
    font-family: 'Great Vibes', cursive;
    font-size: clamp(36px, 5vw, 48px);
    line-height: 1.3;
    text-shadow: 0 2px 12px rgba(220, 177, 91, 0.2);
}

.gallery-date {
    display: block;
    margin-top: 13px;
    color: #d9c9a6;
    font-family: 'Marcellus', serif;
    font-size: 10px;
    letter-spacing: 3px;
}

.gallery-date span {
    color: #e8c779;
    padding: 0 7px;
}

/* GALERÍA FOTOGRÁFICA */

.gallery-elegant-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    width: 100%;
    margin: 0 auto;
    align-items: stretch;
}

.gallery-elegant-item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 5px;
    padding: 7px;
    background: linear-gradient(145deg, #e9d49c, #98743a, #e7c982);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(235, 204, 137, 0.2);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-elegant-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 2px;
    transition: transform 0.55s ease;
}

.gallery-elegant-item:hover {
    transform: translateY(-6px);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.38),
        0 0 18px rgba(224, 187, 105, 0.2);
}

.gallery-elegant-item:hover img {
    transform: scale(1.045);
}

/* CAPA AL PASAR EL CURSOR */

.gallery-photo-overlay {
    position: absolute;
    inset: 7px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 9px;
    color: #fff2cf;
    background: rgba(3, 37, 45, 0.68);
    font-family: 'Marcellus', serif;
    font-size: 13px;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-photo-overlay span {
    color: #edcf88;
    font-size: 27px;
}

.gallery-elegant-item:hover .gallery-photo-overlay {
    opacity: 1;
}

/* PIE DE GALERÍA */

.gallery-elegant-footer {
    margin-top: 75px;
    padding: 40px 20px 25px;
    text-align: center;
    border-top: 1px solid rgba(224, 190, 117, 0.28);
}

.gallery-footer-ornament {
    color: #e8c779;
    font-size: 27px;
    margin-bottom: 15px;
}

.gallery-elegant-footer p {
    color: #e4dac5;
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    line-height: 1.6;
}

.gallery-footer-name {
    display: block;
    color: #e9c77f;
    font-family: 'Great Vibes', cursive;
    font-size: 43px;
    margin: 15px 0;
}

.gallery-elegant-footer small {
    display: block;
    color: #d5c49e;
    font-family: 'Marcellus', serif;
    font-size: 10px;
    letter-spacing: 3px;
}

.gallery-elegant-footer small span {
    color: #e8c779;
    padding: 0 6px;
}

/* BOTÓN REGRESAR */

.gallery-back-elegant {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 35px;
    padding: 14px 25px;
    border: 1px solid #c9a75e;
    border-radius: 3px;
    color: #f0d99f;
    background: rgba(255, 255, 255, 0.035);
    font-family: 'Marcellus', serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.gallery-back-elegant:hover {
    background: #c9a75e;
    color: #07343d;
    box-shadow: 0 5px 20px rgba(201, 167, 94, 0.2);
}

.gallery-back-elegant span {
    font-size: 18px;
}

/* =====================================================
   TABLETS
===================================================== */

@media (max-width: 900px) {

    .gallery-elegant {
        padding: 45px 25px 25px;
    }

    .gallery-elegant-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .gallery-hero {
        margin-bottom: 40px;
    }
}

/* =====================================================
   CELULARES
===================================================== */

@media (max-width: 600px) {

    .gallery-elegant {
        padding: 35px 15px 20px;
    }

    .gallery-hero {
        padding: 5px 8px 0;
        margin-bottom: 32px;
    }

    .gallery-ornament {
        font-size: 25px;
        margin-bottom: 12px;
    }

    .gallery-eyebrow {
        font-size: 9px;
        letter-spacing: 3px;
        margin-bottom: 13px;
    }

    .gallery-hero h1 {
        font-size: clamp(27px, 8vw, 36px);
        line-height: 1.2;
    }

    .gallery-gold-divider {
        margin: 19px auto;
    }

    .gallery-gold-divider span {
        width: 45px;
    }

    .gallery-intro {
        font-size: 18px;
        line-height: 1.5;
    }

    .gallery-script {
        font-size: 37px;
        margin-top: 19px;
    }

    .gallery-date {
        font-size: 9px;
        letter-spacing: 1.8px;
        line-height: 1.8;
    }

    .gallery-elegant-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .gallery-elegant-item {
        aspect-ratio: 3 / 4;
        padding: 4px;
        border-radius: 3px;
    }

    .gallery-elegant-item img {
        border-radius: 1px;
    }

    .gallery-photo-overlay {
        inset: 4px;
        font-size: 10px;
    }

    .gallery-photo-overlay span {
        font-size: 21px;
    }

    .gallery-elegant-footer {
        margin-top: 45px;
        padding: 30px 10px 20px;
    }

    .gallery-elegant-footer p {
        font-size: 18px;
    }

    .gallery-footer-name {
        font-size: 37px;
    }

    .gallery-elegant-footer small {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .gallery-back-elegant {
        padding: 13px 17px;
        font-size: 9px;
        letter-spacing: 1.2px;
    }
}

/* CELULARES MUY PEQUEÑOS */

@media (max-width: 360px) {

    .gallery-elegant {
        padding-left: 10px;
        padding-right: 10px;
    }

    .gallery-elegant-grid {
        gap: 9px;
    }

    .gallery-intro {
        font-size: 16px;
    }

    .gallery-date {
        font-size: 8px;
        letter-spacing: 1px;
    }
}

/* ACCESIBILIDAD: MOVIMIENTO REDUCIDO */

@media (prefers-reduced-motion: reduce) {

    .gallery-elegant-item,
    .gallery-elegant-item img,
    .gallery-photo-overlay,
    .gallery-back-elegant {
        transition: none;
    }
}


/* ======================================================
   AJUSTES FINALES DE ESCRITORIO – INVITACIÓN MIS 15
   Se colocan al final para prevalecer sobre reglas previas
   sin eliminar ni alterar las funcionalidades existentes.
====================================================== */

/* Enlace de bienvenida: apariencia de botón elegante */
.welcome-scroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    margin: 24px auto 0;
    padding: 12px 25px;
    border: 1px solid #c9a454;
    border-radius: 30px;
    background: linear-gradient(135deg, #f5dfaa 0%, #d4ad5c 100%);
    color: #174b4b !important;
    font-family: 'Marcellus', serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.2;
    text-decoration: none !important;
    text-transform: uppercase;
    box-shadow: 0 5px 16px rgba(87, 63, 25, .16);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.welcome-scroll:hover,
.welcome-scroll:focus-visible {
    color: #103d40 !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 8px 20px rgba(87, 63, 25, .23);
}

.welcome-scroll:focus-visible {
    outline: 2px solid #a47e3e;
    outline-offset: 4px;
}

@media (min-width: 901px) {
    .hourglass-section {
        padding: 34px 20px 38px;
    }

    .hourglass-container {
        max-width: 760px;
    }

    .hourglass-section h2 {
        margin: 8px 0 7px;
        font-size: clamp(25px, 2.4vw, 32px);
    }

    .hourglass-description {
        font-size: 18px;
        line-height: 1.35;
    }

    .hourglass-visual {
        width: 132px;
        height: 145px;
        margin: 8px auto 10px;
        filter: drop-shadow(0 7px 15px rgba(0, 0, 0, .18));
    }

    .hourglass-svg {
        width: 104px;
        height: 142px;
        animation: hourglassFloat 4s ease-in-out infinite,
                   hourglassTurn 18s ease-in-out infinite;
        transform-origin: center center;
        will-change: transform, rotate;
    }

    .countdown-grid {
        max-width: 540px;
        gap: 10px;
        margin: 14px auto 12px;
    }

    .countdown-item {
        padding: 12px 7px;
    }

    .countdown-item span {
        font-size: clamp(21px, 2.2vw, 29px);
    }

    .countdown-item small {
        margin-top: 4px;
    }

    .countdown-message {
        font-size: 18px;
        line-height: 1.35;
    }
}

/* En pantallas menores se conserva la distribución móvil existente. */
@media (max-width: 900px) {
    .welcome-scroll {
        margin-top: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .welcome-scroll,
    .welcome-scroll:hover {
        transition: none;
        transform: none;
    }
}

/* ======================================================
   AJUSTE COMPACTO PARA CELULARES – RELOJ Y CONTADOR
   Reduce la altura de la sección para evitar desplazamiento
   vertical innecesario y deja visible el inicio del bloque siguiente.
====================================================== */
@media (max-width: 900px) {
    .hourglass-section {
        padding: 24px 12px 28px;
    }

    .hourglass-container {
        max-width: 560px;
    }

    .hourglass-section h2 {
        margin: 5px 0 4px;
        font-size: clamp(21px, 5.5vw, 28px);
        line-height: 1.2;
    }

    .hourglass-description {
        margin: 4px auto 0;
        font-size: 16px;
        line-height: 1.25;
    }

    .hourglass-visual {
        width: 92px;
        height: 104px;
        margin: 5px auto 7px;
        filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .16));
    }

    .hourglass-svg {
        width: 76px;
        height: 102px;
        animation: hourglassFloat 4s ease-in-out infinite,
                   hourglassTurn 18s ease-in-out infinite;
        transform-origin: center center;
        will-change: transform, rotate;
    }

    .countdown-grid {
        max-width: 360px;
        gap: 6px;
        margin: 9px auto 7px;
    }

    .countdown-item {
        padding: 8px 2px;
        border-radius: 8px;
    }

    .countdown-item span {
        font-size: clamp(17px, 5vw, 22px);
        line-height: 1.1;
    }

    .countdown-item small {
        margin-top: 3px;
        font-size: 7px;
        letter-spacing: .7px;
    }

    .countdown-message {
        margin: 5px auto 0;
        font-size: 16px;
        line-height: 1.25;
    }

    .welcome-scroll {
        min-height: 40px;
        margin-top: 14px;
        padding: 10px 18px;
        font-size: 9px;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 380px) {
    .hourglass-section {
        padding: 20px 10px 23px;
    }

    .hourglass-visual {
        width: 82px;
        height: 94px;
        margin: 4px auto 5px;
    }

    .hourglass-svg {
        width: 68px;
        height: 92px;
    }

    .countdown-grid {
        gap: 4px;
        margin: 7px auto 5px;
    }

    .countdown-item {
        padding: 7px 1px;
    }

    .countdown-item small {
        font-size: 6px;
        letter-spacing: .4px;
    }
}
/* Interlineado más compacto en la invitación */
.invitation-message p {
    line-height: 1.35;
    margin-bottom: 10px;
}

/* Nombre de Anghelí */
.signature strong {
    line-height: 1.1;
    margin-top: 2px;
}

/* Ajuste para celulares */
@media (max-width: 600px) {
    .invitation-message p {
        line-height: 1.3;
        margin-bottom: 8px;
    }
}
/* Nombre de la quinceañera */
.invitation-name {
    font-family: 'Great Vibes', cursive;
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.1;
    color: #174f4b;
    margin: 12px 0;
    text-shadow: none;
}

/* Adaptación para celulares */
@media (max-width: 600px) {
    .invitation-name {
        font-size: 36px;
        line-height: 1.05;
        margin: 8px 0;
    }
}
/* ANGHELÍ FIORELLA: MISMA TIPOGRAFÍA QUE LA PORTADA */
.magic-welcome .invitation-message h2.invitation-name {
    font-family: 'Great Vibes', cursive !important;
    font-size: clamp(45px, 9vw, 65px) !important;
    font-weight: 400 !important;
    font-style: normal;
    color: #164f4b !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none;
    margin: 12px 0 15px !important;
    text-shadow: none;
}