/* =============================================================
   Obras Rivera (demo) — styles.css
   Dirección: plano de arquitecto. Cal mediterránea + azul añil + ocre.
   Bricolage Grotesque (titulares) · Instrument Sans (texto) · JetBrains Mono (cotas)
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --cal: #F6F3EE;
  --cal-2: #EDE7DD;
  --cal-3: #FBFAF7;
  --anil: #1F2F8C;
  --anil-d: #141D5E;
  --anil-2: #2E40B0;
  --anil-l: #E3E7F8;
  --ocre: #F0A92E;
  --ocre-d: #8A5706;
  --ocre-l: #FCE9C8;
  --ink: #171A2E;
  --ink-2: #3A3E57;
  --mute: #5A5E73;
  --line: rgba(23, 26, 46, .13);
  --line-2: rgba(23, 26, 46, .24);
  --on-dark: #F6F3EE;
  --on-dark-2: #BEC5EA;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gut: clamp(16px, 4.2vw, 48px);
  --wrap: 1280px;
  --nav-h: 68px;
  --r: 16px;
  --r-sm: 10px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 0 rgba(23, 26, 46, .04), 0 24px 50px -28px rgba(20, 29, 94, .45);
  --shadow-sm: 0 1px 2px rgba(23, 26, 46, .06), 0 8px 20px -12px rgba(20, 29, 94, .3);
  --grid: linear-gradient(rgba(31, 47, 140, .065) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 47, 140, .065) 1px, transparent 1px);
}

/* 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); overflow-x: clip; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--cal);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--ocre); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ocre); outline-offset: 3px; border-radius: 4px; }
.sec-dark :focus-visible, .footer :focus-visible { outline-color: var(--ocre); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--cal); padding: .6rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
.ico { width: 1.1em; height: 1.1em; flex: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.mono-l { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.mono-l span { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: .82rem; }

/* 3. Botones --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .7rem 1.35rem;
  border-radius: 12px; border: 1.5px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.15; text-decoration: none;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease-out), box-shadow .25s; text-align: center;
}
.btn .ico { transition: transform .3s var(--ease-out); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--anil); color: #fff; box-shadow: 0 10px 24px -14px rgba(31, 47, 140, .9); }
.btn-primary:hover { background: var(--anil-d); }
.btn-ocre { background: var(--ocre); color: var(--ink); }
.btn-ocre:hover { background: #F6BB55; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--cal); }
.btn-line-light { border-color: rgba(246, 243, 238, .55); color: var(--on-dark); background: transparent; }
.btn-line-light:hover { background: var(--on-dark); color: var(--anil-d); }
.btn-sm { min-height: 40px; padding: .45rem 1rem; font-size: .92rem; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: .85rem 1.6rem; font-size: 1.04rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.lnk { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--anil); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.lnk:hover .ico { transform: translateX(3px); }
.lnk .ico { transition: transform .3s var(--ease-out); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--cal-2); }

/* 4. Barra demo + navegación ---------------------------------- */
.demo-bar { background: var(--anil-d); color: var(--on-dark); font-family: var(--mono); font-size: .7rem; letter-spacing: .02em; text-align: center; padding: .5rem var(--gut); }
.demo-bar a { color: #fff; text-decoration: underline; text-decoration-color: var(--ocre); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.demo-bar a:hover { color: var(--ocre); }
.demo-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ocre); margin-right: .55rem; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(240, 169, 46, .25); }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(246, 243, 238, .9); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(20, 29, 94, .5); }
.nav-in { display: flex; align-items: center; gap: 1rem; height: var(--nav-h); max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-family: var(--display); font-size: 1.28rem; font-weight: 600; letter-spacing: -.02em; }
.brand-name b { font-weight: 800; color: var(--anil); }
.nav-links { display: none; gap: .2rem; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: .45rem .7rem; border-radius: 8px; color: var(--ink-2); }
.nav-links a:hover { background: var(--cal-2); color: var(--ink); }
.nav-tel { display: none; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .85rem; font-weight: 500; text-decoration: none; color: var(--ink); }
.nav-cta { display: none; }
.burger { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--cal-3); display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mnav { border-top: 1px solid var(--line); background: var(--cal); padding: .5rem var(--gut) 1.25rem; max-height: calc(100vh - var(--nav-h)); overflow: auto; }
.mnav a { display: flex; align-items: baseline; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
.mnav small { font-family: var(--mono); font-size: .72rem; color: var(--mute); font-weight: 500; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }
@media (min-width: 1080px) {
  .nav-links { display: flex; }
  .burger { display: none; }
  .brand { margin-right: 1rem; }
  .nav-links { margin-right: auto; }
}
@media (min-width: 1240px) { .nav-tel { display: inline-flex; } }

/* 5. Hero ------------------------------------------------------ */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--grid); background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%); mask-image: linear-gradient(180deg, #000 30%, transparent 95%); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--anil); background: var(--cal-3); border: 1px solid var(--line); padding: .4rem .8rem; border-radius: 999px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ocre); }
.h-hero { font-family: var(--display); font-weight: 700; font-size: clamp(2.7rem, 12.2vw, 5.6rem); line-height: .98; letter-spacing: -.045em; margin: 1.1rem 0 1.25rem; font-variation-settings: "opsz" 96; }
.hl { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hl > span { display: inline-block; }
.hl-cota { padding-bottom: calc(.12em + 24px); margin-bottom: 0; }
.cota-word { position: relative; font-style: normal; color: var(--anil); display: inline-block; }
.cota { position: absolute; left: 0; right: 0; bottom: -.2em; height: 14px; display: block; }
.cota i { position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--ocre); transform-origin: 0 50%; }
.cota i::before, .cota i::after { content: ""; position: absolute; top: -6px; width: 2px; height: 14px; background: var(--ocre); }
.cota i::before { left: 0; } .cota i::after { right: 0; }
.cota b { position: absolute; right: 0; top: 14px; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .04em; color: var(--ocre-d); white-space: nowrap; transform: translateY(2px); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 36em; margin-top: 1.6rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.hero-checks { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.5rem; font-size: .93rem; color: var(--ink-2); }
.hero-checks li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-checks .ico { color: var(--anil); }

.hero-art { position: relative; margin: 0; }
.plano { position: relative; border-radius: 22px; background: var(--cal-3); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 36px) clamp(10px, 2vw, 28px) clamp(26px, 3vw, 40px); overflow: hidden; }
.plano::before { content: ""; position: absolute; inset: 0; background-image: var(--grid); background-size: 20px 20px; pointer-events: none; }
.plano-tag { position: relative; z-index: 1; display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--anil); border: 1px solid rgba(31, 47, 140, .3); border-radius: 6px; padding: .25rem .5rem; background: var(--cal-3); }
.plano .iso { position: relative; width: 100%; height: auto; margin-top: .4rem; }
.cota-t { font-family: var(--mono); font-size: 12px; fill: var(--anil); font-weight: 500; }
.mock { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.mock-quote { left: clamp(-8px, -1vw, 0px); bottom: -6px; width: min(300px, 78%); padding: 14px 16px; transform: translateY(20%); }
.mock-k { font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: .45rem; }
.mock-quote li { display: flex; justify-content: space-between; gap: .75rem; font-size: .78rem; padding: .32rem 0; border-bottom: 1px dashed var(--line-2); color: var(--ink-2); }
.mock-quote li b { font-family: var(--mono); font-weight: 500; font-size: .74rem; white-space: nowrap; color: var(--ink); }
.mock-tot { display: flex; justify-content: space-between; align-items: baseline; margin-top: .55rem; font-size: .8rem; font-weight: 600; }
.mock-tot b { font-family: var(--display); font-size: 1.12rem; font-weight: 700; color: var(--anil); letter-spacing: -.02em; }
.mock-visit { right: 12px; top: 56px; display: flex; align-items: center; gap: .6rem; padding: .6rem .85rem .6rem .6rem; }
.mock-visit p { display: grid; font-size: .76rem; line-height: 1.3; }
.mock-visit b { font-size: .82rem; }
.mock-visit span { color: var(--mute); }
.mock-ok { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--ocre); color: var(--ink); }

.facts { position: relative; margin-top: clamp(72px, 9vw, 110px); }
.facts-in { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1.5px solid var(--ink); }
.facts-in > div { padding: 1.2rem 1rem 1.6rem 0; border-bottom: 1px solid var(--line); }
.facts-in > div:nth-child(odd) { padding-right: 1rem; border-right: 1px solid var(--line); }
.facts-in > div:nth-child(even) { padding-left: 1rem; }
.facts dt { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.04em; line-height: 1; color: var(--anil); }
.facts dd { margin-top: .5rem; font-size: .92rem; color: var(--ink-2); max-width: 17em; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.02fr 1fr; }
  .facts-in { grid-template-columns: repeat(4, 1fr); }
  .facts-in > div { border-bottom: 0; padding: 1.4rem 1.4rem 0; border-right: 1px solid var(--line); }
  .facts-in > div:first-child { padding-left: 0; }
  .facts-in > div:last-child { border-right: 0; }
  .facts-in > div:nth-child(even) { padding-left: 1.4rem; }
  .mock-quote { left: -34px; }
}

/* 6. Secciones ------------------------------------------------- */
.sec { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.sec-head { display: grid; gap: 1rem; margin-bottom: clamp(36px, 5vw, 64px); max-width: 880px; }
.sec-k { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--anil); font-weight: 500; }
.sec-k > span:first-child { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 .35rem; border: 1px solid currentColor; border-radius: 6px; font-weight: 600; }
.h-sec { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.sec-intro { font-size: 1.08rem; color: var(--ink-2); max-width: 40em; }
.label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .45rem; }
.label small { font-weight: 400; color: var(--mute); }

/* 7. Servicios ------------------------------------------------- */
.bento { display: grid; gap: 16px; }
.card { position: relative; background: var(--cal-3); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: .8rem; transition: transform .4s var(--ease-out), box-shadow .4s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-family: var(--display); font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
.card p { color: var(--ink-2); }
.card-n { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--anil) !important; font-weight: 500; }
.card-ico { width: 44px; height: 44px; color: var(--anil); padding: 9px; border-radius: 12px; background: var(--anil-l); }
.price { margin-top: auto; padding-top: .6rem; border-top: 1px dashed var(--line-2); color: var(--ink) !important; font-size: .95rem; }
.price b { font-family: var(--display); font-size: 1.7rem; letter-spacing: -.03em; color: var(--anil); font-weight: 700; }
.price small { display: block; color: var(--mute); font-size: .82rem; }
.card-dark { background: var(--anil); color: var(--on-dark); border-color: var(--anil); }
.card-dark p { color: var(--on-dark-2); }
.card-dark .card-n { color: var(--ocre) !important; }
.card-dark .card-ico { background: rgba(255, 255, 255, .12); color: var(--ocre); }
.card-dark .price { color: var(--on-dark) !important; border-color: rgba(255, 255, 255, .25); }
.card-dark .price b { color: var(--ocre); }
.card-dark .price small { color: var(--on-dark-2); }
.card-dark .lnk { color: var(--ocre); }
.card-wide { display: grid; gap: 1.5rem; }
.card-copy { display: flex; flex-direction: column; gap: .8rem; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.plan svg { width: 100%; height: auto; }
.plan figcaption { font-family: var(--mono); font-size: .68rem; color: var(--mute); margin-top: .4rem; text-transform: uppercase; letter-spacing: .05em; }
.minis { display: grid; gap: 0; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--cal-3); }
.minis li { display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.minis li:last-child { border-bottom: 0; }
.minis .ico { grid-row: span 2; width: 26px; height: 26px; color: var(--anil); }
.minis b { font-weight: 600; }
.minis span { font-size: .88rem; color: var(--mute); }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .card-wide { grid-column: 1 / -1; grid-template-columns: 1fr 1.1fr; align-items: center; }
  .minis { grid-template-columns: repeat(2, 1fr); }
  .minis li:nth-child(odd) { border-right: 1px solid var(--line); }
  .minis li:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (min-width: 1100px) {
  .minis { grid-template-columns: repeat(4, 1fr); }
  .minis li { border-bottom: 0; border-right: 1px solid var(--line); }
  .minis li:last-child { border-right: 0; }
}

/* 8. Configurador ---------------------------------------------- */
.sec-cfg { background: var(--cal-2); }
.sec-cfg::before { content: ""; position: absolute; inset: 0; background-image: var(--grid); background-size: 28px 28px; pointer-events: none; opacity: .8; }
.sec-cfg > .wrap { position: relative; }
.cfg { display: grid; gap: 24px; align-items: start; }
.cfg-main { display: grid; gap: 18px; min-width: 0; }
.cfg-q { border: 0; padding: 0; margin: 0; min-width: 0; }
.cfg-q legend { padding: 0; margin-bottom: .6rem; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--cal-3); border: 1px solid var(--line); border-radius: 12px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; text-align: center; padding: .5rem .3rem; border-radius: 9px; font-size: .88rem; font-weight: 600; transition: background-color .2s, color .2s; line-height: 1.2; }
.seg small { font-weight: 400; font-size: .74rem; color: var(--mute); }
.seg input:checked + span { background: var(--anil); color: #fff; }
.seg input:checked + span small { color: var(--on-dark-2); }
.seg input:focus-visible + span { outline: 3px solid var(--ocre); outline-offset: 1px; }
.seg label:hover input:not(:checked) + span { background: var(--cal-2); }
.seg-lg span { padding: .75rem .4rem; font-size: 1rem; }

.cfg-add { background: var(--cal-3); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.cfg-add > .mono-l { margin-bottom: .75rem; }
.add-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.add-grid button { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .85rem .4rem .75rem; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-weight: 600; font-size: .9rem; transition: border-color .2s, background-color .2s, transform .25s var(--ease-out); position: relative; }
.add-grid button::after { content: "+"; position: absolute; top: 6px; right: 9px; font-family: var(--mono); font-size: .85rem; color: var(--anil); }
.add-grid button svg { width: 28px; height: 28px; color: var(--anil); }
.add-grid button:hover { border-color: var(--anil); background: var(--anil-l); transform: translateY(-2px); }
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .9rem; }
.presets-l { font-size: .85rem; color: var(--mute); margin-right: .2rem; }
.presets button { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: .38rem .8rem; font-size: .84rem; font-weight: 500; }
.presets button:hover { background: var(--ink); color: var(--cal); border-color: var(--ink); }
.presets .presets-clear { border-style: dashed; color: var(--mute); }

.rooms { display: grid; gap: 14px; }
.rooms-empty { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 1.6rem; text-align: center; color: var(--ink-2); background: rgba(251, 250, 247, .6); }
.noscript { padding: 1rem; background: var(--cal-3); border-radius: 12px; }
.room { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; }
.room.is-new { animation: roomIn .5s var(--ease-out); }
@keyframes roomIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.room.is-flash { animation: flash 1.6s var(--ease-out); }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--ocre); } 100% { box-shadow: var(--shadow-sm); } }
.room-head { display: flex; align-items: center; gap: .75rem; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); background: var(--cal-3); }
.room-ico { width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--anil-l); color: var(--anil); flex: none; }
.room-title { flex: 1; min-width: 0; }
.room-title h3 { font-family: var(--display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.room-title p { font-family: var(--mono); font-size: .78rem; color: var(--anil); font-weight: 500; }
.room-ai { display: inline-flex; align-items: center; gap: .25rem; font-family: var(--mono); font-size: .64rem; letter-spacing: .04em; text-transform: uppercase; background: var(--ocre-l); color: var(--ocre-d); border-radius: 6px; padding: .15rem .4rem; margin-left: .35rem; vertical-align: 2px; font-weight: 600; }
.room-ai svg { width: 11px; height: 11px; }
.room-body { padding: 16px; display: grid; gap: 16px; }
.room-row { display: grid; gap: 14px; }
.room-inc { font-size: .84rem; color: var(--mute); }
.room-inc b { color: var(--ink-2); font-weight: 600; }
.qdesc { font-size: .84rem; color: var(--ink-2); margin-top: .45rem; min-height: 1.3em; }
.num { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; max-width: 220px; }
.num button { width: 44px; border: 0; background: var(--cal-3); display: grid; place-items: center; color: var(--anil); }
.num button:hover { background: var(--anil-l); }
.num button svg { width: 18px; height: 18px; }
.num input { width: 100%; min-width: 0; border: 0; text-align: center; font-family: var(--mono); font-weight: 600; font-size: 1rem; padding: .6rem 0; -moz-appearance: textfield; appearance: textfield; background: transparent; }
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num-unit { display: grid; place-items: center; padding: 0 .7rem; font-family: var(--mono); font-size: .82rem; color: var(--mute); border-left: 1px solid var(--line); background: var(--cal-3); }
.num:focus-within { outline: 3px solid var(--ocre); outline-offset: 1px; }
.num input:focus-visible { outline: none; }
.win-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.win-grid .num { max-width: none; }
.win-grid .label { font-size: .85rem; }
.win-grid .num-unit { padding: 0 .5rem; }
.win-area { font-family: var(--mono); font-size: .78rem; color: var(--mute); margin-top: .35rem; }
.opts { display: grid; gap: 6px; }
.opt { display: flex; align-items: flex-start; gap: .65rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.opt:hover { border-color: var(--line-2); background: var(--cal-3); }
.opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--anil); flex: none; }
.opt-txt { flex: 1; font-size: .92rem; line-height: 1.35; }
.opt-p { font-family: var(--mono); font-size: .76rem; color: var(--mute); white-space: nowrap; padding-top: 2px; }
.opt.is-on { border-color: var(--anil); background: var(--anil-l); }
.opt.is-ai { box-shadow: inset 3px 0 0 var(--ocre); }
.opt-ai { display: block; font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ocre-d); font-weight: 600; margin-top: .15rem; }
.room-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 12px 16px; border-top: 1px dashed var(--line-2); background: var(--cal-3); }
.room-foot span { font-size: .85rem; color: var(--mute); }
.room-foot b { font-family: var(--mono); font-size: .95rem; font-weight: 600; color: var(--anil); }
@media (min-width: 640px) {
  .room-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
}

/* Hoja de presupuesto */
.sheet { position: relative; min-width: 0; }
.sheet-paper { position: relative; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 22px; border: 1px solid var(--line); }
.sheet-paper::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 5px; background: repeating-linear-gradient(90deg, var(--anil) 0 18px, var(--ocre) 18px 24px); border-radius: 0 0 4px 4px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: 8px 0 14px; border-bottom: 1.5px solid var(--ink); }
.sheet-head h3 { font-family: var(--display); font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.sheet-ref { display: grid; text-align: right; font-family: var(--mono); font-size: .72rem; color: var(--mute); }
.sheet-lines { counter-reset: sl; padding: 6px 0; max-height: none; }
.sheet-lines > li { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; padding: .7rem 0; border-bottom: 1px dashed var(--line-2); font-size: .92rem; }
.sheet-lines > li.sl-empty { display: block; color: var(--mute); font-size: .9rem; padding: 1rem 0; }
.sl-name { font-weight: 600; }
.sl-name small { display: block; font-weight: 400; color: var(--mute); font-size: .8rem; }
.sl-p { font-family: var(--mono); font-size: .82rem; font-weight: 500; white-space: nowrap; text-align: right; }
.sl-sub { grid-column: 1 / -1; display: grid; gap: .15rem; margin-top: .15rem; }
.sl-sub span { display: flex; justify-content: space-between; gap: .8rem; font-size: .8rem; color: var(--ink-2); }
.sl-sub span i { font-style: normal; font-family: var(--mono); font-size: .74rem; color: var(--mute); white-space: nowrap; }
.sl-fixed .sl-name { font-weight: 500; color: var(--ink-2); }
.sheet-total { padding: 16px 0 12px; }
.tot { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .55rem; font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.3vw, 2.5rem); letter-spacing: -.04em; line-height: 1.05; color: var(--anil); margin-top: .35rem; font-variant-numeric: tabular-nums; }
.tot-sep { display: inline-block; width: 22px; height: 2.5px; background: var(--ocre); transform: translateY(-.28em); border-radius: 2px; }
.tot.is-bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 40% { transform: translateY(-2px); color: var(--anil-2); } }
.tot-bar { position: relative; height: 8px; border-radius: 99px; background: var(--cal-2); margin-top: .8rem; overflow: hidden; }
.tot-bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--anil), var(--anil-2) 70%, var(--ocre)); transition: left .6s var(--ease-out), width .6s var(--ease-out); }
.sheet-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.sheet-meta div { background: var(--cal-3); padding: .7rem .9rem; }
.sheet-meta dt { font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.sheet-meta dd { font-weight: 700; font-size: 1.02rem; }
.sheet-plazo-note { font-size: .8rem; color: var(--mute); margin: -4px 0 12px; }
.sheet-note { display: flex; gap: .5rem; font-size: .8rem; color: var(--ink-2); margin-top: 12px; line-height: 1.45; }
.sheet-note .ico { color: var(--ocre-d); margin-top: 2px; }
.dock { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 10px 10px 10px 16px; background: var(--anil-d); color: var(--on-dark); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(20, 29, 94, .8); transform: translateY(0); transition: transform .35s var(--ease-out), opacity .35s; }
.dock.is-off { transform: translateY(130%); opacity: 0; pointer-events: none; }
.dock p { display: grid; line-height: 1.2; }
.dock small { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--on-dark-2); }
.dock b { font-family: var(--display); font-size: 1.15rem; letter-spacing: -.02em; }
@media (min-width: 1000px) {
  .cfg { grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; }
  .sheet { position: sticky; top: calc(var(--nav-h) + 20px); }
  .dock { display: none !important; }
}
@media (min-width: 1200px) { .cfg { grid-template-columns: minmax(0, 1fr) 430px; } }

/* 9. Foto con IA ----------------------------------------------- */
.sec-dark { background: var(--anil-d); color: var(--on-dark); overflow: hidden; }
.sec-dark::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.sec-dark > .wrap { position: relative; }
.sec-dark .sec-k { color: var(--ocre); }
.sec-dark .sec-intro { color: var(--on-dark-2); }
.sec-dark .label small, .sec-dark .mono-l { color: var(--on-dark-2); }
.foto-grid { display: grid; gap: 24px; }
.foto-main, .foto-side { min-width: 0; }
.report-works li { min-width: 0; }
.foto-side { display: grid; gap: 16px; align-content: start; }
.foto-sample { background: var(--cal); border-radius: var(--r); padding: 14px; color: var(--ink); }
.foto-sample-art .iso { width: 100%; height: auto; max-height: 300px; }
.foto-sample figcaption { display: flex; align-items: center; gap: .5rem; font-size: .84rem; margin-top: .5rem; color: var(--ink-2); }
.foto-sample figcaption span { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; background: var(--ink); color: var(--cal); border-radius: 5px; padding: .12rem .4rem; }
.foto-how { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.foto-how li { display: flex; gap: .8rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid rgba(255, 255, 255, .18); color: var(--on-dark-2); font-size: .94rem; }
.foto-how b { font-family: var(--mono); color: var(--ocre); }
.foto-rules { display: grid; gap: .5rem; }
.foto-rules li { display: flex; gap: .55rem; font-size: .88rem; color: var(--on-dark); }
.foto-rules .ico { color: var(--ocre); margin-top: 3px; }
.foto-form { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 18px; }
.drop { position: relative; display: grid; justify-items: center; gap: .35rem; text-align: center; padding: 1.6rem 1rem; border: 1.5px dashed rgba(246, 243, 238, .45); border-radius: 14px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.drop:hover, .drop.is-over { border-color: var(--ocre); background: rgba(240, 169, 46, .08); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop:focus-within { outline: 3px solid var(--ocre); outline-offset: 2px; }
.drop-ico { width: 34px; height: 34px; color: var(--ocre); }
.drop small { color: var(--on-dark-2); font-size: .8rem; }
.preview { display: flex; align-items: center; gap: .8rem; padding: .6rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; }
.preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.preview span { flex: 1; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview .icon-btn { border-color: rgba(255, 255, 255, .3); color: var(--on-dark); }
.preview .icon-btn:hover { background: rgba(255, 255, 255, .1); }
textarea, select, input[type="text"], input[type="tel"], input[type="email"], input[type="date"] {
  width: 100%; border: 1px solid var(--line-2); background: #fff; border-radius: 10px; padding: .72rem .85rem; font-size: 1rem; line-height: 1.4; min-height: 48px; color: var(--ink);
}
textarea { resize: vertical; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231F2F8C' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; background-size: 18px; padding-right: 2.4rem; }
textarea:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--ocre); outline-offset: 1px; border-color: var(--anil); }
.is-bad { border-color: #B3261E !important; box-shadow: 0 0 0 1px #B3261E; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.chips button { border: 1px solid rgba(246, 243, 238, .35); background: transparent; color: var(--on-dark); border-radius: 999px; padding: .35rem .75rem; font-size: .83rem; }
.chips button:hover { background: var(--on-dark); color: var(--anil-d); }
.disclaimer { display: flex; align-items: center; gap: .45rem; font-size: .84rem; color: var(--on-dark-2); }
.disclaimer .ico { color: var(--ocre); }
.foto-status { padding: .8rem 1rem; border-radius: 10px; background: var(--ocre-l); color: var(--ink); font-size: .92rem; font-weight: 500; }
.foto-loading { margin-top: 18px; padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); }
.foto-loading ul { display: grid; gap: .45rem; margin: .8rem 0 1rem; }
.foto-loading li { font-family: var(--mono); font-size: .86rem; color: rgba(246, 243, 238, .4); transition: color .4s; }
.foto-loading li::before { content: "○ "; }
.foto-loading li.is-on { color: var(--on-dark); }
.foto-loading li.is-on::before { content: "● "; color: var(--ocre); }
.bar { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.bar i { display: block; height: 100%; width: 40%; background: var(--ocre); border-radius: 4px; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.report { margin-top: 18px; background: var(--cal); color: var(--ink); border-radius: 18px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 18px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.report-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); }
.report-top h3 { font-family: var(--display); font-size: 1.5rem; letter-spacing: -.025em; }
.report-top h3:focus { outline: none; }
.report-tag { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; background: var(--ocre); border-radius: 6px; padding: .2rem .5rem; }
.report-head { display: flex; gap: 14px; align-items: flex-start; }
.report-thumb { flex: none; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.report-thumb img { width: 100%; height: 100%; object-fit: cover; }
.report-thumb svg { width: 100%; height: 100%; }
.report-sum { font-size: 1.02rem; }
.report-cells { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.report-cells div { background: #fff; padding: .75rem .9rem; }
.report-cells dt { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.report-cells dd { font-weight: 600; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.meter { display: inline-flex; gap: 3px; }
.meter i { width: 12px; height: 8px; border-radius: 2px; background: var(--cal-2); border: 1px solid var(--line-2); }
.meter.e-1 i:nth-child(-n+1), .meter.e-2 i:nth-child(-n+2), .meter.e-3 i:nth-child(-n+3), .meter.e-4 i:nth-child(-n+4) { background: var(--ocre); border-color: var(--ocre-d); }
.report-block .mono-l { margin-bottom: .55rem; }
.report-works { display: grid; gap: 6px; }
.report-works li { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: .93rem; }
.report-works .ico { color: var(--anil); }
.report-works small { margin-left: auto; font-family: var(--mono); font-size: .7rem; color: var(--mute); }
.report-obs { display: grid; gap: .4rem; }
.report-obs li { position: relative; padding-left: 1.1rem; font-size: .93rem; color: var(--ink-2); }
.report-obs li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 2px; background: var(--ocre-d); }
.report-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.disclaimer-ink { color: var(--ink-2); }
.disclaimer-ink .ico { color: var(--ocre-d); }
@media (min-width: 960px) {
  .foto-grid { grid-template-columns: 380px minmax(0, 1fr); gap: 40px; }
}

/* 10. Método --------------------------------------------------- */
.steps { display: grid; gap: 14px; position: relative; }
.step { position: relative; background: var(--cal-3); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px; display: grid; gap: .45rem; align-content: start; }
.step-n { font-family: var(--mono); font-weight: 600; font-size: .8rem; color: #fff; background: var(--anil); border-radius: 8px; width: 38px; height: 28px; display: grid; place-items: center; margin-bottom: .4rem; }
.step h3 { font-family: var(--display); font-size: 1.28rem; letter-spacing: -.02em; line-height: 1.15; }
.step p { font-size: .94rem; color: var(--ink-2); }
.step-t { font-family: var(--mono); font-size: .72rem; color: var(--ocre-d); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: .3rem; }
.steps-line { display: none; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .steps-line { display: block; position: relative; height: 3px; background: var(--cal-2); border-radius: 3px; margin-top: 22px; overflow: hidden; }
  .steps-line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--anil), var(--ocre)); transform-origin: 0 50%; transform: scaleX(1); }
}

/* 11. Garantía ------------------------------------------------- */
.sec-garantia { background: var(--ink); color: var(--on-dark); }
.sec-garantia .sec-k { color: var(--ocre); }
.gar-grid { display: grid; gap: 40px; }
.gar-copy { display: grid; gap: 1.2rem; align-content: start; }
.gar-copy > p:not(.sec-k) { color: #C9CBD8; font-size: 1.08rem; max-width: 34em; }
.seal { width: 150px; height: 150px; margin-top: .6rem; }
.seal svg { width: 100%; height: 100%; }
.seal-ring { transform-origin: 100px 100px; animation: spin 38s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gar-list { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.gar-list li { display: flex; gap: 1.1rem; padding: 1.3rem 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.gar-i { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--ocre); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.gar-list h3 { font-family: var(--display); font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.2; margin-bottom: .25rem; }
.gar-list p { color: #C9CBD8; font-size: .96rem; }
.gar-foot { margin-top: 36px; font-family: var(--mono); font-size: .74rem; color: #A5A8BA; }
@media (min-width: 960px) { .gar-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; } }

/* 12. Proyectos ------------------------------------------------ */
.tag-ej { display: inline-block; font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; background: var(--ocre-l); color: var(--ocre-d); border-radius: 6px; padding: .18rem .5rem; }
.ba { display: grid; gap: 24px; background: var(--cal-3); border: 1px solid var(--line); border-radius: 22px; padding: clamp(14px, 2.4vw, 28px); align-items: center; }
.ba-stage { position: relative; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); aspect-ratio: 1 / 1; touch-action: pan-y; }
.ba-layer { position: absolute; inset: 0; display: grid; place-items: center; padding: 6%; background: #fff; }
.ba-layer .iso { width: 100%; height: 100%; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); background: var(--anil-l); }
.ba-before { background: #F4F0E4; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--anil); pointer-events: none; }
.ba-handle i { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--anil); box-shadow: 0 6px 18px -6px rgba(20, 29, 94, .7); }
.ba-handle i::before, .ba-handle i::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 6px solid transparent; margin-top: -6px; }
.ba-handle i::before { left: 7px; border-right-color: #fff; }
.ba-handle i::after { right: 7px; border-left-color: #fff; }
.ba-label { position: absolute; top: 12px; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: var(--cal); border-radius: 6px; padding: .22rem .5rem; pointer-events: none; }
.ba-l1 { left: 12px; } .ba-l2 { right: 12px; background: var(--anil); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-stage:has(.ba-range:focus-visible) { outline: 3px solid var(--ocre); outline-offset: 3px; }
.ba-info { display: grid; gap: 1rem; align-content: start; }
.ba-info h3 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.03em; line-height: 1.05; }
.ba-info > p { color: var(--ink-2); }
.ba-info .tag-ej { justify-self: start; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.specs div { background: #fff; padding: .65rem .85rem; }
.specs dt { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.specs dd { font-weight: 700; font-family: var(--display); font-size: 1.2rem; letter-spacing: -.02em; }
.pros { display: grid; gap: 16px; margin-top: 16px; }
.pro { background: var(--cal-3); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 14px 20px; display: grid; gap: .5rem; align-content: start; transition: transform .4s var(--ease-out), box-shadow .4s; }
.pro:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pro-art { background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 14px; margin-bottom: .4rem; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.pro-art .iso { width: 100%; height: 100%; }
.pro .tag-ej { justify-self: start; }
.pro h3 { font-family: var(--display); font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.2; }
.pro-meta { font-family: var(--mono); font-size: .78rem; color: var(--mute); }
@media (min-width: 760px) { .pros { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .ba { grid-template-columns: 1.15fr 1fr; gap: 44px; } .ba-stage { aspect-ratio: 5 / 4; } }

/* 13. FAQ ------------------------------------------------------ */
.faq-grid { display: grid; gap: 8px; }
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.08rem, 1.8vw, 1.28rem); letter-spacing: -.015em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--anil); }
.pm { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; transition: transform .3s var(--ease-out); }
.pm::after { transform: rotate(90deg); }
.faq details[open] .pm { background: var(--anil); color: #fff; border-color: var(--anil); }
.faq details[open] .pm::after { transform: rotate(0); }
.faq details p { padding: 0 0 1.25rem; color: var(--ink-2); max-width: 44em; }
.faq-note { margin-top: 24px; font-family: var(--mono); font-size: .74rem; color: var(--mute); }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .sec-head-side { position: sticky; top: calc(var(--nav-h) + 24px); }
}

/* 14. Visita --------------------------------------------------- */
.sec-visita { background: var(--cal-2); }
.vis-grid { display: grid; gap: 24px; align-items: start; }
.vis-form, .vis-ok { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow-sm); display: grid; gap: 18px; }
.f-grid { display: grid; gap: 16px; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.slot span { display: grid; place-items: center; min-height: 46px; border: 1px solid var(--line-2); border-radius: 10px; font-family: var(--mono); font-weight: 600; font-size: .92rem; transition: background-color .2s, border-color .2s, color .2s; text-align: center; line-height: 1.15; padding: .2rem; }
.slot:hover span { border-color: var(--anil); }
.slot input:checked + span { background: var(--anil); border-color: var(--anil); color: #fff; }
.slot input:focus-visible + span { outline: 3px solid var(--ocre); outline-offset: 2px; }
.slot.is-full span { background: var(--cal-2); color: #8C8FA0; text-decoration: line-through; cursor: not-allowed; border-style: dashed; }
.slot.is-bad span { border-color: #B3261E; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--anil); flex: none; }
.form-error { padding: .75rem 1rem; border-radius: 10px; background: #FBE3E1; color: #7A1A14; font-weight: 500; font-size: .93rem; }
.form-note { font-size: .82rem; color: var(--mute); text-align: center; }
.from-cfg { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .9rem; border-radius: 12px; background: var(--anil-l); color: var(--anil-d); font-size: .9rem; }
.from-cfg .ico { margin-top: 3px; }
.vis-ok { text-align: left; }
.vis-ok:focus { outline: none; }
.vis-ok-top { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; color: var(--anil); }
.vis-ok-top .ico { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--ocre); color: var(--ink); }
.vis-ok-sum { font-size: 1.08rem; font-weight: 600; }
.vis-ok-demo { font-size: .93rem; color: var(--ink-2); padding: .8rem 1rem; background: var(--cal); border-radius: 10px; }
.vis-ok-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.vis-ok-links:empty { display: none; }
.vis-side { display: grid; gap: 18px; align-content: start; }
.vis-list { display: grid; border-top: 1.5px solid var(--ink); }
.vis-list li { display: flex; gap: .9rem; padding: .95rem 0; border-bottom: 1px solid var(--line-2); font-size: .95rem; }
.vis-list b { font-family: var(--mono); color: var(--anil); font-size: .82rem; padding-top: .15rem; }
.vis-card { background: var(--anil); color: var(--on-dark); border-radius: 16px; padding: 20px; }
.vis-card .mono-l { color: var(--on-dark-2); }
.vis-tel { font-family: var(--display); font-size: 2rem; font-weight: 700; letter-spacing: -.03em; }
.vis-tel a { text-decoration: none; }
.vis-small { font-size: .82rem; color: var(--on-dark-2); }
@media (min-width: 640px) { .f-grid { grid-template-columns: 1fr 1fr; } .slots { grid-template-columns: repeat(8, 1fr); } }
@media (min-width: 640px) and (max-width: 999px) { .slots { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .vis-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; } }

/* 15. Contacto ------------------------------------------------- */
.ct-grid { display: grid; gap: 36px; align-items: center; }
.ct-info { display: grid; gap: 1.2rem; }
.ct-blocks { display: grid; gap: 0; border-top: 1.5px solid var(--ink); margin-top: .4rem; }
.ct-blocks > div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.ct-big { font-family: var(--display); font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ct-big a { text-decoration: none; }
.ct-big a:hover { color: var(--anil); text-decoration: underline; }
.ct-small { font-size: .84rem; color: var(--mute); }
.status { display: inline-block; margin-left: .5rem; font-family: var(--mono); font-size: .66rem; padding: .12rem .45rem; border-radius: 5px; background: var(--cal-2); color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.status.is-open { background: #DDF0DF; color: #1D5B28; }
.hours { border-collapse: collapse; width: 100%; margin: .4rem 0; }
.hours th, .hours td { text-align: left; padding: .4rem 0; font-size: .95rem; border-bottom: 1px dashed var(--line); }
.hours th { font-weight: 500; color: var(--ink-2); }
.hours td { text-align: right; font-family: var(--mono); font-size: .86rem; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--anil); font-weight: 700; }
.zona { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.zona svg { width: 100%; height: auto; }
.zona figcaption { font-family: var(--mono); font-size: .7rem; color: var(--mute); padding: .6rem 1rem; text-transform: uppercase; letter-spacing: .05em; }
@media (min-width: 960px) { .ct-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }

/* 16. Pie ------------------------------------------------------ */
.footer { background: var(--anil-d); color: var(--on-dark); padding: clamp(56px, 8vw, 96px) 0 calc(28px + env(safe-area-inset-bottom)); overflow: hidden; }
.footer .footer-word { font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 15vw, 13rem); letter-spacing: -.06em; line-height: .85; color: rgba(246, 243, 238, .1); white-space: nowrap; }
.footer .footer-word b { color: var(--ocre); font-weight: 800; }
.footer-grid { display: grid; gap: 28px; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .18); }
.footer .mono-l { color: var(--ocre); margin-bottom: .6rem; }
.footer-grid p:not(.mono-l), .footer li { color: var(--on-dark-2); font-size: .95rem; }
.footer a { color: var(--on-dark); }
.footer a:hover { color: var(--ocre); }
.footer ul { display: grid; gap: .3rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); }
.footer-bottom p { font-family: var(--mono); font-size: .76rem; }
.footer-bottom a { text-decoration-color: var(--ocre); text-underline-offset: 3px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }

/* 17. Chat ----------------------------------------------------- */
.chat-launch { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: .6rem; padding: 8px 18px 8px 8px; border: 0; border-radius: 999px; background: var(--ink); color: var(--cal); box-shadow: 0 16px 36px -14px rgba(20, 29, 94, .8); font-weight: 600; font-size: .92rem; transition: transform .35s var(--ease-out), opacity .3s, bottom .35s var(--ease-out); }
.chat-launch:hover { transform: translateY(-2px); }
.chat-launch.is-hidden { opacity: 0; pointer-events: none; transform: scale(.9); }
.chat-launch-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ocre); color: var(--ink); }
.chat-launch-ico svg { width: 20px; height: 20px; }
body.has-dock .chat-launch { bottom: calc(86px + env(safe-area-inset-bottom)); }
@media (max-width: 520px) { .chat-launch-txt { display: none; } .chat-launch { padding: 8px; } }
.chat { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 110px)); height: min(620px, calc(100dvh - 110px)); display: flex; flex-direction: column; background: var(--cal); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: 0 30px 70px -20px rgba(20, 29, 94, .55); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: .7rem; padding: 12px 12px 12px 14px; background: var(--cal-3); border-bottom: 1px solid var(--line); }
.chat-av { width: 38px; height: 38px; flex: none; }
.chat-id { flex: 1; display: grid; line-height: 1.25; }
.chat-id b { font-size: .95rem; }
.chat-id small { font-family: var(--mono); font-size: .68rem; color: var(--mute); }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.cmsg { max-width: 88%; padding: .65rem .85rem; border-radius: 14px; font-size: .93rem; line-height: 1.5; }
.cmsg-bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.cmsg-user { background: var(--anil); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.cmsg ul { margin: .3rem 0; padding-left: 1.1rem; list-style: disc; }
.cmsg a { color: var(--anil); font-weight: 600; }
.cmsg-cta { display: flex; flex-wrap: wrap; gap: .4rem; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--anil); opacity: .35; animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { opacity: 1; transform: translateY(-3px); } }
.chat-sugs { display: flex; gap: .4rem; overflow-x: auto; padding: 0 14px 10px; scrollbar-width: none; }
.chat-sugs button { flex: none; border: 1px solid var(--line-2); background: var(--cal-3); border-radius: 999px; padding: .4rem .75rem; font-size: .8rem; }
.chat-sugs button:hover { border-color: var(--anil); color: var(--anil); }
.chat-form { display: flex; gap: .5rem; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--cal-3); }
.chat-form input { flex: 1; min-height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: .55rem .8rem; font-size: 16px; background: #fff; }
.chat-form button { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--anil); color: #fff; display: grid; place-items: center; }
.chat-form button svg { width: 20px; height: 20px; }
.chat-form button[disabled] { opacity: .5; }
.chat-legal { font-size: .7rem; color: var(--mute); padding: 0 12px 10px; background: var(--cal-3); }
@media (max-width: 520px) { .chat { right: 8px; left: 8px; width: auto; bottom: calc(8px + env(safe-area-inset-bottom)); height: calc(100dvh - 90px); } }

/* 18. Revelados (solo con JS) --------------------------------- */
.reveal-on .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal-on .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seal-ring, .bar i, .typing i { animation: none; }
  .reveal-on .reveal { transition-duration: .01s; transform: none; }
  .room.is-new, .room.is-flash, .tot.is-bump { animation: none; }
}

/* 19. Ajustes finos ------------------------------------------- */
.sec-dark .report .mono-l { color: var(--mute); }
@media (max-width: 599px) {
  .mock-quote { position: relative; left: auto; bottom: auto; transform: none; width: auto; margin: -36px 14px 0; }
  .mock-visit { display: none; }
}
