/* ============================================================
   TALUMI — Engineering Blueprint
   Light / industrial / technical datasheet system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --paper:      #EEF0F3;
  --paper-2:    #E7EAEE;
  --surface:    #FFFFFF;
  --ink:        #15171B;
  --ink-soft:   #3B414A;
  --steel:      #6A7079;
  --steel-2:    #9097A0;
  --line:       #D3D8DF;
  --line-soft:  #E3E7EC;
  --accent:     #F2521B;
  --accent-dk:  #C23D0E;
  --accent-wash:#FCEAE1;
  --blue:       #1E5F8C;     /* technical accent for HVAC dimension lines */

  --grid-fine:  rgba(21,23,27,0.045);
  --grid-major: rgba(21,23,27,0.075);
  /* brighter, accent-tinted lines revealed under the cursor "scanner" */
  --grid-beam:       rgba(242,82,27,0.10);
  --grid-beam-major: rgba(242,82,27,0.26);

  --nav-bg: rgba(238,240,243,0.82);
  --glow:   rgba(242,82,27,0.05);   /* soft light that trails the cursor */

  /* pointer position, updated by JS; defaults keep things sane pre-script */
  --mx: 50vw; --my: 24vh;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1320px;
  --pad: clamp(20px, 4vw, 64px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- dark theme palette ---------- */
[data-theme="dark"] {
  --paper:      #0E1013;
  --paper-2:    #15181D;
  --surface:    #16191F;
  --ink:        #ECEEF1;
  --ink-soft:   #AEB6C0;
  --steel:      #828B95;
  --steel-2:    #5E666F;
  --line:       #282E36;
  --line-soft:  #1E232A;
  --accent:     #F2521B;
  --accent-dk:  #FF6B3D;
  --accent-wash:rgba(242,82,27,0.14);
  --blue:       #4AA3D8;

  --grid-fine:  rgba(255,255,255,0.045);
  --grid-major: rgba(255,255,255,0.08);
  --grid-beam:       rgba(242,82,27,0.14);
  --grid-beam-major: rgba(242,82,27,0.34);

  --nav-bg: rgba(14,16,19,0.82);
  --glow:   rgba(242,82,27,0.10);
}

/* smooth full-page colour crossfade — class is added only for the duration
   of a theme switch, so it never interferes with hover/other transitions */
html.theme-anim *:not(.grid-glow) {
  transition: background-color .55s var(--ease), color .55s var(--ease),
              border-color .55s var(--ease), fill .55s var(--ease),
              stroke .55s var(--ease), box-shadow .55s var(--ease) !important;
}

/* language crossfade: translated nodes fade out, swap, fade back in.
   opacity doesn't affect layout, so nothing reflows during the swap. */
[data-es] { transition: opacity .2s var(--ease); }
html.lang-fade [data-es] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  [data-es] { transition: none; }
  html.theme-anim *:not(.grid-glow) { transition: none !important; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-display);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* blueprint grid background — fixed layer holding two stacked pseudo-grids:
   ::before is the faint always-on grid (gentle top fade + slow ambient drift)
   ::after is a brighter accent-tinted grid masked to a soft circle that tracks
   the pointer (--mx/--my), so the blueprint "lights up" like a scanner. */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
/* broad, soft light that follows the cursor — sits behind the grid lines */
.grid-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle 600px at var(--mx) var(--my), var(--glow), transparent 62%);
}
.grid-bg::before,
.grid-bg::after {
  content: ""; position: absolute; inset: 0;
  background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px;
  background-position: 0 0;
  will-change: background-position;
  animation: grid-drift 26s linear infinite;
}
.grid-bg::before {
  background-image:
    linear-gradient(var(--grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px),
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 35%, transparent 95%);
          mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 35%, transparent 95%);
}
.grid-bg::after {
  background-image:
    linear-gradient(var(--grid-beam) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-beam) 1px, transparent 1px),
    linear-gradient(var(--grid-beam-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-beam-major) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(circle 240px at var(--mx) var(--my), #000 0%, rgba(0,0,0,.4) 46%, transparent 72%);
          mask-image: radial-gradient(circle 240px at var(--mx) var(--my), #000 0%, rgba(0,0,0,.4) 46%, transparent 72%);
}
/* one major-cell (140px = 5 fine cells) of travel loops seamlessly */
@keyframes grid-drift {
  to { background-position: 140px 140px, 140px 140px, 140px 140px, 140px 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .grid-bg::before, .grid-bg::after { animation: none; }
  .grid-bg::after { opacity: 0; }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------- shared atoms ---------- */
.shell { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); position: relative; z-index: 1; }

.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }

.kicker {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--steel);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker .idx { color: var(--accent); }
.kicker::before {
  content: ""; width: 26px; height: 1px; background: var(--steel-2); display: inline-block;
}

.eyebrow-num {
  font-family: var(--font-mono); font-weight: 600; font-size: 12px;
  letter-spacing: .14em; color: var(--accent); text-transform: uppercase;
}

h1,h2,h3 { font-family: var(--font-display); line-height: 1.02; letter-spacing: -0.02em; font-weight: 800; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-weight: 600; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 14px 22px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
  position: relative;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dk); border-color: var(--accent-dk); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* corner crop marks */
.cropped { position: relative; }
.cropped::before, .cropped::after,
.cropped > .cm-bl, .cropped > .cm-br { content:""; position:absolute; width:10px; height:10px; pointer-events:none; }
.cropped::before { top:-1px; left:-1px; border-top:1.5px solid var(--ink); border-left:1.5px solid var(--ink); }
.cropped::after  { top:-1px; right:-1px; border-top:1.5px solid var(--ink); border-right:1.5px solid var(--ink); }
.cm-bl { bottom:-1px; left:-1px; border-bottom:1.5px solid var(--ink); border-left:1.5px solid var(--ink); }
.cm-br { bottom:-1px; right:-1px; border-bottom:1.5px solid var(--ink); border-right:1.5px solid var(--ink); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav__row { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: baseline; gap: 8px; font-weight: 900; font-size: 22px; letter-spacing: -0.03em; }
.brand .dot { color: var(--accent); }
.brand small { font-family: var(--font-mono); font-size: 9px; font-weight: 500; letter-spacing: .18em; color: var(--steel); text-transform: uppercase; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-soft); padding: 8px 12px; position: relative;
  transition: color .18s;
}
.nav__links a::after { content:""; position:absolute; left:12px; right:12px; bottom:4px; height:1.5px; background:var(--accent); transform: scaleX(0); transform-origin:left; transition: transform .25s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 0; overflow: hidden;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em;
  background: var(--surface);
}
.lang button { padding: 7px 10px; background: transparent; color: var(--steel); border: none; transition: all .15s; }
.lang button.active { background: var(--ink); color: var(--paper); }

/* light / dark toggle */
.theme-toggle {
  width: 34px; height: 32px; flex: none; display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: color .15s, border-color .15s, background .15s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .ico-sun { display: none; }
.theme-toggle .ico-moon { display: block; }
[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
[data-theme="dark"] .theme-toggle .ico-moon { display: none; }

.nav__cta { display: inline-flex; }
.nav__burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(40px,7vw,84px) 0 clamp(48px,7vw,90px); position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px,4vw,64px); align-items: center; }
.hero__copy { min-width: 0; }   /* text column never steals width from the figure */
.hero__kicker { margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 92px); font-weight: 900; line-height: 0.97;
  letter-spacing: -0.035em; margin-bottom: 24px; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); }
/* typewriter rotating word */
.hero h1 { min-height: 1.95em; }            /* reserve ~2 lines so typing doesn't shove the page */
.hero__pre { white-space: nowrap; }         /* "Ingeniería en" / "Engineering for" stays on one line... */
.type { display: block; }                   /* ...and the rotating word always sits on its own line below */
.type__text { color: var(--accent); }
.type__caret {
  display: inline-block; width: .055em; height: .82em; margin-left: .04em;
  background: var(--accent); vertical-align: -0.07em; border-radius: 1px;
  animation: caret-blink 1.05s steps(1) infinite;
}
@keyframes caret-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .type__caret { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero__lead { font-size: clamp(16px,1.35vw,19px); color: var(--ink-soft); max-width: 44ch; line-height: 1.55; margin-bottom: 34px; font-weight: 400; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero__meta { margin-top: 38px; display: flex; gap: 30px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.hero__meta .stat .n { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.hero__meta .stat .l { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }

/* hero blueprint figure */
.fig {
  background: var(--surface); border: 1px solid var(--line);
  position: relative; padding: 22px;
}
.fig__head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed var(--line); padding-bottom: 12px; margin-bottom: 10px; }
.fig__head .t { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); font-weight: 600; }
.fig__head .r { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--steel); }
.fig__stage { position: relative; aspect-ratio: 4/3.4; display: grid; place-items: center; overflow: hidden; }
.fig__stage svg { width: 100%; height: 100%; }
.fig__foot { display: flex; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--steel); }
.fig__foot b { color: var(--ink); font-weight: 600; }

/* spring stroke styling shared */
.bp-line { stroke: var(--ink); fill: none; }
.bp-dim  { stroke: var(--accent); fill: none; stroke-width: 1; }
.bp-dim-blue { stroke: var(--blue); }
.bp-txt  { font-family: var(--font-mono); font-size: 11px; fill: var(--steel); letter-spacing:.04em; }
.bp-txt-acc { fill: var(--accent); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
section { position: relative; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: clamp(48px,7vw,86px) 0 30px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(30px,4.4vw,58px); font-weight: 800; letter-spacing: -0.03em; }
.sec-head .lead { color: var(--ink-soft); max-width: 46ch; font-size: 16px; line-height: 1.55; font-weight: 400; }
.sec-head__l { max-width: 60%; }

.rule { height: 1px; background: var(--line); width: 100%; }
.rule--ink { background: var(--ink); height: 1.5px; }

/* ============================================================
   ÁREAS
   ============================================================ */
.areas { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border: 1px solid var(--line); background: var(--surface); }
.area {
  padding: 32px 28px 28px; position: relative; border-right: 1px solid var(--line);
  transition: background .25s var(--ease); display: flex; flex-direction: column; min-height: 360px;
  text-decoration: none; color: inherit;
}
.area:last-child { border-right: none; }
.area:hover { background: var(--accent-wash); }
.area::after { content:""; position:absolute; left:0; bottom:0; height:3px; width:0; background:var(--accent); transition: width .35s var(--ease); }
.area:hover::after { width: 100%; }
.area__idx { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--steel); margin-bottom: 18px; display:flex; justify-content:space-between; }
.area__idx b { color: var(--accent); }
.area__ico { height: 84px; margin: 6px 0 22px; }
.area__ico svg { height: 100%; }
.area h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.area p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; font-weight: 400; }
.area__more { margin-top: auto; padding-top: 20px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.area__more .arrow { transition: transform .25s var(--ease); color: var(--accent); }
.area:hover .area__more .arrow { transform: translateX(5px); }

/* ============================================================
   DETAIL BLOCKS (mecanizado / climatizacion)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); background: var(--surface); }
.split__media { position: relative; overflow: hidden; background: var(--paper-2); min-height: 420px; }
.split__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) contrast(1.02); }
.split__media--bp { background: var(--surface); display: flex; }
.bp-panel {
  flex: 1; display: flex; flex-direction: column; padding: 24px;
  background-image:
    linear-gradient(var(--grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px);
  background-size: 22px 22px;
}
.bp-panel__head, .bp-panel__foot { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.bp-panel__head { border-bottom: 1px dashed var(--line); padding-bottom: 12px; }
.bp-panel__head b, .bp-panel__foot b { color: var(--ink); font-weight: 600; }
.bp-panel__foot { border-top: 1px dashed var(--line); padding-top: 12px; }
.bp-panel__stage { flex: 1; min-height: 300px; display: grid; place-items: center; padding: 14px 0; }
.bp-panel__stage svg { width: 100%; height: 100%; max-height: 340px; }
.split__tag { position: absolute; top: 16px; left: 16px; background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; z-index: 2; }
.split__body { padding: clamp(28px,3.4vw,48px); }
.split__body h3 { font-size: clamp(24px,2.6vw,34px); margin-bottom: 16px; }
.split__body > p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; max-width: 50ch; font-weight: 400; }

.taglist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .03em; color: var(--ink-soft);
  border: 1px solid var(--line); padding: 7px 11px; background: var(--paper); transition: all .18s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 30px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.spec { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 18px; }
.spec .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin-bottom: 8px; }
.spec .v { font-size: 14px; color: var(--ink); line-height: 1.5; }
.spec .v ul { list-style: none; }
.spec .v li { padding: 1px 0; }

/* ============================================================
   RESORTES — datasheet of spring types
   ============================================================ */
.springs { border: 1px solid var(--line); background: var(--surface); }
.springs__top { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--line); }
.spring {
  border-right: 1px solid var(--line); padding: 26px 24px 28px; position: relative;
  transition: background .25s; 
}
.spring:last-child { border-right: none; }
.spring:hover { background: var(--accent-wash); }
.spring__no { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--accent); margin-bottom: 14px; }
.spring__draw { height: 150px; display: grid; place-items: center; margin-bottom: 18px; }
.spring__draw svg { height: 100%; width: 100%; }
.spring h4 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.spring p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; font-weight: 400; margin-bottom: 14px; }
.spring__spec { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-mono); font-size: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.spring__spec .l { color: var(--steel); letter-spacing: .06em; text-transform: uppercase; font-size: 10px; }
.spring__spec .d { color: var(--ink); font-weight: 600; margin-left: auto; }

.springs__steel { padding: 26px 28px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.springs__steel .lab { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); white-space: nowrap; }
.steel-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.steel-tags span { font-family: var(--font-mono); font-size: 12px; color: var(--ink); border: 1px solid var(--line); padding: 6px 10px; background: var(--paper); }

/* ============================================================
   CLIMATIZACION columns
   ============================================================ */
.clima { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); background: var(--surface); }
.clima__col { border-right: 1px solid var(--line); padding: 26px 22px; }
.clima__col:last-child { border-right: none; }
.clima__col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; font-weight: 600; }
.clima__col ul { list-style: none; }
.clima__col li { font-size: 16px; font-weight: 500; padding: 9px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.clima__col li:last-child { border-bottom: none; }

/* ============================================================
   EXPERIENCIA — marquee / industries
   ============================================================ */
.exp { background: var(--ink); color: #fff; border: 1px solid var(--ink); overflow: hidden; }
.exp__inner { padding: clamp(40px,5vw,68px) clamp(28px,3vw,48px); }
.exp__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.exp__head h2 { font-size: clamp(28px,3.6vw,46px); color: #fff; }
.exp__head .k { color: var(--accent); }
.exp__head p { color: #A9AFB8; max-width: 40ch; font-size: 15px; line-height: 1.55; font-weight: 400; }
.exp__list { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); }
.exp__list .i { background: var(--ink); padding: 18px 18px; display: flex; align-items: center; gap: 12px; transition: background .2s; }
.exp__list .i:hover { background: #1e2127; }
.exp__list .i .n { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.exp__list .i .t { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }

/* ============================================================
   COTIZACION — quote form
   ============================================================ */
.quote { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 0; border: 1px solid var(--line); background: var(--surface); }
.quote__aside { padding: clamp(30px,3vw,46px); border-right: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; }
.quote__aside h3 { font-size: clamp(26px,2.8vw,38px); margin-bottom: 14px; }
.quote__aside .lead { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin-bottom: 28px; font-weight: 400; }
.contact-row { display: flex; flex-direction: column; gap: 18px; margin-top: auto; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding-top: 16px; border-top: 1px solid var(--line); }
.contact-item .ico { width: 32px; height: 32px; border: 1px solid var(--line); display: grid; place-items: center; flex: none; background: var(--surface); }
.contact-item .ico svg { width: 16px; height: 16px; stroke: var(--ink); }
.contact-item .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin-bottom: 3px; }
.contact-item .v { font-size: 14.5px; color: var(--ink); font-weight: 500; line-height: 1.45; }
.contact-item .v a:hover { color: var(--accent); }

.wa-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 13px 18px; background: #1FA855; color: #fff; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; transition: background .2s; }
.wa-btn:hover { background: #168544; }
.wa-btn svg { width: 18px; height: 18px; fill: #fff; }

.quote__form { padding: clamp(30px,3vw,46px); }
.quote__form .formhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.quote__form .formhead .step { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--steel); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin-bottom: 8px; }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-display); font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); background: var(--paper); outline: none;
  transition: border-color .18s, background .18s; border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: #fff; }
.field textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.seg { display: flex; gap: 0; border: 1px solid var(--line); }
.seg button { flex: 1; padding: 11px 8px; background: var(--paper); border: none; border-right: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--steel); transition: all .15s; }
.seg button:last-child { border-right: none; }
.seg button.active { background: var(--ink); color: var(--paper); }

.drop {
  border: 1.5px dashed var(--line); padding: 18px; text-align: center; background: var(--paper);
  font-family: var(--font-mono); font-size: 12px; color: var(--steel); transition: all .18s; cursor: pointer;
}
.drop:hover { border-color: var(--accent); color: var(--accent-dk); background: var(--accent-wash); }
.drop b { color: var(--ink); }
.drop.has-file { border-color: var(--accent); color: var(--ink); background: var(--accent-wash); }

.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.submit-row .note { font-family: var(--font-mono); font-size: 11px; color: var(--steel); max-width: 30ch; line-height: 1.5; }
.btn--full { }

.form-ok { display: none; padding: 40px 20px; text-align: center; }
.form-ok.show { display: block; }
.form-ok .check { width: 56px; height: 56px; border: 1.5px solid var(--accent); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; }
.form-ok .check svg { width: 26px; height: 26px; stroke: var(--accent); }
.form-ok h3 { font-size: 26px; margin-bottom: 10px; }
.form-ok p { color: var(--ink-soft); font-size: 15px; max-width: 36ch; margin: 0 auto; font-weight: 400; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: clamp(40px,5vw,70px) 0 30px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer__brand .brand { font-size: 30px; margin-bottom: 14px; }
.footer__brand p { color: var(--ink-soft); font-size: 14px; max-width: 36ch; line-height: 1.55; font-weight: 400; }
.footer__col h5 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); margin-bottom: 16px; }
.footer__col a, .footer__col p { display: block; font-size: 14px; color: var(--ink-soft); padding: 5px 0; line-height: 1.4; font-weight: 400; }
.footer__col a:hover { color: var(--accent); }
.footer__bot { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; flex-wrap: wrap; gap: 12px; }
.footer__bot .c { font-family: var(--font-mono); font-size: 11px; color: var(--steel); letter-spacing: .04em; }

/* the Experiencia panel is intentionally inverted (dark) in light mode;
   in dark mode it would otherwise become light-on-white, so re-tone it */
[data-theme="dark"] .exp { background: #11141A; border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .exp__head h2 { color: var(--ink); }
[data-theme="dark"] .exp__head p { color: var(--steel); }
[data-theme="dark"] .exp__list { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.07); }
[data-theme="dark"] .exp__list .i { background: #11141A; }
[data-theme="dark"] .exp__list .i:hover { background: #181c23; }

/* reveal animation — natural state is visible; animation only plays when painting */
.reveal.in { animation: rise .7s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__fig-wrap { order: -1; }
  .areas { grid-template-columns: 1fr; }
  .area { border-right: none; border-bottom: 1px solid var(--line); min-height: 0; }
  .area:last-child { border-bottom: none; }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: -1; }
  .springs__top { grid-template-columns: 1fr; }
  .spring { border-right: none; border-bottom: 1px solid var(--line); }
  .clima { grid-template-columns: 1fr 1fr; }
  .exp__list { grid-template-columns: 1fr 1fr; }
  .quote { grid-template-columns: 1fr; }
  .quote__aside { border-right: none; border-bottom: 1px solid var(--line); }
  .footer__top { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }          /* avoid a second "Cotiza" — burger is the CTA */
  .nav__burger { display: inline-flex; margin-left: auto; }
  .nav__row { gap: 12px; }
  .nav__burger { padding: 11px 14px; }
  .field-row { grid-template-columns: 1fr; }
  .clima { grid-template-columns: 1fr; }
  .exp__list { grid-template-columns: 1fr; }
  .hero__meta { gap: 20px; }
  /* keep the cursor scanner from feeling cramped on small screens */
  .grid-bg::after { -webkit-mask-image: radial-gradient(circle 170px at var(--mx) var(--my), #000 0%, rgba(0,0,0,.4) 46%, transparent 74%); mask-image: radial-gradient(circle 170px at var(--mx) var(--my), #000 0%, rgba(0,0,0,.4) 46%, transparent 74%); }
}
@media (max-width: 420px) {
  .brand { font-size: 19px; }
  .lang button { padding: 6px 8px; }
  .hero h1 { font-size: clamp(34px, 11vw, 46px); }
  .hero__meta { gap: 16px 24px; }
  .hero__meta .stat .n { font-size: 26px; }
  .shell { --pad: 18px; }
  .springs__steel { gap: 16px; }
  .exp__list .i { padding: 15px 16px; }
}
