:root {
    --ruby: #781B37;
    --ruby-dark: #4B1022;
    --ivory: #F7F1E8;
    --paper: #FFFCF7;
    --cream: #EDE2D5;
    --gold: #AD8B57;
    --ink: #28221E;
    --muted: #756E68;
    --line: #D9CCBD;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Manrope", Arial, sans-serif;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--sans);
    overflow-x: hidden
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
select,
textarea {
    font: inherit
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

::selection {
    background: var(--ruby);
    color: #fff
}

.page-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 200;
    height: 2px;
    pointer-events: none
}

.page-progress i {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--ruby);
    transform: scaleX(0);
    transform-origin: left
}

.site-header {
    height: 82px;
    width: min(1240px, calc(100% - 48px));
    margin: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 30
}

.monogram {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
    font-family: var(--serif);
    font-size: 25px
}

.monogram i {
    width: 42px;
    height: 1px;
    background: var(--ruby)
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .15em
}

.main-nav a {
    transition: color .2s ease
}

.main-nav a:hover {
    color: var(--ruby)
}

.header-year {
    justify-self: end;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 18px;
    letter-spacing: .08em
}

.section-shell {
    width: min(1180px, calc(100% - 48px));
    margin: auto
}

.section-pad {
    padding: 140px 0
}

.section-kicker {
    margin: 0 0 20px;
    color: var(--ruby);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .24em
}

.centered {
    text-align: center
}

.section-heading h2,
.date-content h2,
.rsvp-shell h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(55px, 6.5vw, 92px);
    font-weight: 500;
    line-height: .88;
    letter-spacing: -.045em
}

/* Hero */
.hero-scene {
    height: 360vh;
    position: relative
}

.hero-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 700px;
    background: var(--ivory);
    overflow: hidden;
    display: grid;
    place-items: center
}

.hero-content {
    width: min(850px, 64vw);
    text-align: center;
    position: relative;
    z-index: 5
}

.hero-eyebrow {
    margin: 0 0 25px;
    color: var(--ruby);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .25em
}

.hero-names h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(76px, 10vw, 154px);
    font-weight: 500;
    line-height: .73;
    letter-spacing: -.06em
}

.ampersand {
    display: block;
    margin: 28px 0 22px;
    color: var(--gold);
    font-family: var(--serif);
    font-style: italic;
    font-size: 58px;
    line-height: .5
}

.hero-final {
    margin-top: 31px
}

.hero-date {
    margin: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 25px
}

.hero-city {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .18em
}

.circle-cta {
    width: 112px;
    height: 112px;
    margin: 34px auto 0;
    border: 1px solid var(--ruby);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ruby);
    transition: .25s ease
}

.circle-cta:hover {
    background: var(--ruby);
    color: #fff
}

.circle-cta strong {
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 500;
    line-height: .8
}

.circle-cta span {
    margin-top: 7px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .17em
}

.hero-photo {
    position: absolute;
    margin: 0;
    width: min(300px, 21vw);
    z-index: 2
}

.hero-photo-old {
    left: 4vw;
    top: 22%
}

.hero-photo-now {
    right: 4vw;
    bottom: 15%
}

.image-frame {
    position: relative;
    aspect-ratio: .78;
    padding: 9px;
    border: 1px solid var(--line);
    background: var(--paper);
    overflow: hidden
}

.image-frame img {
    position: relative;
    z-index: 2
}

.image-placeholder {
    position: absolute;
    inset: 9px;
    display: grid;
    place-items: center;
    background: #EFE4D7;
    color: #B7A695;
    font-family: var(--serif);
    font-size: 18px;
    letter-spacing: .08em
}

.hero-photo figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 17px;
    font-style: italic
}

.botanical {
    position: absolute;
    width: 105px;
    opacity: .38
}

.botanical svg {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.15
}

.botanical-a {
    left: 1.5vw;
    bottom: 7%
}

.botanical-b {
    right: 1.5vw;
    top: 10%
}

.scroll-meter {
    position: absolute;
    bottom: 27px;
    left: 50%;
    transform: translateX(-50%);
    width: min(430px, 72vw);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .19em
}

.meter-track {
    height: 1px;
    background: var(--line);
    overflow: hidden
}

.meter-track i {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--ruby);
    transform: scaleX(0);
    transform-origin: left
}

.meter-step {
    color: var(--ruby)
}

.has-js .name-esther,
.has-js .name-angel,
.has-js .ampersand,
.has-js .hero-final,
.has-js .hero-photo-now {
    opacity: 0
}

.has-js .hero-photo-old {
    opacity: 1
}

.has-js .name-esther,
.has-js .name-angel {
    transform: translateY(80px)
}

.has-js .hero-photo-old {
    transform: translateX(-45px) rotate(-2deg)
}

.has-js .hero-photo-now {
    transform: translateX(45px) rotate(2deg)
}

.has-js .hero-final {
    transform: translateY(25px)
}

/* Couple */
.couple-section {
    background: var(--paper)
}

.couple-grid {
    margin-top: 90px;
    display: grid;
    grid-template-columns: 1fr 1.18fr 1fr;
    gap: 58px;
    align-items: center
}

.person-card {
    position: relative
}

.person-left {
    text-align: right
}

.person-number {
    display: block;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 19px
}

.person-card h3 {
    margin: 22px 0 0;
    font-family: var(--serif);
    font-size: clamp(42px, 4.3vw, 63px);
    font-weight: 500;
    line-height: .9
}

.surname {
    margin: 9px 0 24px !important;
    color: var(--ruby) !important;
    font-family: var(--serif);
    font-size: 23px !important;
    font-style: italic
}

.person-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9
}

.couple-image {
    position: relative
}

.portrait-frame {
    aspect-ratio: .72;
    padding: 11px;
    border: 1px solid var(--line);
    background: var(--ivory);
    position: relative;
    overflow: hidden
}

.portrait-frame img {
    position: relative;
    z-index: 2
}

.portrait-placeholder {
    position: absolute;
    inset: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #EDE1D4;
    color: #B39F8C
}

.portrait-placeholder strong {
    font-family: var(--serif);
    font-size: 140px;
    font-weight: 400;
    line-height: .65
}

.portrait-placeholder span {
    margin-top: 35px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .18em
}

.portrait-year {
    position: absolute;
    top: 50%;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 18px;
    writing-mode: vertical-rl;
    letter-spacing: .14em
}

.year-left {
    left: -32px;
    transform: translateY(-50%) rotate(180deg)
}

.year-right {
    right: -32px;
    transform: translateY(-50%)
}

/* Story */
.story-section {
    padding: 145px 0;
    background: var(--ivory)
}

.story-title {
    margin-bottom: 90px
}

.story-title h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(60px, 7vw, 105px);
    font-weight: 500;
    line-height: .84;
    letter-spacing: -.05em
}

.story-list {
    display: grid;
    gap: 120px
}

.story-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
    min-height: 530px
}

.story-row.reverse .story-photo {
    grid-column: 2
}

.story-row.reverse .story-copy {
    grid-column: 1;
    grid-row: 1
}

.story-year {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    color: var(--ruby);
    opacity: .055;
    white-space: nowrap;
    pointer-events: none
}

.story-year span {
    font-family: var(--serif);
    font-size: clamp(140px, 20vw, 290px);
    line-height: .7;
    letter-spacing: -.07em
}

.story-photo {
    position: relative;
    z-index: 2;
    aspect-ratio: .86;
    padding: 10px;
    border: 1px solid var(--line);
    background: var(--paper);
    overflow: hidden
}

.story-photo img {
    position: relative;
    z-index: 2
}

.story-placeholder {
    position: absolute;
    inset: 10px;
    display: grid;
    place-items: center;
    background: #EADFD2;
    color: #BBAA98;
    font-family: var(--serif);
    font-size: 90px
}

.story-copy {
    position: relative;
    z-index: 2
}

.story-copy h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(45px, 5vw, 72px);
    font-weight: 500;
    line-height: .92;
    letter-spacing: -.035em
}

.story-copy>p:last-child {
    max-width: 570px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9
}

/* Statement */
.statement-section {
    padding: 160px 0;
    background: var(--ruby-dark);
    color: #fff
}

.statement-inner {
    width: min(1080px, calc(100% - 48px));
    margin: auto;
    text-align: center
}

.statement-section .section-kicker {
    color: #D9BBC7
}

.statement-title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(62px, 9vw, 128px);
    font-weight: 400;
    line-height: .76;
    letter-spacing: -.05em
}

.statement-title span,
.statement-title em {
    display: block
}

.statement-title em {
    color: #D9BBC7;
    font-weight: 400
}

.statement-rule {
    display: block;
    width: 1px;
    height: 72px;
    margin: 48px auto 30px;
    background: #C79DAE;
    transform-origin: top
}

.statement-copy {
    max-width: 570px;
    margin: 0 auto;
    color: #E8DCE0;
    font-size: 13px;
    line-height: 1.9
}

/* Date */
.date-section {
    background: var(--paper)
}

.date-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 110px;
    align-items: center
}

.date-visual {
    text-align: center;
    position: relative
}

.day {
    display: block;
    color: var(--ruby);
    font-family: var(--serif);
    font-size: clamp(190px, 24vw, 340px);
    line-height: .58;
    letter-spacing: -.1em
}

.month {
    display: block;
    margin-top: 42px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .45em
}

.tentative-badge {
    display: inline-block;
    margin-top: 28px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .14em
}

.date-content>p:not(.section-kicker) {
    max-width: 630px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9
}

.event-meta {
    margin-top: 38px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.event-meta div {
    padding: 22px 18px 22px 0;
    border-right: 1px solid var(--line)
}

.event-meta div:nth-child(n+2) {
    padding-left: 20px
}

.event-meta div:last-child {
    border-right: 0
}

.event-meta small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .15em
}

.event-meta strong {
    display: block;
    margin-top: 7px;
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 500
}

.countdown {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line)
}

.countdown[hidden] {
    display: none
}

.countdown div {
    padding: 18px 10px;
    border-right: 1px solid var(--line);
    text-align: center
}

.countdown div:last-child {
    border-right: 0
}

.countdown strong {
    display: block;
    font-family: var(--serif);
    font-size: 35px;
    font-weight: 500
}

.countdown span {
    display: block;
    color: var(--muted);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .13em
}

/* RSVP */
.rsvp-section {
    position: relative;
    overflow: hidden;
    padding: 135px 0;
    background: var(--ivory);
    border-top: 1px solid var(--line)
}

.rsvp-40 {
    position: absolute;
    left: 50%;
    top: 49%;
    transform: translate(-50%, -50%);
    color: var(--ruby);
    opacity: .035;
    font-family: var(--serif);
    font-size: min(56vw, 760px);
    line-height: .6;
    letter-spacing: -.1em;
    pointer-events: none
}

.rsvp-shell {
    width: min(850px, calc(100% - 48px));
    margin: auto;
    position: relative;
    z-index: 2
}

.rsvp-shell>h2 {
    text-align: center
}

.rsvp-shell>.section-kicker {
    text-align: center
}

.rsvp-intro {
    max-width: 590px;
    margin: 28px auto 50px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
    text-align: center
}

.rsvp-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: 35px;
    border: 1px solid var(--line);
    background: rgba(255, 252, 247, .75)
}

.field {
    display: grid;
    gap: 9px
}

.field-wide {
    grid-column: 1/-1
}

.field label,
.field legend {
    color: var(--ink);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .13em
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    outline: none;
    border-radius: 0;
    padding: 12px 0
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--ruby)
}

.attendance-field {
    border: 0;
    padding: 0;
    margin: 0
}

.choice {
    min-height: 48px;
    display: flex !important;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid var(--line);
    font-size: 12px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important
}

.choice input {
    width: auto
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap
}

.primary-button {
    min-height: 54px;
    border: 1px solid var(--ruby);
    background: var(--ruby);
    color: #fff;
    padding: 0 25px;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .15em;
    transition: .2s ease
}

.primary-button:hover {
    background: transparent;
    color: var(--ruby)
}

.form-note {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6
}

.form-feedback {
    min-height: 20px;
    color: var(--ruby);
    font-size: 12px
}

/* Footer */
.site-footer {
    width: min(1180px, calc(100% - 48px));
    min-height: 145px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    border-top: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 18px
}

.site-footer p {
    margin: 0
}

.site-footer p:last-of-type {
    text-align: right
}

.site-footer div {
    text-align: center
}

.site-footer div span {
    display: block;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .18em
}

.site-footer div strong {
    display: block;
    margin-top: 5px;
    font-size: 17px;
    font-weight: 500
}

.site-footer-credit {
    grid-column: 1 / -1;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    color: #8C6B75;
    letter-spacing: .06em;
    text-align: center;
    margin-top: 16px;
    padding: 14px 0 28px;
    border-top: 1px dashed var(--line);
}

.site-footer-credit a {
    color: inherit;
    text-decoration: none;
    transition: opacity .2s ease, text-decoration .2s ease;
}

.site-footer-credit a:hover,
.site-footer-credit a:focus-visible {
    text-decoration: underline;
    opacity: .8;
}

/* Reveal states */
.has-js .reveal-up,
.has-js .reveal-left,
.has-js .reveal-right {
    opacity: 0
}

.has-js .reveal-up {
    transform: translateY(45px)
}

.has-js .reveal-left {
    transform: translateX(-55px)
}

.has-js .reveal-right {
    transform: translateX(55px)
}

.has-js .reveal-rule {
    transform: scaleY(0)
}

@media(max-width:1000px) {
    .main-nav {
        display: none
    }

    .site-header {
        grid-template-columns: 1fr 1fr
    }

    .header-year {
        display: none
    }

    .hero-content {
        width: 72vw
    }

    .hero-photo {
        width: 205px
    }

    .couple-grid {
        gap: 35px
    }

    .story-row {
        gap: 55px
    }

    .date-grid {
        gap: 60px
    }
}

@media(max-width:760px) {
    .site-header {
        height: 70px;
        width: calc(100% - 28px)
    }

    .section-shell {
        width: calc(100% - 28px)
    }

    .section-pad {
        padding: 95px 0
    }

    .hero-scene {
        height: 330vh
    }

    .hero-stage {
        min-height: 650px
    }

    .hero-content {
        width: calc(100% - 32px)
    }

    .hero-names h1 {
        font-size: clamp(60px, 18vw, 92px)
    }

    .ampersand {
        font-size: 42px;
        margin: 20px 0 17px
    }

    .hero-photo {
        width: 118px
    }

    .hero-photo-old {
        left: -19px;
        top: 15%
    }

    .hero-photo-now {
        right: -19px;
        bottom: 13%
    }

    .hero-photo figcaption {
        display: none
    }

    .botanical {
        display: none
    }

    .hero-final {
        margin-top: 26px
    }

    .hero-date {
        font-size: 19px
    }

    .circle-cta {
        width: 92px;
        height: 92px
    }

    .scroll-meter {
        width: calc(100% - 32px);
        bottom: 19px
    }

    .couple-grid {
        grid-template-columns: 1fr;
        gap: 55px;
        margin-top: 60px
    }

    .person-left,
    .person-right {
        text-align: center
    }

    .couple-image {
        width: min(430px, 85%);
        margin: auto;
        grid-row: 1
    }

    .year-left {
        left: -27px
    }

    .year-right {
        right: -27px
    }

    .story-section {
        padding: 100px 0
    }

    .story-title {
        margin-bottom: 65px
    }

    .story-list {
        gap: 90px
    }

    .story-row,
    .story-row.reverse {
        grid-template-columns: 1fr;
        gap: 32px;
        min-height: auto
    }

    .story-row.reverse .story-photo,
    .story-row.reverse .story-copy {
        grid-column: auto;
        grid-row: auto
    }

    .story-copy {
        text-align: left
    }

    .story-year {
        left: auto;
        right: 0;
        top: 10%;
        transform: none
    }

    .story-year span {
        font-size: 110px
    }

    .statement-section {
        padding: 110px 0
    }

    .statement-inner {
        width: calc(100% - 28px)
    }

    .date-grid {
        grid-template-columns: 1fr;
        gap: 70px
    }

    .day {
        font-size: 190px
    }

    .month {
    margin-top: 58px;
    font-size: 11px;
    letter-spacing: .50em;
    line-height: 1.4;
}
    .event-meta {
        grid-template-columns: 1fr
    }

    .event-meta div,
    .event-meta div:nth-child(n+2) {
        padding: 16px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line)
    }

    .event-meta div:last-child {
        border-bottom: 0
    }

    .countdown {
        grid-template-columns: repeat(2, 1fr)
    }

    .countdown div:nth-child(2) {
        border-right: 0
    }

    .countdown div:nth-child(-n+2) {
        border-bottom: 1px solid var(--line)
    }

    .rsvp-section {
        padding: 100px 0
    }

    .rsvp-shell {
        width: calc(100% - 28px)
    }

    .rsvp-form {
        grid-template-columns: 1fr;
        padding: 25px 18px
    }

    .field-wide {
        grid-column: auto
    }

    .site-footer {
        width: calc(100% - 28px);
        grid-template-columns: 1fr;
        text-align: center;
        padding: 35px 0 10px
    }

    .site-footer p:last-of-type {
        text-align: center
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important
    }

    /* No anulamos el hero: la secuencia María → & → Ángel sigue funcionando.
     Solo reducimos movimientos decorativos y secundarios. */
}

/* V6.1 — estados iniciales reforzados del hero */
.has-js .ampersand {
    transform: scale(.72)
}


/* ============================================================
   HERO - TRANSICIONES Y REGLAS BASE
   ============================================================ */
.hero-mobile-photo {
    display: none;
}

.name-esther,
.name-angel,
.ampersand,
.hero-photo-old,
.hero-photo-now,
.hero-mobile-photo-old,
.hero-mobile-photo-now,
.hero-final {
    will-change: transform, opacity;
}

/* =========================================================
   HERO MOBILE (<= 760px) - ScrollTrigger + Scrub + Pin
   ========================================================= */
@media (max-width: 760px) {
    .hero-scene {
        position: relative;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-stage {
        position: relative;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        background: var(--ivory);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 24px 16px 16px;
    }

    .hero-content {
        width: 100%;
        max-width: 400px;
        flex: 1;
        margin: 0 auto;
        text-align: center;
        position: relative;
        z-index: 5;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    /* Ocultar fotos de escritorio en móvil */
    .hero-photo-old,
    .hero-photo-now {
        display: none !important;
    }

    /* Eyebrow estático superior */
    .hero-eyebrow {
        font-size: 9px;
        letter-spacing: .24em;
        margin: 0 0 16px;
        color: var(--ruby);
        white-space: nowrap;
        position: relative;
        z-index: 10;
    }

    /* Capa de fotos móviles en marco limpio */
    .hero-mobile-photo {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: min(84vw, 320px);
        position: absolute;
        top: 36px;
        left: 0;
        right: 0;
        margin: 0 auto;
        z-index: 4;
        opacity: 0;
        pointer-events: none;
    }

    .hero-mobile-photo-old {
        opacity: 1;
        pointer-events: auto;
    }

    .hero-mobile-photo .image-frame {
        width: 100%;
        aspect-ratio: .82;
        padding: 8px;
        background: var(--paper);
        border: 1px solid var(--line);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    }

    .hero-mobile-photo figcaption {
        margin-top: 8px;
        color: var(--muted);
        font-family: var(--serif);
        font-size: 16px;
        font-style: italic;
        text-align: center;
    }

    /* Contenedor de nombres */
    .hero-names {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 14%;
        left: 0;
        right: 0;
        z-index: 6;
        pointer-events: none;
    }

    .name-esther,
    .name-angel {
        margin: 0;
        font-family: var(--serif);
        font-size: clamp(42px, 12vw, 56px);
        line-height: .9;
        letter-spacing: -.04em;
        white-space: nowrap;
        text-align: center;
    }

    .ampersand {
        margin: 10px 0 8px;
        font-size: 32px;
        line-height: 1;
        color: var(--gold);
        font-family: var(--serif);
        font-style: italic;
    }

    /* Bloque final (Fecha + Ciudad + Círculo) debajo de los nombres */
    .hero-final {
        position: absolute;
        top: calc(14% + 180px);
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        text-align: center;
        z-index: 6;
        opacity: 0;
        pointer-events: none;
    }

    .hero-date {
        font-size: 18px;
        line-height: 1.2;
        margin: 0;
        color: var(--ink);
        font-family: var(--serif);
    }

    .hero-city {
        font-size: 8px;
        letter-spacing: .22em;
        margin: 5px 0 0;
        color: var(--muted);
        text-transform: uppercase;
    }

    .circle-cta {
        width: 90px;
        height: 90px;
        margin: 16px auto 0;
        border: 1px solid var(--ruby);
        border-radius: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--ruby);
    }

    .circle-cta strong {
        font-family: var(--serif);
        font-size: 30px;
        font-weight: 500;
        line-height: .8;
    }

    .circle-cta span {
        margin-top: 4px;
        font-size: 8px;
        text-transform: uppercase;
        letter-spacing: .16em;
    }

    .botanical {
        display: none !important;
    }

    .scroll-meter {
        width: calc(100% - 36px);
        position: relative;
        bottom: 0;
        font-size: 8px;
        z-index: 10;
    }
}

/* ============================================================
   BOTÓN FLOTANTE Y MODAL RSVP
   ============================================================ */

.rsvp-action-wrap {
    margin-top: 36px;
    text-align: center;
}

.floating-rsvp-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    background: var(--ruby);
    color: #FFFFFF;
    border: 1px solid var(--ruby);
    border-radius: 999px;
    padding: 14px 26px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(120, 27, 55, 0.25);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.floating-rsvp-button:hover,
.floating-rsvp-button:focus-visible {
    background: var(--ruby-dark);
    border-color: var(--ruby-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(120, 27, 55, 0.35);
    outline: none;
}

.rsvp-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rsvp-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.rsvp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(40, 34, 30, 0.65);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.rsvp-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(680px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 44px 40px 36px;
    box-shadow: 0 24px 60px rgba(40, 34, 30, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border-radius: 0;
}

.rsvp-modal.open .rsvp-modal-dialog {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: var(--ivory);
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    z-index: 5;
}

.modal-close:hover,
.modal-close:focus-visible {
    background: var(--ruby);
    color: #FFFFFF;
    border-color: var(--ruby);
    outline: none;
}

.rsvp-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.rsvp-modal-header .section-kicker {
    margin-bottom: 6px;
}

.rsvp-modal-header h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 500;
    line-height: 1;
    color: var(--ink);
}

.rsvp-modal-header .rsvp-intro {
    max-width: 520px;
    margin: 12px auto 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.rsvp-modal .rsvp-form {
    border: 0;
    background: transparent;
    padding: 0;
}

@media (max-width: 760px) {
    .floating-rsvp-button {
        bottom: calc(18px + env(safe-area-inset-bottom));
        right: 16px;
        padding: 12px 20px;
        font-size: 11px;
        letter-spacing: .06em;
    }

    .rsvp-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .rsvp-modal-dialog {
        width: 100%;
        max-height: 90dvh;
        margin: 0;
        padding: 26px 18px calc(20px + env(safe-area-inset-bottom));
    }

    .rsvp-modal-header {
        margin-bottom: 18px;
    }

    .rsvp-modal-header h2 {
        font-size: 28px;
    }

    .rsvp-modal-header .rsvp-intro {
        margin-top: 8px;
        font-size: 12px;
        line-height: 1.55;
    }

    .rsvp-modal .rsvp-form {
        gap: 16px;
    }

    .rsvp-modal .choice {
        min-height: 40px;
    }
}

/* ============================================================
   ESTILOS PARA INGRESO MANUAL DE CÓDIGO Y AVISOS DE INVITADO
   ============================================================ */
.code-lookup-block {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--ivory);
    border: 1px solid var(--line);
}

.code-lookup-intro {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--muted);
}

.code-lookup-field {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.code-input {
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    outline: none;
    width: min(280px, 100%);
    text-align: center;
}

.code-input:focus {
    border-color: var(--ruby);
}

.rsvp-guest-badge {
    display: inline-block;
    padding: 6px 14px;
    margin-top: 10px;
    background: var(--ivory);
    border: 1px solid var(--line);
    color: var(--ruby);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rsvp-prefilled-notice {
    margin: 10px 0 0;
    padding: 10px 14px;
    background: var(--ivory);
    border-left: 3px solid var(--ruby);
    color: var(--ruby);
    font-size: 12px;
    text-align: center;
}

/* ============================================================
   SECCIÓN INVITACIÓN DE LOS HIJOS (TRANSICIÓN EDITORIAL)
   ============================================================ */
.hijos-section {
    padding: 90px 0 80px;
    background: var(--ivory);
    position: relative;
    z-index: 10;
}

.hijos-card {
    max-width: 740px;
    margin: 0 auto;
    padding: 44px 36px 40px;
    background: var(--paper);
    border: 1px solid var(--line);
    text-align: center;
    box-shadow: 0 10px 30px rgba(40, 34, 30, 0.025);
}

.hijos-subkicker {
    margin: 6px 0 18px;
    font-family: var(--serif);
    font-size: clamp(17px, 2.2vw, 22px);
    font-style: italic;
    color: var(--gold);
    letter-spacing: .04em;
}

.hijos-names {
    margin: 0 0 20px;
    font-family: var(--serif);
    font-size: clamp(34px, 5.2vw, 54px);
    font-weight: 500;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -.03em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.hijos-dot {
    font-style: normal;
    color: var(--ruby);
    font-size: 0.75em;
    opacity: 0.8;
}

.hijos-invitation-text {
    margin: 0 0 14px;
    font-family: var(--sans);
    font-size: clamp(14px, 1.6vw, 17px);
    color: var(--muted);
    letter-spacing: .02em;
    line-height: 1.6;
}

.hijos-highlight {
    margin: 0 0 24px;
    font-family: var(--serif);
    font-size: clamp(22px, 3.2vw, 31px);
    font-style: italic;
    font-weight: 500;
    color: var(--ruby);
    line-height: 1.3;
}

.hijos-tag {
    margin: 0;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .24em;
    color: var(--gold);
    font-weight: 500;
}

@media (max-width: 760px) {
    .hijos-section {
        padding: 55px 0 45px;
    }
    .hijos-card {
        padding: 32px 18px 28px;
        margin: 0 4px;
    }
    .hijos-names {
        gap: 6px 10px;
    }
}

/* ============================================================
   CONTROL DE MÚSICA AMBIENTAL
   ============================================================ */
.music-toggle-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background-color: #FAF6F0;
    color: #8B1E3F;
    border: 1px solid #8B1E3F;
    border-radius: 30px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(139, 30, 63, 0.12);
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.music-toggle-btn:hover {
    background-color: #8B1E3F;
    color: #FAF6F0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 30, 63, 0.22);
}

.music-toggle-btn:focus-visible {
    outline: 2px solid #8B1E3F;
    outline-offset: 3px;
}

.music-toggle-btn .music-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.music-toggle-btn.is-playing .music-icon {
    animation: musicPulse 2s ease-in-out infinite;
}

.music-waves {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    margin-left: 2px;
}

.music-waves span {
    width: 2px;
    height: 100%;
    background-color: currentColor;
    border-radius: 1px;
    opacity: 0.35;
    transform-origin: bottom;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.music-toggle-btn.is-playing .music-waves span {
    opacity: 0.95;
}

.music-toggle-btn.is-playing .music-waves span:nth-child(1) {
    animation: waveBar 1.2s ease-in-out infinite alternate;
}

.music-toggle-btn.is-playing .music-waves span:nth-child(2) {
    animation: waveBar 0.8s ease-in-out infinite alternate 0.2s;
}

.music-toggle-btn.is-playing .music-waves span:nth-child(3) {
    animation: waveBar 1.4s ease-in-out infinite alternate 0.4s;
}

@keyframes waveBar {
    0% { transform: scaleY(0.2); }
    100% { transform: scaleY(1); }
}

@keyframes musicPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

@media (max-width: 760px) {
    .music-toggle-btn {
        bottom: 18px;
        left: 18px;
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 26px;
    }
}