/* ═══════════════════════════════════════════════════════════
   EDIFICA SISTEMAS · DESIGN SYSTEM
   ═══════════════════════════════════════════════════════════ */

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

:root {
  /* Surface (white-forward, subtle blue tinted neutrals · BM-MAPEI) */
  --bg:           #FFFFFF;
  --bg-2:         #F4F7FB;        /* Blanco Hueso */
  --bg-3:         #EAF1FA;        /* faint blue tint */
  --paper:        #FFFFFF;
  --ink:          #0B1B30;        /* Tinta */
  --ink-2:        #1A2C46;
  --ink-3:        #3A4D66;
  --muted:        #5E6E84;        /* Gris Pizarra */
  --line:         #DCE4EE;
  --line-2:       #C3CFDD;

  /* Brand — BM-MAPEI blue family */
  --accent:       #1565C0;        /* Azul Primario */
  --accent-d:     #0E4F9E;        /* hover */
  --accent-l:     #9FC6EE;        /* Azul Pálido */
  --accent-soft:  #E4F0FB;
  --accent-tint:  #F4F8FD;        /* very subtle blue wash */
  --sand:         #2E8BE6;        /* Azul Brillante (acento de interacción) */
  --sand-d:       #1565C0;
  --sand-soft:    #D7ECFC;        /* Azul Cielo wash */
  --sand-tint:    #EEF7FE;
  --deep:         #0A2647;        /* Navy Profundo · hero/footer */
  --leaf:         #1A7A40;
  --leaf-soft:    #E0F0E6;

  /* Type (BM-MAPEI · Archivo + Outfit) */
  --ff:   'Outfit', system-ui, sans-serif;
  --ffd:  'Archivo', sans-serif;
  --ffm:  'Archivo', system-ui, sans-serif;

  /* Geo */
  --r-sm: 6px;
  --r:    12px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Shadow */
  --sh-1: 0 1px 2px rgba(20,15,5,.04), 0 2px 8px rgba(20,15,5,.05);
  --sh-2: 0 4px 16px rgba(20,15,5,.06), 0 12px 32px rgba(20,15,5,.08);
  --sh-3: 0 24px 64px rgba(20,15,5,.18);

  /* Anim */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--ff); border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: var(--ff); font-size: inherit; color: inherit; }

/* ─── Layout shells ─── */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.wrap-tight { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* ─── Type scale ─── */
.mono { font-family: var(--ffm); letter-spacing: 0; }
.eyebrow {
  font-family: var(--ffm);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.eyebrow.on-dark { color: var(--sand); }
.eyebrow.on-dark::before { background: var(--sand); }

.h-display {
  font-family: var(--ffd);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 104px);
  line-height: .96;
  letter-spacing: -.025em;
}
.h-section {
  font-family: var(--ffd);
  font-weight: 700;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1.0;
  letter-spacing: -.02em;
  color: var(--ink);
}
.h-card {
  font-family: var(--ffd);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  height: 72px;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(1.2) blur(18px);
  -webkit-backdrop-filter: saturate(1.2) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, height .3s;
}
.nav.scrolled {
  background: rgba(255,255,255,.94);
  border-bottom-color: var(--line);
  height: 64px;
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; gap: 36px;
}
.brand {
  display: flex; align-items: center;
  margin-right: auto;
}
.brand-logo {
  height: 44px; width: auto; display: block;
  transition: height .3s;
}
.nav.scrolled .brand-logo { height: 38px; }
.brand-text { display: none; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 14px; font-weight: 500;
  color: var(--ink-2); padding: 8px 14px;
  border-radius: 999px;
  transition: background .18s, color .18s;
  position: relative;
}
.nav-link:hover { background: var(--bg-2); color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: ''; position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--accent);
  border-radius: 1px;
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: var(--paper);
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  transition: background .18s, transform .18s, box-shadow .18s;
  box-shadow: 0 2px 14px rgba(21,101,192,.25);
}
.nav-cta:hover { background: var(--accent-d); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(21,101,192,.35); }
.nav-cta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sand); box-shadow: 0 0 0 3px rgba(46,139,230,.22);
}
.nav-cta:hover .dot { background: var(--paper); box-shadow: 0 0 0 3px rgba(255,255,255,.2); }

.nav-burger {
  width: 40px; height: 40px;
  display: none; align-items: center; justify-content: center;
  border-radius: 999px;
}
.nav-burger:hover { background: var(--bg-2); }
.nav-burger span {
  position: relative; width: 18px; height: 2px;
  background: var(--ink); display: block;
  transition: transform .25s, opacity .2s;
}
.nav-burger span::before, .nav-burger span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--ink); transition: transform .25s;
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after  { top: 6px; }
.nav-burger.open span { background: transparent; }
.nav-burger.open span::before { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span::after  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed; top: 72px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 16px 24px 24px;
  transform: translateY(-110%);
  transition: transform .35s var(--ease);
  z-index: 79;
  display: none;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  display: block;
  padding: 14px 4px;
  font-family: var(--ffd);
  font-size: 22px; font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu .mm-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--paper);
  padding: 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  margin-top: 16px;
  border-bottom: none;
  box-shadow: 0 4px 16px rgba(21,101,192,.25);
}

/* ═══════════════════════════════════════════════════════════
   HERO + SLIDER
   ═══════════════════════════════════════════════════════════ */
.hero {
  padding-top: 72px;
  min-height: 100vh;
  background: var(--deep);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
}
.hero-glow {
  position: absolute;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(21,101,192,.45), transparent 65%);
  filter: blur(40px);
  top: -200px; right: -200px;
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,139,230,.18), transparent 65%);
  filter: blur(40px);
  bottom: -120px; left: -120px;
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 2;
  min-height: calc(100vh - 72px);
  padding-top: 56px;
  padding-bottom: 40px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 48px;
}

.hero-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.hero-loc {
  font-family: var(--ffm);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em;
  color: rgba(246,242,234,.55);
  display: flex; align-items: center; gap: 12px;
}
.hero-loc::before {
  content: ''; width: 24px; height: 1px;
  background: rgba(246,242,234,.3);
}
.hero-meta {
  display: flex; gap: 28px;
  font-family: var(--ffm);
  font-size: 11px; color: rgba(246,242,234,.55);
  letter-spacing: .06em;
}
.hero-meta span b {
  display: block;
  font-family: var(--ff);
  font-size: 13px; font-weight: 600;
  color: var(--bg);
  letter-spacing: 0;
  margin-top: 4px;
}

/* Slider */
.hero-slider {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}
.hero-slides {
  position: relative;
  min-height: 540px;
}
.hero-slide {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.slide-kicker {
  font-family: var(--ffm);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--sand);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.slide-kicker .num {
  font-size: 28px;
  font-family: var(--ffd);
  font-weight: 500;
  color: var(--bg);
  letter-spacing: -.02em;
}
.slide-kicker .of {
  color: rgba(246,242,234,.4);
  font-size: 14px;
}
.hero-h1 {
  font-family: var(--ffd);
  font-weight: 800;
  font-size: clamp(48px, 7.5vw, 112px);
  line-height: .92;
  letter-spacing: -.03em;
  color: var(--bg);
}
.hero-h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--sand);
}
.hero-h1 .accent {
  position: relative;
  display: inline-block;
}
.hero-h1 .accent::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 6px;
  background: var(--accent);
  border-radius: 3px;
  z-index: -1;
  opacity: .85;
}
.hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: rgba(246,242,234,.7);
  line-height: 1.55;
  max-width: 520px;
  margin-top: 28px;
}
.hero-actions {
  display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  letter-spacing: .01em;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent); color: var(--paper);
  box-shadow: 0 4px 24px rgba(21,101,192,.36);
}
.btn-primary:hover { background: var(--accent-d); }
.btn-ghost-light {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.22);
  color: var(--bg);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.btn-ink {
  background: var(--ink); color: var(--bg);
}
.btn-ink:hover { background: var(--accent); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--line-2);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn .arr {
  display: inline-block; transition: transform .2s;
}
.btn:hover .arr { transform: translateX(4px); }

/* Hero feature card (right column) */
.hero-feature {
  position: relative;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  min-height: 540px;
  display: flex; flex-direction: column;
}
.hf-tag {
  font-family: var(--ffm);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--sand);
  margin-bottom: 14px;
}
.hf-img-area {
  flex: 1;
  border-radius: 14px;
  margin: 8px 0 20px;
  overflow: hidden;
  position: relative;
  display: grid; place-items: center;
  transition: opacity .6s, transform .6s;
}
.hf-img-area.stripe-1 {
  background:
    repeating-linear-gradient(45deg, rgba(46,139,230,.08) 0 12px, rgba(46,139,230,.16) 12px 24px),
    linear-gradient(135deg, #0E3A6B, #0A2647);
}
.hf-img-area.stripe-2 {
  background:
    repeating-linear-gradient(135deg, rgba(21,101,192,.18) 0 12px, rgba(21,101,192,.32) 12px 24px),
    linear-gradient(135deg, #0E3A6B, #0A2647);
}
.hf-img-area.stripe-3 {
  background:
    repeating-linear-gradient(0deg, rgba(46,139,230,.08) 0 16px, rgba(255,255,255,.04) 16px 32px),
    linear-gradient(135deg, #0E3A6B, #0A2647);
}
.hf-img-area.stripe-4 {
  background:
    repeating-linear-gradient(90deg, rgba(46,139,230,.12) 0 14px, rgba(21,101,192,.18) 14px 28px),
    linear-gradient(135deg, #0E3A6B, #0A2647);
}
.hf-img-label {
  font-family: var(--ffm);
  font-size: 11px;
  color: rgba(255,255,255,.55);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 14px;
  background: rgba(0,0,0,.4);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
}
.hf-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 12px;
}
.hf-meta-label {
  font-family: var(--ffm);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(246,242,234,.5);
  margin-bottom: 4px;
}
.hf-meta-value {
  font-family: var(--ffd);
  font-size: 18px;
  font-weight: 500;
  color: var(--bg);
  letter-spacing: -.01em;
}
.hf-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ff);
  font-size: 13px; font-weight: 600;
  color: var(--sand);
  padding: 10px 14px;
  border: 1px solid rgba(212,184,136,.32);
  border-radius: 999px;
  transition: all .2s;
}
.hf-cta:hover { background: var(--sand); color: var(--deep); border-color: var(--sand); }

/* Slider controls */
.hero-controls {
  display: flex; align-items: center; gap: 28px;
}
.slide-dots {
  display: flex; gap: 8px; align-items: center;
}
.slide-dot {
  width: 24px; height: 3px;
  background: rgba(255,255,255,.16);
  border-radius: 2px; cursor: pointer;
  transition: background .25s, width .35s var(--ease);
  position: relative; overflow: hidden;
}
.slide-dot.active { width: 80px; background: rgba(255,255,255,.22); }
.slide-dot.active::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--accent);
  animation: dot-grow 6s linear forwards;
}
@keyframes dot-grow { from { width: 0; } to { width: 100%; } }

.slide-arrows { display: flex; gap: 8px; margin-left: auto; }
.slide-arrow {
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  display: grid; place-items: center;
  transition: background .2s, border-color .2s;
  color: var(--bg);
}
.slide-arrow:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.42); }
.slide-counter {
  font-family: var(--ffm);
  font-size: 12px;
  color: rgba(246,242,234,.55);
  letter-spacing: .08em;
}
.slide-counter b { color: var(--bg); font-weight: 500; }

/* Scroll indicator */
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--ffm);
  font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(246,242,234,.45);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 3;
}
.scroll-hint::after {
  content: ''; width: 1px; height: 28px;
  background: linear-gradient(to bottom, var(--bg), transparent);
  animation: scroll-pulse 2s ease infinite;
}
@keyframes scroll-pulse {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ═══════════════════════════════════════════════════════════
   MARQUEE (categories) — light version
   ═══════════════════════════════════════════════════════════ */
.marquee {
  background: var(--bg);
  color: var(--ink);
  padding: 24px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee-track {
  display: flex;
  gap: 56px;
  animation: marquee-run 36s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ffd); font-weight: 600;
  font-size: 22px;
  color: var(--ink-2);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.marquee-item .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sand);
}
@keyframes marquee-run {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 28px)); }
}

/* ═══════════════════════════════════════════════════════════
   SECTION PRIMITIVES
   ═══════════════════════════════════════════════════════════ */
section { position: relative; }
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 48px;
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p {
  max-width: 480px;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-top: 18px;
}
.section-pad { padding: 120px 0; }
.section-pad-sm { padding: 80px 0; }

/* ═══════════════════════════════════════════════════════════
   SISTEMAS (line categories)
   ═══════════════════════════════════════════════════════════ */
.systems { background: var(--bg); padding: 120px 0; }
.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.system-card {
  background: var(--paper);
  padding: 32px 26px;
  position: relative;
  cursor: pointer;
  transition: background .3s, color .3s;
  min-height: 240px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.system-card:hover { background: var(--accent); color: var(--paper); }
.system-card:hover .sys-name { color: var(--paper); }
.system-card:hover .sys-num { color: var(--accent-l); }
.system-card:hover .sys-meta { color: rgba(255,255,255,.82); }
.system-card:hover .sys-arrow { background: var(--paper); color: var(--accent); transform: rotate(-45deg); }
.sys-top {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.sys-num {
  font-family: var(--ffm);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
  transition: color .3s;
}
.sys-arrow {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--bg-2);
  display: grid; place-items: center;
  color: var(--ink);
  transition: transform .3s, background .3s, color .3s;
}
.sys-name {
  font-family: var(--ffd);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--ink);
  transition: color .3s;
}
.sys-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  font-family: var(--ffm);
  letter-spacing: .04em;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCTOS
   ═══════════════════════════════════════════════════════════ */
.productos { background: var(--accent-tint); padding: 120px 0; }
.products-filter {
  display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap;
}
.filter-pill {
  font-size: 13px; font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: all .2s;
  font-family: var(--ff);
}
.filter-pill:hover { border-color: var(--ink); }
.filter-pill.active { background: var(--accent); color: var(--paper); border-color: var(--accent); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product {
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s;
  display: flex; flex-direction: column;
}
.product:hover {
  transform: translateY(-6px);
  border-color: var(--ink);
  box-shadow: var(--sh-2);
}
.product-img {
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
}
.product-img.t1 {
  background:
    repeating-linear-gradient(45deg, rgba(21,101,192,.06) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, var(--accent-soft), var(--accent-l));
}
.product-img.t2 {
  background:
    repeating-linear-gradient(-45deg, rgba(14,28,47,.04) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, var(--bg-2), var(--accent-soft));
}
.product-img.t3 {
  background:
    repeating-linear-gradient(0deg, rgba(26,122,64,.06) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, var(--leaf-soft), #E8F3EC);
}
.product-img.t4 {
  background:
    repeating-linear-gradient(90deg, rgba(46,139,230,.1) 0 10px, transparent 10px 20px),
    linear-gradient(135deg, var(--sand-soft), #9FC6EE);
}
.product-img.t5 {
  background:
    repeating-linear-gradient(45deg, rgba(14,28,47,.05) 0 6px, transparent 6px 18px),
    linear-gradient(135deg, #E0E6EE, var(--bg-2));
}
.product-img.t6 {
  background:
    repeating-linear-gradient(-45deg, rgba(21,101,192,.06) 0 10px, transparent 10px 20px),
    linear-gradient(135deg, var(--accent-soft), #D8E6F6);
}
.product-img-label {
  font-family: var(--ffm);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: rgba(255,255,255,.7);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,20,24,.08);
}
.product-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--ffm);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
}
.product-tag.accent { background: var(--accent); }
.product-tag.leaf { background: var(--leaf); }
.product-tag.sand { background: var(--sand); color: var(--ink); }

.product-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.product-sku {
  font-family: var(--ffm);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.product-name {
  font-family: var(--ffd);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 6px;
}
.product-desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}
.product-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.product-price {
  font-family: var(--ffd);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -.01em;
}
.product-price small {
  font-family: var(--ffm);
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
}
.product-add {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--accent);
  transition: gap .2s;
}
.product-add:hover { gap: 10px; }

/* ═══════════════════════════════════════════════════════════
   PROYECTOS / OBRAS — light version
   ═══════════════════════════════════════════════════════════ */
.proyectos { background: var(--bg); padding: 120px 0; overflow: hidden; }

.proyectos-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.proyecto {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease-out), border-color .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.proyecto:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--sh-2);
}
.proyecto:hover .py-img::after { transform: scale(1.04); }

.proyecto-main { grid-row: span 2; }
.py-img {
  aspect-ratio: 4/3;
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.py-img::after {
  content: '';
  position: absolute; inset: 0;
  background: inherit;
  transition: transform .6s var(--ease-out);
  z-index: 0;
}
.py-img > * { position: relative; z-index: 1; }
.proyecto-main .py-img { aspect-ratio: auto; flex: 1; min-height: 480px; }

.py-img.bg1 {
  background:
    repeating-linear-gradient(45deg, rgba(21,101,192,.06) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, var(--accent-soft) 0%, var(--accent-l) 100%);
}
.py-img.bg2 {
  background:
    repeating-linear-gradient(135deg, rgba(46,139,230,.1) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, var(--sand-soft) 0%, #9FC6EE 100%);
}
.py-img.bg3 {
  background:
    repeating-linear-gradient(0deg, rgba(21,101,192,.05) 0 16px, transparent 16px 32px),
    linear-gradient(135deg, var(--bg-3) 0%, var(--accent-soft) 100%);
}
.py-img-label {
  font-family: var(--ffm);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 8px 14px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(21,101,192,.12);
  border-radius: 999px;
}
.py-body {
  position: relative;
  padding: 24px 26px 26px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.py-cat {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ffm);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 10px;
}
.py-cat::before {
  content: ''; width: 14px; height: 1px; background: var(--sand);
}
.py-name {
  font-family: var(--ffd);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: 6px;
}
.proyecto-main .py-name { font-size: 30px; }
.py-loc {
  font-size: 13px;
  color: var(--ink-3);
}
.py-tag {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--ffm);
  font-size: 10px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--accent);
  border: 1px solid var(--line);
  letter-spacing: .12em;
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════════
   COTIZADOR SWITCHER + COMMON
   ═══════════════════════════════════════════════════════════ */
.cotizador { background: var(--bg-2); padding: 120px 0; }
.cot-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 40px;
}
.cot-switcher {
  display: inline-flex;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,40,80,.04);
}
.cot-switcher button {
  font-family: var(--ff);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  color: var(--ink-3);
  position: relative;
  z-index: 1;
  transition: color .25s;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.cot-switcher button.active { color: var(--paper); }
.cot-switcher .pill {
  position: absolute;
  top: 4px; bottom: 4px;
  background: var(--accent);
  border-radius: 999px;
  transition: left .35s var(--ease-out), width .35s var(--ease-out);
  z-index: 0;
  box-shadow: 0 2px 12px rgba(21,101,192,.28);
}
.cot-switcher .tab-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  opacity: .5;
}
.cot-switcher button.active .tab-dot { opacity: 1; }

.cot-stage {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  min-height: 640px;
  box-shadow: 0 4px 24px rgba(21,101,192,.06), 0 24px 56px rgba(21,101,192,.08);
}
.cot-panel {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  pointer-events: none;
  display: grid;
}
.cot-panel.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

/* ─── Cotizador Manual (Panel A) ─── */
.cot-manual {
  grid-template-columns: 1fr 380px;
}
.cot-manual-form {
  padding: 40px 44px;
  border-right: 1px solid var(--line);
}
.cm-tag {
  font-family: var(--ffm);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.cm-tag::before {
  content: 'A'; width: 22px; height: 22px;
  background: var(--accent); color: var(--bg);
  border-radius: 50%; display: grid; place-items: center;
  font-family: var(--ffd); font-size: 12px; font-weight: 600;
  letter-spacing: 0;
}
.cm-title {
  font-family: var(--ffd);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.cm-desc {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 28px;
}

.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}
.step {
  flex: 1;
  height: 4px;
  background: var(--bg-2);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.step.done { background: var(--ink); }
.step.active { background: var(--accent); }

.step-label {
  font-family: var(--ffm);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.step-label b { color: var(--ink); font-weight: 600; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.field {
  display: flex;
  align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  transition: all .2s;
  font-size: 14px;
  font-weight: 500;
}
.field:hover { border-color: var(--ink-3); }
.field.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.field .ic {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--bg-2);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background .2s;
}
.field.active .ic { background: rgba(255,255,255,.16); }
.field .ic svg { width: 14px; height: 14px; }

.input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.input:focus { border-color: var(--ink); background: var(--paper); }

.input-num {
  display: flex; align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
  margin-bottom: 16px;
}
.input-num:focus-within { border-color: var(--ink); }
.input-num input {
  flex: 1; border: none; background: transparent;
  padding: 14px 16px;
  font-size: 18px;
  font-family: var(--ffd);
  font-weight: 500;
  outline: none;
}
.input-num .unit {
  padding: 0 16px;
  font-family: var(--ffm);
  font-size: 12px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  height: 100%;
  display: grid; place-items: center;
}
.input-num button {
  padding: 0 14px;
  font-size: 20px; font-weight: 500;
  color: var(--ink-3);
  height: 100%;
}
.input-num button:hover { color: var(--accent); }

.cot-nav {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 32px;
}

/* Summary right column (Manual) */
.cot-manual-summary {
  padding: 40px 36px;
  background: var(--bg-2);
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
}
.sum-title {
  font-family: var(--ffm);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 18px;
}
.sum-line {
  display: flex; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.sum-line .l { color: var(--ink-3); }
.sum-line .v { color: var(--ink); font-weight: 600; }
.sum-line.dim .v { color: var(--muted); font-weight: 400; }
.sum-product {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin: 20px 0;
  display: flex; gap: 14px;
}
.sum-product b { display: block; font-size: 14px; margin-bottom: 2px; }
.sum-product small { font-family: var(--ffm); font-size: 11px; color: var(--muted); }
.sum-product-img {
  width: 56px; height: 56px; border-radius: 10px;
  background:
    repeating-linear-gradient(45deg, rgba(21,101,192,.1) 0 6px, transparent 6px 12px),
    linear-gradient(135deg, var(--accent-soft), var(--accent-l));
  flex-shrink: 0;
}
.sum-total {
  margin-top: auto;
  padding-top: 24px;
  border-top: 2px solid var(--accent);
}
.sum-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 18px;
}
.sum-total-row .l {
  font-family: var(--ffm);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
}
.sum-total-row .v {
  font-family: var(--ffd);
  font-weight: 500;
  font-size: 38px;
  letter-spacing: -.02em;
}
.sum-total-row .v small {
  font-family: var(--ffm);
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.sum-actions { display: flex; gap: 8px; }
.sum-actions .btn { flex: 1; justify-content: center; padding: 13px 16px; font-size: 13px; }

/* ─── Cotizador detallado (Panel B) — extras ─── */
.cm-tag.tag-b::before { content: 'B'; }

.sub-label {
  font-family: var(--ffm);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 600;
  margin: 4px 0 8px;
}

.cot-select {
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 13px 40px 13px 16px;
  color: var(--ink);
  font-size: 14px;
  font-family: var(--ff);
  outline: none;
  cursor: pointer;
  margin-bottom: 16px;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A8898' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  transition: border-color .2s;
}
.cot-select:focus { border-color: var(--accent); }

.field.sm {
  justify-content: center;
  text-align: center;
  font-size: 13px;
  padding: 12px 10px;
}
.field-grid-3 { grid-template-columns: repeat(3, 1fr); }

.field-ph {
  grid-column: 1 / -1;
  cursor: default;
  border-style: dashed;
  background: transparent;
  color: var(--muted);
  justify-content: center;
}
.field-ph:hover { border-color: var(--line); }

.cot-note {
  display: flex; gap: 10px;
  background: var(--sand-tint);
  border: 1px solid var(--sand-soft);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 4px 0 16px;
  position: relative;
  padding-left: 40px;
}
.cot-note::before {
  content: '!';
  position: absolute;
  left: 14px; top: 14px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--deep);
  font-family: var(--ffd);
  font-weight: 700;
  font-size: 12px;
  display: grid; place-items: center;
}

.sum-hint {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 14px;
}
.sum-product-img.alt {
  background:
    repeating-linear-gradient(45deg, rgba(46,139,230,.14) 0 6px, transparent 6px 12px),
    linear-gradient(135deg, var(--sand-soft), #9FC6EE);
}

/* ═══════════════════════════════════════════════════════════
   MODAL — CAPTURA DE LEAD
   ═══════════════════════════════════════════════════════════ */
.lead-modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.lead-modal.open { display: flex; }
.lead-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,35,77,.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: lead-fade .25s ease;
}
@keyframes lead-fade { from { opacity: 0; } to { opacity: 1; } }
.lead-card {
  position: relative;
  background: var(--paper);
  border-radius: var(--r-xl);
  width: 100%; max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: 0 30px 80px rgba(0,35,77,.32);
  animation: lead-pop .3s var(--ease-out);
}
@keyframes lead-pop {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.lead-close {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--ink-3);
  font-size: 22px; line-height: 1;
  display: grid; place-items: center;
  transition: background .2s, color .2s;
}
.lead-close:hover { background: var(--accent-soft); color: var(--accent); }

.lead-badge {
  display: inline-flex; align-items: center;
  font-family: var(--ffm);
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent-d);
  background: var(--accent-soft);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 16px;
}
.lead-title {
  font-family: var(--ffd);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -.02em;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 8px;
}
.lead-sub {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: 22px;
}
.lead-recap {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 24px;
}
.lr-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px;
  padding: 7px 0;
  font-size: 13px;
}
.lr-row span { color: var(--ink-3); }
.lr-row b { color: var(--ink); font-weight: 600; text-align: right; }
.lr-total {
  border-top: 1px solid var(--line);
  margin-top: 6px; padding-top: 12px;
}
.lr-total span { color: var(--ink-2); font-weight: 600; }
.lr-total b { color: var(--accent); font-family: var(--ffd); font-size: 16px; }

.lead-fields { display: flex; flex-direction: column; gap: 14px; }
.lf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.lf { display: flex; flex-direction: column; }
.lf label {
  font-family: var(--ffm);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.lf label span { text-transform: none; letter-spacing: 0; font-weight: 400; }
.lf input {
  width: 100%;
  background: var(--bg-2);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.lf input::placeholder { color: var(--muted); }
.lf input:focus { border-color: var(--accent); background: var(--paper); }
.lf .cot-select { margin-bottom: 0; }
.lf-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.45;
  margin-top: 2px;
}
.lf-check input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.lf-check a { color: var(--accent); text-decoration: underline; }
.lead-submit { width: 100%; justify-content: center; margin-top: 6px; }
.lead-trust {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
}
.lead-trust svg { color: var(--leaf); }

.lead-success-view { display: none; text-align: center; padding: 16px 0; }
.lead-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--leaf-soft);
  color: var(--leaf);
  display: grid; place-items: center;
  margin: 0 auto 22px;
  animation: lead-pop .4s var(--ease-out);
}
.lead-success-view .lead-title { font-size: 24px; }
.lead-success-total {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-d);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  margin: 8px 0 24px;
}
.lead-success-total strong { font-family: var(--ffd); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   STATS BANNER
   ═══════════════════════════════════════════════════════════ */
.stats {
  background: var(--accent);
  color: var(--bg);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(255,255,255,.1) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0,0,0,.1) 0%, transparent 50%);
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: start;
}
.stat {
  border-left: 1px solid rgba(255,255,255,.18);
  padding-left: 24px;
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat-num {
  font-family: var(--ffd);
  font-weight: 700;
  font-size: clamp(42px, 5vw, 64px);
  line-height: .95;
  letter-spacing: -.03em;
  color: var(--paper);
  margin-bottom: 6px;
}
.stat-num em { font-style: normal; color: var(--sand); }
.stat-label {
  font-family: var(--ffm);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(246,242,234,.75);
}

/* ═══════════════════════════════════════════════════════════
   CONTACTO
   ═══════════════════════════════════════════════════════════ */
.contacto { background: var(--bg-2); padding: 120px 0; }
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: start;
}
.contacto-left .h-section { margin-top: 14px; }
.contacto-lead {
  font-size: 16px;
  color: var(--ink-3);
  line-height: 1.6;
  margin: 20px 0 32px;
  max-width: 480px;
}
.channels { display: flex; flex-direction: column; gap: 12px; max-width: 380px; }
.channel {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: all .2s;
}
.channel:hover { border-color: var(--ink); transform: translateX(4px); }
.channel .ch-ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg-2);
  display: grid; place-items: center;
  color: var(--ink);
}
.channel-label {
  font-family: var(--ffm);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}
.channel-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
}

.contacto-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--sh-2);
}
.cf-title {
  font-family: var(--ffd);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -.01em;
  margin-bottom: 6px;
}
.cf-sub { font-size: 13px; color: var(--ink-3); margin-bottom: 24px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.cf-input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  background: var(--bg);
  outline: none;
  margin-bottom: 10px;
  transition: border-color .2s, background .2s;
}
.cf-input:focus { border-color: var(--ink); background: var(--paper); }
textarea.cf-input { resize: vertical; min-height: 88px; font-family: var(--ff); }
.cf-submit {
  width: 100%; justify-content: center;
  margin-top: 12px;
  padding: 15px;
}
.cf-fine {
  font-size: 11px; color: var(--muted);
  margin-top: 14px; text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--deep);
  color: rgba(246,242,234,.7);
  padding: 80px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 60px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .brand-logo { height: 56px; }
.footer-brand-name {
  font-family: var(--ffd);
  font-weight: 700;
  font-size: 24px;
  color: var(--paper);
  letter-spacing: -.01em;
  margin-top: 14px;
}
.footer-blurb {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
  color: rgba(246,242,234,.55);
}
.footer-h {
  font-family: var(--ffm);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--sand);
  margin-bottom: 18px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer ul a {
  font-size: 14px;
  color: rgba(246,242,234,.6);
  transition: color .2s;
}
.footer ul a:hover { color: var(--bg); }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: rgba(246,242,234,.4);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .legal { display: flex; gap: 20px; }
.footer-bottom .legal a:hover { color: var(--bg); }
.disclaimer {
  margin-top: 24px;
  font-size: 11px;
  color: rgba(246,242,234,.35);
  max-width: 720px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEALS
   ═══════════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
[data-reveal].in {
  opacity: 1; transform: translateY(0);
}
[data-reveal-d="1"] { transition-delay: .08s; }
[data-reveal-d="2"] { transition-delay: .16s; }
[data-reveal-d="3"] { transition-delay: .24s; }
[data-reveal-d="4"] { transition-delay: .32s; }
[data-reveal-d="5"] { transition-delay: .40s; }
[data-reveal-d="6"] { transition-delay: .48s; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-slider { grid-template-columns: 1fr 340px; gap: 32px; }
  .systems-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .proyectos-grid { grid-template-columns: 1fr 1fr; }
  .proyecto-main .py-img { min-height: 360px; }
  .contacto-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 880px) {
  .wrap, .wrap-tight { padding: 0 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .mobile-menu { display: block; }

  .hero-inner { padding-top: 32px; padding-bottom: 32px; }
  .hero-slider { grid-template-columns: 1fr; gap: 32px; }
  .hero-slides { min-height: 380px; }
  .hero-feature { min-height: 360px; }
  .hero-h1 { font-size: clamp(40px, 11vw, 72px); }
  .hero-top { gap: 12px; }
  .hero-meta { display: none; }

  .systems-grid { grid-template-columns: 1fr; }
  .system-card { min-height: 180px; padding: 24px 22px; }

  .section-pad { padding: 80px 0; }
  .productos, .systems, .proyectos, .cotizador, .contacto { padding: 80px 0; }
  .section-head { grid-template-columns: 1fr; }
  .section-head > a { display: none; }

  .products-grid { grid-template-columns: 1fr; }

  .proyectos-grid { grid-template-columns: 1fr; }
  .proyecto-main { grid-row: auto; }
  .proyecto-main .py-img { min-height: 280px; }

  .cot-head { grid-template-columns: 1fr; gap: 20px; }
  .cot-switcher { width: 100%; }
  .cot-switcher button { flex: 1; justify-content: center; }
  .cot-manual { grid-template-columns: 1fr; }
  .cot-manual-form { padding: 28px; border-right: none; border-bottom: 1px solid var(--line); }
  .cot-manual-summary { padding: 28px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .lead-card { padding: 28px 22px; }
  .lf-row { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1/-1; }

  .scroll-hint { display: none; }
}

@media (max-width: 480px) {
  .wrap, .wrap-tight { padding: 0 20px; }
  .nav { height: 64px; }
  .nav.scrolled { height: 56px; }
  .hero { padding-top: 64px; }
  .mobile-menu { top: 64px; }

  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
  .stat { border-left: none; padding-left: 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18); }
  .stat:first-child { border-top: none; padding-top: 0; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  .hero-actions .btn { flex: 1; justify-content: center; padding: 13px 16px; }
  .slide-arrows .slide-arrow { width: 40px; height: 40px; }
}

/* ═══════════════════════════════════════════════════════════
   FOTOS REALES sobre los placeholders (con respaldo automático)
   Las etiquetas descriptivas van DETRÁS de la foto (z-index 0):
   si la foto carga las cubre; si falla, quedan visibles. No
   dependemos de eventos load/onload (poco fiables con streaming).
   ═══════════════════════════════════════════════════════════ */
.product-img, .hf-img-area, .py-img { position: relative; overflow: hidden; }
.ph-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.py-img > .ph-photo { position: absolute; }
/* etiquetas-placeholder detrás de la foto */
.product-img-label, .hf-img-label, .py-img-label { z-index: 0; }
/* badges/etiquetas de categoría por encima de la foto */
.product-tag, .py-tag { z-index: 3; }
