/* ============================================================
   TARIMAS Y EMBALAJES TECTA — Sistema visual
   Modernized industrial: rojo + madera, condensado, aire.
   ============================================================ */

/* ---------- Tokens ---------- */
:root{
  /* warm neutrals */
  --bg:        #F4F1EB;
  --bg-2:      #ECE7DD;
  --surface:   #FCFAF6;
  --ink:       #1C1A16;
  --ink-2:     #57514799;
  --ink-soft:  #5B554B;
  --line:      #E0D9CC;
  --line-2:    #CFC6B6;

  /* brand */
  --red:       #CE1A2B;
  --red-deep:  #A31221;
  --red-ink:   #7C0D18;
  --gold:      #F0A310;
  --gold-deep: #C97E00;
  --wood:      #C18F54;
  --wood-2:    #A06E36;
  --wood-deep: #6B4A28;

  /* charcoal (dark sections) */
  --char:      #201D18;
  --char-2:    #2B271F;
  --char-line: #3D372C;

  /* fonts */
  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* scale */
  --maxw: 1240px;
  --pad:  clamp(20px, 5vw, 64px);
  --sect: clamp(72px, 9vw, 132px);
  --radius: 4px;

  --shadow-sm: 0 1px 2px rgba(28,26,22,.06), 0 2px 8px rgba(28,26,22,.04);
  --shadow-md: 0 4px 14px rgba(28,26,22,.08), 0 14px 40px rgba(28,26,22,.07);
  --shadow-lg: 0 10px 30px rgba(28,26,22,.12), 0 30px 70px rgba(28,26,22,.10);

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

/* ---------- Theme: Refined (more air, red as accent) ---------- */
:root[data-theme="refined"]{
  --bg:      #FBFAF7;
  --bg-2:    #F3F0EA;
  --surface: #FFFFFF;
  --line:    #ECE7DD;
  --sect:    clamp(88px, 11vw, 160px);
}

/* ---------- Theme: Charcoal (dark, gold-forward) ---------- */
:root[data-theme="charcoal"]{
  --bg:      #211E18;
  --bg-2:    #29251D;
  --surface: #2C2820;
  --ink:     #F4EFE5;
  --ink-soft:#C3BAA8;
  --line:    #3C3528;
  --line-2:  #4A4131;
}

/* ---------- Headline type variants ---------- */
:root[data-head="grotesk"]{
  --font-head: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================================ */
*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:var(--font-body); font-size:17px; line-height:1.6;
  font-weight:400; -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; cursor:pointer; }
::selection{ background:var(--red); color:#fff; }

/* ---------- Layout ---------- */
.wrap{ max-width:var(--maxw); margin-inline:auto; padding-inline:var(--pad); }
.wrap-wide{ max-width:1440px; margin-inline:auto; padding-inline:var(--pad); }
.section{ padding-block:var(--sect); }
.section-tight{ padding-block:clamp(48px,6vw,84px); }

/* ---------- Type ---------- */
h1,h2,h3,h4{ font-family:var(--font-head); font-weight:700; line-height:1.02; margin:0;
  letter-spacing:-.005em; }
:root[data-head="grotesk"] h1,
:root[data-head="grotesk"] h2,
:root[data-head="grotesk"] h3,
:root[data-head="grotesk"] h4{ letter-spacing:-.02em; line-height:1.05; }

.display{ font-size:clamp(44px, 7vw, 104px); text-transform:uppercase; line-height:.92; }
.h1{ font-size:clamp(38px, 5.4vw, 76px); text-transform:uppercase; line-height:.96; }
.h2{ font-size:clamp(30px, 3.6vw, 50px); text-transform:uppercase; }
.h3{ font-size:clamp(22px, 2.2vw, 30px); text-transform:uppercase; }
p{ margin:0 0 1em; color:var(--ink-soft); }
.lead{ font-size:clamp(18px,1.6vw,22px); color:var(--ink-soft); line-height:1.55; max-width:62ch; }
strong{ color:var(--ink); font-weight:600; }

/* eyebrow */
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-mono); font-size:12.5px; font-weight:500;
  letter-spacing:.16em; text-transform:uppercase; color:var(--ink-soft);
  margin:0 0 18px;
}
.eyebrow::before{ content:""; width:9px; height:9px; background:var(--red);
  display:inline-block; transform:rotate(45deg); flex:none; }
.eyebrow.on-dark{ color:var(--gold); }
.eyebrow.on-dark::before{ background:var(--gold); }
.eyebrow.on-red{ color:#fff; }
.eyebrow.on-red::before{ background:#fff; }

.section-num{ font-family:var(--font-mono); font-size:13px; color:var(--red);
  font-weight:600; letter-spacing:.1em; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px; justify-content:center;
  font-family:var(--font-head); text-transform:uppercase; font-weight:600;
  letter-spacing:.04em; font-size:18px; line-height:1;
  padding:16px 26px; border-radius:var(--radius); border:2px solid transparent;
  transition:transform .18s var(--ease), background .18s, color .18s, box-shadow .18s, border-color .18s;
  white-space:nowrap;
}
.btn svg{ width:18px; height:18px; }
.btn-red{ background:var(--red); color:#fff; box-shadow:0 6px 18px rgba(206,26,43,.28); }
.btn-red:hover{ background:var(--red-deep); transform:translateY(-2px);
  box-shadow:0 10px 26px rgba(206,26,43,.34); }
.btn-wa{ background:#1FA855; color:#fff; box-shadow:0 6px 18px rgba(31,168,85,.28); }
.btn-wa:hover{ background:#178a45; transform:translateY(-2px); }
.btn-ghost{ border-color:var(--line-2); color:var(--ink); background:transparent; }
.btn-ghost:hover{ border-color:var(--ink); transform:translateY(-2px); }
.btn-dark{ background:var(--ink); color:var(--bg); }
.btn-dark:hover{ transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn-lg{ font-size:20px; padding:18px 32px; }
.btn-sm{ font-size:15px; padding:11px 18px; }

/* ---------- Placeholder media ---------- */
.ph{
  position:relative; overflow:hidden; border-radius:var(--radius);
  background:
    repeating-linear-gradient(135deg,
      rgba(107,74,40,.10) 0 14px, rgba(107,74,40,.04) 14px 28px),
    linear-gradient(180deg,#E7DCC9,#D8C7AC);
  color:var(--wood-deep); isolation:isolate;
}
.ph::after{
  content:attr(data-label);
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  text-align:center; padding:14px;
  font-family:var(--font-mono); font-size:12px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--wood-deep); opacity:.78; font-weight:500; line-height:1.5;
}
.ph.dark{
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.22) 0 14px, rgba(0,0,0,.10) 14px 28px),
    linear-gradient(180deg,#4A4032,#33291c);
}
.ph.dark::after{ color:#E8D8BC; opacity:.85; }
/* real photo inside a placeholder box */
.ph > img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; z-index:1; }
.ph:has(img){ background:#d9cdb8; }
.ph:has(img)::after{ display:none; }

/* full-bleed image band */
.fb-band{ position:relative; overflow:hidden; }
.fb-band > img{ width:100%; height:clamp(280px,42vw,520px); object-fit:cover; display:block; }
.fb-band .fb-cap{ position:absolute; inset:auto 0 0 0; padding:clamp(24px,4vw,52px);
  background:linear-gradient(0deg, rgba(20,18,14,.82) 0%, rgba(20,18,14,.30) 55%, transparent 100%); color:#fff; }
.fb-band .fb-cap .eyebrow{ color:var(--gold); margin-bottom:12px; }
.fb-band .fb-cap .eyebrow::before{ background:var(--gold); }
.fb-band .fb-cap h2{ color:#fff; max-width:20ch; }
.ratio-16-9{ aspect-ratio:16/9; }
.ratio-4-3{ aspect-ratio:4/3; }
.ratio-3-2{ aspect-ratio:3/2; }
.ratio-1-1{ aspect-ratio:1/1; }
.ratio-3-4{ aspect-ratio:3/4; }

/* ============================================================
   TOP BAR + HEADER
   ============================================================ */
.topbar{ background:var(--char); color:#D8CFBF; font-size:13.5px; }
.topbar .wrap-wide{ display:flex; align-items:center; justify-content:space-between;
  height:40px; gap:18px; white-space:nowrap; }
.topbar a{ display:inline-flex; align-items:center; gap:8px; color:#D8CFBF; }
.topbar a:hover{ color:#fff; }
.topbar .tb-left{ display:flex; gap:24px; align-items:center; }
.topbar .tb-right{ display:flex; gap:8px; align-items:center; color:var(--gold);
  font-family:var(--font-mono); letter-spacing:.04em; }
.topbar svg{ width:14px; height:14px; opacity:.85; }
@media (max-width:980px){ .topbar .tb-left a:nth-child(2){ display:none; } }
@media (max-width:560px){ .topbar .tb-right span{ display:none; } }

.site-header{
  position:sticky; top:0; z-index:60; background:color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.site-header .wrap-wide{ display:flex; align-items:center; gap:24px; height:76px; }

/* logo */
.brand{ display:flex; align-items:center; gap:12px; flex:none; }
.brand-logo{ height:52px; width:auto; flex:none; display:block; }
.brand-mark{
  width:46px; height:46px; border-radius:6px; flex:none; position:relative;
  background:linear-gradient(160deg,var(--red),var(--red-deep));
  display:grid; place-items:center; box-shadow:inset 0 0 0 2px rgba(255,255,255,.12);
}
.brand-mark span{ font-family:var(--font-head); font-weight:700; color:#fff;
  font-size:22px; letter-spacing:.02em; line-height:1; }
.brand-mark::after{ content:""; position:absolute; left:7px; right:7px; bottom:8px; height:3px;
  background:var(--gold); border-radius:2px; }
.brand-txt b{ font-family:var(--font-head); font-weight:700; font-size:23px;
  text-transform:uppercase; letter-spacing:.01em; line-height:.9; color:var(--ink);
  display:block; }
.brand-txt small{ font-family:var(--font-mono); font-size:9.5px; letter-spacing:.22em;
  text-transform:uppercase; color:var(--ink-soft); display:block; margin-top:3px; }

.nav{ display:flex; align-items:center; gap:4px; margin-left:auto; }
.nav a{
  font-family:var(--font-head); text-transform:uppercase; font-weight:600;
  letter-spacing:.03em; font-size:17px; color:var(--ink-soft);
  padding:9px 14px; border-radius:var(--radius); position:relative;
  transition:color .15s;
}
.nav a:hover{ color:var(--ink); }
.nav a.active{ color:var(--ink); }
.nav a.active::after{ content:""; position:absolute; left:14px; right:14px; bottom:2px;
  height:2.5px; background:var(--red); border-radius:2px; }
.header-cta{ display:flex; align-items:center; gap:12px; margin-left:8px; flex:none; }
.header-phone{ display:inline-flex; align-items:center; gap:8px; font-family:var(--font-head);
  font-weight:600; font-size:18px; text-transform:uppercase; color:var(--ink); }
.header-phone svg{ width:18px; height:18px; color:var(--red); }

.menu-btn{ display:none; margin-left:auto; width:46px; height:46px; border:1px solid var(--line-2);
  background:var(--surface); border-radius:var(--radius); align-items:center; justify-content:center; }
.menu-btn span{ display:block; width:20px; height:2px; background:var(--ink); position:relative; }
.menu-btn span::before,.menu-btn span::after{ content:""; position:absolute; left:0; width:20px;
  height:2px; background:var(--ink); }
.menu-btn span::before{ top:-6px; } .menu-btn span::after{ top:6px; }

/* mobile drawer */
.drawer{ position:fixed; inset:0; z-index:80; display:none; }
.drawer.open{ display:block; }
.drawer-scrim{ position:absolute; inset:0; background:rgba(20,18,14,.5); backdrop-filter:blur(2px); }
.drawer-panel{ position:absolute; top:0; right:0; height:100%; width:min(86vw,360px);
  background:var(--bg); box-shadow:var(--shadow-lg); padding:22px; display:flex; flex-direction:column;
  gap:6px; transform:translateX(100%); transition:transform .3s var(--ease); }
.drawer.open .drawer-panel{ transform:translateX(0); }
.drawer-panel .dh{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.drawer-close{ width:42px; height:42px; border:1px solid var(--line-2); background:transparent;
  border-radius:var(--radius); font-size:22px; line-height:1; color:var(--ink); }
.drawer-panel a.dl{ font-family:var(--font-head); text-transform:uppercase; font-weight:600;
  font-size:24px; padding:12px 8px; border-bottom:1px solid var(--line); color:var(--ink); }
.drawer-panel a.dl:hover{ color:var(--red); padding-left:14px; transition:padding .15s; }
.drawer-panel .dcta{ margin-top:auto; display:grid; gap:10px; }

@media (max-width:1000px){
  .nav, .header-cta{ display:none; }
  .menu-btn{ display:flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero{ position:relative; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(30px,4vw,64px);
  align-items:center; padding-block:clamp(48px,7vw,96px); }
.hero h1{ margin-bottom:22px; }
.hero h1 .accent{ color:var(--red); }
.hero .stripe{ width:64px; height:7px; background:var(--gold); border-radius:3px; margin-bottom:26px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:30px; }
.hero-trust{ display:flex; gap:26px; margin-top:38px; flex-wrap:wrap; }
.hero-trust div{ }
.hero-trust b{ font-family:var(--font-head); font-size:34px; color:var(--ink); line-height:1;
  display:block; }
.hero-trust span{ font-family:var(--font-mono); font-size:11.5px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--ink-soft); }

.hero-media{ position:relative; }
.hero-media .ph{ box-shadow:var(--shadow-lg); }
.hero-media .ph.main{ aspect-ratio:4/5; }
.hero-media .badge{ position:absolute; left:-22px; bottom:28px; background:var(--red);
  color:#fff; padding:16px 22px; border-radius:var(--radius); box-shadow:var(--shadow-md);
  max-width:230px; }
.hero-media .badge b{ font-family:var(--font-head); font-size:40px; line-height:.9; display:block; }
.hero-media .badge span{ font-family:var(--font-mono); font-size:11px; letter-spacing:.08em;
  text-transform:uppercase; opacity:.92; }

/* vertical flyer-banner motif */
.vbar{ position:absolute; top:0; bottom:0; width:46px; background:var(--red);
  display:flex; align-items:center; justify-content:center; }
.vbar span{ writing-mode:vertical-rl; transform:rotate(180deg); font-family:var(--font-head);
  text-transform:uppercase; font-weight:700; letter-spacing:.22em; color:#fff; font-size:14px; }
.vbar.left{ left:0; } .vbar.right{ right:0; }
@media (max-width:900px){ .vbar{ display:none; } }

/* ---------- Sectores strip ---------- */
.sectores{ background:var(--char); color:#EDE6D8; }
.sectores .wrap{ display:flex; align-items:center; gap:clamp(16px,3vw,40px); flex-wrap:wrap;
  padding-block:30px; }
.sectores .lbl{ font-family:var(--font-mono); font-size:12px; letter-spacing:.14em;
  text-transform:uppercase; color:var(--gold); flex:none; }
.sectores ul{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px 10px;
  flex:1; }
.sectores li{ font-family:var(--font-head); text-transform:uppercase; font-weight:600;
  font-size:19px; letter-spacing:.02em; padding:7px 16px; border:1px solid var(--char-line);
  border-radius:30px; transition:border-color .2s, color .2s; }
.sectores li:hover{ border-color:var(--gold); color:#fff; }

/* ============================================================
   GENERIC SECTION HEADER
   ============================================================ */
.sec-head{ max-width:760px; margin-bottom:clamp(34px,4vw,56px); }
.sec-head.center{ margin-inline:auto; text-align:center; }
.sec-head .h2{ margin-bottom:16px; }
.sec-head.center .eyebrow{ justify-content:center; }

/* ============================================================
   FEATURE / WHY GRID
   ============================================================ */
.feat-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:1px;
  background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.feat{ background:var(--surface); padding:30px 26px; transition:background .2s; }
.feat:hover{ background:var(--bg); }
.feat .n{ font-family:var(--font-mono); font-size:12px; color:var(--red); letter-spacing:.1em; }
.feat h4{ font-size:22px; text-transform:uppercase; margin:14px 0 8px; }
.feat p{ margin:0; font-size:15.5px; }

/* Why TECTA — editorial hairline list (home) */
.why-list{ display:grid; grid-template-columns:1fr 1fr; column-gap:clamp(40px,5vw,88px);
  border-bottom:1px solid var(--line); }
.why-row{ display:grid; grid-template-columns:auto 1fr; gap:24px; align-items:start;
  padding:30px 2px; border-top:1px solid var(--line); }
.why-row .wn{ font-family:var(--font-head); font-weight:700; font-size:32px; line-height:.9;
  color:transparent; -webkit-text-stroke:1.5px var(--line-2);
  transition:color .25s, -webkit-text-stroke-color .25s; }
.why-row:hover .wn{ color:var(--red); -webkit-text-stroke-color:var(--red); }
.why-row h4{ font-size:21px; text-transform:uppercase; margin:0 0 8px; line-height:1.05; }
.why-row p{ margin:0; font-size:15.5px; color:var(--ink-soft); max-width:44ch; }
@media (max-width:760px){ .why-list{ grid-template-columns:1fr; } }

/* simple bullet list */
.ticks{ list-style:none; margin:0; padding:0; display:grid; gap:13px; }
.ticks li{ position:relative; padding-left:32px; color:var(--ink-soft); }
.ticks li::before{ content:""; position:absolute; left:0; top:9px; width:16px; height:16px;
  background:var(--red); clip-path:polygon(20% 52%,42% 74%,82% 24%,90% 34%,42% 90%,10% 60%); }
.ticks.gold li::before{ background:var(--gold); }
.ticks li b{ color:var(--ink); }

/* ============================================================
   SERVICES — variant A: showcase rows
   ============================================================ */
[data-services="rows"] .svc-cards{ display:none; }
[data-services="cards"] .svc-rows{ display:none; }

.svc-rows{ display:grid; gap:clamp(40px,6vw,84px); }
.svc-row{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(28px,4vw,64px); align-items:center; }
.svc-row.flip .svc-row-media{ order:2; }
.svc-row-media .ph{ aspect-ratio:4/3; box-shadow:var(--shadow-md); }
.svc-row .num{ font-family:var(--font-head); font-size:clamp(54px,7vw,96px); line-height:.8;
  color:transparent; -webkit-text-stroke:1.5px var(--line-2); margin-bottom:8px; }
.svc-row h3{ font-size:clamp(28px,3vw,42px); margin-bottom:16px; }
.svc-row .tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
.svc-row .tags span{ font-family:var(--font-mono); font-size:12px; text-transform:uppercase;
  letter-spacing:.06em; padding:6px 12px; border:1px solid var(--line-2); border-radius:30px;
  color:var(--ink-soft); }

/* ---------- variant B: card grid ---------- */
.svc-cards{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:22px; }
.svc-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column; transition:transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.svc-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-md); border-color:var(--line-2); }
.svc-card .ph{ aspect-ratio:16/11; border-radius:0; }
.svc-card .body{ padding:26px 24px 28px; display:flex; flex-direction:column; flex:1; }
.svc-card .n{ font-family:var(--font-mono); font-size:12px; color:var(--red); letter-spacing:.1em;
  margin-bottom:12px; }
.svc-card h3{ font-size:25px; margin-bottom:10px; }
.svc-card p{ font-size:15.5px; }
.svc-card ul{ margin-top:auto; }

/* ============================================================
   PROCESS
   ============================================================ */
.steps{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:0; counter-reset:s;
  border-top:2px solid var(--ink); }
.step{ padding:30px 26px 34px; border-bottom:1px solid var(--line); border-right:1px solid var(--line);
  position:relative; background:var(--surface); }
.step .si{ font-family:var(--font-head); font-size:54px; line-height:1; color:var(--red);
  font-weight:700; }
.step h4{ font-size:22px; text-transform:uppercase; margin:10px 0 8px; }
.step p{ margin:0; font-size:15px; }
.step .bar{ position:absolute; left:0; bottom:-1px; height:3px; width:0; background:var(--red);
  transition:width .6s var(--ease); }
.step.in .bar{ width:100%; }

/* timeline (vertical, on contacto/proceso alt) */
.timeline{ position:relative; display:grid; gap:4px; }

/* process — numbered vertical list */
.proc-list{ display:grid; gap:0; border-top:2px solid var(--ink); }
.proc-item{ display:grid; grid-template-columns:120px 1fr auto; gap:clamp(18px,3vw,44px);
  padding:clamp(24px,3vw,38px) 4px; border-bottom:1px solid var(--line); align-items:center; }
.proc-num{ font-family:var(--font-head); font-weight:700; font-size:clamp(54px,6vw,84px);
  line-height:.8; color:transparent; -webkit-text-stroke:1.6px var(--line-2); transition:-webkit-text-stroke-color .3s, color .3s; }
.proc-item:hover .proc-num{ color:var(--red); -webkit-text-stroke-color:var(--red); }
.proc-body h3{ font-size:clamp(24px,2.4vw,32px); margin-bottom:8px; }
.proc-body p{ margin:0; max-width:60ch; }
.proc-tag{ font-family:var(--font-mono); font-size:11.5px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--ink-soft); padding:8px 14px; border:1px solid var(--line-2); border-radius:30px; white-space:nowrap; }
@media (max-width:760px){
  .proc-item{ grid-template-columns:72px 1fr; gap:18px; }
  .proc-tag{ display:none; }
  .proc-num{ font-size:46px; }
}

/* ============================================================
   STATS / BANNER
   ============================================================ */
.statband{ background:var(--red); color:#fff; }
.statband .wrap{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; padding-block:54px; }
.statband .st b{ font-family:var(--font-head); font-size:clamp(40px,5vw,64px); line-height:.9;
  display:block; }
.statband .st span{ font-family:var(--font-mono); font-size:12.5px; letter-spacing:.08em;
  text-transform:uppercase; opacity:.92; }
.statband .st .gold{ color:var(--gold); }
@media (max-width:760px){ .statband .wrap{ grid-template-columns:1fr 1fr; gap:34px 20px; } }

/* ============================================================
   TRATAMIENTO TERMICO — destacado (home)
   ============================================================ */
.ht-band{ background:var(--char); color:#EDE6D8; position:relative; overflow:hidden; }
.ht-band .wrap{ padding-block:clamp(56px,7vw,100px); }
.ht-grid{ display:grid; grid-template-columns:.92fr 1.08fr; gap:clamp(34px,5vw,76px); align-items:center; }
.ht-media{ position:relative; }
.ht-media .ph{ aspect-ratio:4/3; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-lg); }
.ht-media .ph img{ width:100%; height:100%; object-fit:cover; }
.ht-stamp{ position:absolute; left:-20px; bottom:-20px; width:118px; height:118px; border-radius:50%;
  background:var(--gold); color:var(--char); display:grid; place-items:center; text-align:center;
  font-family:var(--font-head); font-weight:700; font-size:21px; line-height:.95; text-transform:uppercase;
  letter-spacing:.01em; box-shadow:0 12px 32px rgba(0,0,0,.4); transform:rotate(-8deg);
  border:3px solid var(--char); }
.ht-stamp small{ display:block; font-family:var(--font-mono); font-weight:500; font-size:9px;
  letter-spacing:.12em; margin-top:4px; }
.ht-copy h2{ color:#fff; max-width:18ch; margin-bottom:18px; }
.ht-copy h2 .gold{ color:var(--gold); }
.ht-copy .lead{ color:#C9BFAE; max-width:54ch; }
.ht-copy .ticks{ margin-top:24px; }
.ht-copy .ticks li{ color:#D8CFBF; }
.ht-copy .ticks li b{ color:#fff; }
.ht-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:32px; }
@media (max-width:820px){
  .ht-grid{ grid-template-columns:1fr; gap:48px; }
  .ht-stamp{ width:96px; height:96px; font-size:18px; left:auto; right:18px; bottom:-18px; }
}

/* ============================================================
   CALIDAD / SGC
   ============================================================ */
.qcert{ display:flex; gap:14px; align-items:center; padding:18px 20px; background:var(--surface);
  border:1px solid var(--line); border-radius:var(--radius); }
.qcert .ico{ width:48px; height:48px; flex:none; border-radius:50%; display:grid; place-items:center;
  background:color-mix(in srgb, var(--gold) 22%, transparent); color:var(--gold-deep); }
.qcert .ico svg{ width:24px; height:24px; }
.qcert b{ display:block; font-family:var(--font-head); text-transform:uppercase; font-size:19px; }
.qcert span{ font-size:14px; color:var(--ink-soft); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid{ display:grid; grid-template-columns:1fr 1.1fr; gap:clamp(30px,4vw,64px); align-items:start; }
.contact-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:clamp(26px,3vw,40px); box-shadow:var(--shadow-sm); }
.field{ margin-bottom:18px; }
.field label{ display:block; font-family:var(--font-mono); font-size:11.5px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--ink-soft); margin-bottom:8px; }
.field label .req{ color:var(--red); }
.field input,.field select,.field textarea{
  width:100%; padding:13px 15px; border:1px solid var(--line-2); border-radius:var(--radius);
  background:var(--bg); color:var(--ink); font-family:var(--font-body); font-size:16px;
  transition:border-color .15s, box-shadow .15s; }
.field input:focus,.field select:focus,.field textarea:focus{ outline:none; border-color:var(--red);
  box-shadow:0 0 0 3px rgba(206,26,43,.12); background:var(--surface); }
.field textarea{ resize:vertical; min-height:108px; }
.field.err input,.field.err select,.field.err textarea{ border-color:var(--red); }
.field .msg{ font-family:var(--font-mono); font-size:11px; color:var(--red); margin-top:6px; display:none; }
.field.err .msg{ display:block; }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:0 18px; }
@media (max-width:520px){ .grid-2{ grid-template-columns:1fr; } }

.urg{ display:flex; gap:8px; flex-wrap:wrap; }
.urg label{ flex:1; min-width:90px; margin:0; }
.urg input{ position:absolute; opacity:0; pointer-events:none; }
.urg .chip{ display:block; text-align:center; padding:11px 8px; border:1px solid var(--line-2);
  border-radius:var(--radius); font-family:var(--font-head); text-transform:uppercase; font-size:16px;
  font-weight:600; color:var(--ink-soft); cursor:pointer; transition:all .15s; }
.urg input:checked + .chip{ border-color:var(--red); background:var(--red); color:#fff; }

.info-line{ display:flex; gap:16px; align-items:flex-start; padding:18px 0; border-bottom:1px solid var(--line); }
.info-line:last-child{ border-bottom:0; }
.info-line .ico{ width:44px; height:44px; flex:none; border-radius:var(--radius); display:grid;
  place-items:center; background:var(--char); color:var(--gold); }
.info-line .ico svg{ width:20px; height:20px; }
.info-line .k{ font-family:var(--font-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--ink-soft); }
.info-line .v{ font-family:var(--font-head); font-size:23px; text-transform:uppercase; color:var(--ink);
  line-height:1.1; }
.info-line a.v:hover{ color:var(--red); }

.form-ok{ display:none; text-align:center; padding:30px 10px; }
.form-ok.show{ display:block; }
.form-ok .ico{ width:64px; height:64px; margin:0 auto 18px; border-radius:50%; background:#1FA855;
  color:#fff; display:grid; place-items:center; }
.form-ok .ico svg{ width:32px; height:32px; }

/* ============================================================
   PAGE HEAD (interior pages)
   ============================================================ */
.page-head{ background:var(--char); color:#EDE6D8; position:relative; overflow:hidden; }
.page-head .wrap{ padding-block:clamp(48px,6vw,84px); position:relative; z-index:2; }
.page-head .crumb{ font-family:var(--font-mono); font-size:12px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--gold); margin-bottom:16px; }
.page-head .crumb a{ color:#CFC4B2; } .page-head .crumb a:hover{ color:#fff; }
.page-head h1{ color:#fff; max-width:16ch; }
.page-head p{ color:#C9BFAE; max-width:58ch; margin-top:18px; }
.page-head .ghost-word{ position:absolute; right:-2%; bottom:-22%; font-family:var(--font-head);
  font-weight:700; font-size:24vw; line-height:.7; color:rgba(255,255,255,.04); text-transform:uppercase;
  z-index:1; pointer-events:none; user-select:none; }

/* --- banner variant: RED (Servicios) --- */
.page-head--red{ background:var(--red); }
.page-head--red .crumb{ color:#ffe2c6; }
.page-head--red .crumb a{ color:#fff; }
.page-head--red .ghost-word{ color:rgba(255,255,255,.10); }
.page-head--red::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:46px;
  background:repeating-linear-gradient(180deg, var(--gold) 0 18px, transparent 18px 36px); opacity:.9; z-index:2; }
.page-head--red .wrap{ padding-left:clamp(36px,7vw,96px); }

/* --- banner variant: LIGHT (Proceso) --- */
.page-head--light{ background:var(--bg-2); color:var(--ink); border-bottom:1px solid var(--line); }
.page-head--light .crumb{ color:var(--red); }
.page-head--light .crumb a{ color:var(--ink-soft); }
.page-head--light .crumb a:hover{ color:var(--ink); }
.page-head--light h1{ color:var(--ink); }
.page-head--light p{ color:var(--ink-soft); }
.page-head--light .ghost-word{ color:rgba(28,26,22,.05); }
.page-head--light .wrap{ padding-left:clamp(20px,5vw,64px); }
.page-head--light .stripe-row{ display:flex; gap:6px; margin-bottom:22px; }
.page-head--light .stripe-row span{ font-family:var(--font-mono); font-size:12px; color:var(--ink-soft);
  border:1px solid var(--line-2); width:30px; height:30px; display:grid; place-items:center; border-radius:4px; }
.page-head--light .stripe-row span.on{ background:var(--red); color:#fff; border-color:var(--red); }

/* --- banner variant: PHOTO background (Calidad) --- */
.page-head--photo{ background:var(--char); }
.page-head--photo .ph-bg{ position:absolute; inset:0; z-index:0; }
.page-head--photo .ph-bg img{ width:100%; height:100%; object-fit:cover; }
.page-head--photo .ph-bg::after{ content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(20,18,14,.97) 0%, rgba(20,18,14,.9) 42%, rgba(20,18,14,.55) 78%, rgba(20,18,14,.35) 100%); }
.page-head--photo .wrap{ z-index:2; }

/* --- banner variant: SPLIT text + image (Nosotros) --- */
.page-head--split .wrap{ display:grid; grid-template-columns:1.2fr .8fr; gap:clamp(24px,4vw,56px);
  align-items:center; }
.page-head--split h1{ max-width:none; font-size:clamp(30px,3.4vw,54px); }
.page-head--split p{ max-width:42ch; }
.page-head--split .ph-side{ aspect-ratio:4/5; max-height:360px; border-radius:var(--radius); overflow:hidden;
  box-shadow:var(--shadow-md); position:relative; }
.page-head--split .ph-side img{ width:100%; height:100%; object-fit:cover; }
.page-head--split .ph-side::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:46px;
  background:var(--red); clip-path:polygon(0 100%, 100% 100%, 100% 70%); }
@media (max-width:780px){
  .page-head--split .wrap{ grid-template-columns:1fr; }
  .page-head--split .ph-side{ display:none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{ background:var(--char); color:#CDC4B4; padding-top:clamp(56px,7vw,84px); }
.footer-top{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:36px;
  padding-bottom:48px; border-bottom:1px solid var(--char-line); }
.footer-brand .brand-txt b{ color:#fff; }
.footer-brand .brand-txt small{ color:#9c9281; }
.footer-brand p{ color:#9c9281; margin-top:18px; max-width:34ch; font-size:15px; }
.footer-col h5{ font-family:var(--font-head); text-transform:uppercase; font-size:16px;
  letter-spacing:.06em; color:var(--gold); margin:0 0 18px; }
.footer-col ul{ list-style:none; margin:0; padding:0; display:grid; gap:11px; }
.footer-col a, .footer-col li{ color:#CDC4B4; font-size:15px; }
.footer-col a:hover{ color:#fff; }
.footer-contact .l{ display:flex; gap:10px; align-items:center; margin-bottom:13px; font-size:15px; }
.footer-contact svg{ width:16px; height:16px; color:var(--gold); flex:none; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; gap:16px;
  padding-block:24px; flex-wrap:wrap; font-family:var(--font-mono); font-size:12px; color:#8a8170;
  letter-spacing:.04em; }
@media (max-width:900px){ .footer-top{ grid-template-columns:1fr 1fr; gap:32px; } }
@media (max-width:520px){ .footer-top{ grid-template-columns:1fr; } }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.fab{ position:fixed; right:22px; bottom:22px; z-index:70; width:60px; height:60px; border-radius:50%;
  background:#1FA855; color:#fff; display:grid; place-items:center; box-shadow:0 8px 24px rgba(31,168,85,.4);
  transition:transform .2s var(--ease); }
.fab:hover{ transform:scale(1.08); }
.fab svg{ width:30px; height:30px; }
.fab::after{ content:""; position:absolute; inset:0; border-radius:50%; border:2px solid #1FA855;
  animation:pulse 2.4s ease-out infinite; }
@keyframes pulse{ 0%{ transform:scale(1); opacity:.6; } 100%{ transform:scale(1.5); opacity:0; } }
@media (prefers-reduced-motion: reduce){ .fab::after{ animation:none; } }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform:none; }
.reveal[data-d="1"]{ transition-delay:.08s; }
.reveal[data-d="2"]{ transition-delay:.16s; }
.reveal[data-d="3"]{ transition-delay:.24s; }
.reveal[data-d="4"]{ transition-delay:.32s; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; transition:none; } }

/* ============================================================
   TWEAKS PANEL (vanilla)
   ============================================================ */
.tw-panel{ position:fixed; right:18px; bottom:18px; z-index:120; width:288px;
  background:#fff; color:#1C1A16; border:1px solid #E0D9CC; border-radius:12px;
  box-shadow:0 18px 50px rgba(20,18,14,.28); font-family:var(--font-body);
  display:none; overflow:hidden; }
.tw-panel.show{ display:block; }
.tw-head{ display:flex; align-items:center; justify-content:space-between; padding:13px 15px;
  border-bottom:1px solid #EFE9DE; cursor:grab; }
.tw-head b{ font-family:var(--font-head); text-transform:uppercase; font-size:17px; letter-spacing:.04em; }
.tw-head .x{ border:0; background:#F1ECE2; width:26px; height:26px; border-radius:6px; font-size:16px;
  line-height:1; color:#57514799; }
.tw-body{ padding:14px 15px 18px; max-height:70vh; overflow:auto; }
.tw-sec{ font-family:var(--font-mono); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase;
  color:#9a9182; margin:16px 0 9px; }
.tw-sec:first-child{ margin-top:0; }
.tw-seg{ display:flex; gap:6px; background:#F4F0E8; padding:4px; border-radius:8px; }
.tw-seg button{ flex:1; border:0; background:transparent; padding:8px 6px; border-radius:6px;
  font-family:var(--font-head); text-transform:uppercase; font-weight:600; font-size:14px;
  letter-spacing:.02em; color:#57514799; transition:all .15s; }
.tw-seg button.on{ background:#fff; color:#1C1A16; box-shadow:0 1px 3px rgba(0,0,0,.12); }
.tw-swatches{ display:flex; gap:8px; }
.tw-swatch{ flex:1; height:38px; border-radius:7px; border:2px solid transparent; cursor:pointer;
  position:relative; }
.tw-swatch.on{ border-color:#1C1A16; }
.tw-swatch span{ position:absolute; bottom:-17px; left:0; right:0; text-align:center;
  font-family:var(--font-mono); font-size:9px; text-transform:uppercase; color:#9a9182; letter-spacing:.04em; }
.tw-row-lbl{ display:flex; justify-content:space-between; }
.tw-note{ font-family:var(--font-mono); font-size:10px; color:#b3aa98; margin-top:18px; line-height:1.5; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:900px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-media{ order:-1; max-width:520px; }
  .svc-row, .svc-row.flip .svc-row-media{ grid-template-columns:1fr; order:0; }
  .contact-grid{ grid-template-columns:1fr; }
}
@media (max-width:820px){
  .about-grid{ grid-template-columns:1fr !important; }
  .about-grid > *[style*="order:2"]{ order:0 !important; }
}
@media (max-width:520px){
  body{ font-size:16px; }
  .hero-trust{ gap:18px; }
}
