/* La script viene de css/fonts.css, autoalojada como las demas. Es "Alex
   Brush", la que declara el CSS original del tema y que nunca se distribuyo
   con el. Aqui vivia un @font-face a un OTF con la tabla cmap corrupta que
   ningun navegador acepto: los titulos llevaban desde siempre cayendo al
   serif de respaldo. */

:root {
    --ch-aqua: #22b8b2;
    --ch-aqua-deep: #118d89;
    --ch-rose: #c95674;
    --ch-plum: #4b2635;
    --ch-ink: #383238;
    --ch-ink-soft: #6f676c;
    --ch-paper: #fff;
    --ch-cream: #fbf7f2;
    --ch-warm: #f5eeea;
    --ch-line: #ded7d3;
    --ch-shadow: 0 18px 48px rgba(55, 38, 45, .16);
    --ch-script: "Alex Brush", "Cormorant Garamond", Georgia, cursive;
    /* Alex Brush lleva astas y descendentes largos: con el interlineado
       apretado que servia al serif invadian la linea de arriba. */
    --ch-script-leading: 1.25;
    --ch-serif: "Cormorant Garamond", Georgia, serif;
    --ch-sans: "DM Sans", Arial, sans-serif;
}

html { scroll-behavior: smooth; }
.template-couple-heart {
    margin: 0;
    overflow-x: clip;
    color: var(--ch-ink-soft);
    background: var(--ch-paper);
    font-family: var(--ch-sans);
    line-height: 1.65;
}
.template-couple-heart *,
.template-couple-heart *::before,
.template-couple-heart *::after { box-sizing: border-box; }
.template-couple-heart a { color: inherit; }
.template-couple-heart img { display: block; max-width: 100%; }
.template-couple-heart button,
.template-couple-heart input,
.template-couple-heart select,
.template-couple-heart textarea { font: inherit; }
.template-couple-heart button,
.template-couple-heart a { -webkit-tap-highlight-color: transparent; }
.template-couple-heart :focus-visible { outline: 3px solid var(--ch-aqua); outline-offset: 4px; }

.ch-header {
    position: sticky;
    z-index: 40;
    top: 0;
    border-bottom: 1px solid rgba(75, 38, 53, .09);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 20px rgba(61, 47, 53, .05);
    backdrop-filter: blur(14px);
}
.template-couple-heart-demo .ch-header { top: var(--demo-banner-height, 44px); }
.ch-nav {
    display: flex;
    width: min(1180px, calc(100% - 40px));
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 0 auto;
}
/* El nombre y los enlaces nunca se parten a media palabra: la marca encoge
   con el viewport y la barra completa solo aparece cuando de verdad cabe. */
.ch-brand { display: grid; flex: none; color: var(--ch-ink); text-decoration: none; line-height: var(--ch-script-leading); }
.ch-brand__text { color: var(--ch-aqua-deep); font-family: var(--ch-script); font-size: clamp(2rem, 2.4vw, 2.6rem); white-space: nowrap; }
.ch-brand__tagline { margin-top: 2px; color: #8c8388; font-size: .58rem; font-weight: 600; letter-spacing: .18em; text-align: center; text-transform: uppercase; white-space: nowrap; }
.ch-nav__links { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: clamp(13px, 1.6vw, 30px); }
.ch-nav__links[hidden] { display: none; }
.ch-nav__links a { position: relative; padding: 31px 0 27px; color: #595157; font-size: clamp(.66rem, .58vw + .4rem, .72rem); font-weight: 700; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.ch-nav__links a::after { position: absolute; right: 50%; bottom: 21px; left: 50%; height: 2px; content: ""; background: var(--ch-aqua); transition: right .25s ease, left .25s ease; }
.ch-nav__links a:hover::after,
.ch-nav__links a:focus-visible::after { right: 0; left: 0; }
.ch-menu-toggle { display: none; min-width: 48px; min-height: 48px; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ch-line); color: var(--ch-ink); background: #fff; }
.ch-menu-toggle__label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.ch-hero {
    position: relative;
    display: grid;
    min-height: min(850px, calc(100svh - 82px));
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background: var(--ch-plum);
}
.ch-hero--typographic { background: radial-gradient(circle at 50% 35%, #cfaab3 0, #8e5466 40%, var(--ch-plum) 100%); }
.ch-hero__media,
.ch-hero__slide { position: absolute; inset: 0; }
.ch-hero__media { z-index: -3; }
.ch-hero__slide {
    margin: 0;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 7s ease;
}
.ch-hero__slide.is-active { opacity: 1; transform: scale(1); }
.ch-hero__slide[hidden] { display: none; }
.ch-hero__slide picture { display: contents; }
.ch-hero__image { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.ch-hero__veil {
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(31, 16, 23, .58), rgba(24, 14, 19, .18) 48%, rgba(31, 16, 23, .5)),
        linear-gradient(0deg, rgba(34, 18, 25, .7), transparent 46%, rgba(34, 18, 25, .2));
}
.ch-hero__frame {
    position: absolute;
    z-index: -1;
    inset: clamp(20px, 4vw, 52px);
    border: 1px solid rgba(255, 255, 255, .52);
    pointer-events: none;
}
.ch-hero__frame::before,
.ch-hero__frame::after {
    position: absolute;
    top: -1px;
    width: 100px;
    height: 1px;
    content: "";
    background: var(--ch-aqua);
}
.ch-hero__frame::before { left: 12%; }
.ch-hero__frame::after { right: 12%; }
.ch-hero__content {
    position: relative;
    z-index: 2;
    align-self: center;
    width: min(860px, calc(100% - 70px));
    margin: 80px auto 105px;
    padding: 54px 30px 58px;
    text-align: center;
}
.ch-hero__content::before,
.ch-hero__content::after {
    display: block;
    width: 86px;
    height: 1px;
    margin: 0 auto 30px;
    content: "";
    background: rgba(255, 255, 255, .72);
}
.ch-hero__content::after { margin: 34px auto 0; }
.ch-kicker { margin: 0 0 10px; color: var(--ch-aqua-deep); font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.ch-hero__kicker { color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.ch-hero h1,
.ch-section h2 {
    margin: 0;
    color: var(--ch-ink);
    font-family: var(--ch-script);
    font-weight: 400;
    line-height: var(--ch-script-leading);
    text-wrap: balance;
}
.ch-hero h1 { color: #fff; font-size: clamp(4.9rem, 12vw, 10rem); text-shadow: 0 5px 25px rgba(0, 0, 0, .28); }
.ch-hero h1 span { display: inline-block; animation: chHeroTextReveal .9s .15s both cubic-bezier(.2, .8, .2, 1); }
.ch-hero__date { margin: 20px 0 31px; font-family: var(--ch-serif); font-size: clamp(1.1rem, 2.5vw, 1.55rem); font-weight: 600; letter-spacing: .08em; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.ch-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: 1px solid var(--ch-aqua-deep);
    border-radius: 0;
    color: #fff;
    background: var(--ch-aqua-deep);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .25s ease, background .25s ease, border-color .25s ease;
}
.ch-button:hover { color: #fff; background: var(--ch-rose); border-color: var(--ch-rose); }
.template-couple-heart .ch-button--light { color: var(--ch-ink); background: #fff; border-color: #fff; }
.template-couple-heart .ch-button--light:hover { color: #fff; background: var(--ch-aqua); border-color: var(--ch-aqua); }
.ch-carousel-controls { position: absolute; z-index: 4; right: clamp(28px, 5vw, 68px); bottom: clamp(30px, 5vw, 64px); display: flex; align-items: center; gap: 10px; }
.ch-carousel-controls button { min-width: 46px; min-height: 46px; border: 1px solid rgba(255,255,255,.7); border-radius: 0; color: #fff; background: rgba(37, 21, 28, .38); font-size: 0; cursor: pointer; transition: background .2s ease; }
.ch-carousel-controls button:hover { background: var(--ch-aqua-deep); }
.ch-carousel-controls button::after { font-family: Georgia, serif; font-size: 1.45rem; }
.ch-carousel-controls [data-ch-carousel-prev]::after { content: "‹"; }
.ch-carousel-controls [data-ch-carousel-next]::after { content: "›"; }
.ch-carousel-controls p { min-width: 48px; margin: 0; font-size: .72rem; text-align: center; }
.ch-hero__scroll { position: absolute; z-index: 3; bottom: 24px; left: 50%; display: grid; width: 28px; height: 44px; place-items: start center; border: 1px solid rgba(255,255,255,.7); border-radius: 18px; transform: translateX(-50%); }
.ch-hero__scroll span { width: 3px; height: 8px; margin-top: 8px; border-radius: 2px; background: #fff; animation: chScrollCue 1.8s infinite; }

.ch-section {
    position: relative;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(82px, 10vw, 138px) 0;
}
.ch-section--warm,
.ch-section--ink,
.ch-section--parallax {
    width: auto;
    padding-right: max(20px, calc((100% - 1120px) / 2));
    padding-left: max(20px, calc((100% - 1120px) / 2));
}
.ch-section--warm { background: var(--ch-warm); }
.ch-section--ink { color: #fff; background: var(--ch-plum); }
.ch-section--pattern { isolation: isolate; }
.ch-section--pattern::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    opacity: .075;
    background-image: url("../images/pattern/3.jpg");
    background-position: center;
    background-size: cover;
}
.ch-section--pattern-dark::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: .08;
    background-image: url("../images/pattern/3.jpg");
    background-position: center;
    background-size: cover;
    mix-blend-mode: screen;
}
.ch-section__content { position: relative; z-index: 2; }
.ch-section-heading { margin: 0 auto 42px; text-align: center; }
.ch-section-heading--light h2,
.ch-section--ink h2 { color: #fff; }
.ch-section h2 { font-size: clamp(3.6rem, 7vw, 6.5rem); }
.ch-title-ornament { width: 185px; height: auto; margin: 12px auto 0; object-fit: contain; }
.ch-title-ornament--light { filter: invert(1) brightness(2); opacity: .82; }
.ch-section-backdrop { position: absolute; z-index: 0; inset: -6% 0; overflow: hidden; pointer-events: none; }
.ch-section-backdrop picture { display: contents; }
.ch-section-backdrop__image { width: 100%; height: 112%; object-fit: cover; transform: translate3d(0, var(--ch-parallax-y, 0), 0) scale(1.06); will-change: transform; }
/* Los fondos del tema original son parte de su identidad. Se usan como capa
   decorativa siempre: cuando el evento tiene fotos propias, `.ch-section-backdrop`
   se pinta encima; cuando no las tiene, la seccion sigue teniendo textura en vez
   de quedar como un bloque de color plano. */
.ch-section--parallax {
    min-height: 580px;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--ch-plum);
    background-image: var(--ch-section-texture, url("../images/background/2.jpg"));
    background-position: center;
    background-size: cover;
}
.ch-section--parallax::after { position: absolute; z-index: 1; inset: 0; content: ""; background: rgba(43, 23, 31, .69); }
.ch-countdown { --ch-section-texture: url("../images/background/1.jpg"); }
.ch-event { --ch-section-texture: url("../images/background/4.jpg"); }
.ch-rsvp { --ch-section-texture: url("../images/background/3.jpg"); }

.ch-couple__lead,
.ch-lead p,
.ch-story__lead { max-width: 680px; margin: 22px auto 0; color: var(--ch-ink-soft); font-family: var(--ch-serif); font-size: clamp(1.14rem, 2vw, 1.4rem); }
.ch-lead { text-align: center; }
.ch-lead p { margin-top: 0; }

/* === LOS NOVIOS === */
.ch-couple { text-align: center; }
.ch-couple__pair { display: grid; align-items: start; grid-template-columns: 1fr auto 1fr; gap: clamp(20px, 4vw, 54px); margin-top: 10px; }
.ch-couple__pair--single { grid-template-columns: minmax(0, 520px); justify-content: center; }
.ch-couple__heart { align-self: center; width: clamp(64px, 8vw, 108px); height: auto; margin-top: clamp(60px, 12vw, 150px); object-fit: contain; opacity: .9; animation: chHeartBeat 3.4s ease-in-out infinite; }
.ch-couple__person { display: grid; gap: 22px; }
.ch-couple__portrait { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ch-warm); }
.ch-couple__portrait::after { position: absolute; z-index: 2; inset: 14px; content: ""; border: 1px solid rgba(255, 255, 255, .55); pointer-events: none; }
.ch-couple__portrait picture { display: contents; }
.ch-couple__image { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.ch-couple__person:hover .ch-couple__image { transform: scale(1.045); }
.ch-couple__placeholder { display: grid; height: 100%; align-content: center; justify-items: center; gap: 10px; margin: 0; background: radial-gradient(circle at 50% 38%, #fff 0, var(--ch-warm) 62%, #ece1dc 100%); }
.ch-couple__placeholder-mark { display: grid; width: clamp(84px, 12vw, 122px); aspect-ratio: 1; place-items: center; border: 1px solid var(--ch-aqua); border-radius: 50%; color: var(--ch-aqua-deep); font-family: var(--ch-script); font-size: clamp(2.6rem, 6vw, 4rem); line-height: var(--ch-script-leading); }
.ch-couple__placeholder-copy { color: var(--ch-ink-soft); font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.ch-couple__details h3 { margin: 4px 0 0; color: var(--ch-ink); font-family: var(--ch-script); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 400; line-height: var(--ch-script-leading); }
.ch-couple__bio { max-width: 46ch; margin: 14px 0 0; font-family: var(--ch-serif); font-size: 1.1rem; }
.ch-couple__signature { margin: 18px 0 0; color: var(--ch-aqua-deep); font-family: var(--ch-script); font-size: 2.1rem; line-height: var(--ch-script-leading); opacity: .85; }
.ch-couple__together { position: relative; overflow: hidden; margin: clamp(48px, 7vw, 82px) 0 0; }
.ch-couple__together::after { position: absolute; inset: 16px; content: ""; border: 1px solid rgba(255, 255, 255, .5); pointer-events: none; }
.ch-couple__together picture { display: contents; }
.ch-couple__together-image { width: 100%; max-height: 560px; object-fit: cover; }

/* Cada mitad mira hacia el corazon que las separa. */
@media (min-width: 901px) {
    .ch-couple__person--bride { text-align: right; }
    .ch-couple__person--bride .ch-couple__bio { margin-left: auto; }
    .ch-couple__person--groom { text-align: left; }
}

@keyframes chHeartBeat {
    0%, 100% { transform: scale(1); }
    18% { transform: scale(1.11); }
    36% { transform: scale(1); }
}

.ch-countdown { display: grid; align-items: center; text-align: center; }
.ch-countdown__units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); max-width: 850px; margin: 45px auto 0; padding: 0; list-style: none; }
.ch-countdown__units li { position: relative; padding: 22px 10px 20px; border: 1px solid rgba(255,255,255,.62); background: rgba(50, 28, 37, .35); backdrop-filter: blur(5px); }
.ch-countdown__units li::before { position: absolute; inset: 5px; content: ""; border: 1px solid rgba(255,255,255,.16); pointer-events: none; }
.ch-countdown__units strong { display: block; font-family: var(--ch-serif); font-size: clamp(2.5rem, 5vw, 4.4rem); font-variant-numeric: tabular-nums; line-height: 1; }
.ch-countdown__units span { display: block; margin-top: 9px; color: rgba(255,255,255,.85); font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.ch-story__lead { margin-bottom: 55px; text-align: center; }
.ch-timeline { position: relative; display: grid; gap: 34px; max-width: 980px; margin: 0 auto; padding: 0; list-style: none; }
.ch-timeline::before { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; content: ""; background: linear-gradient(var(--ch-aqua), var(--ch-rose)); transform: translateX(-50%); }
.ch-timeline li { position: relative; width: calc(50% - 48px); }
.ch-timeline li.is-inverted { margin-left: calc(50% + 48px); }
.ch-timeline__year { position: absolute; top: 22px; right: -90px; z-index: 2; display: grid; width: 84px; min-width: 84px; min-height: 54px; place-items: center; padding: 7px 10px; border: 4px solid #fff; border-radius: 999px; color: #fff; background: var(--ch-aqua-deep); box-shadow: 0 0 0 1px var(--ch-aqua); font-family: var(--ch-serif); font-size: .76rem; font-weight: 600; line-height: 1.05; text-align: center; text-wrap: balance; }
.ch-timeline .is-inverted .ch-timeline__year { right: auto; left: -90px; background: var(--ch-rose); box-shadow: 0 0 0 1px var(--ch-rose); }
.ch-timeline__panel { position: relative; overflow: hidden; border: 1px solid var(--ch-line); border-radius: 0 46px 46px 46px; background: #fff; box-shadow: var(--ch-shadow); }
.ch-timeline .is-inverted .ch-timeline__panel { border-radius: 46px 0 46px 46px; }
.ch-timeline__media { overflow: hidden; background: var(--ch-warm); line-height: 0; }
.ch-timeline__media picture { display: block; }
.ch-timeline__image { width: 100%; height: auto; object-fit: contain; transition: filter .35s ease; }
.ch-timeline__panel:hover .ch-timeline__image { filter: saturate(.94) brightness(1.02); }
.ch-timeline__copy { padding: 25px 28px 30px; }
.ch-timeline h3,
.ch-location h3,
.ch-menu h3,
.ch-party h3,
.ch-registry h3 { margin: 0; color: var(--ch-ink); font-family: var(--ch-script); font-size: 2rem; font-weight: 400; line-height: var(--ch-script-leading); }
.ch-timeline p,
.ch-location p,
.ch-menu p,
.ch-party p,
.ch-registry p { margin: 8px 0 0; color: var(--ch-ink-soft); }

/* Un solo destacado de 2x2 y el resto en piezas iguales. Las reglas nth-child
   que habia antes repartian tramos de 2 columnas y dejaban huecos en medio del
   mosaico cuando el numero de fotos no cuadraba. */
.ch-gallery__grid { display: grid; grid-auto-flow: dense; grid-auto-rows: 220px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
.ch-gallery__item { position: relative; display: block; overflow: hidden; background: #d8cfcb; }
.ch-gallery__item--featured { grid-column: span 2; grid-row: span 2; }
.ch-gallery__item picture { display: contents; }
.ch-gallery__image { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .5s ease; }
.ch-gallery__overlay { position: absolute; display: grid; inset: 12px; place-items: center; border: 1px solid rgba(255,255,255,.7); color: #fff; background: rgba(37, 22, 28, .28); font-size: .7rem; font-weight: 700; letter-spacing: .12em; opacity: 0; text-transform: uppercase; transition: opacity .3s ease; }
.ch-gallery__item:hover .ch-gallery__image { transform: scale(1.06); filter: saturate(.78); }
.ch-gallery__item:hover .ch-gallery__overlay,
.ch-gallery__item:focus-visible .ch-gallery__overlay { opacity: 1; }
.ch-lightbox { width: min(980px, calc(100% - 32px)); max-width: none; padding: 18px; border: 1px solid rgba(255,255,255,.2); color: #fff; background: var(--ch-plum); box-shadow: var(--ch-shadow); }
.ch-lightbox::backdrop { background: rgba(24, 13, 18, .88); }
.ch-lightbox img { width: min(760px, 100%); max-height: 72svh; margin: 0 auto; object-fit: contain; }
.ch-lightbox button { min-width: 44px; min-height: 44px; border: 1px solid rgba(255,255,255,.55); color: #fff; background: transparent; cursor: pointer; }
.ch-lightbox [data-ch-lightbox-close] { display: block; margin: 0 0 10px auto; }
.ch-lightbox [data-ch-lightbox-prev] { float: left; margin-top: 24px; }
.ch-lightbox [data-ch-lightbox-next] { float: right; margin-top: 24px; }

.ch-event { display: grid; align-items: center; }
.ch-event__content { width: min(1040px, 100%); margin: 0 auto; }
.ch-menu__grid,
.ch-party__grid,
.ch-registry__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 42px; }
.ch-registry__grid[data-count="1"] { width: min(100%, 720px); grid-template-columns: minmax(0, 1fr); margin-right: auto; margin-left: auto; }
.ch-location,
.ch-menu__grid article,
.ch-party__grid article,
.ch-registry__card { position: relative; padding: 32px; border: 1px solid var(--ch-line); background: rgba(255,255,255,.93); }
.ch-location::before,
.ch-menu__grid article::before,
.ch-party__grid article::before,
.ch-registry__card::before { position: absolute; inset: 7px; content: ""; border: 1px solid rgba(34,184,178,.22); pointer-events: none; }

/* Dos sedes no pueden quedar apretadas a la izquierda de una rejilla de tres
   columnas: `auto-fit` reparte el ancho entre las que existan y el ancho
   maximo evita que una sola sede se estire de lado a lado. */
.ch-location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 22px;
    width: min(100%, 880px);
    margin: 42px auto 0;
}
.ch-location-grid[data-ch-count="1"] { width: min(100%, 440px); }
.ch-location {
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: 42px 32px 34px;
    text-align: center;
    box-shadow: var(--ch-shadow);
}
.ch-location__type { margin: 0 0 12px; color: var(--ch-aqua-deep); font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.ch-location h3 { text-wrap: balance; }
.ch-location__address { margin-top: 12px; }
.ch-location__note { margin-top: 10px; font-family: var(--ch-serif); font-size: 1.02rem; font-style: italic; }
.ch-location__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; border-top: 1px solid var(--ch-line); margin: auto 0 0; padding-top: 20px; }
.ch-text-link { position: relative; z-index: 1; display: inline-block; margin-top: 17px; color: var(--ch-aqua-deep); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-decoration-thickness: 1px; text-underline-offset: 5px; text-transform: uppercase; }
.ch-location__actions .ch-text-link { margin-top: 0; }
.ch-sr-only { position: absolute; overflow: hidden; width: 1px; height: 1px; padding: 0; border: 0; margin: -1px; clip-path: inset(50%); white-space: nowrap; }

.ch-agenda { text-align: center; }
.ch-agenda ol { position: relative; display: grid; gap: 0; max-width: 850px; margin: 45px auto 0; padding: 0; list-style: none; text-align: left; }
.ch-agenda li { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.ch-agenda time { color: #75ded9; font-family: var(--ch-serif); font-size: 1.05rem; font-weight: 600; }
.ch-agenda h3 { margin: 0; color: #fff; font-family: var(--ch-script); font-size: 2.2rem; font-weight: 400; line-height: var(--ch-script-leading); }
.ch-agenda p { margin: 7px 0 0; color: rgba(255,255,255,.76); }
.ch-agenda .ch-agenda__place { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; color: #75ded9; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ch-agenda__place::before { width: 18px; height: 1px; content: ""; background: currentColor; }
.ch-menu,
.ch-party,
.ch-registry,
.ch-faq { text-align: center; }
.ch-menu__grid article { min-height: 210px; padding-top: 47px; }
.ch-menu__grid article::after { display: block; width: 36px; height: 1px; margin: 20px auto 0; content: ""; background: var(--ch-rose); }
.ch-party__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ch-party__grid article { padding-top: 38px; text-align: center; }
.ch-party__grid span,
.ch-registry__monogram { display: grid; width: 68px; height: 68px; place-items: center; margin: 0 auto 17px; border: 1px solid var(--ch-aqua); border-radius: 50%; color: var(--ch-aqua-deep); background: #fff; font-family: var(--ch-script); font-size: 1.7rem; }
.ch-faq { max-width: 850px; }
.ch-faq details { text-align: left; border-bottom: 1px solid var(--ch-line); }
.ch-faq summary { position: relative; padding: 22px 50px 22px 0; color: var(--ch-ink); font-family: var(--ch-serif); font-size: 1.35rem; font-weight: 700; cursor: pointer; list-style: none; }
.ch-faq summary::after { position: absolute; top: 50%; right: 10px; content: "+"; color: var(--ch-aqua-deep); font-size: 1.5rem; transform: translateY(-50%); }
.ch-faq details[open] summary::after { content: "−"; }
.ch-faq p { max-width: 680px; margin: 0 0 22px; color: var(--ch-ink-soft); }

.ch-rsvp { display: grid; min-height: 780px; align-items: center; }
.ch-rsvp__inner { width: min(820px, 100%); margin: 0 auto; text-align: center; }
.ch-rsvp__notice { max-width: 600px; margin: 20px auto; padding: 13px 18px; border: 1px solid rgba(255,255,255,.45); color: #fff; background: rgba(55, 31, 40, .48); }
.ch-rsvp__form { margin-top: 35px; padding: 38px; border: 1px solid rgba(255,255,255,.52); background: rgba(57, 32, 42, .66); text-align: left; backdrop-filter: blur(8px); }
body.template-couple-heart.has-showroom-bar .ch-rsvp__form { padding-bottom: calc(var(--showroom-bar-height, 148px) + 24px); }
.ch-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ch-field { display: grid; align-content: start; gap: 7px; }
.ch-field[hidden] { display: none; }
.ch-field__label { color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.ch-field__optional { color: rgba(255,255,255,.68); font-weight: 400; letter-spacing: .04em; text-transform: none; }
.ch-form-grid input,
.ch-form-grid select,
.ch-form-grid textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.56); border-radius: 0; color: var(--ch-ink); background: rgba(255,255,255,.95); transition: border-color .2s ease, box-shadow .2s ease; }
.ch-form-grid input:focus-visible,
.ch-form-grid select:focus-visible,
.ch-form-grid textarea:focus-visible { border-color: var(--ch-aqua); box-shadow: 0 0 0 3px rgba(34, 184, 178, .35); outline: none; }
.ch-form-grid textarea { resize: vertical; }
.ch-form-grid__wide { grid-column: 1 / -1; }
.ch-field__hint { margin: 0; color: rgba(255,255,255,.7); font-size: .7rem; font-variant-numeric: tabular-nums; text-align: right; }
.ch-field__error { display: flex; align-items: flex-start; gap: 7px; margin: 0; color: #ffd4dd; font-size: .78rem; }
.ch-field__error[hidden] { display: none; }
.ch-field__error::before { content: "!"; display: grid; width: 16px; height: 16px; flex: none; margin-top: 2px; place-items: center; border-radius: 50%; color: var(--ch-plum); background: #ffd4dd; font-size: .62rem; font-weight: 700; }
.ch-field.has-error input,
.ch-field.has-error select,
.ch-field.has-error textarea { border-color: #ffd4dd; box-shadow: 0 0 0 2px rgba(255, 212, 221, .35); }
.ch-form-alert { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 13px 17px; border: 1px solid #ffd4dd; color: #fff; background: rgba(201, 86, 116, .32); font-size: .88rem; }
.ch-form-alert.is-success { border-color: #75ded9; background: rgba(17, 141, 137, .42); }
.ch-form-alert[hidden] { display: none; }
.ch-rsvp .ch-button { display: flex; width: 100%; margin-top: 20px; border-color: var(--ch-aqua); background: var(--ch-aqua-deep); }
.ch-rsvp__summary { margin-top: 30px; padding: 32px; border: 1px solid rgba(255,255,255,.55); background: rgba(57, 32, 42, .66); }
.ch-rsvp__summary h3 { margin: 0; color: #fff; font-family: var(--ch-script); font-size: 2.7rem; font-weight: 400; }
.ch-rsvp__summary .ch-text-link { border: 0; color: #75ded9; background: none; cursor: pointer; }

.ch-registry__card { text-align: center; }
.ch-registry__media { position: relative; z-index: 1; display: grid; overflow: hidden; aspect-ratio: 4 / 3; place-items: center; margin-bottom: 20px; border: 1px solid var(--ch-line); background: var(--ch-cream); }
.ch-registry__media picture { display: contents; }
.ch-registry__media .ch-registry__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.ch-registry__media-action { position: absolute; z-index: 2; right: 10px; bottom: 10px; padding: 7px 10px; color: #fff; background: rgba(75, 38, 53, .88); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ch-registry__media:hover .ch-registry__image,
.ch-registry__media:focus-visible .ch-registry__image { transform: scale(1.025); }
.ch-registry__bank-lines { display: grid; gap: 8px; margin: 20px 0 0; text-align: left; }
.ch-registry__bank-lines div { display: grid; grid-template-columns: minmax(78px, .6fr) 1.4fr; gap: 12px; padding-top: 8px; border-top: 1px solid var(--ch-line); }
.ch-registry__bank-lines dt { color: var(--ch-ink-soft); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.ch-registry__bank-lines dd { margin: 0; color: var(--ch-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ch-registry__copy { position: relative; z-index: 1; width: 100%; margin-top: 20px; }
.ch-registry__copy-status { display: block; min-height: 1.5em; margin-top: 10px; color: var(--ch-aqua-deep); font-size: .78rem; font-weight: 600; }

.ch-footer { position: relative; padding: 80px 20px 72px; color: rgba(255,255,255,.76); background: #33212a; text-align: center; }
.ch-footer::before { position: absolute; top: 0; right: 0; left: 0; height: 4px; content: ""; background: linear-gradient(90deg, var(--ch-aqua), var(--ch-rose)); }
.ch-footer p { margin: 0 0 8px; }
.ch-footer a { color: #75ded9; }
.ch-footer__names { color: #fff; font-family: var(--ch-script); font-size: clamp(3.3rem, 7vw, 5.2rem); line-height: var(--ch-script-leading); }
.ch-footer__ornament { width: 155px; margin: 10px auto 24px; filter: invert(1); opacity: .65; }
/* Misma firma que templates/partials/branding.php, con la voz de este diseño. */
/* En bloque y centrada: como `inline-grid` se pegaba al correo de contacto. */
.ch-footer__brand { display: grid; width: fit-content; justify-items: center; gap: 5px; margin: 34px auto 0; padding: 6px 10px; color: inherit; text-decoration: none; }
.ch-footer__brand-label { font-size: .66rem; font-weight: 600; letter-spacing: .2em; opacity: .85; text-transform: uppercase; }
.ch-footer__brand-mark { padding-bottom: 2px; border-bottom: 1px solid transparent; color: #75ded9; font-size: .95rem; font-weight: 600; letter-spacing: .07em; transition: border-color .25s ease; }
.ch-footer__brand:hover .ch-footer__brand-mark,
.ch-footer__brand:focus-visible .ch-footer__brand-mark { border-bottom-color: currentColor; }

.ch-to-top {
    position: fixed;
    z-index: 45;
    right: clamp(16px, 3vw, 34px);
    bottom: calc(clamp(16px, 3vw, 34px) + var(--showroom-bar-height, 0px));
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid var(--ch-aqua);
    border-radius: 50%;
    color: #fff;
    background: var(--ch-aqua-deep);
    box-shadow: 0 12px 28px rgba(55, 38, 45, .28);
    cursor: pointer;
    transition: transform .25s ease, background .25s ease, opacity .25s ease;
}
.ch-to-top[hidden] { display: none; }
.ch-to-top:hover { background: var(--ch-rose); border-color: var(--ch-rose); transform: translateY(-3px); }
.ch-to-top__arrow { width: 11px; height: 11px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(2px) rotate(-45deg); }

.ch-reveal { opacity: 0; transform: translate3d(0, 35px, 0); transition: opacity .75s ease var(--ch-reveal-delay, 0ms), transform .75s cubic-bezier(.2,.7,.2,1) var(--ch-reveal-delay, 0ms); }
.ch-reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }

@keyframes chHeroTextReveal {
    from { opacity: 0; transform: translate3d(0, 30px, 0) scale(.97); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes chScrollCue {
    0% { opacity: 0; transform: translateY(0); }
    45% { opacity: 1; }
    100% { opacity: 0; transform: translateY(16px); }
}

/* 1024px es el ancho medido en el que caben la marca y los once enlaces que
   puede llegar a tener la invitacion. Por debajo se usa el boton de menu. */
@media (min-width: 1025px) {
    .ch-nav__links[hidden] { display: flex; }
}

@media (max-width: 1024px) {
    .ch-nav { min-height: 70px; }
    .ch-menu-toggle { display: inline-flex; }
    .ch-menu-toggle__icon { width: 16px; height: 11px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
    /* En columna el `justify-content: flex-end` de la barra empujaria los
       enlaces contra el borde derecho del desplegable. */
    .ch-nav__links { position: absolute; top: calc(100% + 1px); right: 20px; left: 20px; display: grid; justify-content: stretch; justify-items: start; gap: 0; padding: 10px 20px; border: 1px solid var(--ch-line); background: #fff; box-shadow: var(--ch-shadow); }
    .ch-nav__links[hidden] { display: none; }
    .ch-nav__links a { padding: 12px 2px; font-size: .72rem; }
    .ch-nav__links a::after { bottom: 6px; }
    .ch-hero { min-height: min(760px, calc(100svh - 70px)); }
}

@media (max-width: 900px) {
    .ch-party__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ch-gallery__grid { grid-auto-rows: 190px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ch-couple__pair { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .ch-couple__heart { justify-self: center; margin-top: 0; }
    .ch-couple__bio { margin-inline: auto; }
    .ch-menu__grid,
    .ch-registry__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .ch-nav { width: min(100% - 28px, 1180px); }
    .ch-brand__text { font-size: 2rem; }
    .ch-brand__tagline { display: none; }
    .ch-hero__frame { inset: 14px; }
    .ch-hero__content { width: calc(100% - 34px); margin: 52px auto 80px; padding: 40px 14px; }
    .ch-hero h1 { font-size: clamp(4.3rem, 21vw, 6.5rem); }
    .ch-hero__date { font-size: 1rem; }
    .ch-carousel-controls { right: 24px; bottom: 25px; }
    .ch-carousel-controls p { display: none; }
    .ch-hero__scroll { display: none; }
    .ch-section { width: min(100% - 32px, 1120px); padding-top: 78px; padding-bottom: 78px; }
    .ch-section--warm,
    .ch-section--ink,
    .ch-section--parallax { width: auto; padding-right: 16px; padding-left: 16px; }
    .ch-section h2 { font-size: clamp(3.25rem, 17vw, 5rem); }
    .ch-countdown__units { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ch-timeline { gap: 28px; padding-left: 78px; }
    .ch-timeline::before { left: 36px; }
    .ch-timeline li,
    .ch-timeline li.is-inverted { width: 100%; margin-left: 0; }
    .ch-timeline__year,
    .ch-timeline .is-inverted .ch-timeline__year { top: 22px; right: auto; left: -78px; width: 72px; min-width: 72px; min-height: 48px; padding: 6px 7px; border-width: 3px; font-size: .66rem; }
    .ch-timeline__panel,
    .ch-timeline .is-inverted .ch-timeline__panel { border-radius: 0 32px 32px 32px; }
    .ch-timeline__copy { padding: 22px; }
    .ch-gallery__grid { grid-auto-rows: 155px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .ch-location-grid,
    .ch-menu__grid,
    .ch-party__grid,
    .ch-registry__grid,
    .ch-form-grid { grid-template-columns: 1fr; }
    .ch-location { padding: 32px 24px 28px; }
    .ch-couple__signature { font-size: 1.75rem; }
    .ch-agenda li { grid-template-columns: 1fr; gap: 8px; }
    .ch-form-grid__wide { grid-column: auto; }
    .ch-rsvp__form { padding: 25px 20px; }
    .ch-section-backdrop { inset: 0; }
    .ch-section-backdrop__image { height: 100%; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .template-couple-heart *,
    .template-couple-heart *::before,
    .template-couple-heart *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
    .ch-reveal { opacity: 1; transform: none; }
    .ch-section-backdrop__image { transform: none; }
    .ch-couple__heart { animation: none; }
    .ch-couple__person:hover .ch-couple__image { transform: none; }
}
