/* ═══════════════════════════════════════════════════════════════
   Talleres ECI — Diseño industrial · Tema claro
   Mobile-first, CSS Variables, sin dependencias externas
═══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Paleta clara */
  --bg:           #f7f9fc;
  --surface:      #ffffff;
  --surface-2:    #f1f4f9;
  --surface-3:    #e8edf5;
  --border:       #dde3ef;
  --border-light: #c8d1e0;

  --blue:         #1d4ed8;
  --blue-hover:   #1e40af;
  --blue-light:   #eff6ff;
  --blue-dim:     rgba(29, 78, 216, 0.08);
  --blue-glow:    rgba(29, 78, 216, 0.2);

  /* Acento "pill" claro del nuevo rediseño (CTAs, badges) */
  --accent:       #5b9bf5;
  --accent-hover: #3d7de0;
  --accent-light: #eaf2ff;
  --accent-dark:  #0f2d5c;

  /* Acento acero / hierro para detalles industriales */
  --steel:        #334155;
  --steel-light:  #64748b;

  --text:         #0f172a;
  --text-2:       #475569;
  --text-3:       #94a3b8;

  --white:        #ffffff;
  --whatsapp:     #25d366;
  --whatsapp-h:   #1ebe57;

  /* Footer sigue oscuro para contraste */
  --footer-bg:    #0f172a;
  --footer-text:  #94a3b8;
  --footer-border:#1e293b;

  /* Tipografía — titulares grandes en negrita, look limpio del rediseño */
  --font-head:    'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Espaciado */
  --gap:          clamp(1rem, 3vw, 2rem);
  --section-py:   clamp(4rem, 8vw, 7rem);

  /* Sombras */
  --shadow-sm:    0 1px 3px rgba(15,23,42,0.07), 0 1px 2px rgba(15,23,42,0.05);
  --shadow-md:    0 4px 16px rgba(15,23,42,0.09), 0 2px 6px rgba(15,23,42,0.06);
  --shadow-lg:    0 12px 32px rgba(15,23,42,0.12), 0 4px 12px rgba(15,23,42,0.07);
  --shadow-blue:  0 4px 20px rgba(29,78,216,0.2);

  /* Bordes */
  --radius:       8px;
  --radius-lg:    14px;
  --radius-xl:    20px;

  /* Transiciones */
  --t:            0.22s ease;
}

/* ── Reset y base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.5vw, 1rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ── Utilidades ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

.section { padding-block: var(--section-py); }
.section--alt { background: var(--surface-2); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 0.9rem;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-subtitle {
  margin-top: 0.9rem;
  color: var(--text-2);
  max-width: 52ch;
  margin-inline: auto;
  font-size: 1.02rem;
}

.link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link:hover { color: var(--blue-hover); }

/* ── Botones ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--t);
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--blue-hover);
  box-shadow: 0 6px 28px rgba(29,78,216,0.35);
  transform: translateY(-1px);
}

.btn--outline {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.btn--outline:hover, .btn--outline:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn--ghost:hover {
  background: var(--blue);
  color: var(--white);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.btn--whatsapp:hover, .btn--whatsapp:focus-visible {
  background: var(--whatsapp-h);
  transform: translateY(-1px);
}

.btn--full { width: 100%; justify-content: center; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Reveal on scroll ──────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: 68px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 6px;
}
.logo__text {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav__list {
  display: none;
  align-items: center;
  gap: 0.15rem;
}
@media (min-width: 768px) { .nav__list { display: flex; } }

.nav__link {
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--t), background var(--t);
}
.nav__link:hover, .nav__link:focus-visible {
  color: var(--blue);
  background: var(--blue-light);
}

.nav__link--cta {
  background: var(--blue);
  color: var(--white) !important;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.5rem 1.2rem;
  box-shadow: var(--shadow-blue);
}
.nav__link--cta:hover, .nav__link--cta:focus-visible {
  background: var(--blue-hover) !important;
  box-shadow: 0 4px 16px rgba(29,78,216,0.35);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 6px;
  transition: background var(--t);
}
.nav-toggle:hover { background: var(--surface-2); }
@media (min-width: 768px) { .nav-toggle { display: none; } }

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed;
  inset-block-start: 68px;
  inset-inline: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 1rem 1.5rem 1.5rem;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  pointer-events: none;
}
.nav.is-open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 768px) {
  .nav {
    position: static;
    transform: none;
    opacity: 1;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    pointer-events: auto;
  }
}
.nav.is-open .nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.nav.is-open .nav__link {
  padding: 0.75rem 1rem;
  display: block;
}
.nav.is-open .nav__link--cta { margin-top: 0.5rem; text-align: center; }

/* ══════════════════════════════════════════════════════════════
   HERO (portada)
══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 8rem 4rem;
  overflow: hidden;
  background: linear-gradient(160deg, #eef2ff 0%, #f7f9fc 40%, #f0f7ff 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29, 78, 216, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 216, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 30%, transparent 100%);
}

.hero__glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 700px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(29,78,216,0.1) 0%, transparent 65%);
  filter: blur(48px);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 820px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-light);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero__title--accent { color: var(--blue); }

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-2);
  max-width: 58ch;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero__stat { display: flex; flex-direction: column; gap: 0.1rem; }
.hero__stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.78rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  display: none;
}
@media (min-width: 480px) { .hero__stat-divider { display: block; } }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.hero__scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.8; }
}

/* ══════════════════════════════════════════════════════════════
   HERO INTERIOR (páginas de servicio / sector)
══════════════════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(150deg, #1e3a8a 0%, #1d4ed8 60%, #2563eb 100%);
  padding-block: 7rem 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.page-hero__tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.page-hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1rem;
}
.page-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
  max-width: 60ch;
  margin-bottom: 2rem;
}
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.page-hero .btn--outline {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
  box-shadow: none;
}
.page-hero .btn--outline:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a {
  color: rgba(255,255,255,0.75);
  transition: color var(--t);
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb__sep { opacity: 0.4; }
.breadcrumb__current { color: rgba(255,255,255,0.9); }

/* ── Contenido de página interior ──────────────────────────── */
.page-content { padding-block: var(--section-py); }

.prose {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 72ch;
}
.prose + .prose { margin-top: 1.2rem; }
.prose strong { color: var(--text); font-weight: 600; }

.page-grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 960px) {
  .page-grid { grid-template-columns: 1fr 340px; align-items: start; }
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-card__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-2);
  transition: background var(--t), color var(--t);
}
.sidebar-links a:hover, .sidebar-links a.is-active {
  background: var(--blue-light);
  color: var(--blue);
}
.sidebar-links a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  opacity: 0.5;
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-hover) 100%);
  border: none;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: var(--white);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
.sidebar-cta__title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
}
.sidebar-cta__text { font-size: 0.88rem; opacity: 0.85; line-height: 1.5; }
.sidebar-cta .btn--outline {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  box-shadow: none;
  width: 100%;
  justify-content: center;
}
.sidebar-cta .btn--outline:hover {
  background: rgba(255,255,255,0.25);
  border-color: white;
  color: white;
}

/* ── Sección de características ─────────────────────────────── */
.features-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
  margin-top: 2.5rem;
}
@media (min-width: 600px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--blue);
}
.feature-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--blue-light);
  border-radius: 10px;
  color: var(--blue);
  margin-bottom: 1rem;
}
.feature-card__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.feature-card__text { font-size: 0.9rem; color: var(--text-2); line-height: 1.6; }

/* ── Lista de aplicaciones ──────────────────────────────────── */
.app-list {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}
@media (min-width: 600px) { .app-list { grid-template-columns: repeat(2, 1fr); } }

.app-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
}
.app-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 0.35rem;
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq { background: var(--surface-2); }

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 820px;
  margin-inline: auto;
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  text-align: left;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  transition: background var(--t), color var(--t);
}
.faq__question:hover { background: var(--blue-light); color: var(--blue); }
.faq__question[aria-expanded="true"] { color: var(--blue); background: var(--blue-light); }

.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--blue);
  transition: transform var(--t);
}
.faq__question[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }

.faq__answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
  border-top: 1px solid var(--border);
}
.faq__answer.is-open { display: block; }

/* ── Páginas relacionadas ───────────────────────────────────── */
.related { background: var(--surface-2); }

.related__grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--blue);
}
.related-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--blue-light);
  border-radius: 10px;
  color: var(--blue);
}
.related-card__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  transition: color var(--t);
}
.related-card:hover .related-card__title { color: var(--blue); }
.related-card__text { font-size: 0.85rem; color: var(--text-2); line-height: 1.55; flex: 1; }
.related-card__arrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: auto;
}

/* ══════════════════════════════════════════════════════════════
   PROBLEMAS
══════════════════════════════════════════════════════════════ */
.problems { background: var(--surface-2); }

.problems__grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}
@media (min-width: 600px)  { .problems__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .problems__grid { grid-template-columns: repeat(4, 1fr); } }

.problem-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.problem-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
  transform: translateY(-3px);
}
.problem-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--blue-light);
  border-radius: 10px;
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.problem-card__title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.problem-card__text { font-size: 0.9rem; color: var(--text-2); line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════
   QUIÉNES SOMOS
══════════════════════════════════════════════════════════════ */
.about__inner {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .about__inner { grid-template-columns: 1fr 1fr; align-items: center; }
}

.about__text { color: var(--text-2); margin-bottom: 1rem; line-height: 1.7; }
.about__text:last-of-type { margin-bottom: 1.75rem; }

.about__pillars { display: grid; gap: 0; }

.pillar {
  display: flex;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}
.pillar:first-child { border-top: 1px solid var(--border); }

.pillar__num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--border-light);
  line-height: 1;
  flex-shrink: 0;
  width: 2.5rem;
  padding-top: 2px;
}
.pillar__title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.pillar__text  { font-size: 0.88rem; color: var(--text-2); }

/* ══════════════════════════════════════════════════════════════
   SERVICIOS
══════════════════════════════════════════════════════════════ */
.services { background: var(--surface-2); }

.services__grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}
@media (min-width: 600px)  { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services__grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--blue);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--blue-light);
  border-radius: 12px;
  color: var(--blue);
  flex-shrink: 0;
}
.service-card__title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}
.service-card__text { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; flex: 1; }

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.service-card__list li {
  font-size: 0.82rem;
  color: var(--text-2);
  padding-left: 1rem;
  position: relative;
}
.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

/* Wrapper anchor — resets link defaults, mirrors card flex layout */
.service-card__link {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  transition: gap var(--t);
}
.service-card:hover .service-card__more { gap: 0.6rem; }

/* ══════════════════════════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  padding-block: 2.75rem;
}

.cta-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-banner__text {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--white);
}
.cta-banner__sub { font-size: 0.9rem; color: rgba(255,255,255,0.75); margin-top: 0.25rem; }

.cta-banner__btns { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.cta-banner .btn--primary {
  background: var(--white);
  color: var(--blue);
  box-shadow: none;
}
.cta-banner .btn--primary:hover { background: #f0f4ff; box-shadow: none; }

.cta-banner .btn--outline {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
  box-shadow: none;
}
.cta-banner .btn--outline:hover { background: rgba(255,255,255,0.2); border-color: white; color: white; }

/* ══════════════════════════════════════════════════════════════
   PROCESO
══════════════════════════════════════════════════════════════ */
.process__steps {
  display: grid;
  gap: 0;
  position: relative;
}
@media (min-width: 768px)  { .process__steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .process__steps { grid-template-columns: 1fr 1fr 1fr; } }

.process__step {
  display: flex;
  gap: 1.25rem;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  margin: -1px -1px 0 0;
  background: var(--white);
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
  list-style: none;
}
.process__step:hover {
  background: var(--blue-light);
  border-color: var(--blue);
  z-index: 1;
  box-shadow: var(--shadow-md);
}

.process__step-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue);
  opacity: 0.25;
  line-height: 1;
  flex-shrink: 0;
  width: 2.8rem;
}
.process__step:hover .process__step-num { opacity: 0.5; }

.process__step-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; line-height: 1.2; }
.process__step-text  { font-size: 0.88rem; color: var(--text-2); line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════
   SECTORES
══════════════════════════════════════════════════════════════ */
.sectors { background: var(--surface-2); }

.sectors__grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 480px)  { .sectors__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .sectors__grid { grid-template-columns: repeat(6, 1fr); } }

.sector-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
  text-decoration: none;
  color: var(--text);
}
.sector-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
  transform: translateY(-4px);
}

.sector-card__icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background: var(--blue-light);
  border-radius: 50%;
  color: var(--blue);
  transition: background var(--t), color var(--t);
}
.sector-card:hover .sector-card__icon { background: var(--blue); color: var(--white); }

.sector-card__name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════════════════════
   POR QUÉ ELEGIRNOS
══════════════════════════════════════════════════════════════ */
.why__inner {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}
@media (min-width: 900px) { .why__inner { grid-template-columns: 2fr 3fr; align-items: center; } }

.why__intro { color: var(--text-2); margin-block: 1rem 1.75rem; line-height: 1.65; }

.why__list { display: flex; flex-direction: column; gap: 0; }

.why__item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  transition: background var(--t);
}
.why__item:hover { background: var(--blue-light); }

.why__check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--blue-light);
  border-radius: 50%;
  color: var(--blue);
  margin-top: 1px;
}
.why__item-body { display: flex; flex-direction: column; gap: 0.2rem; }
.why__item-body strong { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; }
.why__item-body span  { font-size: 0.88rem; color: var(--text-2); }

/* ══════════════════════════════════════════════════════════════
   CALIDAD
══════════════════════════════════════════════════════════════ */
.quality { background: var(--surface-2); }

.quality__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.quality__inner::after {
  content: '';
  position: absolute;
  inset-inline-end: -40px;
  inset-block-end: -40px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, var(--blue-light) 0%, transparent 70%);
  pointer-events: none;
}
@media (min-width: 768px) {
  .quality__inner { flex-direction: row; align-items: center; gap: 2.5rem; }
}
.quality__icon {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  background: var(--blue-light);
  border: 2px solid var(--border);
  border-radius: 50%;
  color: var(--blue);
}
.quality__text { color: var(--text-2); margin-top: 0.75rem; line-height: 1.7; max-width: 68ch; }

/* ══════════════════════════════════════════════════════════════
   PROYECTOS
══════════════════════════════════════════════════════════════ */
.projects__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .projects__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 220px);
  }
}

.project-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.project-card--large { grid-column: span 2; }
@media (min-width: 768px) {
  .project-card--large { grid-column: span 1; grid-row: span 2; }
}

.project-card__img {
  width: 100%;
  height: 160px;
  position: relative;
  transition: transform 0.4s ease;
}
@media (min-width: 768px) { .project-card__img { height: 100%; } }
.project-card:hover .project-card__img { transform: scale(1.04); }
.project-card { overflow: hidden; }

/* Placeholders — sustituir por fotos reales */
.project-card__img--1 { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%); }
.project-card__img--2 { background: linear-gradient(135deg, #1c1917 0%, #44403c 50%, #292524 100%); }
.project-card__img--3 { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%); }
.project-card__img--4 { background: linear-gradient(135deg, #14532d 0%, #166534 50%, #052e16 100%); }
.project-card__img--5 { background: linear-gradient(135deg, #422006 0%, #78350f 50%, #2c1706 100%); }

.project-card__img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--t);
}
.project-card:hover .project-card__overlay { opacity: 1; }
.project-card__label { font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; color: white; }

.projects__note { margin-top: 1.5rem; text-align: center; font-size: 0.85rem; color: var(--text-3); }

/* ══════════════════════════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════════════════════════ */
.contact__inner {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}
@media (min-width: 900px) { .contact__inner { grid-template-columns: 2fr 3fr; } }

.contact__intro { color: var(--text-2); margin-block: 1rem 2rem; line-height: 1.65; }

.contact__details { display: flex; flex-direction: column; gap: 1.25rem; }

.contact__detail { display: flex; align-items: flex-start; gap: 1rem; }
.contact__detail-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--blue-light);
  border-radius: 8px;
  color: var(--blue);
}
.contact__detail div { display: flex; flex-direction: column; gap: 0.1rem; }
.contact__detail strong { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); }
.contact__link { color: var(--text); transition: color var(--t); }
.contact__link:hover { color: var(--blue); }

/* ── Formulario ─────────────────────────────────────────────── */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-md);
}

.contact-form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  pointer-events: none;
}

.contact-form__row { display: grid; gap: 1.25rem; }
@media (min-width: 480px) { .contact-form__row { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field__label { font-size: 0.85rem; font-weight: 600; color: var(--text-2); letter-spacing: 0.02em; }

.field__input {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
  width: 100%;
}
.field__input::placeholder { color: var(--text-3); }
.field__input:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--blue-dim);
}
.field__input.is-error { border-color: #ef4444; }

.field__textarea { resize: vertical; min-height: 120px; }

.field__error { font-size: 0.78rem; color: #dc2626; min-height: 1em; }

.field--check { flex-direction: row; align-items: flex-start; gap: 0; flex-wrap: wrap; }
.field__check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-2);
  cursor: pointer;
  line-height: 1.4;
}
.field__check-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  margin-top: 2px;
}

.contact-form__footer { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-form__note { font-size: 0.8rem; color: var(--text-3); text-align: center; }

.contact-form__success, .contact-form__error-msg {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.contact-form__success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.contact-form__error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER (sigue oscuro para contraste)
══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  padding-block: 3rem 0;
}
.footer .logo__text { color: #e2e8f0; }

.footer__inner {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 768px) { .footer__inner { grid-template-columns: 2fr 1fr 1fr; align-items: start; } }

.footer__tagline { margin-top: 0.75rem; color: var(--footer-text); font-size: 0.9rem; }

.footer__nav ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__nav a { font-size: 0.9rem; color: var(--footer-text); transition: color var(--t); }
.footer__nav a:hover { color: #e2e8f0; }

.footer__contact { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__contact a { font-size: 0.9rem; color: var(--footer-text); transition: color var(--t); }
.footer__contact a:hover { color: #93c5fd; }

.footer__bottom { border-top: 1px solid var(--footer-border); padding-block: 1.25rem; }
.footer__bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--footer-text);
}
.footer__bottom a { color: var(--footer-text); transition: color var(--t); }
.footer__bottom a:hover { color: #e2e8f0; }

/* ══════════════════════════════════════════════════════════════
   WHATSAPP FLOTANTE
══════════════════════════════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  inset-block-end: 1.5rem;
  inset-inline-end: 1.5rem;
  z-index: 99;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform var(--t), box-shadow var(--t);
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}
.whatsapp-fab__tooltip {
  position: absolute;
  inset-inline-end: calc(100% + 12px);
  background: var(--text);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity var(--t), transform var(--t);
}
.whatsapp-fab:hover .whatsapp-fab__tooltip { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════════════════════
   REDISEÑO — Botones pill, dropdowns de menú y nuevas secciones
══════════════════════════════════════════════════════════════ */

/* ── Botón pill (CTAs del rediseño) ──────────────────────────── */
.btn--pill { border-radius: 999px; }

.btn--accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(91,155,245,0.35);
}
.btn--accent:hover, .btn--accent:focus-visible {
  background: var(--accent-hover);
  box-shadow: 0 6px 24px rgba(91,155,245,0.45);
  transform: translateY(-1px);
}

.btn--dark {
  background: var(--accent-dark);
  color: var(--white);
}
.btn--dark:hover, .btn--dark:focus-visible {
  background: #16306b;
  transform: translateY(-1px);
}

/* ── Placeholder de imagen (sustituir por fotos reales) ──────── */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-light);
  background:
    repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 12px, var(--surface-3) 12px, var(--surface-3) 24px);
  color: var(--text-3);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1rem;
}

/* ══════════════════════════════════════════════════════════════
   NAV — Desplegables (Sectores, Servicios, Productos)
══════════════════════════════════════════════════════════════ */
.nav__item { position: relative; }

.nav__link--dropdown {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.nav__link--dropdown .nav__caret {
  width: 14px;
  height: 14px;
  transition: transform var(--t);
}
.nav__item.is-open .nav__caret { transform: rotate(180deg); }

.nav__dropdown {
  list-style: none;
  display: none;
  flex-direction: column;
}
.nav__item.is-open .nav__dropdown { display: flex; }

@media (min-width: 768px) {
  .nav__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 260px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity var(--t), transform var(--t);
    z-index: 110;
  }
  .nav__item.is-open .nav__dropdown {
    display: flex;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

.nav__dropdown a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-2);
  transition: background var(--t), color var(--t);
}
.nav__dropdown a:hover, .nav__dropdown a:focus-visible {
  background: var(--accent-light);
  color: var(--accent-hover);
}
.nav__dropdown a.is-view-all {
  margin-top: 0.25rem;
  border-top: 1px solid var(--border);
  padding-top: 0.7rem;
  font-weight: 700;
  color: var(--blue);
}

/* Móvil: el menú normal ya es vertical; los desplegables se expanden inline */
@media (max-width: 767.98px) {
  .nav__dropdown { padding-left: 1rem; }
  .nav__dropdown a { padding: 0.6rem 0.85rem; font-size: 0.88rem; }
}

/* ══════════════════════════════════════════════════════════════
   SPLIT BLOCK — bloques imagen + texto (Servicios / Sectores)
══════════════════════════════════════════════════════════════ */
.split-blocks {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.split-block {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 800px) {
  .split-block { grid-template-columns: 1fr 1fr; }
  .split-block--reverse .split-block__media { order: 2; }
}

.split-block__media .img-placeholder { min-height: 260px; width: 100%; }

.split-block__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 0.6rem;
}
.split-block__title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.split-block__text { color: var(--text-2); line-height: 1.7; }
.split-block__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--blue);
}

/* CTA de cierre tipo "Así Construimos / Así Trabajamos" */
.split-cta {
  text-align: center;
  max-width: 760px;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
}
.split-cta__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.split-cta__text { color: var(--text-2); line-height: 1.7; margin-bottom: 1.5rem; }

/* ══════════════════════════════════════════════════════════════
   STAT BLOCK — "Transformamos el acero en soluciones"
══════════════════════════════════════════════════════════════ */
.stat-section { background: var(--surface-2); }

.stat-block {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 800px) { .stat-block { grid-template-columns: 1fr 1fr; } }

.stat-block__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.stat-block__text { color: var(--text-2); line-height: 1.7; margin-bottom: 1.75rem; }

.stat-block__numbers { display: flex; gap: clamp(2rem, 6vw, 4rem); margin-bottom: 1.75rem; }
.stat-block__num {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 900;
  color: var(--accent-hover);
  line-height: 1;
}
.stat-block__label { font-size: 0.85rem; color: var(--text-2); margin-top: 0.35rem; }

.stat-block__media .img-placeholder { min-height: 320px; width: 100%; }

/* ══════════════════════════════════════════════════════════════
   CERTIFICACIONES
══════════════════════════════════════════════════════════════ */
.cert-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 700px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }

.cert-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cert-card__title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
}
.cert-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-hover);
  background: var(--accent-light);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  width: fit-content;
}
.cert-card__text { color: var(--text-2); font-size: 0.92rem; line-height: 1.6; }
.cert-card .img-placeholder { min-height: 160px; }

.cert-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.cert-logos__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-2);
  text-align: center;
}
.cert-logos__badge {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--accent-light);
  border-radius: 50%;
  color: var(--accent-hover);
}

/* ══════════════════════════════════════════════════════════════
   MAPA MUNDIAL — "Nuestra presencia Global"
══════════════════════════════════════════════════════════════ */
.world-map-section { text-align: center; }
.world-map {
  max-width: 880px;
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
}
.world-map svg { width: 100%; height: auto; display: block; }
.world-map .wm-base   { fill: var(--surface-3); }
.world-map .wm-active { fill: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   INDUSTRIAS — chips/badges
══════════════════════════════════════════════════════════════ */
.industry-badges {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 600px)  { .industry-badges { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px)  { .industry-badges { grid-template-columns: repeat(5, 1fr); } }

.industry-badge {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t), color var(--t), box-shadow var(--t);
}
.industry-badge:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  box-shadow: var(--shadow-md);
}
.industry-badge svg { flex-shrink: 0; color: var(--accent-hover); }

/* ══════════════════════════════════════════════════════════════
   UBICACIÓN — "Dónde encontrarnos"
══════════════════════════════════════════════════════════════ */
.location-block {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 800px) { .location-block { grid-template-columns: 1fr 1fr; } }

.location-block__text p { color: var(--text-2); line-height: 1.7; margin-bottom: 1rem; }
.location-block__text strong { color: var(--text); }

.location-block__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-height: 320px;
}
.location-block__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ══════════════════════════════════════════════════════════════
   BLOG
══════════════════════════════════════════════════════════════ */
.blog-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 640px)  { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(4, 1fr); } }
.blog-grid--8 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .blog-grid--8 { grid-template-columns: repeat(4, 1fr); } }

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--accent);
}
.blog-card .img-placeholder { min-height: 140px; border-radius: 0; border: 0; }
.blog-card__body { padding: 0 1.1rem 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.blog-card__title { font-family: var(--font-head); font-size: 1rem; font-weight: 800; line-height: 1.3; }
.blog-card__text { font-size: 0.85rem; color: var(--text-2); line-height: 1.55; flex: 1; }
.blog-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 0.4rem;
}
.blog-card__more { font-weight: 700; color: var(--blue); }

/* ══════════════════════════════════════════════════════════════
   NEWSLETTER (footer)
══════════════════════════════════════════════════════════════ */
.newsletter {
  background: var(--accent-dark);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.newsletter__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.newsletter__title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--white);
  max-width: 26ch;
  line-height: 1.25;
}
.newsletter__form {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 420px;
}
.newsletter__form input {
  flex: 1;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font: inherit;
  font-size: 0.92rem;
}
.newsletter__form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter__form input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.14);
}
.newsletter__form button {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  transition: background var(--t), transform var(--t);
}
.newsletter__form button:hover { background: var(--accent-hover); transform: translateY(-1px); }
.newsletter__msg { font-size: 0.82rem; color: rgba(255,255,255,0.75); margin-top: 0.6rem; }

/* ── Footer ampliado: columnas de navegación ─────────────────── */
.footer__cols {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px)  { .footer__cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .footer__cols { grid-template-columns: repeat(3, 1fr); } }
.footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e2e8f0;
  margin-bottom: 0.85rem;
}

/* ── Páginas con cabecera clara (servicios/sectores/equipo/etc) ── */
.light-hero {
  padding-block: 7.5rem 3.5rem;
  text-align: center;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.light-hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.light-hero__subtitle {
  color: var(--text-2);
  max-width: 60ch;
  margin-inline: auto 1.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.light-hero__actions { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }

/* ── Equipo ───────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 700px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card { text-align: center; }
.team-card .img-placeholder { min-height: 220px; margin-bottom: 1rem; }
.team-card__name { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; }
.team-card__role { font-size: 0.85rem; color: var(--text-2); margin-top: 0.25rem; }

/* ── Productos (placeholder Fase 1) ──────────────────────────── */
.product-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 640px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 90px;
}
.product-card__title { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; margin-bottom: 0.4rem; }
.product-card__text { font-size: 0.88rem; color: var(--text-2); line-height: 1.6; }
.product-card__soon {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
  background: var(--accent-light);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}

/* ══════════════════════════════════════════════════════════════
   ACCESIBILIDAD
══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
