@import "tailwindcss";

:root {
    --color-gold: #9E9D83;
    --color-gold-dark: #c19a62;
    --color-text: #f5f1ea;
    --color-background: #1f1814;
    --color-mint: #c9dcd5;
    --color-cream: #f6efe6;
    --color-card: #fdfaf6;
    --font-serif: "Tangerine", cursive;
    --font-sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
    --font-script: "Tangerine", cursive;
    --color-flower-deep: #423528;
    --color-flower-accent: var(--color-gold);
    --color-stem: var(--color-mint);
    --color-leaf: rgba(201, 220, 213, 0.9);
    --shadow-soft: 0 28px 60px rgba(31, 24, 20, 0.35);
}

html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-sans);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 6vw, 4rem);
    background-image:
        linear-gradient(180deg, rgba(24, 20, 17, 0.55), rgba(24, 20, 17, 0.82)),
        url("./foto.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
    z-index: 3;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(214, 185, 142, 0.28), transparent 55%),
        radial-gradient(circle at bottom left, rgba(214, 185, 142, 0.22), transparent 60%);
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__date {
    position: relative;
    display: inline-block;
    padding: 0.75rem 3.5rem;
    font-size: clamp(0.9rem, 2.1vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.45rem;
    text-transform: uppercase;
    color: rgba(245, 241, 234, 0.9);
}

.hero__date::before,
.hero__date::after {
    content: "";
    position: absolute;
    top: 50%;
    width: clamp(50px, 12vw, 80px);
    height: 1px;
    background-color: rgba(245, 241, 234, 0.4);
    transform: translateY(-50%);
}

.hero__date::before {
    right: 100%;
    margin-right: clamp(1rem, 3vw, 1.75rem);
}

.hero__date::after {
    left: 100%;
    margin-left: clamp(1rem, 3vw, 1.75rem);
}

.hero__names {
    position: relative;
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(3.4rem, 12vw, 10rem);
    letter-spacing: 0.12rem;
    display: inline-flex;
    align-items: center;
    gap: clamp(1.2rem, 2.8vw, 1.8rem);
}

.hero__names::before,
.hero__names::after {
    content: "";
    position: absolute;
    left: 50%;
    width: clamp(180px, 35vw, 280px);
    height: 1px;
    background-color: rgba(245, 241, 234, 0.35);
    transform: translateX(-50%);
}

.hero__names::before {
    top: -1.75rem;
}

.hero__names::after {
    bottom: -1.75rem;
}

.hero__names span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(3rem, 6vw, 4.2rem);
    height: clamp(3rem, 6vw, 4.2rem);
    border-radius: 999px;
    background: rgba(214, 185, 142, 0.95);
    color: #2f2315;
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 600;
    letter-spacing: normal;
}

.hero__quote {
    position: relative;
    margin-top: clamp(2.2rem, 3.8vw, 3rem);
    padding: 1.5rem 2.5rem;
    font-size: clamp(1.1rem, 2.6vw, 1.6rem);
    font-weight: 300;
    color: rgba(245, 241, 234, 0.85);
    line-height: 1.7;
    max-width: 560px;
}

.hero__quote::before,
.hero__quote::after {
    position: absolute;
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 6vw, 4rem);
    color: #f5f1ea;
    opacity: 0.18;
    line-height: 2;
    pointer-events: none;
}

.hero__quote::before {
    content: "\201C";
    left: -0.85rem;
    top: -1rem;
}

.hero__quote::after {
    content: "\201D";
    right: -0.85rem;
    bottom: -1.15rem;
}

.hero__scroll {
    margin-top: clamp(3rem, 5vw, 4.5rem);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(245, 241, 234, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.hero__scroll span {
    width: 16px;
    height: 16px;
    border-right: 2px solid rgba(245, 241, 234, 0.85);
    border-bottom: 2px solid rgba(245, 241, 234, 0.85);
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.3s ease;
}

.hero__scroll:hover {
    transform: translateY(4px);
    border-color: rgba(214, 185, 142, 0.85);
}

.hero__scroll:hover span {
    transform: translateY(2px) rotate(45deg);
}

.audio-toggle {
    position: fixed;
    top: calc(clamp(0.85rem, 4vw, 1.8rem) + env(safe-area-inset-top, 0px));
    right: calc(clamp(0.85rem, 4vw, 1.8rem) + env(safe-area-inset-right, 0px));
    width: clamp(36px, 5vw, 48px);
    height: clamp(36px, 5vw, 48px);
    border: none;
    border-radius: 50%;
    background: rgba(214, 185, 142, 0.9);
    color: #2f2315;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background-color 0.3s ease, color 0.3s ease;
    z-index: 15;
}

.audio-toggle:hover {
    transform: translateY(-2px) scale(1.02);
}

.audio-toggle svg {
    width: clamp(16px, 2.8vw, 20px);
    height: clamp(16px, 2.8vw, 20px);
    fill: currentColor;
}

.audio-toggle[aria-pressed="true"],
.audio-toggle.is-playing {
    background: rgba(245, 241, 234, 0.95);
    color: #6b4a24;
}

.audio-toggle:focus-visible,
.hero__scroll:focus-visible {
    outline: 2px solid rgba(245, 241, 234, 0.9);
    outline-offset: 4px;
}

@keyframes leafFloat {
    0% {
        transform: var(--leaf-transform) translateY(0);
    }

    50% {
        transform: var(--leaf-transform) translateY(-10px);
    }

    100% {
        transform: var(--leaf-transform) translateY(0);
    }
}

.hero__leaf,
.decor-leaf {
    position: absolute;
    width: clamp(95px, 18vw, 160px);
    height: auto;
    fill: none;
    stroke: rgba(245, 241, 234, 0.35);
    stroke-width: 1.5;
    opacity: 0.65;
    z-index: 2;
    animation: leafFloat 10s ease-in-out infinite;
    transform-origin: center;
}

.hero__leaf::before,
.decor-leaf::before {
    content: "";
    position: absolute;
    inset: 0;
}

.hero__leaf--left {
    left: clamp(-1rem, 3vw, 2rem);
    top: clamp(6rem, 14vw, 10rem);
    --leaf-transform: rotate(-18deg) scale(1.05);
    animation-delay: -2s;
}

.hero__leaf--right {
    right: clamp(-0.5rem, 5vw, 4rem);
    bottom: clamp(10rem, 18vw, 16rem);
    --leaf-transform: rotate(12deg) scale(1.1);
    animation-delay: -5s;
}

.decor-leaf {
    stroke: rgba(204, 181, 146, 0.5);
}

.decor-leaf--bottom {
    right: clamp(-1rem, 8vw, 5rem);
    bottom: clamp(-2rem, -1vw, 1.5rem);
    width: clamp(110px, 22vw, 190px);
    --leaf-transform: rotate(8deg) scale(1.1);
    animation-duration: 12s;
    animation-delay: -3s;
}

.decor-leaf--bottom-secondary {
    right: clamp(6rem, 12vw, 9rem);
    bottom: clamp(-5rem, -2vw, -1rem);
    width: clamp(90px, 18vw, 160px);
    opacity: 0.45;
    --leaf-transform: rotate(22deg) scale(0.95);
    animation-duration: 11s;
    animation-delay: -6s;
}

.decor-leaf--countdown-top {
    top: clamp(2rem, 6vw, 4.5rem);
    right: clamp(1rem, 5vw, 4rem);
    --leaf-transform: rotate(-12deg) scale(0.9);
    animation-duration: 13s;
    animation-delay: -1s;
}

.decor-leaf--countdown-bottom {
    right: clamp(0.5rem, 4vw, 3rem);
    bottom: clamp(-8rem, -5vw, -2rem);
    width: clamp(140px, 26vw, 220px);
    --leaf-transform: rotate(18deg) scale(1.05);
    animation-duration: 14s;
    animation-delay: -4s;
}

.section-transition {
    position: relative;
    height: clamp(280px, 36vw, 360px);
    margin-top: clamp(-22rem, -26vw, -14rem);
    pointer-events: none;
    overflow: visible;
    z-index: 2;
    background: var(--color-cream);
}

.section-transition__art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 122%;
    display: block;
    transform: translateY(-12%);
    z-index: 3;
}

.section-transition__cream {
    fill: var(--color-cream);
    z-index: 2
}

.section-transition__mint {
    fill: var(--color-mint);
    opacity: 0.95;
    z-index: 2
}

.section-transition__line {
    fill: none;
    stroke: rgba(214, 185, 142, 0.65);
    stroke-width: 1.6;
    stroke-linecap: round;
}

.section-transition__line--upper {
    opacity: 0.65;
}

.section-transition__line--lower {
    opacity: 0.45;
}

.section-transition__baseline {
    fill: none;
    stroke: rgba(31, 24, 20, 0.18);
    stroke-width: 1.2;
}

.countdown {
    position: relative;
    background: var(--color-cream);
    color: #44372a;
    padding: clamp(7rem, 11vw, 9rem) clamp(1.5rem, 6vw, 3.5rem) clamp(5rem, 9vw, 6.5rem);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    overflow: hidden;
}

.countdown__inner {
    position: relative;
    display: grid;
    place-items: center;
    width: min(520px, 90vw);
    gap: clamp(1.4rem, 4vw, 2.2rem);
}

.decor-leaf--countdown-top,
.decor-leaf--countdown-bottom,
.decor-leaf--bottom,
.decor-leaf--bottom-secondary {
    pointer-events: none;
}

.countdown__rings {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(320px, 68vw, 460px);
    height: clamp(320px, 68vw, 460px);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}

.countdown__rings::before,
.countdown__rings::after,
.countdown__rings span::before,
.countdown__rings span::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(214, 185, 142, 0.55);
}

.countdown__rings::after {
    transform: scale(1.12) rotate(6deg);
    border-color: rgba(214, 185, 142, 0.45);
}

.countdown__rings span::before {
    transform: scale(1.25) rotate(-10deg);
    border-color: rgba(214, 185, 142, 0.35);
}

.countdown__rings span::after {
    transform: scale(1.38) rotate(14deg);
    border-color: rgba(214, 185, 142, 0.3);
}

.countdown__card {
    position: relative;
    z-index: 2;
    background: var(--color-card);
    box-shadow: var(--shadow-soft);
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    /* cuadrado para círculo perfecto */
    box-sizing: border-box;
    /* padding incluido en el círculo */
    padding: clamp(2.8rem, 6vw, 3.2rem) clamp(2.2rem, 5vw, 2.8rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 2rem);
}

.countdown__title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4.8vw, 2.4rem);
    font-weight: 600;
    color: #9E9D83;
    letter-spacing: 0.08rem;
}

.countdown__subtitle {
    font-size: clamp(0.85rem, 2.4vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.25rem;
    padding: 10px;
    color: rgba(68, 55, 42, 0.6);
}

.countdown__grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.6rem, 2vw, 1rem);
    padding: 0 clamp(0.25rem, 1vw, 0.5rem);
}

.countdown__grid li {
    position: relative;
    padding-inline: clamp(0.35rem, 1vw, 0.9rem);
    overflow: visible;
    /* evita recortes del texto animado */
}

.countdown__grid li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 10%;
    right: clamp(-0.2rem, -0.5vw, -0.4rem);
    height: 80%;
    width: 1px;
    font-size: 8rem;
    background: rgba(68, 55, 42, 0.18);
}

.countdown__number {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.8ch;
    /* evita solapamiento de 3 dígitos */
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4.6vw, 3rem);
    font-weight: 600;
    color: #33261a;
    line-height: 1;
    /* previene recortes verticales */
    letter-spacing: 0.02em;
    will-change: transform, opacity;
    transform-origin: center;
}

.countdown__number.is-changing {
    animation: countdownTick 0.55s cubic-bezier(0.32, 0.72, 0.18, 1);
}

.countdown__label {
    display: block;
    margin-top: 0.35rem;
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    letter-spacing: 0.08rem;
    text-transform: lowercase;
    color: #9E9D83;
}

.countdown__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(1.6rem, 3vw, 2rem);
    height: clamp(1.6rem, 3vw, 2rem);
    margin: 0 auto;
    color: #9E9D83;
}

.countdown__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.event-info-ceremonia {
    background: white;
    color: #2f2a26;
    padding: clamp(4rem, 8vw, 5rem) clamp(1.5rem, 6vw, 3.5rem);
    display: flex;
    justify-content: center;
    text-align: center;
}

.event-info-fiesta {
    background: #9E9D83;
    color: #2f2a26;
    padding: clamp(4rem, 8vw, 5rem) clamp(1.5rem, 6vw, 3.5rem);
    display: flex;
    justify-content: center;
    text-align: center;
}

.event-info__inner {
    display: grid;
    gap: 1.15rem;
    max-width: 540px;
}

.event-info__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto;
    color: #2f2a26;
}

.event-info__icon svg {
    width: 100%;
    height: 100%;
}

.event-info__subtitle {
    font-size: clamp(0.85rem, 2.2vw, 1rem);
    letter-spacing: 0.35rem;
    text-transform: uppercase;
    color: white;
}

.event-info__subtitle-w {
    font-size: clamp(0.85rem, 2.2vw, 1rem);
    letter-spacing: 0.35rem;
    text-transform: uppercase;
    color: #9E9D83
}

.event-info__subtitle-conf {
    font-size: clamp(0.85rem, 2.2vw, 1rem);
    letter-spacing: 0.35rem;
    text-transform: uppercase;
    color: rgba(47, 42, 38, 0.6);
}

.event-info__title {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 4.6vw, 2.5rem);
    font-weight: 600;
    letter-spacing: 0.12rem;
    color: #9E9D83
}

.event-info__title-w {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 4.6vw, 2.5rem);
    font-weight: 600;
    letter-spacing: 0.12rem;
    color: white
}

.event-info__title-code {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 4.6vw, 3rem);
    font-weight: 600;
    letter-spacing: 0.12rem;
    color: white
}

.event-info__text {
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    color: rgba(47, 42, 38, 0.75);
}

.event-info__text-w {
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    color: white;
}

.event-info__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: clamp(1.2rem, 3vw, 1.8rem) auto 0;
    padding: 0.75rem 2.4rem;
    background: #2f2a26;
    color: #fdfaf6;
    border-radius: 999px;
    font-weight: 500;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.event-info__button:hover {
    background: #4a423c;
    transform: translateY(-1px);
}

.viewport {
    min-height: 100vh;
}

.event-info__button:focus-visible {
    outline: 2px solid rgba(47, 42, 38, 0.8);
    outline-offset: 4px;
}

.itinerary {
    background: white;
    padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 8vw, 5rem) clamp(5rem, 10vw, 7.5rem);
    display: flex;
    justify-content: center;
}

.itinerary__card {
    width: min(100%, 520px);
    background: var(--color-card);
    border: 1px solid rgba(66, 53, 40, 0.18);
    padding: clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    color: rgba(66, 53, 40, 0.78);
    box-shadow: 0 24px 60px rgba(15, 12, 10, 0.35);
}

.itinerary__title {
    font-size: 2rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #9E9D83;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.itinerary__rule {
    display: block;
    height: 1px;
    width: clamp(120px, 60%, 320px);
    background: rgba(66, 53, 40, 0.28);
    margin: 0 auto clamp(2rem, 6vw, 3rem);
}

.itinerary__rule--end {
    margin-bottom: 0;
}

.itinerary__item+.itinerary__rule {
    margin-top: clamp(2rem, 5vw, 3.5rem);
}

.itinerary__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.itinerary__icon {
    display: inline-flex;
    width: 80px;
    height: 80px;
    color: rgba(66, 53, 40, 0.55);
}

.itinerary__icon svg {
    width: 100%;
    height: 100%;
}

.itinerary__item-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(66, 53, 40, 0.75);
}

.itinerary__time {
    font-size: 0.95rem;
    letter-spacing: 0.35em;
}

.itinerary__button {
    margin-top: 0.6rem;
    border: 1px solid rgba(66, 53, 40, 0.5);
    padding: 0.55rem 2.6rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.35em;
    color: rgba(66, 53, 40, 0.8);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.itinerary__button:hover,
.itinerary__button:focus-visible {
    background: rgba(66, 53, 40, 0.07);
    color: var(--color-background);
}

.itinerary__button:focus-visible {
    outline: 2px solid rgba(66, 53, 40, 0.55);
    outline-offset: 3px;
}

.itinerary__item+.itinerary__item {
    margin-top: clamp(2rem, 6vw, 3.5rem);
}

@media (max-width: 520px) {
    .itinerary__title {
        letter-spacing: 0.28em;
    }

    .itinerary__time,
    .itinerary__button {
        letter-spacing: 0.25em;
    }

    .itinerary__card {
        padding: clamp(2rem, 8vw, 3rem);
    }
}

.memories {
    background: white;
    padding: clamp(3.5rem, 8vw, 7rem) clamp(1.5rem, 8vw, 5rem);
}

.memories__inner {
    max-width: 1080px;
    margin: 0 auto;
}

.memories__header {
    text-align: center;
}

.memories__eyebrow {
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: gray;
    font-size: 0.85rem;
}

.memories__title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    color: gray;
    margin-top: 0.75rem;
    letter-spacing: 0.12em;
}

.memories-carousel {
    position: relative;
    margin-top: clamp(2.5rem, 7vw, 4rem);
}

.memories-carousel__viewport {
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid rgba(245, 241, 234, 0.1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.memories-carousel__viewport:focus-visible {
    outline: 2px solid rgba(245, 241, 234, 0.6);
    outline-offset: 6px;
}

.memories-carousel__track {
    display: flex;
    width: 100%;
    --carousel-index: 0;
    --slides-per-view: 1;
    transform: translateX(calc(var(--carousel-index) * -100% / var(--slides-per-view)));
    transition: transform 0.6s ease;
}

.memories-carousel__slide {
    flex: 0 0 calc(100% / var(--slides-per-view));
    max-width: calc(100% / var(--slides-per-view));
    padding: clamp(1.25rem, 3vw, 2rem);
}

.memories-card {
    background: var(--color-card);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(66, 53, 40, 0.08);
    box-shadow: 0 16px 50px rgba(15, 12, 10, 0.35);
}

.memories-card img {
    width: 100%;
    height: clamp(360px, 60vw, 560px);
    object-fit: cover;
    display: block;
}

.memories-card figcaption {
    padding: 1.5rem;
    text-align: center;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: rgba(66, 53, 40, 0.85);
}

.memories-carousel__control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(245, 241, 234, 0.5);
    background: rgba(15, 12, 10, 0.65);
    color: var(--color-card);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    z-index: 2;
}

.memories-carousel__control span {
    line-height: 1;
}

.memories-carousel__control--prev {
    left: clamp(0.5rem, 2vw, 1.5rem);
}

.memories-carousel__control--next {
    right: clamp(0.5rem, 2vw, 1.5rem);
}

.memories-carousel__control:hover,
.memories-carousel__control:focus-visible {
    background: rgba(245, 241, 234, 0.9);
    color: var(--color-background);
    border-color: transparent;
}

.memories-carousel__progress {
    height: 4px;
    background: rgba(245, 241, 234, 0.2);
    margin: clamp(1.5rem, 4vw, 2.2rem) auto 0;
    border-radius: 999px;
    overflow: hidden;
}

.memories-carousel__progress span {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: left;
    transform: scaleX(0);
    background: var(--color-gold);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .memories-carousel__control {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .memories-card img {
        height: clamp(260px, 70vw, 420px);
    }
}

@media (max-width: 540px) {
    .memories-carousel__slide {
        padding: 0.75rem;
    }

    .memories-card {
        border-radius: 22px;
    }

    .memories-card img {
        height: clamp(340px, 85vw, 560px);
    }
}

@media (min-width: 900px) {
    .memories-carousel__track {
        --slides-per-view: 2;
    }

    .memories-card img {
        height: clamp(320px, 48vw, 460px);
    }
}

@media (min-width: 1200px) {
    .memories-carousel__track {
        --slides-per-view: 3;
    }

    .memories-card img {
        height: clamp(280px, 32vw, 420px);
    }
}


.bank-modal[hidden] {
    display: none;
}

.bank-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: rgba(15, 12, 10, 0.82);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.bank-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.bank-modal__backdrop {
    position: absolute;
    inset: 0;
    background: transparent;
}

.bank-modal__dialog {
    position: relative;
    width: min(100%, 640px);
    background: var(--color-gold);
    color: var(--color-card);
    border: 1px solid rgba(245, 241, 234, 0.7);
    border-radius: 16px;
    padding: clamp(2rem, 6vw, 3rem);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
    outline: none;
    max-height: 90vh;
    /* Permite scroll si el contenido excede */
    overflow: auto;
    /* Habilita el scroll interno */
    -webkit-overflow-scrolling: touch;
    /* Scroll suave en móviles iOS */
}

.bank-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(245, 241, 234, 0.9);
    background: transparent;
    color: var(--color-card);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.bank-modal__close:hover,
.bank-modal__close:focus-visible {
    background: var(--color-card);
    color: var(--color-gold);
}

.bank-modal__section {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid rgba(245, 241, 234, 0.65);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.05);
}

.bank-modal__section+.bank-modal__section {
    margin-top: clamp(1.2rem, 3vw, 1.8rem);
}

.bank-modal__heading {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.9rem;
    margin-bottom: clamp(1rem, 3vw, 1.4rem);
}

.bank-modal__details {
    display: grid;
    gap: 0.9rem;
}

.bank-modal__details p {
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
}

.bank-modal__details span {
    opacity: 0.85;
}

.bank-modal__details strong {
    font-weight: 600;
    color: var(--color-card);
}

body.has-bank-modal {
    overflow: hidden;
}

@media (max-width: 520px) {
    .bank-modal__dialog {
        padding: clamp(1.5rem, 8vw, 2.25rem);
        max-height: 92vh;
        /* Un poco más de alto útil en móviles */
    }

    .bank-modal__heading {
        letter-spacing: 0.25em;
    }

    .bank-modal__details p {
        flex-direction: column;
        align-items: center;
        gap: 0.15rem;
    }
}


@keyframes countdownTick {
    0% {
        transform: translateY(60%) scale(0.9);
        opacity: 0;
    }

    40% {
        transform: translateY(-18%) scale(1.05);
        opacity: 1;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* RSVP form inside modal */
.rsvp-form {
    display: grid;
    gap: 1rem;
}

.guest {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(245, 241, 234, 0.45);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.06);
    position: relative;
}

.guest__title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.rsvp-label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.95rem;
}

.rsvp-input,
.rsvp-fieldset {
    appearance: none;
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(245, 241, 234, 0.6);
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-card);
}

.rsvp-fieldset {
    display: grid;
    gap: 0.4rem;
}

.rsvp-legend {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.rsvp-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rsvp-select {
    color: black
}

.rsvp-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.rsvp-actions__spacer {
    flex: 1;
}

.rsvp-add,
.rsvp-submit,
.rsvp-download__btn {
    border: 1px solid rgba(245, 241, 234, 0.9);
    background: transparent;
    color: var(--color-card);
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    cursor: pointer;
}

.rsvp-add:hover,
.rsvp-submit:hover,
.rsvp-download__btn:hover {
    background: var(--color-card);
    color: var(--color-gold);
}

.rsvp-error {
    color: #ffd2d2;
}

.rsvp-success {
    color: #e6ffe6;
}

.guest__error {
    color: #ffd2d2;
    font-size: 0.9rem;
}

.guest__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 1px solid rgba(245, 241, 234, 0.9);
    background: transparent;
    color: var(--color-card);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}

.guest__remove:hover {
    background: var(--color-card);
    color: var(--color-gold);
}

.guest__remove[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    .countdown__number.is-changing {
        animation: none;
    }
}

.placeholder-section {
    background: #f5f1ea;
    color: #423528;
    text-align: center;
    padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 6vw, 3rem);
}

.placeholder-section h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 1rem;
    letter-spacing: 0.08rem;
}

.placeholder-section p {
    max-width: 540px;
    margin: 0 auto;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: rgba(66, 53, 40, 0.85);
}

.love-footer {
    background: white;
    color: #9E9D83;
    padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 8vw, 4.5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.love-footer::before,
.love-footer::after {
    content: "";
    position: absolute;
    inset: auto 10% 6% 10%;
    height: 30%;
    pointer-events: none;
}

.love-footer::after {
    inset: 5% 25% auto;
    height: 45%;
    opacity: 0.35;
}

.love-footer__inner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vw, 2.75rem);
    position: relative;
    z-index: 1;
}

.love-footer__message {
    font-size: clamp(1rem, 2.6vw, 1.35rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 500;
    color: #9E9D83;
}

.love-footer__names {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(0.5rem, 2vw, 1.2rem);
    line-height: 1;
}

.love-footer__name {
    font-family: var(--font-script);
    font-size: clamp(3.5rem, 14vw, 6.5rem);
    letter-spacing: 0.06em;

    white-space: nowrap;
}


.love-footer__ampersand {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-weight: 600;
    font-size: clamp(2.4rem, 8vw, 3.5rem);
    color: #9E9D83;
}



.love-footer__florals {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -45%);
    width: clamp(180px, 56vw, 320px);
    opacity: 0.9;
    z-index: 0;
    filter: drop-shadow(0 18px 26px rgba(31, 24, 20, 0.25));
    pointer-events: none;
}

.love-footer__stem {
    fill: none;
    stroke: var(--color-stem);
    stroke-width: 3.5;
    stroke-linecap: round;
}

.love-footer__leaf {
    fill: var(--color-leaf);
    opacity: 0.85;
}

.love-footer__petal {
    fill: var(--color-flower-accent);
    opacity: 0.9;
}

.love-footer__message,
.love-footer__names {
    position: relative;
    z-index: 1;
}

@media (max-width: 540px) {
    .love-footer__message {
        letter-spacing: 0.14em;
        font-size: clamp(0.95rem, 4vw, 1.1rem);
    }

    .love-footer__names {
        gap: 0.35rem;
    }

    .love-footer__florals {
        transform: translate(-50%, -25%);
        width: clamp(140px, 70vw, 240px);
    }
}

@media (max-width: 1200px) {
    .countdown {
        padding: clamp(6rem, 10vw, 7.5rem) clamp(2rem, 6vw, 4rem);
    }

    .countdown__inner {
        width: min(600px, 90vw);
        gap: clamp(1.2rem, 3vw, 2rem);
    }

    .countdown__card {
        border-radius: 50%;
        width: min(420px, 80vw);
        aspect-ratio: 1 / 1;
        box-sizing: border-box;
        padding: clamp(2.4rem, 5.5vw, 2.8rem) clamp(1.9rem, 5vw, 2.4rem);
    }

    .countdown__grid {
        padding-inline: clamp(0.1rem, 1vw, 0.5rem);
    }

    .countdown__grid li {
        padding-block: 0.75rem;
    }

    .countdown__grid li:not(:last-child)::after {
        display: none;
    }

    .countdown__rings {
        width: clamp(300px, 72vw, 420px);
        height: clamp(300px, 72vw, 420px);
    }
}

@media (max-width: 820px) {
    .countdown__grid {
        gap: clamp(0.8rem, 4vw, 1.6rem);
    }

    .countdown__grid li:not(:last-child)::after {
        right: clamp(-0.2rem, -0.8vw, -0.4rem);
    }

    .countdown__rings {
        width: clamp(280px, 76vw, 380px);
        height: clamp(280px, 76vw, 380px);
    }
}

@media (max-width: 640px) {

    .hero__leaf,
    .decor-leaf {
        width: clamp(80px, 22vw, 140px);
    }

    .section-transition {
        height: clamp(240px, 40vw, 300px);
        margin-top: clamp(-16rem, -24vw, -11rem);
    }

    .section-transition__art {
        height: 130%;
        transform: translateY(-10%);
    }

    .countdown__card {
        border-radius: 50%;
        aspect-ratio: 1 / 1;
        box-sizing: border-box;
        padding: clamp(2.2rem, 6vw, 2.6rem) clamp(1.6rem, 5vw, 2.2rem);
    }


    .countdown__grid li:nth-child(2)::after {
        display: none;
    }

    .countdown__grid li:nth-child(-n + 2)::after {
        bottom: clamp(-0.6rem, -1.8vw, -0.8rem);
        left: 10%;
        right: 10%;
        top: auto;
        width: auto;
        height: 1px;
    }

    .countdown {
        padding: clamp(5.5rem, 16vw, 7rem) clamp(1.5rem, 8vw, 3rem);
    }

    .countdown__rings {
        width: clamp(220px, 82vw, 300px);
        height: clamp(220px, 82vw, 300px);
        opacity: 0.6;
    }

    .decor-leaf--countdown-top,
    .decor-leaf--countdown-bottom,
    .decor-leaf--bottom,
    .decor-leaf--bottom-secondary {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero__date {
        padding: 0.75rem 2.5rem;
        letter-spacing: 0.28rem;
    }

    .hero__names {
        letter-spacing: 0.08rem;
    }

    .hero__names::before,
    .hero__names::after {
        width: clamp(140px, 70vw, 220px);
    }

    .audio-toggle {
        width: clamp(36px, 7.2vw, 46px);
        height: clamp(36px, 7.2vw, 46px);
        top: calc(0.9rem + env(safe-area-inset-top, 0px));
        right: calc(0.9rem + env(safe-area-inset-right, 0px));
    }
}

.viewport {
    height: 30vh;
}

@media (max-width: 480px) {
    .audio-toggle {
        width: clamp(32px, 10vw, 40px);
        height: clamp(32px, 10vw, 40px);
        top: calc(0.65rem + env(safe-area-inset-top, 0px));
        right: calc(0.65rem + env(safe-area-inset-right, 0px));
    }

    .section-transition {
        margin-top: clamp(-14rem, -26vw, -10rem);
    }

    .countdown {
        padding: clamp(5rem, 20vw, 6.5rem) clamp(1.25rem, 7vw, 2.5rem);
    }

    .countdown__rings {
        display: none;
    }

    .hero__date::before,
    .hero__date::after {
        width: 45px;
    }

    .hero__quote {
        padding: 1.25rem 1.75rem;
    }

    .hero__quote::before {
        left: -0.45rem;
        top: -0.85rem;
    }

    .hero__quote::after {
        right: -0.45rem;
        bottom: -0.95rem;
    }
}

.moonlight-strip {
    background-color: #15100d;
    color: rgba(245, 241, 234, 0.4);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    width: 100%;
}
