/* ============================================================
   FUSTORI — Carpintería · craft-editorial
   CSS moderno sin frameworks
   ============================================================ */

:root {
  /* Paleta madera / papel */
  --paper:      #f2ebdf;
  --paper-2:    #ece2d2;
  --ink:        #241a12;
  --ink-soft:   #4a3b2c;
  --walnut:     #6b4326;
  --oak:        #a9723f;
  --amber:      #c56a24;
  --amber-2:    #e08a3c;
  --line:       #d8cab2;
  --cream:      #fbf7ef;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Instrument Sans", system-ui, sans-serif;

  --maxw: 1220px;
  --pad: clamp(1.1rem, 4vw, 3rem);
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Textura de grano global */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
picture { display: contents; }

/* ---------- Iconos: tamaño y alineación coherentes (móvil + web) ---------- */
svg { max-width: 100%; stroke-linecap: round; stroke-linejoin: round; }
/* Que los iconos no se compriman ni "caigan" cuando el texto va a 2 líneas */
.dot, .brand__mark, .wa-float, .btn svg, .lang-switch a, .mobile-cta__a span { flex-shrink: 0; }
.brand__mark svg, .wa-float svg { display: block; }
em { font-style: normal; }
::selection { background: var(--amber); color: var(--cream); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.02; letter-spacing: -.01em; }

.eyebrow {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--walnut); font-weight: 600; display: inline-flex; align-items: center; gap: .55rem;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 22%, transparent); }
.ink-accent { color: var(--amber); font-style: italic; font-weight: 500; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--ink); --fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .72em 1.4em; border-radius: 100px; border: 1.5px solid var(--ink);
  background: var(--bg); color: var(--fg); cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
  will-change: transform;
}
.btn--solid:hover { background: var(--amber); border-color: var(--amber); transform: translateY(-3px); box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--amber) 70%, transparent); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-3px); }
.btn--lg { padding: .92em 1.7em; font-size: 1rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem var(--pad);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, padding .3s;
}
.site-header.is-stuck { border-color: var(--line); padding-block: .6rem; }

.brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -.02em; }
.brand__mark { color: var(--amber); display: inline-flex; }
.brand__word { color: var(--ink); }

.nav { display: flex; gap: 1.6rem; }
.nav a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: .2rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1.5px; background: var(--amber); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-cta { display: flex; align-items: center; gap: 1.1rem; }
.header-cta .tel { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Selector de idioma */
.lang-switch { display: inline-flex; align-items: center; gap: .1rem; border: 1px solid var(--line); border-radius: 100px; padding: 2px; background: color-mix(in srgb, var(--cream) 60%, transparent); }
.lang-switch a { font-size: .74rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); padding: .28em .55em; border-radius: 100px; line-height: 1; transition: background .25s var(--ease), color .25s var(--ease); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.is-active { background: var(--ink); color: var(--cream); }
.lang-switch--mobile { margin-top: 1rem; justify-content: center; align-self: flex-start; }

.nav-toggle { display: none; }

/* ---------- Mobile nav ---------- */
.mobile-nav { display: none; flex-direction: column; gap: .3rem; padding: 1rem var(--pad) 1.6rem; background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 58px; z-index: 99; }
.mobile-nav a { padding: .7rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: .8rem; border-bottom: none; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(2rem, 6vw, 5rem) var(--pad) 0; max-width: var(--maxw); margin-inline: auto; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }

.hero__intro h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); margin: 1.1rem 0 1.3rem; font-weight: 400; letter-spacing: -.03em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); max-width: 46ch; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2.2rem; }

.hero__facts { list-style: none; padding: 0; display: flex; gap: clamp(1.2rem, 3vw, 2.6rem); border-top: 1px solid var(--line); padding-top: 1.3rem; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; color: var(--walnut); line-height: 1; }
.hero__facts span { font-size: .82rem; color: var(--ink-soft); margin-top: .25rem; }

/* Panel madera */
.hero__panel { position: relative; margin: 0; }

/* Foto real del hero */
.hero__photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 70px -30px rgba(50,30,12,.55); }
.hero__photo img { width: 100%; height: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.hero__badge {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  background: color-mix(in srgb, var(--cream) 92%, transparent); color: var(--ink);
  font-size: .82rem; font-weight: 600; padding: .45em .85em; border-radius: 100px;
  box-shadow: 0 8px 20px -8px rgba(40,25,10,.4); backdrop-filter: blur(4px);
  white-space: nowrap; max-width: calc(100% - 28px);
}
.wood-panel {
  aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; position: relative;
  background:
    linear-gradient(115deg, #8a5327, #6b4326 55%, #52321c);
  box-shadow: 0 40px 70px -30px rgba(50,30,12,.6), inset 0 0 0 1px rgba(255,255,255,.06);
}
.wood-panel__grain {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(96deg, rgba(0,0,0,.16) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(96deg, rgba(255,220,170,.08) 0 1px, transparent 1px 22px),
    radial-gradient(120% 60% at 20% 10%, rgba(255,200,140,.18), transparent 60%);
  mix-blend-mode: overlay;
}
.wood-panel::after {
  content: ""; position: absolute; inset: 12px; border: 1.5px solid rgba(255,230,190,.22); border-radius: 8px;
}
.wood-panel__tag {
  position: absolute; left: 16px; bottom: 16px; display: flex; gap: .5rem;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,240,220,.9); font-weight: 600;
}

.hero__stamp {
  position: absolute; right: -18px; top: -22px; color: var(--ink);
  background: var(--cream); border-radius: 50%; padding: 6px; box-shadow: 0 16px 30px -14px rgba(40,25,10,.5);
  animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero__stamp { animation: none; } }

/* ---------- Marquesina ---------- */
.marquee { margin-top: clamp(2.5rem, 6vw, 4rem); border-block: 1px solid var(--line); overflow: hidden; }
.marquee__track { display: flex; align-items: center; gap: 1.6rem; padding: .9rem 0; width: max-content; animation: scroll-x 34s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.9rem); color: var(--ink); white-space: nowrap; font-style: italic; font-weight: 400; }
.marquee__track span:nth-child(even) { color: var(--amber); font-style: normal; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Landing: migas, hero, barra de confianza ---------- */
.crumbs { max-width: var(--maxw); margin: 1.2rem auto -.5rem; padding: 0 var(--pad); font-size: .85rem; color: var(--ink-soft); }
.crumbs a { border-bottom: 1px solid transparent; }
.crumbs a:hover { border-color: var(--amber); }
.crumbs span { color: var(--ink); font-weight: 600; }
.blog-lang { max-width: var(--maxw); margin: 1.1rem auto -.4rem; padding: 0 var(--pad); }
.hero--landing { padding-top: clamp(1rem, 3vw, 2rem); }
.hero--landing .hero__grid { align-items: center; }
.trustbar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem;
  max-width: var(--maxw); margin: clamp(1.5rem,4vw,2.5rem) auto 0; padding: 1.1rem var(--pad);
  border-block: 1px solid var(--line); font-size: .92rem; font-weight: 500; color: var(--walnut);
}

/* ============================================================
   SECTIONS base
   ============================================================ */
.section { max-width: var(--maxw); margin-inline: auto; padding: clamp(3.5rem, 9vw, 7rem) var(--pad); }
.section__head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section__head h2, .split__sticky h2, .zone__text h2, .contact__text h2 { font-size: clamp(2rem, 4.5vw, 3.3rem); margin: .8rem 0 .6rem; font-weight: 400; }
.section__sub { color: var(--ink-soft); font-size: 1.08rem; max-width: 52ch; }

/* ============================================================
   SERVICIOS
   ============================================================ */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card {
  position: relative; background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.5rem 1.7rem; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--oak), var(--amber)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 44px -26px rgba(60,36,14,.4); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__num { font-family: var(--font-display); font-size: .9rem; color: var(--oak); font-weight: 600; letter-spacing: .1em; }
.card h3 { font-size: 1.45rem; margin: .5rem 0 .55rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card--accent { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.card--accent .card__num { color: var(--amber-2); }
.card--accent p { color: color-mix(in srgb, var(--cream) 75%, transparent); }

.card__link { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--walnut); border-bottom: 1.5px solid var(--amber); padding-bottom: 1px; transition: gap .3s; }
.card__link:hover { color: var(--amber); }

.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.chips li { font-size: .74rem; padding: .28em .7em; border-radius: 100px; border: 1px solid var(--line); color: var(--ink-soft); }
.card--accent .chips li { border-color: color-mix(in srgb, var(--cream) 26%, transparent); color: color-mix(in srgb, var(--cream) 82%, transparent); }

/* ============================================================
   SPLIT (especialidad) — sticky asimétrico
   ============================================================ */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.split__sticky { position: sticky; top: 100px; }
.split__sticky h2 { font-size: clamp(2rem, 4vw, 3rem); }
.split__sticky .btn { margin-top: 1.6rem; }
.split__list { display: flex; flex-direction: column; }
.feat { padding: 1.8rem 0; border-top: 1px solid var(--line); }
.feat:last-child { border-bottom: 1px solid var(--line); }
.feat__k { font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; color: var(--amber); font-weight: 700; }
.feat h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin: .5rem 0 .6rem; font-weight: 500; }
.feat p { color: var(--ink-soft); max-width: 52ch; }

/* ============================================================
   PROCESO
   ============================================================ */
.process { background: var(--paper-2); max-width: none; }
.process > * { max-width: var(--maxw); margin-inline: auto; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: s; }
.step { position: relative; padding-top: 1.2rem; border-top: 2px solid var(--ink); }
.step__n { font-family: var(--font-display); font-size: 2.6rem; color: var(--oak); font-weight: 500; line-height: 1; }
.step h3 { font-size: 1.3rem; margin: .6rem 0 .5rem; font-weight: 500; }
.step p { color: var(--ink-soft); font-size: .95rem; }

/* ============================================================
   ZONA
   ============================================================ */
.zone { background: var(--ink); color: var(--cream); max-width: none; }
.zone__inner { max-width: var(--maxw); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.zone .eyebrow { color: var(--amber-2); }
.zone__text h2 { color: var(--cream); }
.zone__text .section__sub { color: color-mix(in srgb, var(--cream) 74%, transparent); }
.zone__towns { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1.5rem; }
.zone__towns li { padding: .7rem 0; border-bottom: 1px solid color-mix(in srgb, var(--cream) 16%, transparent); font-size: 1.02rem; display: flex; align-items: center; gap: .6rem; transition: padding-left .3s var(--ease), color .3s; }
.zone__towns li::before { content: "→"; color: var(--amber-2); opacity: 0; transform: translateX(-6px); transition: .3s var(--ease); }
.zone__towns li:hover { padding-left: .3rem; color: #fff; }
.zone__towns li:hover::before { opacity: 1; transform: translateX(0); }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.quotes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.quote { margin: 0; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; position: relative; }
.quote::before { content: "“"; font-family: var(--font-display); font-size: 4rem; color: var(--amber); line-height: .8; display: block; margin-bottom: -.4rem; }
.quote blockquote { font-family: var(--font-display); font-size: 1.18rem; font-weight: 400; line-height: 1.4; }
.quote figcaption { margin-top: 1rem; font-size: .9rem; color: var(--ink-soft); }

/* ============================================================
   FAQ
   ============================================================ */
.faq__list { display: flex; flex-direction: column; max-width: 820px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--amber); transition: transform .3s var(--ease); font-family: var(--font-body); }
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa p { color: var(--ink-soft); padding: 0 2rem 1.3rem 0; max-width: 65ch; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact { }
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__info { list-style: none; padding: 0; margin-top: 2rem; display: flex; flex-direction: column; gap: 0; }
.contact__info li { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.contact__info span { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--walnut); font-weight: 600; }
.contact__info a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.contact__info a:hover { border-color: var(--amber); }
.contact__info address { font-style: normal; }

.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; padding: .7rem .85rem; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--paper); color: var(--ink); transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 18%, transparent); }
.field textarea { resize: vertical; }
.consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: var(--ink-soft); }
.consent input { margin-top: .2rem; accent-color: var(--amber); }
.form-note { grid-column: 1 / -1; font-size: .92rem; min-height: 1.2em; }
.form-note.ok { color: var(--walnut); font-weight: 600; }
.form-note.err { color: #b23b1e; font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--cream); padding: clamp(3rem, 6vw, 4.5rem) var(--pad) 2rem; }
.site-footer > * { max-width: var(--maxw); margin-inline: auto; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: baseline; justify-content: space-between; padding-bottom: 2.2rem; border-bottom: 1px solid color-mix(in srgb, var(--cream) 16%, transparent); }
.brand--footer .brand__word { color: var(--cream); }
.footer__claim { color: color-mix(in srgb, var(--cream) 72%, transparent); max-width: 40ch; font-family: var(--font-display); font-size: 1.15rem; font-style: italic; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 2.4rem 0; }
.site-footer__cols h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--amber-2); font-family: var(--font-body); font-weight: 700; margin-bottom: .9rem; }
.site-footer__cols ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.site-footer__cols a { color: color-mix(in srgb, var(--cream) 82%, transparent); transition: color .25s; }
.site-footer__cols a:hover { color: var(--amber-2); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: .4rem 2rem; justify-content: space-between; padding-top: 1.8rem; font-size: .84rem; color: color-mix(in srgb, var(--cream) 60%, transparent); }

/* ============================================================
   BLOG
   ============================================================ */
.postcard { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.postcard img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.postcard .postcard__tag { align-self: flex-start; margin: 1rem 1.3rem 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--amber); }
.postcard h3 { margin: .4rem 1.3rem .3rem; font-size: 1.35rem; }
.postcard p { margin: 0 1.3rem; color: var(--ink-soft); font-size: .96rem; }
.postcard__more { margin: .9rem 1.3rem 1.3rem; font-weight: 600; color: var(--walnut); }
.postcard.is-soon { opacity: .72; }
.postcard.is-soon .postcard__more { color: var(--ink-soft); }

/* Cajas CTA */
.cta-box { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.4rem); }
.cta-box h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; }
.cta-box p { color: var(--ink-soft); margin-top: .3rem; }
.cta-box__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.cta-box--dark { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.cta-box--dark h3 { color: var(--cream); }
.cta-box--dark p { color: color-mix(in srgb, var(--cream) 74%, transparent); }
.cta-box--dark .btn--ghost { color: var(--cream); border-color: var(--cream); }
.cta-box--dark .btn--ghost:hover { background: var(--cream); color: var(--ink); }

/* Artículo */
.post { max-width: 760px; margin: 0 auto; padding: 1.5rem var(--pad) 2rem; }
.post__head h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 400; margin: .8rem 0 .6rem; letter-spacing: -.02em; }
.post__meta { color: var(--ink-soft); font-size: .9rem; }
.post__cover { margin: 1.6rem 0; border-radius: var(--radius); overflow: hidden; }
.post__cover img { width: 100%; aspect-ratio: 3/2; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(50,30,12,.5); }
.post__tldr { background: color-mix(in srgb, var(--amber) 12%, var(--cream)); border-left: 3px solid var(--amber); border-radius: 8px; padding: 1.1rem 1.3rem; margin: 1.5rem 0; font-size: 1.05rem; }
.post__tldr a { color: var(--walnut); font-weight: 600; border-bottom: 1px solid var(--amber); }
.post h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; margin: 2.2rem 0 .8rem; }
.post p { margin: .9rem 0; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.72; }
.post__list { margin: 1rem 0; padding-left: 1.2rem; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.7; }
.post__list li { margin: .5rem 0; }
.post__list strong, .post p strong { color: var(--ink); }
.post__note { font-size: .95rem !important; font-style: italic; }
.post__internal { border-top: 1px solid var(--line); padding-top: 1.4rem; margin-top: 2rem; }
.post__internal a { color: var(--walnut); font-weight: 600; border-bottom: 1px solid var(--amber); }
.table-wrap { overflow-x: auto; margin: 1.2rem 0; }
.post table { width: 100%; border-collapse: collapse; font-size: .98rem; min-width: 460px; }
.post th, .post td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.post th { font-family: var(--font-display); font-weight: 600; background: var(--cream); }
.post tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   BARRA DE ACCIÓN FIJA EN MÓVIL
   ============================================================ */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
    display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 1px;
    background: var(--line); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgba(40,25,10,.35);
  }
  .mobile-cta__a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    padding: .6rem .3rem calc(.6rem + env(safe-area-inset-bottom, 0px));
    background: var(--cream); font-size: .78rem; font-weight: 600; color: var(--ink);
  }
  .mobile-cta__a span { font-size: 1.35rem; line-height: 1; }
  .mobile-cta__a--wa { background: #25d366; color: #fff; }
  .mobile-cta__a--main { background: var(--ink); color: var(--cream); }
  body { padding-bottom: 60px; }
  .wa-float { display: none; } /* la barra ya incluye WhatsApp */
}

/* ============================================================
   BANNER DE COOKIES (RGPD)
   ============================================================ */
.cookie {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 400; width: min(680px, calc(100% - 24px));
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem;
  background: var(--ink); color: var(--cream); border-radius: var(--radius);
  padding: 1rem 1.2rem; box-shadow: 0 24px 50px -20px rgba(20,12,6,.6);
  animation: cookie-in .5s var(--ease);
}
.cookie p { flex: 1 1 260px; font-size: .9rem; color: color-mix(in srgb, var(--cream) 84%, transparent); margin: 0; }
.cookie__actions { display: flex; gap: .6rem; }
.cookie__actions .btn { padding: .55em 1.1em; font-size: .88rem; }
.cookie__actions .btn--ghost { color: var(--cream); border-color: color-mix(in srgb, var(--cream) 40%, transparent); }
.cookie__actions .btn--ghost:hover { background: var(--cream); color: var(--ink); }
.cookie--out { opacity: 0; transform: translate(-50%, 12px); transition: opacity .3s, transform .3s; }
@keyframes cookie-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 760px) { .cookie { bottom: 70px; } }

/* ============================================================
   VALORACIONES (cabecera de testimonios)
   ============================================================ */
.rating-badge { display: inline-flex; align-items: center; gap: .7rem; margin-top: .6rem; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 100px; background: var(--cream); }
.rating-badge strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--walnut); line-height: 1; }
.rating-badge .stars { color: var(--amber); letter-spacing: 2px; font-size: 1rem; }
.rating-badge small { color: var(--ink-soft); font-size: .82rem; }

/* ============================================================
   PRECIOS ORIENTATIVOS
   ============================================================ */
.pricing .price-table { overflow-x: auto; }
.pricing table { width: 100%; border-collapse: collapse; min-width: 460px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pricing th, .pricing td { text-align: left; padding: .95rem 1.2rem; border-bottom: 1px solid var(--line); }
.pricing thead th { font-family: var(--font-display); font-weight: 600; background: var(--paper-2); }
.pricing td:last-child { text-align: right; font-weight: 600; color: var(--walnut); white-space: nowrap; }
.pricing tbody tr:last-child td { border-bottom: none; }
.pricing .price-note { margin-top: 1rem; font-size: .9rem; color: var(--ink-soft); font-style: italic; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 14px 30px -10px rgba(37,211,102,.6);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); }

/* ============================================================
   MICRO-INTERACCIONES
   ============================================================ */
/* Barra de progreso de scroll */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300; background: linear-gradient(90deg, var(--oak), var(--amber)); box-shadow: 0 0 10px color-mix(in srgb, var(--amber) 60%, transparent); transition: width .08s linear; }

/* Spotlight en tarjetas */
.card::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease);
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--amber) 20%, transparent), transparent 62%); }
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card--accent::after { background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--amber-2) 26%, transparent), transparent 62%); }

/* ============================================================
   GALERÍA ANTES / DESPUÉS
   ============================================================ */
.gallery .ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.ba { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/2; --pos: 50%; user-select: none; touch-action: pan-y; box-shadow: 0 22px 42px -26px rgba(50,30,12,.45); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba__before { position: absolute; inset: 0; z-index: 2; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--cream); z-index: 3; transform: translateX(-1px); pointer-events: none; }
.ba__handle::after { content: "⟺"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; background: var(--cream); color: var(--ink); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.35); font-size: .85rem; }
.ba__range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__lbl { position: absolute; bottom: 10px; z-index: 3; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: #fff; background: rgba(20,12,6,.6); padding: .28em .65em; border-radius: 100px; pointer-events: none; }
.ba__lbl--before { left: 10px; } .ba__lbl--after { right: 10px; }
.ba__cap { display: block; margin-top: .7rem; font-size: .92rem; color: var(--ink-soft); font-weight: 500; }

/* ============================================================
   FORMULARIO MULTI-PASO (wizard)
   ============================================================ */
.wizard-head { grid-column: 1 / -1; margin-bottom: .2rem; }
.wizard-prog { height: 6px; background: var(--line); border-radius: 100px; overflow: hidden; }
.wizard-prog span { display: block; height: 100%; width: 33%; background: linear-gradient(90deg, var(--oak), var(--amber)); border-radius: 100px; transition: width .45s var(--ease); }
.wizard-count { font-size: .8rem; color: var(--ink-soft); margin-top: .5rem; font-weight: 600; letter-spacing: .02em; }
.wizard-step { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; animation: wz-in .4s var(--ease); }
.wizard-step[hidden] { display: none; }
@keyframes wz-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.wizard-nav { grid-column: 1 / -1; display: flex; gap: .7rem; }
.wizard-nav .btn { flex: 1; }
.wizard-nav .btn[hidden] { display: none; }
@media (max-width: 760px) { .wizard-step { grid-template-columns: 1fr; } }

/* ============================================================
   REVEAL (scroll animation)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .services__grid, .quotes__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split__sticky { position: static; }
  .zone__inner, .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav, .header-cta .tel, .header-cta .lang-switch { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0; background: none; border: none; cursor: pointer; flex-shrink: 0;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-nav.is-open { display: flex; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { max-width: 380px; order: -1; }
  .services__grid, .quotes__grid { grid-template-columns: 1fr; }
  .zone__towns { grid-template-columns: 1fr; }
  .contact__form { grid-template-columns: 1fr; }
  .contact__info li { grid-template-columns: 90px 1fr; }
}

@media (max-width: 460px) {
  .steps { grid-template-columns: 1fr; }
  .hero__facts { flex-wrap: wrap; gap: 1.2rem; }
}
