/* Starstone · propuesta de web. Marca: azul del logo (#4470B3) + grafito y blanco hueso de la piedra. */
@font-face { font-family: 'Cormorant'; src: url(../fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(../fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(../fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(../fonts/manrope-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(../fonts/manrope-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(../fonts/manrope-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(../fonts/manrope-latin-800-normal.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'JBMono'; src: url(../fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --noche: #121417; --noche-2: #1B1E22; --noche-3: #262A30;
  --hueso: #F3F0EA; --hueso-2: #E8E3DA; --papel: #F7F5F0;
  --tinta: #16181B; --gris: #5B5F66; --gris-claro: #B8BCC3;
  --azul: #2F5C9E; --azul-marca: #4470B3; --azul-luz: #8FB4EC; --agua: #6E9FA0;
  --wa: #25D366; --wa-osc: #1EBE5A;
  --serif: 'Cormorant', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JBMono', ui-monospace, Menlo, monospace;
  --gut: clamp(16px, 4.5vw, 64px);
  --max: 1320px;
  --franja: 34px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; overflow-x: clip; }
body { margin: 0; background: var(--hueso); color: var(--tinta); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: #fff; color: var(--tinta); padding: 10px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--azul-luz); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--gris-claro); }
.hide-m { display: none; }
@media (min-width: 900px) { .hide-m { display: inline; } }

/* ---------- Entrada: corte ---------- */
.intro { position: fixed; inset: 0; z-index: 300; pointer-events: auto; cursor: pointer; }
.intro-half { position: absolute; left: 0; right: 0; height: 50.2%; background: var(--noche) url(../img/muestras-piedra-800.webp) center/cover; transition: transform .9s cubic-bezier(.76,0,.24,1); }
.intro-half::after { content: ""; position: absolute; inset: 0; background: rgba(18,20,23,.82); }
.intro-top { top: 0; background-position: center top; }
.intro-bot { bottom: 0; background-position: center bottom; }
.intro-cut { position: absolute; left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%); z-index: 2; }
.intro-cut::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #fff 20%, var(--azul-luz)); transform-origin: left; transform: scaleX(0); animation: corte 1s cubic-bezier(.7,0,.3,1) .15s forwards; box-shadow: 0 0 14px 2px rgba(143,180,236,.8); }
.intro-blade { position: absolute; top: 50%; left: 0; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.75); animation: disco 1s cubic-bezier(.7,0,.3,1) .15s forwards, gira .35s linear infinite; opacity: .9; }
.intro-logo { position: absolute; left: 50%; top: calc(50% - 64px); transform: translateX(-50%); z-index: 3; width: min(231px, 56vw); opacity: 0; animation: aparece .5s ease .05s forwards; }
.intro.fuera .intro-top { transform: translateY(-101%); }
.intro.fuera .intro-bot { transform: translateY(101%); }
.intro.fuera .intro-cut, .intro.fuera .intro-logo { opacity: 0; transition: opacity .3s; }
@keyframes corte { to { transform: scaleX(1); } }
@keyframes disco { from { left: 0; } to { left: 100%; } }
@keyframes gira { to { rotate: 360deg; } }
@keyframes aparece { to { opacity: 1; } }

/* ---------- Franja de propuesta ---------- */
.franja { position: relative; z-index: 60; background: var(--azul); color: #fff; font-size: 13px; line-height: 1.35; text-align: center; padding: 8px var(--gut); }
.franja strong { font-weight: 700; }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px var(--gut); background: rgba(18,20,23,.0); transition: background .35s, box-shadow .35s, padding .35s; margin-bottom: -76px; }
.nav.solido { background: rgba(18,20,23,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.06); padding-top: 10px; padding-bottom: 10px; }
.nav-logo { display: block; width: 150px; flex: none; }
.nav-logo img { width: 100%; height: auto; }
.logo-oscuro { display: none; }
.nav-links { display: none; gap: 26px; margin-left: auto; }
.nav-links a { color: #E9E6E0; text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .01em; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--azul-luz); transform: scaleX(0); transform-origin: right; transition: transform .35s; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-tel { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; background: var(--hueso); color: var(--tinta); text-decoration: none; font-weight: 800; font-size: 15px; padding: 10px 14px; border-radius: 999px; white-space: nowrap; }
.nav-tel svg { width: 17px; height: 17px; fill: var(--azul); }
.nav-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); background: transparent; border-radius: 50%; padding: 0 12px; }
.nav-burger span { display: block; height: 1.5px; background: #fff; transition: transform .3s; }
.nav.abierto .nav-burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav.abierto .nav-burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
@media (max-width: 1099px) {
  .nav.abierto .nav-links { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--noche); padding: 12px var(--gut) 24px; gap: 0; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
  .nav.abierto .nav-links a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav.abierto { background: var(--noche); }
}
@media (max-width: 420px) { .nav-logo { width: 120px; } .nav-tel { font-size: 14px; padding: 9px 12px; } .nav { gap: 10px; } }
@media (min-width: 1100px) { .nav-links { display: flex; } .nav-tel { margin-left: 8px; } .nav-burger { display: none; } .nav-logo { width: 176px; } }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none; border: 0; transition: transform .25s, background .25s, box-shadow .25s; }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: var(--noche); box-shadow: 0 10px 30px -10px rgba(37,211,102,.6); }
.btn-wa:hover { background: #3EE07B; }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: #fff; }
.btn-claro { background: var(--hueso); color: var(--tinta); }
.btn-azul { background: var(--azul); color: #fff; }
.btn-azul:hover { background: #244C86; }
.btn-full { width: 100%; }
.lnk { font-weight: 700; color: var(--azul); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.lnk-claro { color: var(--azul-luz); }

/* ---------- Portada ---------- */
.hero { position: relative; background: radial-gradient(120% 90% at 85% 10%, #22262C 0%, var(--noche) 55%); background-color: var(--noche); color: #F3F0EA; padding: 104px var(--gut) 0; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E"); z-index: -1; pointer-events: none; }
.hero-veta { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-veta path { fill: none; stroke: rgba(201,195,184,.22); stroke-width: 1.2; }
.hero-veta #veta2 { stroke: rgba(143,180,236,.18); stroke-width: .8; }
.hero-in { max-width: var(--max); margin: 0 auto; display: grid; gap: 40px; }
.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gris-claro); display: flex; align-items: center; gap: 10px; }
.eyebrow .dot { width: 8px; height: 8px; background: var(--azul-marca); transform: rotate(45deg); flex: none; }
.hero-h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(50px, 13.5vw, 128px); line-height: .92; letter-spacing: -.02em; margin-top: 22px; }
.hero-h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-h1 .ln > span { display: inline-block; }
.hero-h1 em { font-style: italic; color: var(--azul-luz); }
.hero-sub { margin-top: 22px; font-size: clamp(16px, 1.6vw, 19px); color: #D9D6D0; max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-tel { display: inline-flex; flex-direction: column; margin-top: 28px; text-decoration: none; }
.hero-tel-lbl { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gris-claro); }
.hero-tel-num { font-family: var(--sans); font-weight: 800; font-size: clamp(40px, 10.5vw, 76px); line-height: 1; letter-spacing: -.03em; color: #fff; margin-top: 6px; transition: color .25s; }
.hero-tel:hover .hero-tel-num { color: var(--azul-luz); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 22px; font-size: 14.5px; }
.stars { color: #F2C14E; letter-spacing: 2px; }
.sep { width: 1px; height: 16px; background: rgba(255,255,255,.2); margin: 0 4px; }
.abierto { display: inline-flex; align-items: center; gap: 8px; color: #E9E6E0; }
.abierto-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gris-claro); flex: none; }
[data-abierto].si .abierto-dot { background: var(--wa); box-shadow: 0 0 0 4px rgba(37,211,102,.18); animation: late 2s infinite; }
[data-abierto].no .abierto-dot { background: #E5484D; }
@keyframes late { 50% { box-shadow: 0 0 0 7px rgba(37,211,102,.05); } }
.hero-vis { position: relative; min-height: 360px; }
.losa { margin: 0; position: absolute; overflow: hidden; border-radius: 4px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.losa img { width: 100%; height: 100%; object-fit: cover; }
.losa figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 10px 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.losa figcaption span { color: var(--azul-luz); margin-right: 6px; }
.losa-a { left: 0; top: 0; width: 82%; height: 290px; }
.losa-b { right: 0; bottom: 0; width: 52%; height: 170px; border: 6px solid var(--noche); }
.sello { position: absolute; left: 4%; bottom: -10px; width: 112px; height: 112px; z-index: 3; background: var(--noche); border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.sello svg { width: 100%; height: 100%; animation: gira 22s linear infinite; }
.sello text { font-family: var(--mono); font-size: 9.6px; letter-spacing: .2em; fill: #E9E6E0; }
.sello-star { fill: var(--azul-marca); }
@media (max-width: 899px) {
  .hero { padding-top: 0; }
  .hero-in { gap: 6px; }
  .hero-vis { order: -1; min-height: 0; height: 280px; margin: 0 calc(-1 * var(--gut)); }
  .losa-a { inset: 0; width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
  .losa-a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,20,23,.8) 0%, rgba(18,20,23,0) 40%, rgba(18,20,23,0) 62%, var(--noche) 100%); }
  .losa-a figcaption { display: none; }
  .losa-b { display: none; }
  .sello { display: none; }
  .hero-h1 { margin-top: 16px; }
  .proy-hueco:nth-of-type(n+4) { display: none; }
  .proy-ph { min-height: 150px; }
}
.hero-pie { width: 100%; max-width: var(--max); margin: 56px auto 0; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0 22px; border-top: 1px solid rgba(255,255,255,.1); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gris-claro); }
@media (min-width: 900px) {
  .hero { padding-top: 132px; min-height: calc(100vh - var(--franja)); display: flex; flex-direction: column; }
  .hero-in { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 56px; flex: 1; }
  .hero-h1 { font-size: clamp(64px, 7.4vw, 124px); }
  .hero-vis { min-height: 560px; height: 100%; }
  .losa-a { width: 86%; height: 72%; }
  .losa-b { width: 56%; height: 38%; }
  .sello { left: -50px; bottom: 30%; width: 128px; height: 128px; }
}

/* ---------- Cinta ---------- */
.cinta { background: var(--azul); color: #fff; overflow: hidden; padding: 16px 0; transform: rotate(-1.2deg); margin: -10px -20px 0; position: relative; z-index: 2; box-shadow: 0 20px 40px -20px rgba(47,92,158,.6); }
.cinta-track { display: flex; gap: 34px; white-space: nowrap; width: max-content; font-family: var(--serif); font-size: clamp(30px, 5vw, 54px); font-style: italic; line-height: 1; will-change: transform; }
.cinta-track i { font-style: normal; font-size: .5em; align-self: center; color: var(--azul-luz); }
html:not(.gs) .cinta-track { animation: cinta 40s linear infinite; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ---------- Secciones genéricas ---------- */
section { position: relative; }
.sec-head { max-width: var(--max); margin: 0 auto 44px; }
.sec-head-split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.folio { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--azul); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.folio::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.folio-claro { color: var(--azul-luz); }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 7vw, 84px); line-height: .98; letter-spacing: -.015em; color: var(--tinta); }
.h2 em { font-style: italic; color: var(--azul); }
.h2-claro { color: #F3F0EA; }
.h2-claro em { color: var(--azul-luz); }
.lead { margin-top: 20px; font-size: clamp(16px, 1.5vw, 19px); color: #3F4349; max-width: 40em; }

/* ---------- Datos ---------- */
.datos { padding: 70px var(--gut) 40px; }
.datos-in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr; border-top: 1px solid #CFC9BE; }
.dato { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid #CFC9BE; }
.dato-k { font-family: var(--serif); font-size: 30px; line-height: 1.1; font-weight: 600; }
.dato-v { color: var(--gris); font-size: 15px; }
@media (min-width: 600px) and (max-width: 999px) { .datos-in { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
@media (min-width: 1000px) { .datos-in { grid-template-columns: repeat(4, 1fr); border-top: 0; } .dato { padding: 6px 26px 6px 0; border-bottom: 0; border-left: 1px solid #CFC9BE; padding-left: 22px; } .dato:first-child { border-left: 0; padding-left: 0; } }

/* ---------- La estrella: calcula ---------- */
.calcula { padding: 80px var(--gut) 90px; }
.calc { max-width: var(--max); margin: 0 auto; display: grid; gap: 22px; }
.calc-panel { background: var(--noche); color: #F3F0EA; border-radius: 20px; padding: 26px 20px; display: grid; gap: 26px; align-content: start; }
.calc-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc-step legend { font-weight: 800; font-size: 17px; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; padding: 0; }
.calc-step legend small { font-weight: 400; color: var(--gris-claro); }
.calc-step .n { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--azul-luz); color: var(--azul-luz); display: inline-grid; place-items: center; font-family: var(--mono); font-size: 13px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button, .tonos button, .tog { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: transparent; color: #E9E6E0; font-weight: 600; font-size: 15px; transition: background .2s, border-color .2s, color .2s; }
.chips button:hover, .tonos button:hover, .tog:hover { border-color: rgba(255,255,255,.6); }
.chips button[aria-checked="true"] { background: var(--hueso); color: var(--tinta); border-color: var(--hueso); }
.tonos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tonos button { display: inline-flex; align-items: center; gap: 8px; padding-left: 8px; }
.tonos i { width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: 1px solid rgba(255,255,255,.3); }
.tonos button[aria-checked="true"] { border-color: var(--azul-luz); background: rgba(143,180,236,.12); color: #fff; }
.medidas { display: grid; gap: 10px; }
.med { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; color: #D9D6D0; }
.med-in { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; overflow: hidden; flex: none; }
.med-in input { width: 64px; height: 44px; text-align: center; background: transparent; border: 0; color: #fff; font-family: var(--mono); font-size: 16px; -moz-appearance: textfield; }
.med-in input::-webkit-outer-spin-button, .med-in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.med-b { width: 44px; height: 44px; border: 0; background: rgba(255,255,255,.06); color: #fff; font-size: 20px; }
.med-b:hover { background: rgba(255,255,255,.14); }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tog { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; padding: 0 14px 0 10px; }
.tog i { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid rgba(255,255,255,.5); display: inline-grid; place-items: center; }
.tog[aria-pressed="true"] { border-color: var(--azul-luz); color: #fff; }
.tog[aria-pressed="true"] i { background: var(--azul-luz); border-color: var(--azul-luz); }
.tog[aria-pressed="true"] i::after { content: ""; width: 8px; height: 4px; border-left: 2px solid var(--noche); border-bottom: 2px solid var(--noche); transform: rotate(-45deg) translate(1px, -1px); }
.calc-plano { background: var(--papel); border-radius: 20px; padding: 18px; border: 1px solid #DDD6CA; box-shadow: 0 30px 60px -40px rgba(18,20,23,.5); display: grid; gap: 14px; align-content: start; }
.plano-head { display: flex; justify-content: space-between; gap: 10px; color: var(--gris); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.plano { aspect-ratio: 4 / 3; max-height: 62vh; width: 100%; background: #FBFAF7; border-radius: 10px; overflow: hidden; border: 1px solid #E3DDD2; }
.plano svg { width: 100%; height: 100%; display: block; overflow: visible; }
.plano .t-cota { font-family: var(--mono); font-size: 10px; font-weight: 500; }
.plano .t-sm { font-family: var(--sans); font-size: 7.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.plano-res { display: flex; align-items: center; gap: 18px; padding: 4px 4px 0; }
.swatch-wrap { perspective: 600px; flex: none; }
.swatch { width: 86px; height: 86px; position: relative; transform: rotateX(52deg) rotateZ(-32deg); transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.swatch:hover { transform: rotateX(40deg) rotateZ(-20deg); }
.swatch-top { position: absolute; inset: 0; background: var(--tex) center/cover, #ccc; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.swatch-edge { position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: var(--tex) center/cover, #999; filter: brightness(.7); transform-origin: top; transform: rotateX(-90deg); }
.res-mat { font-weight: 800; font-size: 16px; }
.res-m2 { font-family: var(--serif); font-size: 40px; line-height: 1; font-weight: 600; margin-top: 4px; }
.res-m2 small { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--gris); }
.res-nota { font-size: 14px; color: var(--gris); margin-top: 6px; }
.calc-envio { display: grid; gap: 12px; border-top: 1px dashed #CFC9BE; padding-top: 16px; }
.fld { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.fld small { font-weight: 400; color: var(--gris); }
.fld input, .fld select { height: 52px; border-radius: 12px; border: 1px solid #CFC9BE; background: #fff; padding: 0 14px; font: inherit; font-weight: 400; font-size: 16px; color: var(--tinta); width: 100%; }
.fld input:focus, .fld select:focus { outline: 3px solid rgba(47,92,158,.35); border-color: var(--azul); }
.fld input.err { border-color: #C4342D; outline: 3px solid rgba(196,52,45,.2); }
.preview summary { cursor: pointer; font-size: 14px; color: var(--azul); font-weight: 700; }
.preview p { margin-top: 10px; background: #DCF8C6; color: #111; border-radius: 12px 12px 12px 2px; padding: 12px 14px; font-size: 14px; white-space: pre-line; }
.calc-aviso { max-width: var(--max); margin: 16px auto 0; font-size: 13px; color: var(--gris); }
@media (min-width: 640px) { .calc-envio { grid-template-columns: 1fr 1fr; } .calc-envio .btn, .calc-envio .preview { grid-column: 1 / -1; } }
@media (min-width: 1000px) {
  .calc { grid-template-columns: 420px 1fr; gap: 26px; }
  .calc-panel { padding: 32px 28px; }
  .calc-plano { padding: 24px; }
  .plano { aspect-ratio: 16 / 10; max-height: 430px; }
}

/* ---------- Servicios ---------- */
.servicios { padding: 90px var(--gut); background: var(--hueso-2); }
.serv-lista { list-style: none; margin: 0 auto; padding: 0; max-width: var(--max); border-top: 1px solid #C8C1B5; }
.serv { display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; padding: 26px 0; border-bottom: 1px solid #C8C1B5; align-items: start; transition: background .3s; }
.serv-n { font-family: var(--mono); font-size: 12px; color: var(--azul); padding-top: 8px; }
.serv-ico { display: none; }
.serv h3 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; line-height: 1.05; }
.serv p { color: #3F4349; margin-top: 8px; max-width: 38em; font-size: 16px; }
.serv-cta { grid-column: 2; justify-self: start; margin-top: 10px; color: var(--azul); font-weight: 800; text-decoration: none; font-size: 15px; border-bottom: 1px solid currentColor; }
@media (min-width: 900px) {
  .serv { grid-template-columns: 60px 64px 1fr auto; gap: 28px; align-items: center; padding: 30px 12px; }
  .serv-ico { display: block; width: 52px; height: 52px; fill: none; stroke: var(--tinta); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s cubic-bezier(.2,.8,.2,1), stroke .3s; }
  .serv-n { padding-top: 0; }
  .serv-cta { grid-column: auto; margin: 0; white-space: nowrap; }
  .serv:hover { background: rgba(255,255,255,.5); }
  .serv:hover .serv-ico { transform: rotate(-8deg) scale(1.08); stroke: var(--azul); }
}

/* ---------- Trabajos ---------- */
.trabajos { padding: 90px var(--gut); }
.filtros { display: flex; flex-wrap: wrap; gap: 6px; }
.filtros button { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid #C8C1B5; background: transparent; font-weight: 700; font-size: 14px; color: var(--tinta); }
.filtros button[aria-selected="true"] { background: var(--tinta); color: var(--hueso); border-color: var(--tinta); }
.proy-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .proy-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .proy-grid { grid-template-columns: 1.2fr 1fr 1fr; } .proy:first-child { grid-row: span 2; } }
.proy { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #E1DACE; display: flex; flex-direction: column; }
.proy[hidden] { display: none; }
.proy-foto { position: relative; display: block; background: var(--noche); aspect-ratio: 4 / 3; overflow: hidden; }
.proy-foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 1000px) { .proy:first-child .proy-foto { aspect-ratio: auto; flex: 1; min-height: 420px; } }
.proy-mas-wrap { max-width: var(--max); margin: 26px auto 0; display: flex; justify-content: center; }
.proy-mas-wrap .btn[hidden] { display: none; }
.proy-vert { display: grid; place-items: center; padding: 26px; background: radial-gradient(circle at 50% 30%, #2A2E35, var(--noche)); }
.proy-vert img { width: auto; height: 100%; max-height: 440px; aspect-ratio: 203 / 360; object-fit: cover; border-radius: 18px; border: 5px solid #2C3036; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.proy-foto:hover img { transform: scale(1.03); }
.proy-play { position: absolute; right: 14px; bottom: 14px; background: var(--hueso); color: var(--tinta); font-weight: 800; font-size: 13px; border-radius: 999px; padding: 8px 12px; }
.proy-info { padding: 18px 20px 20px; }
.proy-info h3 { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.1; }
.proy-ficha { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.proy-ficha span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid #D5CEC2; border-radius: 999px; padding: 5px 10px; color: #3F4349; }
.proy-nota { margin-top: 10px; font-size: 14.5px; color: var(--gris); }
.proy-hueco { background: transparent; border: 1.5px dashed #B7AFA2; }
.proy-ph { flex: 1; min-height: 190px; display: grid; place-content: center; justify-items: center; gap: 10px; color: #6A6E75; background: repeating-linear-gradient(135deg, rgba(0,0,0,.025) 0 12px, transparent 12px 24px); }
.proy-ph svg { width: 46px; height: 46px; fill: none; stroke: #8A8E94; stroke-width: 1.5; }
.proy-ph span { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #55595F; }
.proy-hueco h3 { color: #3F4349; }
.nota-propuesta { max-width: var(--max); margin: 24px auto 0; background: #E3EBF6; border-left: 4px solid var(--azul); border-radius: 0 12px 12px 0; padding: 16px 20px; display: grid; gap: 4px; }
.nota-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--azul); }
.nota-propuesta p { font-size: 15.5px; color: #1F2A3A; }
.ig { max-width: var(--max); margin: 56px auto 0; }
.ig-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--gris); }
.ig-row { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.ig-card { scroll-snap-align: start; text-decoration: none; display: grid; gap: 8px; }
.ig-card img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; background: var(--noche); transition: transform .4s; }
.ig-card:hover img { transform: translateY(-4px); }
.ig-card span { font-weight: 700; font-size: 14px; line-height: 1.3; }
@media (min-width: 760px) { .ig-row { grid-auto-flow: initial; grid-template-columns: repeat(4, 1fr); overflow: visible; } }

/* ---------- Materiales ---------- */
.materiales { padding: 90px var(--gut); background: var(--noche); color: #F3F0EA; display: grid; gap: 40px; }
.materiales .h2 { color: #F3F0EA; }
.materiales .h2 em { color: var(--azul-luz); }
.materiales .folio { color: var(--azul-luz); }
.materiales .lead { color: #D9D6D0; }
.mat-foto { border-radius: 16px; overflow: hidden; max-height: 520px; }
.mat-foto img { width: 100%; height: 100%; object-fit: cover; }
.mat-txt .sec-head { margin-bottom: 30px; }
.mat-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mat-lista li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); }
.mat-sw { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 10px 20px -8px rgba(0,0,0,.6); }
.mat-lista h3 { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; }
.mat-lista p { color: #C9C6C0; font-size: 15.5px; }
.marcas { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.marcas .mono { color: var(--gris-claro); }
.marcas ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.marcas li { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.marcas small { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--gris-claro); margin-left: 6px; }
@media (min-width: 1000px) { .materiales { grid-template-columns: .8fr 1fr; gap: 70px; align-items: start; } .mat-foto { position: sticky; top: 100px; max-height: none; aspect-ratio: 3 / 4; } .materiales > * { max-width: none; } }
@media (min-width: 1000px) { .materiales { padding-left: max(var(--gut), calc((100vw - var(--max)) / 2)); padding-right: max(var(--gut), calc((100vw - var(--max)) / 2)); } }

/* ---------- Taller ---------- */
.taller { padding: 90px var(--gut); }
.pasos { max-width: var(--max); margin: 0 auto; display: grid; gap: 56px; }
.paso { display: grid; gap: 20px; }
.paso-foto { overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3; background: var(--noche); }
.paso-foto img { width: 100%; height: 100%; object-fit: cover; }
.paso-n { font-family: var(--serif); font-style: italic; font-size: 64px; line-height: 1; color: var(--azul); display: block; }
.paso h3 { font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); font-weight: 600; line-height: 1.05; margin-top: 6px; }
.paso p { margin-top: 12px; color: #3F4349; max-width: 30em; }
@media (min-width: 900px) {
  .paso { grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
  .paso:nth-child(even) .paso-foto { order: 2; }
  .paso-foto { aspect-ratio: 16 / 11; }
  .paso-n { font-size: 96px; }
}

/* ---------- Profesionales ---------- */
.pro { position: relative; overflow: hidden; padding: 110px var(--gut); background: var(--noche); isolation: isolate; }
.pro-bg { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; }
.pro::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,20,23,.94) 0%, rgba(18,20,23,.86) 55%, rgba(18,20,23,.55) 100%); z-index: -1; }
.pro-in { max-width: var(--max); margin: 0 auto; }
.pro-txt { color: #E3E0DA; margin-top: 22px; max-width: 36em; font-size: 17.5px; }
.pro-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 30px; }

/* ---------- Opiniones ---------- */
.opiniones { padding: 90px var(--gut); }
.nota-g { display: grid; justify-items: start; gap: 2px; }
.nota-g-n { font-family: var(--serif); font-size: 84px; line-height: .9; font-weight: 600; }
.nota-g .muted { color: var(--gris); font-weight: 700; font-size: 14px; }
.nota-g .stars { color: #B7861A; }
.ops { max-width: var(--max); margin: 0 auto; display: grid; gap: 16px; }
.op { margin: 0; background: #fff; border: 1px solid #E1DACE; border-radius: 16px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.op p { font-size: 17px; }
.op footer { display: grid; gap: 2px; font-size: 14px; }
.op footer span { color: var(--gris); }
.op-grande { background: var(--noche); color: #F3F0EA; border: 0; }
.op-grande p { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.22; font-weight: 500; }
.op-grande footer span { color: var(--gris-claro); }
@media (min-width: 800px) { .ops { grid-template-columns: repeat(3, 1fr); } .op-grande { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .ops { grid-template-columns: 1.6fr 1fr 1fr; } .op-grande { grid-column: 1; grid-row: span 2; } .ops .op:last-child { grid-column: 2 / 4; } }

/* ---------- Fallos arreglados ---------- */
.fallos { padding: 90px var(--gut); background: var(--hueso-2); }
.fallos-lista { list-style: none; margin: 0 auto; padding: 0; max-width: var(--max); display: grid; gap: 12px; counter-reset: f; }
.fallos-lista li { background: var(--papel); border: 1px solid #D9D2C6; border-radius: 14px; padding: 18px 20px; display: grid; gap: 10px; counter-increment: f; position: relative; }
.fallos-lista p { font-size: 15.5px; display: grid; grid-template-columns: 66px 1fr; gap: 10px; align-items: baseline; }
.fallos-lista p span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 3px 0; text-align: center; }
.antes { color: #4A4E55; }
.antes span { background: #F3D9D6; color: #8E1F19; }
.ahora { color: var(--tinta); font-weight: 600; }
.ahora span { background: #D7E4F5; color: #1E4277; }
@media (min-width: 900px) { .fallos-lista { grid-template-columns: 1fr 1fr; } }

/* ---------- Contacto ---------- */
.contacto { background: var(--noche); color: #F3F0EA; padding: 90px var(--gut) 0; }
.cont-in { max-width: var(--max); margin: 0 auto; display: grid; gap: 40px; }
.cont-tel { display: grid; margin-top: 30px; text-decoration: none; font-weight: 800; font-size: clamp(42px, 9vw, 72px); line-height: 1; letter-spacing: -.03em; color: #fff; }
.cont-tel span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gris-claro); font-weight: 500; margin-bottom: 8px; }
.cont-tel:hover { color: var(--azul-luz); }
.cont-lista { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.cont-lista li { display: grid; gap: 2px; font-size: 16.5px; }
.cont-lista span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gris-claro); }
.cont-lista a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); justify-self: start; }
.horario { margin-top: 28px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 18px; }
.horario-estado { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.horario dl { margin: 14px 0 0; display: grid; gap: 10px; }
.horario dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gris-claro); }
.horario dd { margin: 2px 0 0; font-size: 15.5px; }
.cont-form { background: var(--hueso); color: var(--tinta); border-radius: 20px; padding: 26px 20px; display: grid; gap: 14px; align-content: start; }
.cont-form h3 { font-family: var(--serif); font-size: 38px; font-weight: 600; line-height: 1; }
.form-sub { color: var(--gris); font-size: 15px; }
.form-err { color: #A3241D; font-weight: 700; font-size: 14px; }
.form-alt { text-align: center; font-size: 14.5px; color: var(--gris); }
.form-alt a { color: var(--azul); font-weight: 800; }
@media (min-width: 1000px) { .cont-in { grid-template-columns: 1fr 1fr; gap: 70px; } .cont-form { padding: 34px; } }
.mapa { position: relative; max-width: var(--max); margin: 70px auto 0; border-radius: 20px 20px 0 0; overflow: hidden; height: 440px; }
.mapa img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.mapa-card { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(18,20,23,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 14px; padding: 18px; display: grid; gap: 8px; justify-items: start; }
.mapa-card .mono { color: var(--azul-luz); font-size: 11px; }
.mapa-dir { font-family: var(--serif); font-size: 28px; line-height: 1.1; font-weight: 600; }
@media (min-width: 760px) { .mapa { height: 560px; } .mapa-card { left: 30px; right: auto; bottom: 30px; width: 380px; padding: 24px; } }

/* ---------- Pie ---------- */
.pie { background: #0C0D0F; color: #D9D6D0; padding: 60px var(--gut) 120px; }
.pie-in { max-width: var(--max); margin: 0 auto; display: grid; gap: 22px; }
.pie-logo { width: 190px; display: block; }
.pie-logo img, .intro-logo img { width: 100%; height: auto; }
.pie-lema { max-width: 40em; font-size: 15px; color: var(--gris-claro); }
.pie-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.pie-links a { color: #fff; text-decoration: none; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.25); }
.legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; font-size: 14px; color: var(--gris-claro); }
.legal summary { cursor: pointer; font-weight: 700; color: #E9E6E0; }
.legal p { margin-top: 10px; max-width: 60em; }
.pie-prop { font-size: 13px; color: var(--gris-claro); border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; }
@media (min-width: 900px) { .pie { padding-bottom: 60px; } }

/* ---------- Fijos ---------- */
.wa-flot { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: none; align-items: center; gap: 10px; background: var(--wa); color: var(--noche); text-decoration: none; font-weight: 800; font-size: 15px; padding: 0 20px 0 14px; height: 58px; border-radius: 999px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.55); transition: transform .25s; }
.wa-flot svg { width: 28px; height: 28px; fill: currentColor; }
.wa-flot:hover { transform: translateY(-3px); }
.barra-m { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(12,13,15,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,.08); transition: transform .35s; }
.barra-m a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 999px; font-weight: 800; text-decoration: none; font-size: 16px; }
.barra-m svg { width: 20px; height: 20px; fill: currentColor; }
.barra-tel { background: var(--hueso); color: var(--tinta); }
.barra-wa { background: var(--wa); color: var(--noche); }
.barra-m.oculta { transform: translateY(110%); }
.wa-flot.oculta { transform: translateY(140%); opacity: 0; pointer-events: none; }
.wa-flot { transition: transform .35s, opacity .35s; }
@media (min-width: 900px) { .barra-m { display: none; } .wa-flot { display: inline-flex; } }

/* Sin movimiento */
html.rm *, html.rm *::before, html.rm *::after { animation: none !important; transition: none !important; }
html.rm .intro { display: none; }

/* Demo de n8n: respuesta al cliente y ficha para Sergio */
.n8n-demo { grid-column: 1 / -1; display: grid; gap: 12px; background: #16181B; color: #F2EFE9; border-radius: 14px; padding: 16px; }
.n8n-tit { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #A9C1FF; font-weight: 700; }
.n8n-bloque { display: grid; gap: 6px; background: rgba(255,255,255,.06); border-radius: 10px; padding: 12px; }
.n8n-et { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #C9C3B8; font-weight: 700; }
.n8n-wa { background: #DCF8C6; color: #111; border-radius: 10px 10px 10px 3px; padding: 10px 12px; }
.n8n-pr { display: inline-block; border-radius: 99px; padding: 1px 9px; font-size: 11px; letter-spacing: .04em; color: #fff; background: #6B7280; vertical-align: 1px; }
.n8n-alta { background: #D61F2C; } .n8n-media { background: #B45309; } .n8n-baja { background: #1D4ED8; }
.n8n-mot, .n8n-sig { color: #D9D4CA; font-size: 14px; }
.n8n-demo ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
