/* ─── Base & PWA shell ─── */
[x-cloak] {
    display: none !important;
}

html {
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #FAF7F2 0%, #F5EFE6 55%, #F0E8DC 100%);
    overscroll-behavior-y: none;
    color: #2C3E2E;
}

/* ─── Fondo luminoso: sol + destellos suaves ─── */
.day-layer {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        radial-gradient(1px 1px at 12% 18%, rgba(212, 175, 55, 0.35) 0, transparent 100%),
        radial-gradient(1px 1px at 78% 22%, rgba(224, 169, 109, 0.3) 0, transparent 100%),
        radial-gradient(1.5px 1.5px at 55% 12%, rgba(212, 175, 55, 0.25) 0, transparent 100%),
        radial-gradient(1px 1px at 88% 68%, rgba(74, 93, 78, 0.12) 0, transparent 100%),
        radial-gradient(1px 1px at 22% 72%, rgba(212, 175, 55, 0.2) 0, transparent 100%),
        radial-gradient(1px 1px at 65% 88%, rgba(224, 169, 109, 0.18) 0, transparent 100%);
    animation: drift 140s linear infinite;
}

.sun-glow {
    pointer-events: none;
    position: fixed;
    top: -6rem;
    left: 50%;
    z-index: 0;
    width: 24rem;
    height: 24rem;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(224, 169, 109, 0.28) 0%,
        rgba(212, 175, 55, 0.12) 35%,
        rgba(250, 247, 242, 0) 70%
    );
    filter: blur(4px);
}

@keyframes drift {
    from { transform: translateY(0); }
    to { transform: translateY(-12px); }
}

/* ─── Tarjetas marfil / blanco ─── */
.glass-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 247, 242, 0.92) 100%);
    border: 1px solid rgba(74, 93, 78, 0.1);
    box-shadow:
        0 4px 24px rgba(44, 62, 46, 0.06),
        0 1px 3px rgba(44, 62, 46, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(74, 93, 78, 0.12);
    box-shadow: 0 -2px 20px rgba(44, 62, 46, 0.06);
}

.glass-pill {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 2px 12px rgba(44, 62, 46, 0.04);
}

/* ─── Bottom navigation ─── */
.nav-item {
    color: rgba(74, 93, 78, 0.55);
}

.nav-item .nav-icon i {
    color: rgba(74, 93, 78, 0.5);
}

.nav-item--active {
    color: #4A5D4E;
}

.nav-item--active .nav-icon {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.18) 0%, rgba(224, 169, 109, 0.12) 100%);
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.15);
}

.nav-item--active .nav-icon i {
    color: #D4AF37;
}

.nav-item--active span:last-child {
    color: #2C3E2E;
    font-weight: 600;
}

.nav-item.group:hover .nav-icon i,
.nav-item.group:hover span:last-child {
    color: #4A5D4E;
}

/* ─── Fecha hero ─── */
.hero-date {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    text-align: center;
}

.hero-date__content {
    padding-bottom: 0.25rem;
}

.hero-date__weekday {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #4A5D4E;
}

.hero-date__main {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 8vw, 2.45rem);
    font-weight: 500;
    line-height: 1.1;
    color: #2C3E2E;
    margin-top: 0.15rem;
}

.hero-date__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.45rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #D4AF37;
}

.hero-date__dot {
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 50%;
    background: #D4AF37;
    opacity: 0.85;
}

.hero-date__countdown {
    margin-top: 1.1rem;
}

.hero-date__divider {
    height: 1px;
    margin-bottom: 0.85rem;
    background: linear-gradient(90deg, transparent, rgba(74, 93, 78, 0.15), transparent);
}

.hero-date__countdown-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
    width: 100%;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(74, 93, 78, 0.55);
}

.hero-date__countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    max-width: 16rem;
    margin: 0 auto;
}

.countdown-cell--compact {
    background: rgba(245, 239, 230, 0.65);
    border: 1px solid rgba(74, 93, 78, 0.08);
}

/* ─── Logo de la pareja ─── */
.logo-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.75rem;
    border-radius: 1.75rem;
    background-color: #FAF7F2;
    background-image: linear-gradient(160deg, #FFFFFF 0%, #FAF7F2 100%);
    box-shadow:
        0 8px 32px rgba(44, 62, 46, 0.08),
        0 0 0 1px rgba(212, 175, 55, 0.22);
    isolation: isolate;
    box-sizing: border-box;
    max-width: 100%;
}

.logo-mark--hero {
    padding: 1.15rem 1.35rem;
    width: min(100%, 20rem);
}

.logo-mark--hero .logo-mark__img {
    width: 100%;
    max-width: 17.5rem;
    height: auto;
}

.logo-mark::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #FAF7F2;
    z-index: 0;
}

.logo-mark::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.35), rgba(74, 93, 78, 0.08));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

.logo-mark__img {
    position: relative;
    z-index: 1;
    width: min(72vw, 14rem);
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    background: transparent;
}

.logo-mark--sm {
    padding: 0.65rem 0.9rem;
    border-radius: 1rem;
}

.logo-mark--sm .logo-mark__img {
    width: 4rem;
}

.logo-mark--footer .logo-mark__img {
    width: 5.5rem;
    opacity: 0.95;
}

/* ─── Countdown ─── */
.countdown-cell {
    background: rgba(245, 239, 230, 0.85);
    border: 1px solid rgba(74, 93, 78, 0.1);
}

/* ─── Event cards hover (desktop) ─── */
@media (hover: hover) {
    .event-card:hover {
        border-color: rgba(212, 175, 55, 0.25);
        transform: translateY(-2px);
        transition: all 0.25s ease;
    }
}

.event-card {
    transition: all 0.25s ease;
}

/* ─── Divisor dorado ─── */
.sparkle-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.45), transparent);
}

/* ─── Botón Maps ─── */
.btn-maps {
    background: linear-gradient(135deg, #4A5D4E 0%, #2C3E2E 100%);
    box-shadow: 0 4px 16px rgba(44, 62, 46, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-maps:active {
    transform: scale(0.98);
}

@media (hover: hover) {
    .btn-maps:hover {
        box-shadow: 0 6px 20px rgba(44, 62, 46, 0.22);
    }
}

/* ─── CTA destacada ─── */
.cta-card {
    background: linear-gradient(145deg, rgba(74, 93, 78, 0.08) 0%, rgba(250, 247, 242, 0.95) 100%);
    border: 1px solid rgba(74, 93, 78, 0.12);
}

/* ─── Desktop enhancement ─── */
@media (min-width: 768px) {
    .sun-glow {
        width: 30rem;
        height: 30rem;
        top: -8rem;
    }
}

/* ─── RSVP ─── */
.rsvp-page main {
    padding-bottom: 2rem;
}

.rsvp-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px solid rgba(74, 93, 78, 0.15);
    border-radius: 0.85rem;
    padding: 0.7rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5d4e;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.rsvp-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rsvp-choice:has(input[value="1"]:checked) {
    border-color: rgba(74, 93, 78, 0.35);
    background: rgba(74, 93, 78, 0.12);
    color: #2c3e2e;
}

.rsvp-choice:has(input[value="0"]:checked) {
    border-color: rgba(185, 28, 28, 0.25);
    background: rgba(254, 226, 226, 0.65);
    color: #991b1b;
}

/* ─── Safe areas iOS ─── */
@supports (padding: max(0px)) {
    main {
        padding-top: max(1rem, env(safe-area-inset-top));
    }
}

/* ─── 2026 editorial redesign ─── */
:root {
    --paper: #f7f2e9;
    --paper-light: #fffdf8;
    --ink: #242521;
    --ink-soft: #66635c;
    --sage: #667565;
    --sage-dark: #35473a;
    --sage-pale: #e3e8df;
    --gold: #c59b45;
    --gold-light: #eedaa6;
    --line: rgba(53, 71, 58, 0.14);
    --shadow: 0 20px 60px rgba(48, 47, 40, 0.08);
}

body {
    background:
        radial-gradient(circle at 12% 4%, rgba(197, 155, 69, 0.13), transparent 24rem),
        radial-gradient(circle at 94% 38%, rgba(102, 117, 101, 0.1), transparent 30rem),
        linear-gradient(180deg, #fbf8f2 0%, var(--paper) 100%);
    color: var(--ink);
}

.day-layer {
    opacity: 0.55;
}

.sun-glow {
    width: 28rem;
    height: 28rem;
    top: -13rem;
    opacity: 0.55;
}

.app-shell {
    max-width: 42rem;
}

.home-layout {
    display: grid;
    gap: 1rem;
    padding: 0.65rem 1rem 1.5rem;
}

.home-hero {
    padding: 0.35rem 0.25rem 1rem;
    text-align: center;
}

.brand-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 21rem);
    min-height: 13.5rem;
    margin: 0 auto 0.5rem;
    padding: 1.25rem 1rem;
    overflow: hidden;
    border: 1px solid rgba(197, 155, 69, 0.25);
    border-radius: 48% 48% 2rem 2rem;
    background:
        linear-gradient(rgba(255, 253, 248, 0.88), rgba(255, 253, 248, 0.97)),
        repeating-linear-gradient(90deg, transparent 0 22px, rgba(53, 71, 58, 0.03) 22px 23px);
    box-shadow: var(--shadow);
}

.brand-stage__logo {
    position: relative;
    z-index: 2;
    width: 86%;
}

.brand-stage__logo img {
    display: block;
    width: 100%;
    height: auto;
}

.brand-stage__orbit {
    position: absolute;
    right: -4.5rem;
    bottom: -7.5rem;
    width: 17rem;
    height: 17rem;
    border: 1px solid rgba(102, 117, 101, 0.18);
    border-radius: 50%;
}

.brand-stage__sparkle {
    position: absolute;
    z-index: 3;
    right: 1.2rem;
    bottom: 1.3rem;
    width: 1.1rem;
    color: var(--gold);
}

.eyebrow {
    margin: 0;
    color: var(--sage);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.home-hero__title {
    margin: 0.2rem 0 0;
    color: var(--ink);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.35rem, 12vw, 4rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.045em;
}

.home-hero__place {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin: 0.65rem 0 0;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-hero__place span {
    width: 2rem;
    height: 1px;
    background: currentColor;
}

.home-hero__line {
    max-width: 22rem;
    margin: 0.75rem auto 0;
    color: var(--ink-soft);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.5;
}

.guest-welcome,
.date-card,
.venue-card,
.detail-card {
    border: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.9);
    box-shadow: var(--shadow);
}

.guest-welcome {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: center;
    padding: 1.15rem;
    border-radius: 1.5rem;
}

.guest-welcome__icon,
.section-heading__icon,
.detail-card__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--sage-pale);
    color: var(--sage-dark);
}

.guest-welcome__icon svg,
.section-heading__icon svg,
.detail-card__icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.guest-welcome__copy h2 {
    margin: 0.18rem 0 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.32rem;
    font-weight: 500;
}

.guest-welcome__copy > p:last-child {
    margin: 0.3rem 0 0;
    color: var(--ink-soft);
    font-size: 0.78rem;
    line-height: 1.55;
}

.guest-welcome__action {
    grid-column: 1 / -1;
}

.editorial-section {
    padding-top: 1.4rem;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 0 0 0.8rem;
    padding: 0 0.25rem;
}

.section-heading h2,
.detail-card h2 {
    margin: 0.12rem 0 0;
    color: var(--ink);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: -0.025em;
}

.date-card {
    overflow: hidden;
    border-radius: 1.65rem;
}

.date-card__date {
    padding: 1.4rem;
}

.date-card__weekday {
    margin: 0 0 0.5rem;
    color: var(--sage);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.date-card__main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.15rem;
}

.date-card__main > strong {
    color: var(--ink);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(4.5rem, 22vw, 6rem);
    font-weight: 400;
    line-height: 0.9;
}

.date-card__main > span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 1.15rem;
    border-left: 1px solid rgba(197, 155, 69, 0.35);
}

.date-card__main b {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.75rem, 8vw, 2.35rem);
    font-weight: 500;
    text-transform: lowercase;
}

.date-card__main small {
    margin-top: 0.35rem;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.date-card__countdown {
    padding: 1rem 1.2rem 1.15rem;
    border-top: 1px solid rgba(53, 71, 58, 0.1);
    background: rgba(227, 232, 223, 0.45);
}

.date-card__countdown > p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 0 0.75rem;
    color: var(--sage);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.date-card__countdown > p svg {
    width: 0.8rem;
}

.countdown-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
    max-width: 18rem;
    margin: 0 auto;
}

.countdown-row div {
    text-align: center;
}

.countdown-row strong {
    display: block;
    color: var(--ink);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 500;
}

.countdown-row span {
    display: block;
    color: var(--ink-soft);
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.venue-card {
    overflow: hidden;
    border-radius: 1.65rem;
}

.venue-card__art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 7.5rem;
    overflow: hidden;
    background:
        linear-gradient(150deg, rgba(53, 71, 58, 0.96), rgba(102, 117, 101, 0.9)),
        var(--sage-dark);
    color: rgba(255, 253, 248, 0.92);
}

.venue-card__art > svg {
    width: 3rem;
    height: 3rem;
    stroke-width: 1.2;
}

.venue-card__moon {
    position: absolute;
    top: -1.7rem;
    right: 1.25rem;
    width: 5.8rem;
    height: 5.8rem;
    border: 1px solid rgba(238, 218, 166, 0.3);
    border-radius: 50%;
}

.venue-card__body {
    padding: 1.35rem;
}

.venue-card__body h3 {
    margin: 0.15rem 0 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2rem;
    font-weight: 500;
}

.venue-card__body > p:last-of-type {
    margin: 0.45rem 0 1.1rem;
    color: var(--ink-soft);
    font-size: 0.82rem;
    line-height: 1.55;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:active {
    transform: scale(0.98);
}

.button svg {
    width: 1rem;
    height: 1rem;
}

.button--dark {
    width: 100%;
    background: var(--sage-dark);
    color: var(--paper-light);
    box-shadow: 0 8px 22px rgba(53, 71, 58, 0.18);
}

.button--gold {
    background: linear-gradient(135deg, #d0aa5c, #b88a32);
    color: #fffdf8;
    box-shadow: 0 8px 22px rgba(184, 138, 50, 0.22);
}

.detail-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.35rem;
    border-radius: 1.5rem;
}

.detail-card h2 {
    font-size: 1.55rem;
}

.detail-card h3 {
    margin: 0.4rem 0 0;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
}

.detail-card > div > p:last-child {
    margin: 0.5rem 0 0;
    color: var(--ink-soft);
    font-size: 0.8rem;
    line-height: 1.6;
}

.rsvp-invite {
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
    padding: 2rem 1.35rem;
    border-radius: 1.75rem;
    background: var(--ink);
    color: var(--paper-light);
    text-align: center;
    box-shadow: 0 22px 60px rgba(36, 37, 33, 0.16);
}

.rsvp-invite::after {
    content: "";
    position: absolute;
    right: -5rem;
    bottom: -7rem;
    width: 14rem;
    height: 14rem;
    border: 1px solid rgba(238, 218, 166, 0.16);
    border-radius: 50%;
}

.rsvp-invite__ornament {
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    margin: 0 auto 1rem;
    border: 1px solid rgba(238, 218, 166, 0.25);
    border-radius: 50%;
    color: var(--gold-light);
}

.rsvp-invite__ornament svg {
    width: 1.15rem;
}

.rsvp-invite .eyebrow {
    color: var(--gold-light);
}

.rsvp-invite h2 {
    margin: 0.35rem 0 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
}

.rsvp-invite > p:not(.eyebrow) {
    position: relative;
    z-index: 1;
    max-width: 24rem;
    margin: 0.75rem auto 1.25rem;
    color: rgba(255, 253, 248, 0.68);
    font-size: 0.82rem;
    line-height: 1.6;
}

.rsvp-invite .button {
    position: relative;
    z-index: 2;
}

.wedding-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem 2rem;
    color: rgba(53, 71, 58, 0.55);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wedding-footer img {
    width: 3.5rem;
    height: auto;
}

.wedding-footer p {
    margin: 0;
}

body > nav {
    max-width: 42rem !important;
}

body > nav .glass-nav {
    border-color: rgba(53, 71, 58, 0.1);
    background: rgba(255, 253, 248, 0.9);
    box-shadow: 0 14px 45px rgba(36, 37, 33, 0.14);
}

/* ─── Desktop top navigation ─── */
.desktop-nav {
    display: none;
}

.desktop-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: min(100%, 74rem);
    margin: 0 auto;
    padding: 0.85rem 2rem;
}

.desktop-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ink);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.desktop-nav__brand:hover {
    opacity: 0.82;
}

.desktop-nav__brand img {
    width: 2.75rem;
    height: auto;
}

.desktop-nav__menu ul {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.desktop-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: rgba(53, 71, 58, 0.72);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.desktop-nav__link i {
    width: 1rem;
    height: 1rem;
}

.desktop-nav__link:hover {
    background: rgba(53, 71, 58, 0.06);
    color: var(--ink);
}

.desktop-nav__link--active {
    border-color: rgba(197, 155, 69, 0.28);
    background: rgba(197, 155, 69, 0.1);
    color: var(--ink);
}

@media (max-width: 767px) {
    .home-hero {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: calc(100svh - 7rem - env(safe-area-inset-bottom));
        padding-top: 0.25rem;
    }

    .brand-stage {
        width: min(100%, 18.5rem);
        min-height: 10.5rem;
        padding: 1rem 0.85rem;
    }

    .home-hero__line {
        display: none;
    }
}

@media (min-width: 768px) {
    .desktop-nav {
        display: block;
        position: sticky;
        top: 0;
        z-index: 50;
        border-bottom: 1px solid rgba(53, 71, 58, 0.08);
        background: rgba(255, 253, 248, 0.88);
        backdrop-filter: blur(18px) saturate(140%);
        -webkit-backdrop-filter: blur(18px) saturate(140%);
        box-shadow: 0 8px 32px rgba(36, 37, 33, 0.06);
    }

    body > nav.fixed.bottom-0 {
        display: none !important;
    }

    .app-shell {
        max-width: 74rem;
        padding-top: 0.5rem;
        padding-right: 2rem;
        padding-left: 2rem;
        padding-bottom: 2.5rem !important;
    }

    .home-layout {
        grid-template-columns: minmax(19rem, 0.82fr) minmax(25rem, 1.18fr);
        grid-template-areas:
            "hero date"
            "welcome date"
            "welcome venue"
            ". dress"
            ". rsvp";
        gap: 1.5rem 2.5rem;
        padding: 2.5rem 0 2rem;
    }

    .home-hero {
        grid-area: hero;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-self: start;
        min-height: calc(100vh - 5.5rem);
        padding-top: 0;
    }

    .guest-welcome {
        grid-area: welcome;
        align-self: start;
    }

    .date-section {
        grid-area: date;
        padding-top: 0;
    }

    .venue-section {
        grid-area: venue;
    }

    .dress-section {
        grid-area: dress;
    }

    .rsvp-invite {
        grid-area: rsvp;
    }

    .brand-stage {
        width: min(100%, 19rem);
        min-height: 11.5rem;
        margin-bottom: 0.85rem;
        padding: 1rem 0.85rem;
    }

    .brand-stage__logo {
        width: 94%;
    }

    .home-hero__title {
        font-size: clamp(2.8rem, 4.2vw, 3.75rem);
    }

    .home-hero__line {
        margin-top: 0.65rem;
        font-size: 0.92rem;
    }

    .date-card__date {
        padding: 2rem;
    }

    .date-card__main > strong {
        font-size: 7.5rem;
    }

    .date-card__main b {
        font-size: 2.7rem;
    }

    .venue-card {
        display: grid;
        grid-template-columns: 0.65fr 1.35fr;
    }

    .venue-card__art {
        min-height: 100%;
    }

    .guest-welcome__action {
        width: fit-content;
    }
}

@media (min-width: 1100px) {
    .home-layout {
        grid-template-columns: 0.9fr 1.1fr;
        column-gap: 4rem;
    }

    .home-hero {
        position: sticky;
        top: 5rem;
        min-height: calc(100vh - 6rem);
    }

    .brand-stage {
        width: min(100%, 20rem);
    }
}

/* ─── Personalized RSVP ─── */
.rsvp-page .app-shell {
    max-width: 42rem;
    padding-bottom: 1rem;
}

.rsvp-shell {
    padding: 1rem 1rem 3rem;
}

.rsvp-header {
    display: grid;
    grid-template-columns: 2.5rem 1fr 2.5rem;
    align-items: center;
    margin-bottom: 1.6rem;
}

.rsvp-header img {
    justify-self: center;
    width: 5rem;
    height: auto;
}

.rsvp-back {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 253, 248, 0.84);
    color: var(--sage-dark);
    box-shadow: 0 6px 18px rgba(48, 47, 40, 0.06);
}

.rsvp-back svg {
    width: 1rem;
}

.rsvp-intro {
    max-width: 30rem;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.rsvp-intro h1,
.rsvp-state h1 {
    margin: 0.35rem 0 0;
    color: var(--ink);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.2rem, 10vw, 3.4rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.rsvp-intro > p:last-child,
.rsvp-state > p:not(.eyebrow) {
    margin: 0.8rem 0 0;
    color: var(--ink-soft);
    font-size: 0.85rem;
    line-height: 1.65;
}

.rsvp-form {
    display: grid;
    gap: 0.75rem;
}

.rsvp-person {
    min-width: 0;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    background: rgba(255, 253, 248, 0.9);
    box-shadow: 0 12px 35px rgba(48, 47, 40, 0.055);
}

.rsvp-person legend {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0;
    color: var(--ink);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 500;
}

.rsvp-person legend > span {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--sage-pale);
    color: var(--sage-dark);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
}

.rsvp-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-top: 0.9rem;
}

.rsvp-choice {
    position: relative;
    display: flex;
    min-height: 3rem;
    padding: 0.7rem 0.5rem;
    border: 1px solid rgba(53, 71, 58, 0.12);
    border-radius: 999px;
    background: rgba(247, 242, 233, 0.65);
    color: var(--ink-soft);
    font-size: 0.72rem;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.rsvp-choice:active {
    transform: scale(0.98);
}

.rsvp-choice svg {
    width: 0.95rem;
    height: 0.95rem;
}

.rsvp-choice:has(input[value="1"]:checked) {
    border-color: rgba(53, 71, 58, 0.28);
    background: var(--sage-dark);
    color: var(--paper-light);
    box-shadow: 0 7px 18px rgba(53, 71, 58, 0.16);
}

.rsvp-choice:has(input[value="0"]:checked) {
    border-color: rgba(92, 83, 73, 0.22);
    background: #6c6258;
    color: var(--paper-light);
    box-shadow: 0 7px 18px rgba(92, 83, 73, 0.13);
}

.rsvp-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 3.4rem;
    margin-top: 0.45rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #d0aa5c, #b88a32);
    color: #fff;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(184, 138, 50, 0.22);
}

.rsvp-submit svg {
    width: 1rem;
}

.rsvp-form__hint {
    margin: 0.25rem 0 0;
    color: var(--ink-soft);
    font-size: 0.65rem;
    text-align: center;
}

.rsvp-state {
    max-width: 31rem;
    margin: 3rem auto;
    padding: 2rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: 1.75rem;
    background: rgba(255, 253, 248, 0.9);
    box-shadow: var(--shadow);
    text-align: center;
}

.rsvp-state > span {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--sage-pale);
    color: var(--sage-dark);
}

.rsvp-state > span svg {
    width: 1.35rem;
}

.rsvp-state .button {
    margin-top: 1.25rem;
}

.rsvp-text-link {
    display: block;
    margin-top: 1rem;
    color: var(--sage);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

@media (min-width: 700px) {
    .rsvp-shell {
        padding-top: 2rem;
    }

    .rsvp-form {
        grid-template-columns: 1fr 1fr;
    }

    .rsvp-intro,
    .rsvp-header,
    .rsvp-submit,
    .rsvp-form__hint {
        grid-column: 1 / -1;
    }
}

/* ─── Envelope intro (referencia: sobre horizontal + sello dorado) ─── */
html.envelope-skipped #envelope-intro {
    display: none !important;
}

body.envelope-active {
    overflow: hidden;
}

body.envelope-active .day-layer,
body.envelope-active .sun-glow,
body.envelope-active .desktop-nav,
body.envelope-active .app-shell,
body.envelope-active .wedding-footer,
body.envelope-active nav.fixed {
    visibility: hidden;
}

.envelope-intro {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: max(2.5rem, env(safe-area-inset-top)) 1.25rem max(1.25rem, env(safe-area-inset-bottom));
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

.envelope-intro__veil {
    position: absolute;
    inset: 0;
    background: #f3eee6;
}

.envelope-intro__trigger {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.5rem;
    justify-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.envelope-intro__trigger:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 0.65rem;
    border-radius: 1rem;
}

.envelope-scene {
    overflow: visible;
    perspective: 1100px;
    transform-style: preserve-3d;
}

.envelope--landscape {
    --env-top: 8.2%;
    --env-left: 2.8%;
    --env-width: 94.4%;
    --env-flap-h: 41.8%;
    --env-pocket-top: 58%;
    position: relative;
    width: min(92vw, 26rem);
    overflow: visible;
    transform-style: preserve-3d;
    animation: envelope-float 5s ease-in-out infinite;
}

@keyframes envelope-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.envelope__shadow {
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: -0.85rem;
    height: 1.35rem;
    border-radius: 50%;
    background: rgba(36, 37, 33, 0.12);
    filter: blur(10px);
    transition: opacity 0.5s ease;
}

.envelope__frame {
    position: relative;
    transform-style: preserve-3d;
}

/* Vista cerrada: foto completa */
.envelope__photo-closed {
    position: relative;
    z-index: 10;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
    filter: drop-shadow(0 16px 36px rgba(48, 47, 40, 0.12));
    transition: opacity 0.15s ease;
}

/* Capas internas (visibles al abrir) */
.envelope__layers {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: visible;
    opacity: 0;
    pointer-events: none;
    transform-style: preserve-3d;
    transition: opacity 0.12s ease;
}

.envelope__back {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 2px;
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
        linear-gradient(180deg, #f5efe6 0%, #ebe3d8 100%);
}

.envelope__slot {
    position: absolute;
    z-index: 1;
    top: 24%;
    right: 11%;
    bottom: 11%;
    left: 11%;
    overflow: visible;
}

.envelope__card {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 0.35rem;
    place-items: center;
    padding: 0.75rem 0.5rem;
    border: 1px solid rgba(197, 155, 69, 0.18);
    border-radius: 0.2rem;
    background: linear-gradient(180deg, #fffdf8, #f8f2e8);
    box-shadow: 0 4px 16px rgba(48, 47, 40, 0.08);
    transform: translateY(48%);
    transition: transform 1.15s cubic-bezier(0.33, 1, 0.68, 1) 0.38s;
}

.envelope__card img {
    width: 4.25rem;
    height: auto;
}

.envelope__card-names {
    margin: 0;
    color: var(--ink);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.88rem;
    letter-spacing: -0.02em;
}

.envelope__card-date {
    margin: 0;
    color: var(--sage);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.envelope__layer-img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.envelope__pocket {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    border-radius: 2px;
    clip-path: inset(var(--env-pocket-top) 0 0 0);
}

.envelope__layer-img--pocket {
    position: relative;
    display: block;
}

.envelope__pocket::after {
    content: "";
    position: absolute;
    top: 52%;
    right: 18%;
    left: 18%;
    height: 14%;
    background: linear-gradient(180deg, #efe6d6 0%, rgba(239, 230, 214, 0) 100%);
    pointer-events: none;
}

.envelope__flap {
    position: absolute;
    left: var(--env-left);
    z-index: 4;
    width: var(--env-width);
    height: var(--env-flap-h);
}

.envelope__flap--closed {
    top: var(--env-top);
    overflow: hidden;
    background: #f4eee4;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top center;
    transition:
        transform 0.7s cubic-bezier(0.45, 0.05, 0.2, 1) 0.06s,
        opacity 0.35s ease 0.28s;
}

.envelope__layer-img--flap {
    position: absolute;
    top: calc(var(--env-top) / var(--env-flap-h) * -100%);
    left: calc(var(--env-left) / var(--env-width) * -100%);
    width: calc(100% * 100 / 94.4);
    max-width: none;
    height: auto;
}

.envelope__flap--open {
    top: calc(var(--env-top) - var(--env-flap-h));
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
        linear-gradient(180deg, #e8dcc8 0%, #f3eadc 42%, #f7f1e6 100%);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    box-shadow:
        inset 0 -1px 0 rgba(197, 155, 69, 0.12),
        0 10px 24px rgba(48, 47, 40, 0.06);
    opacity: 0;
    transform: rotateX(86deg);
    transform-origin: bottom center;
    transition:
        transform 0.85s cubic-bezier(0.33, 1, 0.68, 1) 0.18s,
        opacity 0.2s ease 0.18s;
}

.envelope__seal-glow {
    position: absolute;
    top: 47%;
    left: 50%;
    z-index: 11;
    width: 21%;
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: seal-glow 3s ease-in-out infinite;
}

@keyframes seal-glow {
    0%, 100% {
        box-shadow:
            0 0 0 0 rgba(212, 175, 55, 0.22),
            0 4px 16px rgba(139, 105, 20, 0.12);
    }
    50% {
        box-shadow:
            0 0 0 14px rgba(212, 175, 55, 0),
            0 6px 22px rgba(139, 105, 20, 0.2);
    }
}

.envelope-intro__hint {
    color: var(--sage);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    animation: hint-pulse 2.8s ease-in-out infinite;
}

@keyframes hint-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Apertura */
.envelope-intro.is-opening .envelope--landscape {
    animation: none;
}

.envelope-intro.is-opening .envelope__seal-glow {
    animation: seal-break 0.5s ease forwards;
}

@keyframes seal-break {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    35% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.85; }
    100% { transform: translate(-50%, -50%) scale(1.45); opacity: 0; }
}

.envelope-intro.is-opening .envelope__photo-closed {
    opacity: 0;
}

.envelope-intro.is-opening .envelope__layers {
    opacity: 1;
}

.envelope-intro.is-opening .envelope__flap--closed {
    opacity: 0;
    transform: rotateX(-80deg);
}

.envelope-intro.is-opening .envelope__flap--open {
    z-index: 5;
    opacity: 1;
    transform: rotateX(0deg);
}

.envelope-intro.is-opening .envelope__card {
    transform: translateY(-72%);
}

.envelope-intro.is-opening .envelope__shadow {
    opacity: 0.3;
}

.envelope-intro.is-revealing {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.envelope-intro.is-revealing .envelope-scene {
    transform: scale(1.06) translateY(-10px);
    opacity: 0;
    transition: transform 0.55s ease, opacity 0.55s ease;
}

body.envelope-revealed .day-layer,
body.envelope-revealed .sun-glow,
body.envelope-revealed .desktop-nav,
body.envelope-revealed .app-shell,
body.envelope-revealed .wedding-footer,
body.envelope-revealed nav.fixed {
    visibility: visible;
    animation: envelope-content-in 0.7s ease forwards;
}

@keyframes envelope-content-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .envelope--landscape,
    .envelope__seal-glow,
    .envelope-intro__hint {
        animation: none !important;
    }

    .envelope__flap,
    .envelope__photo-closed,
    .envelope__card,
    .envelope__layers {
        transition-duration: 0.01ms !important;
    }

    .envelope-intro {
        transition-duration: 0.01ms !important;
    }
}

@media (min-width: 768px) {
    .envelope--landscape {
        width: min(32rem, 42vw);
    }
}

