:root {
    --marfil: #fffaf0;
    --champagne: #ead0ad;
    --dorado: #b98b45;
    --rosa: #c89478;
    --tinta: #4a332a;
    --tiffany: #c89478;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--tinta);
    background:
        linear-gradient(rgba(255,250,240,.6), rgba(255,250,240,.68)),
        url("../img/fondo-rosa-ocre-web-rosas.png") center top / cover no-repeat,
        radial-gradient(circle at 18% 12%, rgba(200, 148, 120, .22), transparent 24%),
        radial-gradient(circle at 84% 18%, rgba(244, 223, 184, .55), transparent 26%),
        linear-gradient(135deg, var(--marfil), #fff, #f8e4dc);
    font-family: Montserrat, system-ui, sans-serif;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
a { color: inherit; }

.sparkle-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background-image:
        radial-gradient(circle, rgba(200,164,77,.8) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(255,255,255,.95) 0 1px, transparent 2px);
    background-size: 120px 120px, 170px 170px;
    animation: shimmer 10s linear infinite;
    opacity: .55;
}
@keyframes shimmer { to { background-position: 120px 240px, -170px 170px; } }

.intro {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: grid;
    place-content: center;
    min-height: 100svh;
    gap: 26px;
    text-align: center;
    overflow: hidden;
    background:
        linear-gradient(rgba(255,250,240,.24), rgba(255,250,240,.32)),
        url("../img/fondo-rosa-ocre-web-rosas.png") center center / cover no-repeat,
        radial-gradient(circle at center, rgba(255,255,255,.72) 0%, rgba(255,250,240,.68) 42%, rgba(239,220,210,.62) 100%),
        linear-gradient(135deg, #fffaf0, #f8e5dc);
    transition: opacity .9s ease, visibility .9s ease;
}
.intro > * { position: relative; z-index: 2; }
.intro {
    border: clamp(8px, 1.4vw, 18px) solid rgba(255,255,255,.36);
}
.intro p::before,
.intro p::after {
    content: "";
    display: inline-block;
    width: 56px;
    height: 1px;
    margin: 0 14px 5px;
    background: linear-gradient(90deg, transparent, rgba(200,164,77,.85), transparent);
}
.intro.hidden { opacity: 0; visibility: hidden; }
.intro p {
    margin: 0;
    color: #38556c;
    font-family: "Cormorant Infant", Georgia, serif;
    font-size: clamp(1.15rem, 2.3vw, 1.55rem);
    font-weight: 600;
}
.envelope-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: clamp(28px, 5vw, 54px) clamp(20px, 5vw, 66px) clamp(24px, 4vw, 42px);
    perspective: 1200px;
}
.envelope-button::before,
.envelope-button::after {
    display: none;
    content: none;
}
.envelope {
    position: relative;
    display: block;
    width: min(78vw, 430px);
    aspect-ratio: 1.42;
    overflow: visible;
    background:
        linear-gradient(140deg, rgba(255,255,255,.45), transparent 32%),
        linear-gradient(145deg, #fffaf0 0%, #f3e3c4 52%, #e6cfa3 100%);
    border: 1px solid rgba(200,164,77,.68);
    border-radius: 8px;
    box-shadow:
        0 42px 90px rgba(72, 49, 31, .24),
        inset 0 0 0 1px rgba(255,255,255,.58),
        inset 0 -18px 36px rgba(163,121,52,.12);
    animation: float 3.5s ease-in-out infinite;
    z-index: 1;
}
.envelope-button:hover .envelope { box-shadow: 0 48px 105px rgba(72, 49, 31, .3), inset 0 0 0 1px rgba(255,255,255,.7); }
@keyframes float { 50% { transform: translateY(-12px); } }
.envelope::before {
    content: "";
    position: absolute;
    inset: 13px;
    border: 1px solid rgba(200,164,77,.44);
    border-radius: 6px;
    z-index: 5;
    pointer-events: none;
}
.envelope::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 16% 20%, rgba(255,255,255,.7) 0 1px, transparent 2px),
        radial-gradient(circle at 84% 72%, rgba(200,164,77,.42) 0 1px, transparent 2px),
        linear-gradient(110deg, transparent 0 42%, rgba(255,255,255,.34) 50%, transparent 58%),
        linear-gradient(90deg, rgba(200,164,77,.18), transparent 10% 90%, rgba(200,164,77,.18));
    background-size: 42px 42px, 64px 64px, 100% 100%;
    opacity: .75;
    z-index: 6;
    pointer-events: none;
}
.envelope-liner {
    position: absolute;
    inset: 8% 9% auto;
    height: 50%;
    clip-path: polygon(0 0, 50% 64%, 100% 0, 100% 42%, 50% 100%, 0 42%);
    background:
        radial-gradient(circle at 18% 22%, rgba(47,154,222,.42), transparent 18%),
        radial-gradient(circle at 78% 18%, rgba(143,199,242,.34), transparent 20%),
        radial-gradient(circle at 70% 72%, rgba(200,164,77,.18), transparent 18%),
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(246,223,195,.86));
    z-index: 2;
}
.flap {
    position: absolute;
    inset: 0;
    clip-path: polygon(0 0, 50% 61%, 100% 0);
    background:
        radial-gradient(circle at 22% 22%, rgba(255,255,255,.95), transparent 18%),
        linear-gradient(180deg, rgba(255,255,255,.95), rgba(244,223,184,.96)),
        linear-gradient(135deg, transparent 0 48%, rgba(186,145,66,.28) 50%, transparent 52%);
    transform-origin: top;
    z-index: 3;
    box-shadow: 0 12px 30px rgba(106,76,39,.12);
}
.side-fold {
    position: absolute;
    bottom: 0;
    width: 56%;
    height: 76%;
    background: linear-gradient(145deg, rgba(255,250,240,.96), rgba(229,204,159,.92));
    z-index: 4;
}
.left-fold {
    left: 0;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    border-right: 1px solid rgba(200,164,77,.25);
}
.right-fold {
    right: 0;
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
    border-left: 1px solid rgba(200,164,77,.25);
}
.bottom-fold {
    position: absolute;
    inset: auto 0 0;
    height: 58%;
    clip-path: polygon(0 100%, 50% 18%, 100% 100%);
    background:
        linear-gradient(0deg, #ead3a9, #fff6e4),
        radial-gradient(circle at 50% 82%, rgba(47,154,222,.22), transparent 24%);
    z-index: 4;
}
.letter {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 11%;
    height: 74%;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,248,237,.98)),
        radial-gradient(circle at 50% 8%, rgba(200,164,77,.12), transparent 22%);
    border: 1px solid rgba(200,164,77,.42);
    border-radius: 5px;
    box-shadow: 0 12px 30px rgba(64,44,27,.12);
    z-index: 1;
}
.letter-monogram {
    position: absolute;
    left: 50%;
    top: 24%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(200,164,77,.72);
    font-family: "Tangerine", cursive;
    font-size: clamp(2.9rem, 9vw, 4.8rem);
    line-height: 1;
}
.letter-line {
    position: absolute;
    left: 30%;
    right: 30%;
    height: 1px;
    z-index: 2;
    background: linear-gradient(90deg, transparent, rgba(200,164,77,.65), transparent);
}
.line-one { top: 56%; }
.line-two { top: 64%; left: 36%; right: 36%; }
.seal {
    position: absolute;
    left: 50%;
    top: 47%;
    width: 78px;
    height: 78px;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    color: #ffe5b4;
    background:
        radial-gradient(circle at 32% 26%, rgba(255,255,255,.2), transparent 22%),
        radial-gradient(circle at 35% 30%, #d66b74, #762b34 72%);
    border-radius: 50%;
    z-index: 4;
    box-shadow:
        inset 0 2px 8px rgba(255,255,255,.2),
        inset 0 -8px 16px rgba(64,16,23,.28),
        0 10px 22px rgba(77,30,28,.3);
}
.seal::before {
    content: "";
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(255,229,180,.55);
    border-radius: 50%;
}

.site {
    opacity: 0;
    visibility: hidden;
    background:
        linear-gradient(rgba(255,250,240,.72), rgba(255,250,240,.78)),
        url("../img/fondo-rosa-ocre-web-rosas.png") center top / cover no-repeat,
        linear-gradient(135deg, #fffaf0, #fff, #f8e4dc);
}
.site.visible { opacity: 1; visibility: visible; transition: opacity 1.2s ease; }
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100svh;
    display: grid;
    place-items: end center;
    padding: 120px 22px 70px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(45,26,21,.08) 0%, rgba(45,26,21,.12) 34%, rgba(255,250,240,.72) 72%, rgba(255,250,240,.94) 100%),
        var(--hero-image) center 18% / cover no-repeat,
        linear-gradient(rgba(255,250,240,.78), rgba(255,250,240,.86)),
        radial-gradient(circle at 50% 20%, rgba(255,255,255,.9), transparent 35%);
}
.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 980px;
    padding: clamp(22px, 4vw, 44px);
}
.hero-copy::before,
.hero-copy::after {
    content: "";
    display: block;
    width: min(360px, 62vw);
    height: 1px;
    margin: 0 auto 28px;
    background: linear-gradient(90deg, transparent, rgba(200,164,77,.72), transparent);
}
.hero-copy::after { margin: 28px auto 0; }
.typed {
    min-height: 62px;
    font-family: "Cormorant Infant", Georgia, serif;
    font-size: clamp(1.55rem, 3vw, 2.4rem);
    color: #6d4a3c;
    text-shadow: 0 1px 0 rgba(255,255,255,.9), 0 12px 26px rgba(255,250,240,.72);
}
h1, h2 { font-family: "Cormorant Infant", Georgia, serif; line-height: .95; margin: 0; }
.hero h1 {
    font-size: clamp(3.4rem, 11vw, 8.6rem);
    color: #b9923f;
    font-weight: 700;
    text-shadow: 0 2px 0 rgba(255,255,255,.92), 0 14px 30px rgba(91,58,43,.12);
}
.hero h2 {
    margin-top: 10px;
    font-family: "Tangerine", cursive;
    font-size: clamp(5.6rem, 13vw, 10.8rem);
    font-weight: 700;
    color: #b2765d;
    line-height: .75;
    text-shadow: 0 2px 0 rgba(255,255,255,.86), 0 12px 26px rgba(178,118,93,.22);
}
.keepsake-quote {
    max-width: 620px;
    margin: 0 auto 24px;
    font-family: "Cormorant Infant", Georgia, serif;
    font-size: clamp(1.18rem, 2.3vw, 1.72rem);
    line-height: 1.45;
    color: #6d4a3c;
    text-shadow: 0 1px 0 rgba(255,255,255,.9), 0 12px 26px rgba(255,250,240,.72);
}
.parents-label {
    margin: 28px 0 6px;
    color: #7a665b;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .13em;
}
.parents-names {
    margin: 0;
    font-family: "Cormorant Infant", Georgia, serif;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 700;
    color: #6d4a3c;
    text-shadow: 0 1px 0 rgba(255,255,255,.86);
}
.family {
    margin-top: 18px;
    color: #6a4e44;
    text-shadow: 0 1px 0 rgba(255,255,255,.86);
}

.player {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 8;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 999px;
    background: rgba(255, 255, 255, .58);
    box-shadow: 0 20px 50px rgba(40,30,22,.18);
    backdrop-filter: blur(18px);
}
.player.visible { display: flex; }
.player button, .lightbox button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: white;
    background: var(--dorado);
    cursor: pointer;
}
.player input { width: 96px; accent-color: var(--dorado); }

.photo-strip, .details, .itinerary, .gift-note, .gallery, .map-rsvp, .finale {
    position: relative;
    overflow: hidden;
    padding: clamp(70px, 9vw, 130px) clamp(18px, 4vw, 64px);
}
.photo-strip::before,
.details::before,
.itinerary::before,
.gift-note::before,
.gallery::before,
.map-rsvp::before,
.finale::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,250,240,.66), rgba(255,250,240,.72)),
        url("../img/fondo-rosa-ocre-web-rosas.png") center center / cover no-repeat;
}
.photo-strip > *,
.details > *,
.itinerary > *,
.gift-note > *,
.gallery > *,
.map-rsvp > *,
.finale > * {
    position: relative;
    z-index: 1;
}
.photo-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 4vw, 54px);
}
.parallax-photo {
    position: relative;
    height: min(72vh, 720px);
    margin: 0;
    overflow: hidden;
    border: 10px solid rgba(255,250,240,.9);
    border-radius: 8px;
    background: rgba(255,250,240,.72);
    box-shadow:
        inset 0 0 0 1px rgba(185,139,69,.34),
        inset 0 0 0 6px rgba(255,255,255,.55),
        0 34px 90px rgba(91,58,43,.2),
        0 10px 24px rgba(185,139,69,.12);
}
.parallax-photo img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: center 18%;
    filter: saturate(.92) contrast(1.04) brightness(1.05) sepia(.05);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 88%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 88%, transparent 100%);
}
.parallax-photo::before {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: 2;
    pointer-events: none;
    border: 1px solid rgba(185,139,69,.34);
    border-radius: 5px;
}
.parallax-photo::after,
.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at center, transparent 45%, rgba(255,250,240,.28) 100%),
        linear-gradient(180deg, rgba(255,255,255,.18), transparent 32%, rgba(185,139,69,.12));
}

.section-title { text-align: center; margin-bottom: 38px; }
.section-title span, .rsvp span, .countdown > span {
    color: var(--dorado);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .16em;
}
.section-title h2, .rsvp h2, .finale h2 {
    font-family: "Cormorant Infant", Georgia, serif;
    font-size: clamp(2.4rem, 6vw, 5rem);
    color: #6d4a3c;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 1180px;
    margin: auto;
}
.detail-card, .rsvp, .privacy-card, .admin-card, .metric, table {
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 8px;
    background: rgba(255,255,255,.54);
    box-shadow: 0 22px 70px rgba(71,52,37,.11);
    backdrop-filter: blur(18px);
}
.detail-card {
    display: grid;
    justify-items: center;
    align-content: start;
    min-height: 190px;
    padding: 28px 22px;
    text-align: center;
}
.detail-card > i {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(185,139,69,.28);
    border-radius: 50%;
    color: var(--dorado);
    background: rgba(255,250,240,.72);
    font-size: 1.35rem;
    box-shadow: 0 14px 30px rgba(185,139,69,.12);
}
.detail-card h3 {
    margin: 18px 0 8px;
    font-family: "Cormorant Infant", Georgia, serif;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 700;
    line-height: 1;
    color: #6d4a3c;
}
.detail-card p { margin: 0; color: #76665b; line-height: 1.6; }
.detail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--dorado);
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
}

.countdown {
    position: relative;
    overflow: hidden;
    text-align: center;
    background:
        linear-gradient(rgba(255,250,240,.62), rgba(255,250,240,.7)),
        url("../img/fondo-rosa-ocre-web-rosas.png") center center / cover no-repeat;
}
.countdown > * { position: relative; z-index: 1; }
.count-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 150px));
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}
.count-grid div { padding: 24px 12px; border-top: 1px solid rgba(200,164,77,.35); border-bottom: 1px solid rgba(200,164,77,.35); }
.count-grid strong { display: block; font-family: "Cormorant Infant", Georgia, serif; font-size: clamp(2.8rem, 7vw, 5rem); color: var(--dorado); }
.count-grid small { text-transform: uppercase; letter-spacing: .12em; color: #7c6c60; }

.timeline {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 12px 0;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(185,139,69,.58), transparent);
}
.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 34px 1fr;
    align-items: center;
    min-height: 76px;
}
.timeline-item time {
    justify-self: end;
    color: var(--dorado);
    font-family: "Cormorant Infant", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
}
.timeline-item span {
    position: relative;
    justify-self: center;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.9);
    border-radius: 50%;
    background: var(--dorado);
    box-shadow: 0 0 0 5px rgba(185,139,69,.14);
}
.timeline-item h3 {
    margin: 0;
    color: #6d4a3c;
    font-size: 1rem;
}

.gift-note {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 420px));
    justify-content: center;
    gap: 18px;
}
.gift-panel {
    padding: clamp(24px, 4vw, 38px);
    text-align: center;
    border-top: 1px solid rgba(185,139,69,.26);
    border-bottom: 1px solid rgba(185,139,69,.26);
}
.gift-panel i {
    color: var(--dorado);
    font-size: 1.8rem;
    margin-bottom: 16px;
}
.gift-panel span {
    display: block;
    color: var(--dorado);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.gift-panel h2 {
    margin: 10px 0 12px;
    font-family: "Cormorant Infant", Georgia, serif;
    font-size: clamp(1.95rem, 4.4vw, 3.15rem);
    line-height: 1.02;
    color: #6d4a3c;
}
.gift-panel p {
    max-width: 340px;
    margin: 0 auto;
    color: #76665b;
    line-height: 1.65;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
    justify-content: center;
    gap: 18px;
}
.gallery-item {
    position: relative;
    border: 7px solid rgba(255,250,240,.92);
    padding: 0;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 5;
    background: rgba(255,250,240,.7);
    box-shadow:
        inset 0 0 0 1px rgba(185,139,69,.32),
        0 20px 46px rgba(91,58,43,.16),
        0 8px 18px rgba(185,139,69,.1);
}
.gallery-item::before {
    content: "";
    position: absolute;
    inset: 6px;
    z-index: 2;
    pointer-events: none;
    border: 1px solid rgba(185,139,69,.28);
    border-radius: 4px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    filter: saturate(.92) contrast(1.04) brightness(1.05) sepia(.05);
    transition: transform .8s ease, filter .8s ease;
}
.gallery-item:hover img { transform: scale(1.07); }

.map-rsvp {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 26px;
    align-items: stretch;
}
.map-panel { min-height: 560px; display: grid; grid-template-rows: 1fr auto; gap: 14px; }
.map-panel iframe { width: 100%; height: 100%; min-height: 480px; border: 0; border-radius: 8px; box-shadow: 0 24px 70px rgba(65,45,30,.14); }
.gold-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #a96d55, #d6a989);
    box-shadow: 0 18px 40px rgba(184,144,58,.25);
    cursor: pointer;
}
.rsvp { padding: 30px; }
.rsvp h2 {
    margin-bottom: 22px;
    text-align: center;
    font-size: clamp(2.1rem, 4vw, 3.5rem);
}
.rsvp label { display: grid; gap: 8px; margin-bottom: 14px; color: #38556c; font-weight: 600; }
.rsvp input, .rsvp textarea {
    width: 100%;
    border: 1px solid rgba(200,164,77,.28);
    border-radius: 8px;
    padding: 13px 14px;
    background: rgba(255,255,255,.72);
    color: var(--tinta);
}
.rsvp fieldset { display: flex; gap: 18px; border: 0; padding: 0; margin: 0 0 16px; }
.rsvp fieldset label { display: flex; align-items: center; margin: 0; }
.form-status { min-height: 24px; color: #6f5d45; font-weight: 700; }

.finale {
    position: relative;
    min-height: 60vh;
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
}
.finale canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.finale-copy { position: relative; max-width: 820px; }
.finale-copy h2 {
    margin-bottom: 14px;
    font-family: "Tangerine", cursive;
    font-size: clamp(4.2rem, 10vw, 8rem);
}
.finale-copy p { margin: 0; color: #6a4e44; font-size: clamp(1rem, 2vw, 1.25rem); }
.finale a { position: relative; color: #7b6a5b; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgba(20,16,14,.82);
}
.lightbox.open { display: grid; }
.lightbox img { max-height: 86vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.lightbox button { position: absolute; top: 22px; right: 22px; }

.privacy-page, .admin-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.privacy-card, .admin-card { width: min(900px, 100%); padding: clamp(24px, 5vw, 54px); }
.privacy-card h1, .admin-card h1 { font-family: "Cormorant Infant", Georgia, serif; font-size: clamp(2.7rem, 7vw, 5rem); margin: 0 0 22px; }
.back-link { color: var(--dorado); font-weight: 700; }
.admin-card label { display: grid; gap: 8px; margin-bottom: 16px; color: #38556c; font-weight: 700; }
.admin-card input {
    width: 100%;
    border: 1px solid rgba(200,164,77,.28);
    border-radius: 8px;
    padding: 13px 14px;
    background: rgba(255,255,255,.75);
}
.dashboard-body { min-height: 100vh; padding: 28px; }
.dashboard { max-width: 1280px; margin: 0 auto; }
.dash-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.dash-header span { color: var(--dorado); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; }
.dash-header h1 { font-family: "Cormorant Infant", Georgia, serif; font-size: clamp(2.5rem, 6vw, 5rem); margin: 0; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric { padding: 22px; }
.metric strong { display: block; font-family: "Cormorant Infant", Georgia, serif; color: var(--dorado); font-size: 3rem; line-height: 1; }
.metric span { color: #706156; font-weight: 700; }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.admin-table { width: 100%; }
.admin-table h2 { font-family: "Cormorant Infant", Georgia, serif; font-size: 2.4rem; margin-top: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.72); }
th, td { padding: 12px 10px; border-bottom: 1px solid rgba(200,164,77,.18); text-align: left; white-space: nowrap; }
th { color: #6d5840; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 900px) {
    body {
        background:
            linear-gradient(rgba(255,250,240,.22), rgba(255,250,240,.34)),
            url("../img/fondo-rosa-ocre-mobile-rosas.png") center top / 100% auto no-repeat,
            linear-gradient(135deg, var(--marfil), #fff, #f8e4dc);
    }
    .intro {
        background:
            linear-gradient(rgba(255,250,240,.08), rgba(255,250,240,.2)),
            url("../img/fondo-rosa-ocre-mobile-rosas.png") center center / cover no-repeat,
            linear-gradient(135deg, #fffaf0, #f8e5dc);
    }
    .site {
        background:
            linear-gradient(rgba(255,250,240,.56), rgba(255,250,240,.7)),
            url("../img/fondo-rosa-ocre-mobile-rosas.png") center top / 100% auto repeat-y,
            linear-gradient(135deg, #fffaf0, #fff, #f8e4dc);
    }
    .hero,
    .photo-strip::before,
    .details::before,
    .itinerary::before,
    .gift-note::before,
    .gallery::before,
    .map-rsvp::before,
    .finale::before,
    .countdown {
        background:
            linear-gradient(rgba(255,250,240,.52), rgba(255,250,240,.7)),
            url("../img/fondo-rosa-ocre-mobile-rosas.png") center top / 100% auto no-repeat,
            linear-gradient(135deg, #fffaf0, #fff, #f8e4dc);
    }
    .hero {
        background:
            linear-gradient(180deg, rgba(45,26,21,.04) 0%, rgba(45,26,21,.08) 32%, rgba(255,250,240,.72) 74%, rgba(255,250,240,.96) 100%),
            var(--hero-image) center 14% / cover no-repeat,
            linear-gradient(135deg, #fffaf0, #fff, #f8e4dc);
    }
    .photo-strip, .gift-note, .map-rsvp { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .metrics, .charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .detail-grid, .gallery-grid, .metrics, .charts { grid-template-columns: 1fr; }
    .parallax-photo { height: 56vh; }
    .player { left: 14px; right: 14px; justify-content: center; }
    .map-rsvp { padding-left: 14px; padding-right: 14px; }
    .dash-header { align-items: flex-start; flex-direction: column; }
    body {
        background:
            linear-gradient(rgba(255,250,240,.18), rgba(255,250,240,.3)),
            url("../img/fondo-rosa-ocre-mobile-rosas.png") center top / 100% auto no-repeat,
            linear-gradient(135deg, #fffaf0, #fff, #f8e4dc);
    }
    .intro {
        gap: 18px;
        border-width: 7px;
        padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
        background:
            linear-gradient(rgba(255,250,240,.03), rgba(255,250,240,.2)),
            url("../img/fondo-rosa-ocre-mobile-rosas.png") center center / cover no-repeat,
            linear-gradient(135deg, #fffaf0, #f8e5dc);
    }
    .intro p::before, .intro p::after { width: 28px; margin-inline: 8px; }
    .intro p { font-size: 1.15rem; line-height: 1.3; max-width: 300px; margin-inline: auto; }
    .envelope-button { padding: 30px 10px 22px; }
    .envelope { width: min(78vw, 300px); }
    .seal { width: 62px; height: 62px; }
    .site {
        background:
            linear-gradient(rgba(255,250,240,.62), rgba(255,250,240,.78)),
            url("../img/fondo-rosa-ocre-mobile-rosas.png") center top / 100% auto repeat-y,
            linear-gradient(135deg, #fffaf0, #fff, #f8e4dc);
    }
    .hero {
        min-height: 92svh;
        padding: 72px 16px 56px;
        background:
            linear-gradient(180deg, rgba(45,26,21,.02) 0%, rgba(45,26,21,.05) 30%, rgba(255,250,240,.7) 68%, rgba(255,250,240,.96) 100%),
            var(--hero-image) center top / cover no-repeat,
            linear-gradient(135deg, #fffaf0, #fff, #f8e4dc);
    }
    .hero-copy {
        padding: 18px 10px;
    }
    .typed { font-size: 1.32rem; line-height: 1.35; min-height: 96px; }
    .hero h1 { font-size: clamp(3rem, 17vw, 4.8rem); }
    .hero h2 { font-size: clamp(5rem, 21vw, 7rem); }
    .photo-strip, .details, .itinerary, .gift-note, .gallery, .map-rsvp, .finale { padding: 64px 14px; }
    .countdown { padding-left: 10px; padding-right: 10px; }
    .count-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
        max-width: 390px;
        margin: 18px auto 0;
    }
    .count-grid div {
        min-width: 0;
        padding: 12px 4px;
        border-top-color: rgba(200,164,77,.42);
        border-bottom-color: rgba(200,164,77,.42);
    }
    .count-grid strong {
        font-size: clamp(1.7rem, 9vw, 2.45rem);
        line-height: .9;
    }
    .count-grid small {
        display: block;
        margin-top: 8px;
        font-size: .58rem;
        letter-spacing: .06em;
        white-space: nowrap;
    }
    .photo-strip::before,
    .details::before,
    .itinerary::before,
    .gift-note::before,
    .gallery::before,
    .map-rsvp::before,
    .finale::before,
    .countdown {
        background:
            linear-gradient(rgba(255,250,240,.66), rgba(255,250,240,.82)),
            url("../img/fondo-rosa-ocre-mobile-rosas.png") center top / 100% auto no-repeat,
            linear-gradient(135deg, #fffaf0, #fff, #f8e4dc);
    }
    .detail-card { min-height: auto; padding: 22px; }
    .timeline::before { left: 7px; }
    .timeline-item {
        grid-template-columns: 18px 86px 1fr;
        gap: 8px;
        min-height: 70px;
    }
    .timeline-item time {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        font-size: 1.18rem;
    }
    .timeline-item span {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }
    .timeline-item h3 {
        grid-column: 3;
        grid-row: 1;
    }
    .parallax-photo {
        height: min(68vh, 560px);
        box-shadow: 0 24px 70px rgba(91,58,43,.16);
    }
    .map-panel, .map-panel iframe { min-height: 360px; }
}
