/*
 * Lucía & Juan · Invitación Web Editorial
 * Sin frameworks. El layout usa grid/flex, tipografía fluida, breakpoints de composición
 * y activos SVG independientes. Todos los textos, fechas y botones son HTML.
 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; background: radial-gradient(ellipse at 10% 8%, #f4ede6 0%, transparent 40%), var(--color-page); color: var(--color-ink); font: 400 var(--font-size-body)/1.5 var(--font-editorial); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--color-terracotta); outline-offset: 4px; }
.skip-link { position: absolute; z-index: 100; background: #fff; color: #000; padding: 8px 18px; top: -80px; left: 10px; }
.skip-link:focus { top: 9px; }
.topbar { height: 74px; position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: var(--page-width); margin: auto; padding: 0 24px; font-family: var(--font-interface); font-size: .73rem; letter-spacing: .035em; }
.monogram { text-decoration: none; font-family: var(--font-display); color: var(--color-olive-dark); font-size: 2.1rem; white-space: nowrap; line-height: 1; }
.topbar__links { display: flex; align-items: center; gap: clamp(15px, 2vw, 30px); }
.topbar__links a { text-decoration: none; transition: color .2s; }
.topbar__links a:hover { color: var(--color-olive); text-decoration: underline; text-underline-offset: 5px; }
.topbar__cta { font-weight: 600; text-decoration: none; padding: 10px 16px; border: 1px solid var(--color-olive); color: var(--color-olive); text-transform: uppercase; font-size: .68rem; letter-spacing: .11em; }
.layout { max-width: var(--page-width); margin: 0 auto; padding: 0 clamp(12px, 2vw, 26px) 24px; }
.invitation { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--panel-gap); align-items: stretch; }
.paper { background: var(--color-paper); min-width: 0; position: relative; overflow: hidden; box-shadow: var(--shadow-panel); display: flex; flex-direction: column; }
.section-padding { padding: var(--section-pad-block) var(--section-pad-inline); position: relative; }
.hero { position: relative; height: clamp(530px, 52vw, 720px); display: flex; align-items: end; isolation: isolate; background: #a99578; overflow: hidden; }
.hero__image, .hero__image img, .hero__veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__image img { object-fit: cover; object-position: 50% 25%; }
.hero__veil { background: linear-gradient(180deg, transparent 15%, rgba(42,34,26,.06) 37%, rgba(25,23,19,.62) 78%, rgba(25,23,19,.69)); }
.hero__copy { color: white; width: 100%; position: relative; z-index: 2; padding: 0 16px clamp(94px, 10vw, 126px); text-align: center; text-shadow: 0 2px 18px rgba(25,18,12,.24); }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 16px; letter-spacing: .32em; text-transform: uppercase; font-size: .85rem; font-weight: 500; }
.eyebrow--light { color: #fff9ef; }
.rule { width: 35px; height: 1px; background: currentColor; opacity: .74; }
.hero h1 { font: 400 clamp(5.4rem, 9.2vw, 8.2rem)/.88 var(--font-display); margin: 22px -16px 13px; white-space: nowrap; letter-spacing: -.04em; }
.hero__amp { font-size: .68em; }
.hero__date { margin: 0; font: 500 clamp(1rem,1.6vw,1.35rem)/1 var(--font-editorial); letter-spacing: .36em; }
.hero__heart { width: 28px; margin: 25px auto 0; filter: brightness(0) invert(1); }
.hero__wave { width: 105%; max-width: none; position: absolute; z-index: 3; bottom: -1px; left: -2.5%; pointer-events: none; height: clamp(65px, 7vw, 102px); }
.section-kicker,.section-heading { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: center; font: 600 .88rem/1.3 var(--font-editorial); letter-spacing: .24em; text-transform: uppercase; margin: 0; }
.section-kicker>span, .section-heading>span { display: block; flex: 1; max-width: 100px; height: 1px; background: var(--color-line); }
.section-heading { font-size: 1.38rem; letter-spacing: .18em; }
.countdown { text-align: center; padding-top: 30px; padding-bottom: 30px; }
.counter { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(6px, 1vw, 14px); margin: 28px auto 25px; position: relative; z-index: 1; max-width: 430px; }
.counter__unit { background: linear-gradient(145deg, #f2eee3, #eae8d8); padding: 13px 2px 11px; min-width: 0; }
.counter__unit strong { display: block; font: 500 clamp(1.6rem, 3.6vw, 2.55rem)/1 var(--font-editorial); color: var(--color-olive-dark); font-variant-numeric: lining-nums tabular-nums; }
.counter__unit small { display: block; margin-top: 6px; color: var(--color-ink); font: 600 clamp(.59rem, 1.05vw, .72rem)/1 var(--font-interface); letter-spacing: .07em; text-transform: uppercase; }
.countdown__message { text-transform: uppercase; letter-spacing: .15em; font: 500 1rem/1.4 var(--font-editorial); margin: 0; }
.botanical-divider { width: 130px; height: 34px; object-fit: contain; margin: 10px auto 6px; }
.botanical-divider--small { margin-bottom: 22px; }
.date-badge { width: max-content; max-width: 100%; margin: 18px auto 0; display: flex; align-items: center; gap: 12px; background: linear-gradient(90deg,#e4e8d8,#f0e9da); padding: 10px 23px; color: var(--color-ink); font: 600 .95rem/1.1 var(--font-editorial); letter-spacing: .08em; text-transform: uppercase; }
.date-badge img { width: 25px; height: 25px; }
.decoration { position: absolute; pointer-events: none; user-select: none; }
.decoration--left { width: 110px; left: -40px; bottom: -10px; opacity: .4; transform: rotate(-3deg); }
.locations { padding-top: 24px; padding-bottom: 32px; text-align: center; }
.location-card { position: relative; z-index: 1; }
.location-card__icon { width: 41px; height: 41px; margin: 0 auto 8px; }
.location-card h2 { text-transform: uppercase; letter-spacing: .15em; font: 600 1.52rem/1.1 var(--font-editorial); margin: 0 0 9px; }
.location-card p { margin: 2px 0; font: 500 1.07rem/1.18 var(--font-editorial); }
.location-card .location-card__time { color: var(--color-olive-dark); font-size: 1.14rem; }
.location-card .location-card__address { font-size: .93rem; color: var(--color-muted); }
.action { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--color-olive); min-height: 40px; padding: 9px 24px; color: var(--color-olive-dark); font: 600 .73rem/1.1 var(--font-interface); text-transform: uppercase; letter-spacing: .07em; text-decoration: none; transition: background .18s ease, transform .18s ease, color .18s ease; }
.action:hover { background: #e6e9dd; transform: translateY(-1px); }
.action img { width: 18px; height: 18px; }
.action--outline { background: transparent; }
.action--solid, .action--primary { background: var(--color-olive); color: white; }
.action--solid img, .action--primary img { filter: grayscale(1) brightness(0) invert(1); }
.action--solid:hover, .action--primary:hover { background: var(--color-olive-dark); }
.location-card .action { margin-top: 15px; min-width: 190px; }
.countdown .action { margin-top: 16px; }
.separator { margin: 21px auto; display: flex; align-items: center; gap: 15px; justify-content: center; color: var(--color-olive); font-size: 1.25rem; line-height: 1; }
.separator::before,.separator::after { content:""; width: min(25%,110px); border-top: 1px solid var(--color-line); }
.decoration--corner { width: 180px; bottom: -72px; left: -73px; opacity: .62; transform: rotate(-40deg); }
.field-outro { height: 165px; overflow: hidden; position: relative; margin-top: auto; background: #d0ae8c; }
.field-outro>img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; filter: sepia(.07) saturate(.85); }
.field-outro__wave { position: absolute; width: 105%; left: -2%; top: -1px; transform: scaleY(-1); height: 77px; }
.paper--second { justify-content: flex-start; }
.schedule { padding-top: 55px; padding-bottom: 25px; flex: 0 0 auto; }
.schedule__intro { margin: 13px auto 18px; font: italic 1.1rem/1.2 var(--font-editorial); color: var(--color-muted); text-align: center; }
.decoration--schedule { top: -80px; right: -85px; width: 240px; opacity: .57; transform: rotate(35deg); }
.timeline { list-style: none; padding: 8px 0 7px; margin: 10px auto 0; max-width: 370px; display: grid; gap: 0; position: relative; }
.timeline::before { content:""; position: absolute; background: var(--color-olive); opacity:.55; width: 1px; top: 49px; bottom: 49px; left: 32px; }
.timeline__item { display: grid; grid-template-columns: 65px 1fr; gap: 23px; align-items: center; min-height: 75px; position: relative; }
.timeline__item::after { content:""; position:absolute; width: 5px; height:5px; left:30px; top:calc(50% + 32px); border-radius:50%; background:var(--color-olive); }
.timeline__item:last-child::after{display:none;}
.timeline__icon { border-radius: 50%; width: 65px; height: 65px; background: #eee6d8; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.timeline__icon img { width: 32px; height: 32px; }
.timeline__item>div { display: flex; flex-direction: column; }
.timeline__item time { font: 600 1.2rem/1.1 var(--font-editorial); }
.timeline__item div span { font: 400 1.22rem/1.16 var(--font-editorial); }
.couple-photo { position: relative; width: 100%; height: clamp(270px, 27vw, 355px); margin: 0; overflow: hidden; background: #d2a888; }
.couple-photo>img:first-child { height: 100%; width: 100%; object-fit: cover; object-position: center 46%; filter: saturate(.8); }
.couple-photo__wave-top,.couple-photo__wave-bottom { position: absolute; left: -2%; width: 104%; height: 50px; }
.couple-photo__wave-top { top: -2px; transform: scaleY(-1); }
.couple-photo__wave-bottom { bottom: -2px; }
.community { text-align: center; padding-top: 18px; padding-bottom: 28px; }
.social-section { position: relative; z-index: 1; max-width: 380px; margin: 0 auto; }
.feature-icon { width: 37px; height: 37px; margin: 0 auto 7px; }
.social-section h2 { margin: 0 0 8px; font: 600 1.42rem/1.1 var(--font-editorial); text-transform: uppercase; letter-spacing: .18em; }
.social-section p { margin: 0 auto 18px; font: 400 1.11rem/1.24 var(--font-editorial); max-width: 340px; }
.social-section .action { min-width: 205px; }
.community .separator { margin: 26px auto; }
.decoration--social { right: -80px; bottom: -120px; width: 180px; opacity: .52; transform: rotate(17deg); }
.rsvp { padding-top: 27px; padding-bottom: 36px; text-align: center; background: linear-gradient(180deg, transparent 15%, #f2ede2 100%); }
.rsvp h2 { font: 400 clamp(2.8rem, 5vw, 4.2rem)/.95 var(--font-display); color: var(--color-olive-dark); margin: 18px auto 10px; }
.rsvp>p:not(.section-kicker) { margin: 0 auto 20px; max-width: 370px; font: 400 1.14rem/1.2 var(--font-editorial); }
.rsvp .action { min-width: 270px; min-height: 46px; }
.rsvp .rsvp__footnote { font: 500 .7rem/1.4 var(--font-interface) !important; color: var(--color-muted); letter-spacing: .04em; margin-top: 13px !important; }
.invitation-footer { margin-top: auto; padding: 18px 20px 40px; text-align: center; }
.invitation-footer>img { width: 136px; height: 38px; object-fit: contain; margin: 0 auto 1px; }
.invitation-footer__script { font: 400 3.8rem/.9 var(--font-display); margin: 0; color: var(--color-olive-dark); }
.invitation-footer__tiny { font: 500 .73rem/1.1 var(--font-interface); letter-spacing: .15em; text-transform: uppercase; margin: 14px 0 0; }
.page-footer { max-width: var(--page-width); margin: 0 auto; padding: 10px 30px 24px; display: flex; gap: 16px; align-items: center; justify-content: space-between; font: 500 .66rem/1.4 var(--font-interface); color: #77716a; }
.page-footer a { text-decoration: none; }
.page-footer a:hover { text-decoration: underline; }
/* Tablet / escritorio intermedio: cambia completamente la composición, no solo escala. */
@media (min-width:760px) and (max-width:1100px) {
 :root { --section-pad-inline: clamp(35px, 6vw, 68px); --section-pad-block: 38px; }
 .topbar { height: 69px; }
 .invitation { grid-template-columns: minmax(0,1fr); gap: 0; }
 .paper { box-shadow: 0 6px 22px rgba(56,45,30,.07); }
 .paper--first { display: grid; grid-template-columns: 1fr 1fr; }
 .hero { grid-column: 1/-1; height: 490px; }
 .hero__image img { object-position: center 35%; }
 .hero__copy { text-align: left; padding: 0 0 80px 9%; width: 70%; }
 .hero .eyebrow { justify-content: flex-start; }
 .hero h1 { font-size: clamp(5.8rem, 9vw, 7rem); }
 .hero__heart { margin-left: 23%; }
 .hero__wave { height: 88px; }
 .countdown { grid-column: 1; display:flex; flex-direction:column; justify-content:center; }
 .counter { width:100%; }
 .counter__unit strong {font-size: 2rem;}
 .locations { grid-column:2; padding-top: 34px; padding-bottom: 34px; background: #f7f3ed; }
 .location-card__icon {width:33px;height:33px;margin-bottom:6px}
 .location-card h2{font-size:1.36rem}
 .location-card p{font-size:1.01rem}
 .location-card .action{min-width:170px;margin-top:9px}
 .locations .separator{margin: 14px auto;}
 .field-outro {grid-column:1/-1;height:140px}
 .schedule {padding-top:45px; padding-bottom:26px;}
 .timeline {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));max-width:none;gap:2px;margin-top:20px;}
 .timeline::before {width:calc(100% - 12%);height:1px;top:32px;left:6%;bottom:auto;}
 .timeline__item {display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;min-height:135px;}
 .timeline__item::after {display:none;}
 .timeline__icon {width:65px;height:65px;}
 .timeline__item time {font-size:1.1rem;}
 .timeline__item div span {font-size:1.07rem;}
 .couple-photo {height:330px}
 .community {display:grid;grid-template-columns:1fr 1fr;gap:35px;padding-top:40px;padding-bottom:40px;}
 .community .separator {position:absolute;left:50%;height:75%;margin:0;top:12.5%;transform:translateX(-50%);}
 .community .separator:before{width:1px;height:100%;border:none;background:var(--color-line)}
 .community .separator:after,.community .separator span{display:none}
 .social-section {max-width:340px}
 .rsvp {padding: 35px 25px}
 .invitation-footer {padding-bottom:35px}
}
/* Teléfono: narrativa vertical, contenido en columnas y controles cómodos. */
@media (max-width:759px) {
 :root { --section-pad-inline: clamp(23px, 7vw, 37px); --section-pad-block: 34px; }
 html {scroll-padding-top:58px}
 .topbar {height:58px;padding:0 18px;gap:10px;background:var(--color-paper);}
 .topbar__links {display:none;}
 .topbar__cta {font-size:.62rem;padding:8px 11px}
 .monogram {font-size:1.82rem}
 .layout {padding:0;}
 .invitation {grid-template-columns:minmax(0,1fr);gap:0;}
 .paper {box-shadow:none;}
 .hero {height: min(740px, 124svh); min-height: 460px;}
 .hero__image img {object-position:center 28%;}
 .hero__veil {background:linear-gradient(180deg, transparent 5%, rgba(35,30,22,.10) 32%, rgba(27,23,19,.69) 83%, rgba(27,23,19,.72));}
 .hero__copy {padding-bottom: 85px;}
 .eyebrow {font-size:.7rem;letter-spacing:.27em;gap:10px;}
 .rule {width:25px;}
 .hero h1 {font-size:clamp(4.7rem, 14.5vw, 7.5rem);margin:20px -10px 11px;}
 .hero__date {font-size:1rem;}
 .hero__heart {width:23px;margin-top:17px}
 .hero__wave {height:70px;}
 .countdown {padding-top:24px;padding-bottom:28px;}
 .counter {margin:23px auto;gap:7px;}
 .counter__unit {padding:11px 2px;}
 .counter__unit strong {font-size:clamp(1.45rem,6vw,2.15rem)}
 .counter__unit small {font-size:clamp(.54rem,2vw,.66rem)}
 .countdown__message {font-size:.99rem;}
 .date-badge {margin-top:10px;padding:10px 15px;font-size:.85rem}
 .date-badge img {width:23px;}
 .locations {padding-top:32px;padding-bottom:30px;}
 .field-outro {height:140px}
 .schedule {padding-top:46px;padding-bottom:17px;}
 .section-heading {font-size:clamp(1.1rem,4.2vw,1.45rem);}
 .timeline {max-width:320px;margin-top:15px;}
 .timeline__item {min-height:74px;}
 .timeline__item time{font-size:1.24rem}
 .timeline__item div span{font-size:1.24rem}
 .couple-photo {height:clamp(265px,60vw,390px)}
 .community {padding-top:28px;padding-bottom:34px;}
 .social-section h2 {font-size:1.45rem}
 .social-section p {font-size:1.15rem;}
 .rsvp {padding-top:36px;padding-bottom:36px;}
 .rsvp h2 {font-size:3.45rem;}
 .invitation-footer {padding-top:15px;padding-bottom:35px;}
 .page-footer {padding:12px 22px 20px;font-size:.6rem;}
}
@media (max-width:359px) {
 :root { --section-pad-inline: 17px; }
 .hero {min-height:430px;height:118svh;max-height:590px;}
 .hero h1 {font-size:4.55rem;}
 .topbar__cta {font-size:.58rem}
 .counter {gap:5px}
 .counter__unit strong {font-size:1.44rem}
 .date-badge{font-size:.76rem}
 .section-heading {letter-spacing:.11em}
 .timeline__item {grid-template-columns:58px 1fr;gap:17px}
 .timeline__icon{width:58px;height:58px}
 .timeline::before{left:28px}
 .rsvp .action{min-width:0;width:100%}
 .invitation-footer__script{font-size:3.3rem}
}
@media (prefers-reduced-motion: reduce) {
 html {scroll-behavior:auto}
 .action {transition:none}
}
