:root {
  --terra: #a9644b;
  --terra-d: #8a4c36;
  --terra-l: #f1e1d8;
  --cream: #fbf6f0;
  --paper: #fffdfa;
  --ink: #33231d;
  --muted: #7a685f;
  --sage: #6f7f62;
  --line: #e8dcd2;
  --r: 18px;
  --shadow: 0 18px 40px -18px rgba(70, 35, 20, .35);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
h2 em, h1 em { color: var(--terra); font-style: italic; font-weight: 500; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; font-weight: 600; color: var(--sage); margin: 0 0 .9rem; }
section { padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 5vw, 5rem); }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--muted); margin: 1rem auto 0; max-width: 600px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1.6rem; border-radius: 999px; font-weight: 500; text-decoration: none; border: 1.5px solid transparent; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 10px 22px -12px var(--terra-d); }
.btn-primary:hover { background: var(--terra-d); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: .85rem; padding: .4rem; }

.demo-bar { background: var(--ink); color: #f3e7df; text-align: center; font-size: .78rem; letter-spacing: .04em; padding: .45rem 1rem; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .7rem clamp(1.2rem, 5vw, 5rem); background: rgba(251, 246, 240, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo img { height: 50px; width: auto; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { text-decoration: none; font-size: .93rem; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--terra); }
.cart-btn { display: flex; align-items: center; gap: .55rem; background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: .55rem .7rem .55rem 1rem; color: var(--ink); }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.cart-count { min-width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-size: .78rem; transition: background .2s, transform .2s; }
.cart-count.on { background: var(--terra); color: #fff; transform: scale(1.08); }

/* HERO */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-top: clamp(3rem, 6vw, 5rem); }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.1rem); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 520px; margin: 1.5rem 0 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-stats { display: flex; gap: 2.4rem; margin: 2.8rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-stats dt { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; color: var(--terra); line-height: 1; }
.hero-stats dd { margin: .3rem 0 0; font-size: .84rem; color: var(--muted); }
.hero-art { position: relative; min-height: 560px; }
.arch { position: absolute; inset: 0 0 0 12%; border-radius: 300px 300px var(--r) var(--r); overflow: hidden; box-shadow: var(--shadow); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-small { position: absolute; left: 0; bottom: 8%; width: 42%; aspect-ratio: 1; margin: 0; border-radius: 50%; overflow: hidden; border: 8px solid var(--cream); box-shadow: var(--shadow); }
.hero-small img { width: 100%; height: 100%; object-fit: cover; }
.seal { position: absolute; top: 6%; right: -2%; width: 118px; height: 118px; border-radius: 50%; background: var(--sage); color: #fff; display: grid; place-content: center; text-align: center; font-size: .76rem; line-height: 1.25; transform: rotate(8deg); box-shadow: var(--shadow); }
.seal b { font-family: var(--serif); font-size: 1.8rem; }

/* CLIENTES */
.clientes { padding: 2.2rem 0; background: var(--paper); border-block: 1px solid var(--line); text-align: center; overflow: hidden; }
.clientes p { margin: 0 0 1.1rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }
.marquee { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; width: max-content; gap: 2.2rem; align-items: center; animation: slide 55s linear infinite; }
.track span { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.track i { color: var(--terra); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* CARTA */
.carta-tools { max-width: 1180px; margin: 0 auto 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.tabs button { border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: .6rem 1.2rem; color: var(--muted); display: flex; gap: .5rem; align-items: center; transition: all .2s; }
.tabs button small { font-size: .72rem; background: var(--line); border-radius: 99px; padding: 0 .45rem; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.tabs button[aria-selected="true"] small { background: var(--terra); color: #fff; }
.search { display: flex; align-items: center; gap: .5rem; background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 1rem; min-width: min(320px, 100%); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search input { border: 0; background: transparent; padding: .7rem 0; font: inherit; width: 100%; outline: none; }
.carta-body { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 330px 1fr; gap: 2rem; align-items: start; }
.cat-card { position: sticky; top: 100px; background: var(--paper); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.cat-card img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.cc-text { padding: 1.4rem; }
.cc-text h3 { font-size: 2rem; }
.cc-text p { color: var(--muted); margin: .5rem 0 .8rem; }
.cc-text small { color: var(--sage); font-weight: 500; font-size: .8rem; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; max-height: 860px; overflow: auto; padding-right: .4rem; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: .8rem .8rem .8rem 1.2rem; transition: border-color .2s; }
.item:hover { border-color: #d8c2b4; }
.item.top { border-color: #e2c3b4; background: linear-gradient(90deg, #fbeee7, var(--paper) 55%); }
.it-name { display: flex; flex-direction: column; gap: .1rem; }
.it-name b { font-weight: 500; }
.it-name small { color: var(--muted); font-size: .78rem; }
.badge { align-self: flex-start; font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; color: var(--terra); font-weight: 600; }
.packs { display: flex; gap: .4rem; flex-shrink: 0; }
.packs button { display: flex; flex-direction: column; align-items: center; min-width: 76px; padding: .4rem .6rem; border: 1.5px solid var(--line); background: var(--cream); border-radius: 12px; transition: all .18s; }
.packs button span { font-size: .7rem; color: var(--muted); }
.packs button b { font-weight: 600; font-size: .92rem; }
.packs button:hover { border-color: var(--terra); background: var(--terra-l); }
.packs button.added { background: var(--terra); border-color: var(--terra); color: #fff; transform: scale(.95); }
.packs button.added span { color: #fbe4d9; }
.no-res { padding: 2rem; text-align: center; color: var(--muted); background: var(--paper); border-radius: 14px; }

/* EMPRESAS */
.empresas { background: var(--ink); color: #f6ece5; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.empresas .eyebrow { color: #b9c4ab; }
.empresas h2 em { color: #e3a58b; }
.emp-media { position: relative; }
.emp-media img { border-radius: var(--r); aspect-ratio: 4/4.4; object-fit: cover; width: 100%; }
.emp-media blockquote { position: absolute; right: -1.5rem; bottom: 2rem; max-width: 300px; margin: 0; background: var(--cream); color: var(--ink); padding: 1.2rem 1.4rem; border-radius: 14px; font-family: var(--serif); font-size: 1.3rem; font-style: italic; line-height: 1.25; box-shadow: var(--shadow); }
.emp-media cite { display: block; font-family: var(--sans); font-style: normal; font-size: .74rem; color: var(--muted); margin-top: .5rem; }
.emp-copy > p { color: #d7c6bc; max-width: 520px; }
.emp-list { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: .55rem; }
.emp-list li { padding-left: 1.6rem; position: relative; color: #d7c6bc; }
.emp-list li::before { content: "✦"; position: absolute; left: 0; color: #e3a58b; }
.emp-list b { color: #fff; font-weight: 500; }
.emp-form { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r); padding: 1.4rem; display: grid; gap: .9rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
label { display: grid; gap: .3rem; font-size: .8rem; font-weight: 500; }
input, select, textarea { font: inherit; font-size: .95rem; padding: .7rem .85rem; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--terra); outline-offset: 1px; }
.emp-form input, .emp-form select { border-color: transparent; }
label.check { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
label.check input { width: auto; accent-color: var(--terra); }

/* SERVICIOS */
.serv-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 1rem; }
.serv { position: relative; border-radius: var(--r); overflow: hidden; color: #fff; }
.serv.big { grid-column: span 2; grid-row: span 2; }
.serv.big img { object-position: center 85%; }
.serv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.serv:hover img { transform: scale(1.05); }
.serv div { position: absolute; inset: auto 0 0; padding: 1.2rem; background: linear-gradient(transparent, rgba(30, 15, 10, .82)); }
.serv h3 { font-size: 1.6rem; }
.serv.big h3 { font-size: 2.4rem; }
.serv p { margin: .2rem 0 0; font-size: .86rem; opacity: .9; }

/* CALCULADORA */
.calc { background: var(--terra-l); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.calc-copy p:not(.eyebrow) { color: var(--muted); }
.calc-card { background: var(--paper); border-radius: var(--r); padding: 1.8rem; box-shadow: var(--shadow); display: grid; gap: 1.4rem; }
.calc-inputs { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; }
.calc-inputs label { width: 130px; }
.seg { display: flex; flex-wrap: wrap; background: var(--cream); border-radius: 999px; padding: 4px; border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: .55rem 1rem; border-radius: 999px; color: var(--muted); font-size: .9rem; }
.seg button[aria-checked="true"] { background: var(--ink); color: #fff; }
.calc-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.calc-nums div { background: var(--cream); border-radius: 14px; padding: 1rem; text-align: center; }
.calc-nums b { display: block; font-family: var(--serif); font-size: 2.6rem; color: var(--terra); line-height: 1; }
.calc-nums span { font-size: .8rem; color: var(--muted); }
.calc-detail { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .3rem; font-size: .9rem; }
.calc-detail li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: .3rem 0; }
.calc-total { margin: 1rem 0 0; font-size: 1.05rem; }
.calc-total b { font-family: var(--serif); font-size: 1.8rem; color: var(--terra); }
.calc-total small { color: var(--muted); }

/* RAZONES */
.raz-grid { list-style: none; counter-reset: r; max-width: 1100px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.raz-grid li { counter-increment: r; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; }
.raz-grid li::before { content: counter(r); font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--sage); line-height: 1; }
.raz-grid h3 { font-size: 1.5rem; margin: .5rem 0 .4rem; }
.raz-grid p { margin: 0; color: var(--muted); font-size: .93rem; }

/* GALERIA */
.galeria { background: var(--paper); }
.gal-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: .8rem; }
.gal-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.gal-grid .tall { grid-row: span 2; }

/* COMO */
.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 1050px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.steps li { text-align: center; padding: 1rem; }
.steps b { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--terra); color: #fff; font-family: var(--serif); font-size: 1.9rem; }
.steps h3 { font-size: 1.6rem; }
.steps p { color: var(--muted); margin: .4rem 0 0; }

/* FOOTER */
.footer { background: var(--ink); color: #d7c6bc; padding: 3.5rem clamp(1.2rem, 5vw, 5rem) 2rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.f-brand img { height: 64px; filter: brightness(0) invert(.88) sepia(.3); }
.f-brand p { font-size: .9rem; }
.f-col { display: grid; align-content: start; gap: .45rem; }
.f-col h4 { margin: 0 0 .4rem; color: #fff; font-weight: 500; }
.f-col a { text-decoration: none; font-size: .92rem; }
.f-col a:hover { color: #e3a58b; }
.f-note { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.2rem; margin: 0; font-size: .78rem; }

/* WHATSAPP */
.wa-float { position: fixed; right: 1.4rem; bottom: 1.4rem; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45); z-index: 30; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; fill: #fff; }

/* DRAWER */
.drawer-bg { position: fixed; inset: 0; background: rgba(40, 20, 12, .45); z-index: 50; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--cream); z-index: 60; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .3); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 2rem; }
.icon-btn { border: 0; background: var(--paper); width: 38px; height: 38px; border-radius: 50%; }
.cart-lines { list-style: none; margin: 0; padding: .6rem 1.5rem; overflow: auto; flex: 1; }
.cart-lines li { display: grid; grid-template-columns: 1fr auto auto; gap: .8rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.cl-info b { font-weight: 500; font-size: .92rem; display: block; }
.cl-info small { color: var(--muted); font-size: .75rem; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.stepper button { border: 0; background: none; width: 30px; height: 30px; font-size: 1.05rem; color: var(--terra); }
.stepper span { min-width: 30px; text-align: center; font-size: .85rem; font-weight: 500; }
.cl-price { font-size: .92rem; min-width: 64px; text-align: right; }
.cart-empty { padding: 3rem 1.5rem; text-align: center; color: var(--muted); }
.cart-form { padding: 1.2rem 1.5rem 1.5rem; border-top: 1px solid var(--line); background: var(--paper); display: grid; gap: .75rem; }
.totals { display: grid; gap: .2rem; margin-bottom: .3rem; }
.totals div { display: flex; justify-content: space-between; }
.totals div:last-child b { font-family: var(--serif); font-size: 1.7rem; color: var(--terra); }

.toast { position: fixed; left: 50%; bottom: 1.6rem; transform: translate(-50%, 200%); opacity: 0; background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: 999px; font-size: .88rem; z-index: 70; transition: transform .3s, opacity .3s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

[hidden] { display: none !important; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero, .empresas, .calc { grid-template-columns: 1fr; }
  .hero-art { min-height: 440px; }
  .carta-body { grid-template-columns: 1fr; }
  .cat-card { position: static; display: grid; grid-template-columns: 140px 1fr; }
  .cat-card img { height: 100%; aspect-ratio: auto; }
  .items { max-height: none; overflow: visible; }
  .serv-grid, .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .raz-grid { grid-template-columns: 1fr 1fr; }
  .emp-media blockquote { right: 1rem; }
}
@media (max-width: 620px) {
  .logo img { height: 42px; }
  .cart-btn span { display: none; }
  .hero-stats { gap: 1.3rem; }
  .hero-stats dt { font-size: 1.8rem; }
  .hero-art { min-height: 360px; }
  .seal { width: 92px; height: 92px; right: 0; }
  .item { flex-direction: column; align-items: stretch; }
  .packs button { flex: 1; min-width: 0; }
  .row, .raz-grid, .steps, .footer { grid-template-columns: 1fr; }
  .serv-grid { grid-auto-rows: 200px; }
  .serv.big { grid-column: span 2; grid-row: span 1; }
  .gal-grid { grid-auto-rows: 160px; }
  .calc-nums b { font-size: 2rem; }
  .cat-card { grid-template-columns: 1fr; }
  .cat-card img { aspect-ratio: 16/9; }
}
@media (prefers-reduced-motion: reduce) { .track { animation: none; } * { scroll-behavior: auto; } }

/* crédito del desarrollador */
.dev-credit { grid-column: 1 / -1; margin: 0; font-size: .78rem; opacity: .75; }
.dev-credit a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dev-credit a:hover { color: #fff; }
