/* =========================================================
   CONFIRMAME.CL · Landing
   Concepto: neutro y moderno. Papel claro, tinta grafito,
   el sello terracota solo como acento de marca.
   (pedido.php también usa estas variables y clases)
   ========================================================= */
:root {
  --paper: #F7F6F3; --paper2: #EFEDE8; --surface: #FFFFFF;
  --ink: #151413; --muted: #6F6B65; --line: #E2DFD9;
  --wax: #A9482A; --wax-dark: #8C3A21;
  --night: #151413; --night2: #1E1D1B; --cream: #F7F6F3; --gold: #D8B58C;
  --serif: "Cormorant Garamond", Georgia, serif; --sans: "Jost", system-ui, sans-serif;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.eyebrow { font: 500 .7rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.06; letter-spacing: -.01em; margin-bottom: 2.4rem; }
.muted { color: var(--muted); }
.tiny { font-size: .78rem; color: var(--muted); }

/* sello de marca */
.seal { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%; color: #F6E9DD; font: 500 1.05rem var(--serif); flex: none;
  background: radial-gradient(circle at 35% 30%, #C9693F, #A2482A 60%, #8C3C22); box-shadow: inset 0 -2px 4px rgba(0,0,0,.2); }
.seal.big { width: 64px; height: 64px; font-size: 2rem; box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--line), inset 0 -3px 6px rgba(0,0,0,.2); }
.seal:empty::before { content: ""; width: 52%; height: 52%; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.wm { white-space: nowrap; }
.tld { color: var(--wax); }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem 1.7rem; border-radius: 999px; font: 500 .76rem var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .2s, background .3s, color .3s, border-color .3s, box-shadow .3s; }
.btn:focus-visible { outline: 2px solid var(--wax); outline-offset: 3px; }
.btn-wax { background: var(--ink); color: var(--paper); box-shadow: 0 12px 28px -14px rgba(21,20,19,.55); }
.btn-wax:hover { background: #000; transform: translateY(-1px); }
.btn-line { border-color: rgba(21,20,19,.28); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); background: var(--surface); }
.btn-sm { padding: .62rem 1.05rem; font-size: .68rem; }
.wide { width: 100%; }

/* navegación */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 18px clamp(20px, 4vw, 48px); color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 400 1.5rem var(--serif); text-decoration: none; min-width: 0; }
.nav nav { display: flex; align-items: center; gap: 1.6rem; font-size: .88rem; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) { .nav nav a:not(.btn) { display: none; } }
@media (max-width: 380px) { .brand { font-size: 1.25rem; } .nav .btn-sm { padding: .55rem .8rem; letter-spacing: .08em; } }

/* portada */
.hero { position: relative; background: radial-gradient(70% 60% at 78% 45%, #FFFFFF 0, rgba(255,255,255,0) 70%), linear-gradient(180deg, #FFFFFF 0, var(--paper) 100%);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding: clamp(8.5rem, 16vh, 10.5rem) clamp(20px, 6vw, 90px) clamp(4rem, 8vh, 6rem); border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.02; font-weight: 300; letter-spacing: -.015em; }
.hero h1 em { display: block; color: var(--wax); font-style: italic; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 34rem; margin: 1.6rem 0 2.2rem; }
.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.trust { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; gap: .6rem 1.4rem; flex-wrap: wrap; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.trust li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--wax); margin: 0 .55rem .15rem 0; }
.hero-phone { display: flex; justify-content: center; min-width: 0; }
.phone { width: 300px; max-width: 100%; height: 620px; border-radius: 44px; background: var(--ink); padding: 11px; position: relative; flex: none; overflow: hidden;
  box-shadow: 0 50px 90px -40px rgba(21,20,19,.55), 0 0 0 1px rgba(21,20,19,.08); }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 12px; background: var(--ink); z-index: 2; }
.phone iframe { width: 390px; height: 838px; border: 0; border-radius: 34px; transform: scale(.7128); transform-origin: 0 0; background: var(--paper); pointer-events: none; display: block; }
.phone-ph { height: 100%; border-radius: 34px; background: var(--paper); display: grid; place-content: center; justify-items: center; text-align: center; gap: 1rem; color: var(--muted); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 8rem; } .hero-phone { margin-top: 1rem; } }

/* franja */
.band { background: var(--paper2); padding: 3.2rem 20px; text-align: center; border-bottom: 1px solid var(--line); }
.band p { font: italic 300 clamp(1.4rem, 3.4vw, 2rem)/1.35 var(--serif); margin: 0 auto; max-width: 46rem; }
.band span { display: block; font: 300 .95rem var(--sans); font-style: normal; color: var(--muted); margin-top: .6rem; }

/* qué incluye */
.features { padding-block: 6rem; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feat { background: var(--surface); padding: 2rem 1.6rem; }
.feat svg { color: var(--ink); }
.feat h3 { font-size: 1.45rem; margin: 1rem 0 .4rem; line-height: 1.15; }
.feat p { margin: 0; font-size: .95rem; color: var(--muted); }

/* panel */
.panel-sec { background: var(--night); color: var(--cream); padding-block: 6rem; }
.panel-sec .eyebrow { color: #A9A49C; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .panel-grid { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.ticks li { padding-left: 1.8rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); opacity: .8; }
.mock-panel { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 1.2rem; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); min-width: 0; }
.mp-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.mp-row div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .8rem; min-width: 0; }
.mp-row b { display: block; font: 400 2rem/1 var(--serif); }
.mp-row span { font-size: .72rem; color: var(--muted); }
.mp-row .ok b { color: #4F7A5A; }
.mp-list { margin-top: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.mp-list p { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: .75rem .9rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.mp-list p:last-child { border-bottom: 0; }
.mp-list i { font-style: normal; font-size: .74rem; padding: .15rem .6rem; border-radius: 999px; white-space: nowrap; }
.mp-list .ok { background: #E8F0E8; color: #4F7A5A; } .mp-list .pend { background: #F3EEE2; color: #8A6F2E; } .mp-list .no { background: #F3E7E3; color: #A35A48; }
.demo-login { margin-top: 1.6rem; font-size: .92rem; color: rgba(247,246,243,.72); border-top: 1px solid rgba(247,246,243,.14); padding-top: 1.2rem; }
.demo-login a { color: var(--cream); } .demo-login b { color: var(--cream); font-weight: 400; }

/* pasos */
.steps { padding-block: 6rem; }
.step-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: s; }
@media (max-width: 760px) { .step-list { grid-template-columns: 1fr; } }
.step-list li { counter-increment: s; border-top: 1px solid var(--ink); padding-top: 1.2rem; }
.step-list li::before { content: "0" counter(s); font: 500 .8rem/1 var(--sans); letter-spacing: .2em; color: var(--wax); display: block; margin-bottom: 1rem; }
.step-list b { font: 400 1.5rem var(--serif); }
.step-list p { margin: .4rem 0 0; color: var(--muted); }

/* precio */
.pricing { padding: 3rem 20px 6rem; display: flex; justify-content: center; }
.price-card { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 2.6rem 2rem 2.2rem; text-align: center; box-shadow: 0 30px 70px -45px rgba(21,20,19,.45); }
.price-card .seal { margin: -4.6rem auto 1.2rem; display: grid; }
.price { font: 300 clamp(3.4rem, 9vw, 4.4rem)/1 var(--serif); margin: .2rem 0 .4rem; font-variant-numeric: lining-nums; }
.price-card .ticks { text-align: left; margin: 1.8rem 0 2rem; }
.price-card .ticks li::before { color: var(--wax); }

/* preguntas */
.faq { padding-block: 2rem 6rem; max-width: 820px; }
details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
summary { cursor: pointer; font: 400 1.35rem var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-family: var(--sans); font-weight: 300; }
details[open] summary::after { content: "–"; }
details p { margin: .6rem 0 0; color: var(--muted); }

/* pedido */
.order { background: var(--paper2); padding: 6rem 20px; border-top: 1px solid var(--line); }
.order-card { max-width: 600px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.6rem, 5vw, 3rem); box-shadow: 0 30px 70px -45px rgba(21,20,19,.4); }
.order-card .eyebrow { color: var(--wax); }
.order-card h2 { margin-bottom: .6rem; }
.order-card form { margin-top: 1.8rem; display: grid; gap: 1rem; }
.order-card label { display: block; font-size: .8rem; letter-spacing: .04em; color: var(--muted); min-width: 0; }
.order-card label small { opacity: .8; }
.order-card input { display: block; width: 100%; min-width: 0; margin-top: .35rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font: 300 1rem var(--sans); color: var(--ink); -webkit-appearance: none; appearance: none; }
.order-card input[type="date"] { min-height: 3.05rem; }
.order-card input:focus { outline: 2px solid rgba(21,20,19,.12); border-color: var(--ink); background: var(--surface); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-errors { background: #F3E7E3; color: #8C3A21; border-radius: 10px; padding: .8rem 1rem; margin-top: 1.2rem; }
.form-errors p { margin: .2rem 0; font-size: .92rem; }

/* pie */
.foot { background: var(--night); color: var(--cream); text-align: center; padding: 3.5rem 20px calc(3rem + env(safe-area-inset-bottom)); }
.foot .tld { color: var(--gold); }
.foot p { margin: .6rem 0 0; color: rgba(247,246,243,.7); font-size: .92rem; }
.foot .tiny { color: rgba(247,246,243,.45); }

/* aparición */
html.js .feat, html.js .step-list li, html.js .price-card, html.js details { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
html.js .in { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { html.js .feat, html.js .step-list li, html.js .price-card, html.js details { opacity: 1; transform: none; transition: none; } .btn { transition: none; } }

/* Botón del menú más corto en celulares */
.sm-show { display: none; }
@media (max-width: 520px) { .sm-hide { display: none; } .sm-show { display: inline; } }

/* Código de wedding planner */
.promo-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 6; min-height: 38px; display: flex; align-items: center; justify-content: center; gap: .3rem; flex-wrap: wrap; padding: .45rem 16px; background: var(--ink); color: var(--paper); font-size: .8rem; letter-spacing: .04em; text-align: center; }
.promo-bar b { font-weight: 500; } .promo-bar s { opacity: .55; }
.con-promo .nav { top: 38px; }
.con-promo .hero { padding-top: calc(clamp(8.5rem, 16vh, 10.5rem) + 38px); }
@media (max-width: 900px) { .con-promo .hero { padding-top: calc(8rem + 38px); } }
.price-old { margin: 0; color: var(--muted); font-size: .9rem; } .price-old s { margin-right: .2rem; }
.code-field { margin-top: .2rem; }
.code-row { display: flex; gap: .5rem; align-items: stretch; margin-top: .35rem; }
.code-row input { margin-top: 0 !important; text-transform: uppercase; letter-spacing: .08em; flex: 1; }
.code-row .btn { flex: none; border-radius: 10px; }
.code-msg { display: block; min-height: 1.2em; margin-top: .4rem; font-size: .82rem; color: var(--muted); }
.code-msg.ok { color: #3F6B4A; } .code-msg.bad { color: #A35A48; }
