/* ═══════════════════════════════════════════════════════════════
   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);
}
.logo__img {
  height: 52px;
  width: auto;
  display: block;
}

.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; } }

.lang-switcher {
  position: relative;
  margin-inline-end: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.lang-switcher__trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--text-2);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: background var(--t), border-color var(--t);
}
.lang-switcher__trigger:hover, .lang-switcher__trigger:focus-visible {
  background: var(--surface-2);
  border-color: var(--border-light);
}
.lang-switcher__code { text-transform: uppercase; }
.lang-switcher__caret { flex-shrink: 0; transition: transform var(--t); }
.lang-switcher.is-open .lang-switcher__caret { transform: rotate(180deg); }
.lang-switcher__flag {
  display: inline-flex;
  font-size: 1rem;
  line-height: 1;
}
.lang-switcher__flag--svg { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }

.lang-switcher__menu {
  list-style: none;
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity var(--t), transform var(--t);
  z-index: 120;
}
.lang-switcher.is-open .lang-switcher__menu {
  display: flex;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.lang-switcher__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius);
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  transition: color var(--t), background var(--t);
}
.lang-switcher__link:hover, .lang-switcher__link:focus-visible {
  color: var(--blue);
  background: var(--blue-light);
}
.lang-switcher__link.is-active {
  color: var(--accent-dark);
  font-weight: 800;
  background: var(--surface-2);
}
@media (max-width: 480px) {
  .lang-switcher__trigger { padding: 3px 6px; }
  .lang-switcher__menu { right: -8px; }
}

.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 con vídeo de fondo ──────────────────────────────────── */
.hero--video { background: #0a1220; }

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,12,24,0.78) 0%, rgba(7,14,28,0.62) 38%, rgba(6,11,22,0.55) 62%, rgba(5,9,18,0.88) 100%),
    linear-gradient(100deg, rgba(4,8,18,0.75) 0%, rgba(6,13,26,0.32) 46%, rgba(4,8,18,0.2) 100%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.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.55rem;
  padding: 0.4rem 1.05rem 0.4rem 0.85rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  width: fit-content;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(91,155,245,0.25);
  animation: badgePulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(91,155,245,0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(91,155,245,0.05); }
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.7rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  display: flex;
  flex-direction: column;
}
.hero__title-line { color: #f5f7fb; text-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.hero__title-line--accent { position: relative; width: fit-content; }

.hero__title--accent {
  position: relative;
  background: linear-gradient(100deg, #bcdcff 0%, #8fc4ff 28%, var(--accent) 55%, #a5d8ff 78%, #d6ecff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroShine 7s linear infinite;
}
@keyframes heroShine {
  0%   { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}
.hero__title-line--accent::after {
  content: "";
  position: absolute;
  left: 1px;
  right: -2%;
  bottom: -0.08em;
  height: 0.09em;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(91,155,245,0) 0%, var(--accent) 15%, #bcdcff 50%, var(--accent) 85%, rgba(91,155,245,0) 100%);
  opacity: 0.85;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: rgba(235,240,250,0.82);
  max-width: 58ch;
  line-height: 1.65;
}

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

.hero--video .btn--outline {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.32);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: none;
}
.hero--video .btn--outline:hover,
.hero--video .btn--outline:focus-visible {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.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 rgba(255,255,255,0.16);
}

.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: #fff;
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.78rem;
  color: rgba(230,236,248,0.65);
  letter-spacing: 0.02em;
}
.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.18);
  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, rgba(255,255,255,0.85), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title--accent, .hero__badge-dot { animation: none; }
}

/* ══════════════════════════════════════════════════════════════
   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; }

/* ── Variante de cabecera con foto de fondo a pantalla completa ──── */
.page-hero--img {
  background: #0b1120;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding-block: 7rem 5rem;
}
.page-hero--img::before { display: none; }
.page-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,16,32,0.75) 0%, rgba(10,16,32,0.55) 45%, rgba(10,16,32,0.85) 100%);
}
.page-hero--img .page-hero__inner { position: relative; z-index: 2; }
@media (max-width: 700px) {
  .page-hero--img { min-height: 0; padding-block: 6.5rem 3rem; }
}
.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; }

/* ── Acordeón técnico ("¿Qué es la calderería industrial?") ──── */
.tech-accordion {
  margin-top: clamp(2rem, 5vw, 2.75rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.tech-accordion__item { position: relative; border-top: 1px solid var(--border); }
.tech-accordion__item:first-child { border-top: 0; }
.tech-accordion__item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.25s ease;
}
.tech-accordion__item.is-open::before { transform: scaleY(1); }

.tech-accordion__heading { margin: 0; font-size: inherit; font-weight: inherit; }

.tech-accordion__trigger {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.4rem;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  transition: background var(--t);
}
.tech-accordion__trigger:hover { background: var(--surface-2); }
.tech-accordion__trigger:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

.tech-accordion__num {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--border-light);
  min-width: 2.4rem;
  transition: color 0.25s ease;
}
.tech-accordion__item.is-open .tech-accordion__num { color: var(--accent); }

.tech-accordion__title { flex: 1; font-weight: 700; font-size: 0.98rem; line-height: 1.35; }

.tech-accordion__chevron { flex-shrink: 0; color: var(--text-3); transition: transform 0.25s ease, color 0.25s ease; }
.tech-accordion__item.is-open .tech-accordion__chevron { transform: rotate(180deg); color: var(--accent); }

.tech-accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.tech-accordion__item.is-open .tech-accordion__panel { grid-template-rows: 1fr; }
.tech-accordion__panel-inner { overflow: hidden; }
.tech-accordion__panel-inner p {
  padding: 0 1.4rem 1.3rem calc(1.4rem + 2.4rem + 1rem);
  color: var(--text-2);
  line-height: 1.65;
  font-size: 0.93rem;
}
@media (max-width: 560px) {
  .tech-accordion__panel-inner p { padding-left: 1.4rem; }
}

/* ── 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__note { margin-top: .85rem; font-size: .875rem; }
.cta-banner__note a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.cta-banner__note a:hover { color: #dbe6ff; }

.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; }

.cta-banner [hidden] { display: none !important; }

.cta-banner__action { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }

.catalog-form { display: flex; flex-direction: column; gap: 0.4rem; }
.catalog-form__intro { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin: 0 0 0.2rem; max-width: 320px; }
.catalog-form__row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.catalog-form__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.catalog-form__row input[type="email"] {
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  min-width: 230px;
}
.catalog-form__row input[type="email"]::placeholder { color: rgba(255,255,255,0.6); }
.catalog-form__row input[type="email"]:focus {
  outline: none;
  border-color: var(--white);
  background: rgba(255,255,255,0.18);
}
.catalog-form__error { font-size: 0.82rem; color: #fecaca; margin: 0; }



/* Bloque certificación ISO 9001 */
.cert-strip { background: var(--surface-2, #f1f5f9); padding-block: 2.25rem; border-bottom: 1px solid var(--border, #e2e8f0); }
.cert-strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.75rem; }
.cert-strip__badge { display: inline-flex; background: var(--white); border: 1px solid var(--border, #e2e8f0); border-radius: var(--radius-lg, 12px); padding: 0.9rem 1.25rem; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t); }
.cert-strip__badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cert-strip__badge img { height: 84px; width: auto; display: block; }
.cert-strip__text { max-width: 480px; }
.cert-strip__title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--text, #0f172a); }
.cert-strip__sub { margin-top: 0.3rem; font-size: 0.92rem; color: var(--text-2, #475569); line-height: 1.55; }
.cert-strip__link { display: inline-block; margin-top: 0.6rem; font-size: 0.9rem; font-weight: 600; color: var(--blue); }
.cert-strip__link:hover { text-decoration: underline; }
@media (max-width: 600px) { .cert-strip__inner { flex-direction: column; text-align: center; } }

/* ══════════════════════════════════════════════════════════════
   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__hint { font-size: 0.78rem; color: var(--text-3); }

/* ── Selector de archivo adjunto ──────────────────────────────── */
.file-input { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.file-input__native {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.file-input__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color var(--t), background var(--t), color var(--t);
  flex-shrink: 0;
}
.file-input__button:hover { border-color: var(--blue); color: var(--blue); background: var(--white); }
.file-input__native:focus-visible + .file-input__button {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim);
}
.file-input__name {
  font-size: 0.85rem;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.file-input__name.has-file { color: var(--text); font-weight: 600; }

.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: 0;
}
.footer .logo__text { color: #e2e8f0; }
.footer .logo__img { filter: brightness(0) invert(1); }

.footer__inner {
  display: grid;
  gap: 2.5rem;
  padding-block: 3.5rem 2.75rem;
}
@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; align-items: start; }
  .footer__cols { grid-column: 2 / -1; }
}

.footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; max-width: 360px; }
.footer__brand > .logo, .footer__brand > .footer__tagline { flex-basis: 100%; }
.footer__brand .footer__tagline { margin-top: 0; line-height: 1.5; }
.footer__brand .footer__social, .footer__brand .footer__cert { margin-top: 0; }

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

.footer__social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--footer-text);
  transition: background var(--t), color var(--t), transform var(--t);
}
.footer__social-link:hover,
.footer__social-link:focus-visible {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer__cert {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-sm, 8px);
  padding: 0.35rem 0.6rem;
  margin-top: 1.25rem;
  transition: transform var(--t);
}
.footer__cert:hover { transform: translateY(-2px); }
.footer__cert-img { height: 38px; width: auto; display: block; }

.footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.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 {
  padding-inline-end: 5rem;
  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;
}

/* Cuando el placeholder ya tiene foto real (es un <img> con src), se muestra como foto normal */
img.img-placeholder {
  display: block;
  border: 0;
  background: none;
  padding: 0;
  object-fit: cover;
  width: 100%;
  color: transparent;
  font-size: 0;
}

/* ── Sectores: tarjetas compactas (2 por fila) ───────────────── */
.sector-mini-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  margin-top: clamp(2rem, 5vw, 3rem);
}
@media (min-width: 640px) { .sector-mini-grid { grid-template-columns: repeat(2, 1fr); } }

.sector-mini-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.sector-mini-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent);
}
.sector-mini-card__media {
  width: 84px;
  height: 84px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.sector-mini-card__media .img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  font-size: 0.55rem;
  padding: 0.25rem;
}
.sector-mini-card__body { flex: 1; min-width: 0; }
.sector-mini-card__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: var(--text);
}
.sector-mini-card__text {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sector-mini-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  margin-top: 0.4rem;
}
.sector-mini-card:hover .sector-mini-card__link { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   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; }
}

/* ── Menú ancho (Sectores · Servicios · Productos) ───────────── */
.nav__item.has-mega { position: static; }
.nav__mega { display: none; }
.nav__item.is-open .nav__mega { display: block; animation: megaIn 0.18s ease; }
@keyframes megaIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.nav__mega ul { list-style: none; margin: 0; padding: 0; }
.nav__mega-title {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  padding-bottom: 0.55rem;
  margin-bottom: 0.45rem;
  border-bottom: 2px solid var(--accent-light);
}
.nav__mega-title:hover { color: var(--accent-hover); }
.nav__mega li a {
  display: block;
  padding: 0.42rem 0.6rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-2);
  transition: background var(--t), color var(--t);
}
.nav__mega li a:hover, .nav__mega li a:focus-visible { background: var(--accent-light); color: var(--accent-hover); }
.nav__mega li a.is-view-all { margin-top: 0.3rem; font-weight: 700; color: var(--blue); }
.nav__mega-all { font-weight: 700; font-size: 0.88rem; color: var(--blue); }
.nav__mega-all:hover { text-decoration: underline; }

@media (min-width: 768px) {
  .nav__mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 1.75rem 0 1rem;
    z-index: 110;
  }
  .nav__mega-inner { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 2.5rem; align-items: start; }
  .nav__mega-col--wide ul { columns: 2; column-gap: 1.5rem; }
  .nav__mega-col--wide li { break-inside: avoid; }
  .nav__mega-foot { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); text-align: right; }
}
@media (max-width: 767.98px) {
  .nav { max-height: calc(100vh - 68px); overflow-y: auto; }
  .nav__mega-inner { display: grid; gap: 1rem; padding: 0.5rem 0 0.5rem 1rem; }
  .nav__mega-foot { padding: 0.25rem 0 0.5rem 1rem; }
}

/* ── Página Sectores · Servicios · Productos ─────────────────── */
.sol-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); margin-top: 2rem; }
.sol-viewall { display: inline-block; margin-top: 0.4rem; font-weight: 700; font-size: 0.9rem; color: var(--blue); }
.sol-viewall:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════
   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 { height: 260px; width: 100%; }
@media (min-width: 700px) { .split-block__media .img-placeholder { height: 320px; } }

.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-card__badge { height: 90px; width: auto; object-fit: contain; align-self: flex-start; }

/* ── Carrusel de logos de clientes ─────────────────────────────── */
.clients-carousel {
  overflow: hidden;
  margin-top: clamp(2rem, 5vw, 3rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients-carousel__track {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4rem);
  width: max-content;
  animation: clients-scroll 36s linear infinite;
}
.clients-carousel:hover .clients-carousel__track { animation-play-state: paused; }
.clients-carousel__logo {
  height: 34px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter var(--t), opacity var(--t);
  flex-shrink: 0;
}
.clients-carousel__logo:hover { filter: grayscale(0%); opacity: 1; }
@keyframes clients-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .clients-carousel__track { animation: none; }
  .clients-carousel { overflow-x: auto; }
}

.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-layout {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: flex-start;
  justify-content: center;
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  text-align: left;
}
.world-map-layout .world-map--interactive {
  flex: 1 1 420px;
  max-width: 480px;
}
.world-map-countries {
  flex: 1 1 260px;
  max-width: 340px;
  padding-top: 0.5rem;
}
.world-map-countries__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 1rem;
}
.world-map-countries__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.2rem;
  padding: 0;
  margin: 0;
}
.world-map-countries__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  color: var(--text-2);
}
.world-map-countries__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
@media (max-width: 560px) {
  .world-map-countries__list { grid-template-columns: 1fr 1fr; }
}
.world-map__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ── Mapa mundial interactivo (sobre foto real) ────────────────── */
.world-map--interactive {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  line-height: 0;
}
.world-map__base { width: 100%; height: auto; aspect-ratio: 1536 / 1024; display: block; background: #05070d; }

.world-map--interactive .wm-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent-dark);
  cursor: pointer;
  outline: none;
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  z-index: 2;
}
.world-map--interactive .wm-pin--hq,
.world-map--interactive .wm-pin--pt {
  width: 14px;
  height: 14px;
  background: var(--accent);
  z-index: 3;
}
.world-map--interactive .wm-pin--reach {
  width: 7px;
  height: 7px;
  border-width: 1.5px;
  background: rgba(255,255,255,0.65);
  opacity: 0.9;
}
.world-map--interactive .wm-pin--reach:hover,
.world-map--interactive .wm-pin--reach:focus-visible,
.world-map--interactive .wm-pin--reach.is-active {
  width: 11px;
  height: 11px;
  background: var(--accent);
  opacity: 1;
}
.world-map--interactive .wm-pin--hq:hover,
.world-map--interactive .wm-pin--hq:focus-visible,
.world-map--interactive .wm-pin--hq.is-active,
.world-map--interactive .wm-pin--pt:hover,
.world-map--interactive .wm-pin--pt:focus-visible,
.world-map--interactive .wm-pin--pt.is-active {
  width: 18px;
  height: 18px;
}

.world-map--interactive .wm-pin--hq::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.6;
  animation: wmPulse 2.4s ease-out infinite;
}
@keyframes wmPulse {
  0%   { transform: scale(0.5); opacity: 0.6; }
  100% { transform: scale(2.4); opacity: 0; }
}

.wm-pin__label {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85), 0 0 6px rgba(0,0,0,0.5);
  white-space: nowrap;
  pointer-events: none;
}
.wm-pin__label--left { left: auto; right: 100%; margin-left: 0; margin-right: 8px; }

.wm-tooltip {
  position: absolute;
  z-index: 5;
  max-width: 230px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  transform: translate(-50%, calc(-100% - 14px));
}
.wm-tooltip[hidden] { display: none; }
.wm-tooltip__title {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}
.wm-tooltip__text { color: var(--text-2); line-height: 1.42; margin: 0 0 0.5rem; }
.wm-tooltip__link { font-weight: 700; color: var(--blue); font-size: 0.78rem; }
.wm-tooltip__link[hidden] { display: none; }

.world-map__hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 0.75rem;
}

/* ══════════════════════════════════════════════════════════════
   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 ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col a { font-size: 0.9rem; color: var(--footer-text); transition: color var(--t); }
.footer__col a:hover, .footer__col a:focus-visible { color: #e2e8f0; }
.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;
  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;
  overflow: hidden;
}
.product-card__img { display: block; width: calc(100% + 3rem); max-width: none; margin: -1.5rem -1.5rem 1.1rem; aspect-ratio: 5 / 2; object-fit: cover; }
.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; }
}

/* Certificaciones: marca de las tarjetas sin imagen */
.cert-card__mark { display: flex; align-items: center; justify-content: center; height: 90px; width: 90px; border-radius: var(--radius-lg); background: var(--accent-light); color: var(--blue); align-self: flex-start; }

/* ── Robustez: palabras largas (alemán) y menú en tablet ─────── */
.page-grid > *, .split-block__content, .split-block__media { min-width: 0; }
main h1, main h2, main h3, main p, main li, .sidebar a { overflow-wrap: break-word; }
html[lang="de"] main h1, html[lang="de"] main h2, html[lang="de"] main h3, html[lang="de"] main p, html[lang="de"] main li { hyphens: auto; }
@media (min-width: 768px) and (max-width: 1099.98px) {
  .header__inner { gap: 0.75rem; }
  .nav__list { gap: 0; }
  .nav__link { padding: 0.4rem 0.5rem; font-size: 0.82rem; }
  .nav__link--cta { padding: 0.45rem 0.8rem; font-size: 0.85rem; }
  .logo__img { height: 44px; }
}
.footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer a, .footer p, .footer li { overflow-wrap: anywhere; }
@media (min-width: 768px) and (max-width: 959.98px) {
  .footer__inner:has(.footer__cols) { grid-template-columns: 1fr; }
  .footer__cols { grid-column: 1 / -1; }
  .footer__brand { max-width: none; }
}
.btn { max-width: 100%; white-space: normal; text-align: center; }
.contact__info, .contact__form-wrap, .contact__inner > *, .contact__grid > * { min-width: 0; }
.contact__detail, .contact__detail * { overflow-wrap: anywhere; }

/* ══════════════════════════════════════════════════════════════
   EMBUDO DE CONTACTO (portada)
══════════════════════════════════════════════════════════════ */
.hero__trust { margin-top: 1rem; font-size: 0.88rem; color: rgba(255,255,255,0.85); }
.hero__trust--talk { margin-top: 0.35rem; }
.hero__trust a { color: var(--white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hero__trust a:hover { color: var(--accent); }

.clients-strip { background: var(--white); padding-block: 1.75rem; border-bottom: 1px solid var(--border); }
.clients-strip__label { text-align: center; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.clients-strip .clients-carousel { margin-top: 1.1rem; }

.paths { background: var(--surface-2); }
.paths__head { text-align: center; max-width: 640px; margin-inline: auto; }
.paths__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -0.01em; color: var(--text); }
.paths__sub { margin-top: 0.5rem; color: var(--text-2); }
.paths__grid { display: grid; gap: 1.25rem; margin-top: 2rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .paths__grid { grid-template-columns: repeat(3, 1fr); } }
.path-card {
  display: flex; flex-direction: column; gap: 0.6rem;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm); color: inherit;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.path-card:hover, .path-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.path-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius); background: var(--accent-light); color: var(--blue); }
.path-card__name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--text); }
.path-card__text { color: var(--text-2); font-size: 0.93rem; line-height: 1.55; flex: 1; }
.path-card__btn { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.4rem; font-weight: 700; font-size: 0.92rem; color: var(--blue); }

.split-cta__alt { display: inline-block; margin-top: 0.9rem; font-size: 0.9rem; font-weight: 600; color: var(--blue); }
.split-cta__alt:hover { text-decoration: underline; }
p.split-cta__title { margin-bottom: 0.5rem; }

.contact-quick { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }
.contact-steps { list-style: none; counter-reset: step; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.7rem; }
.contact-steps li { counter-increment: step; display: flex; align-items: center; gap: 0.75rem; font-size: 0.93rem; color: var(--text-2); }
.contact-steps li::before { content: counter(step); flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-light); color: var(--blue); font-weight: 800; font-size: 0.85rem; }
select.field__input { appearance: auto; cursor: pointer; }

/* Barra fija de contacto */
.sticky-cta { position: fixed; z-index: 90; display: none; }
.sticky-cta.is-visible { display: flex; }
.sticky-cta__main { display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: var(--white); font-family: var(--font-head); font-weight: 700; padding: 0.8rem 1.4rem; border-radius: 999px; box-shadow: var(--shadow-blue, 0 6px 20px rgba(29,78,216,0.35)); }
.sticky-cta__main:hover { background: var(--blue-hover); }
.sticky-cta__alt { display: none; }
@media (min-width: 768px) { .sticky-cta { left: 1.5rem; bottom: 1.5rem; } }
@media (max-width: 767.98px) {
  .sticky-cta { left: 0; right: 0; bottom: 0; gap: 0.5rem; padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--border); box-shadow: 0 -4px 18px rgba(15,23,42,0.12); }
  .sticky-cta__main { flex: 1; border-radius: var(--radius); padding: 0.75rem 0.5rem; font-size: 0.88rem; line-height: 1.15; text-align: center; }
  .sticky-cta__alt { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.75rem 0.9rem; border: 1.5px solid var(--border-light); border-radius: var(--radius); font-weight: 700; font-size: 0.9rem; color: var(--text); }
  body.has-sticky-cta { padding-bottom: 84px; }
  body.has-sticky-cta .whatsapp-fab { display: none; }
}

/* Certificaciones: las 4 ventajas en una sola fila */
@media (min-width: 640px) { .features-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Política de calidad (PDF) */
.cert-card__badge-link { display: inline-block; align-self: flex-start; }
.cert-card__download { align-self: flex-start; margin-top: 0.25rem; font-weight: 700; font-size: 0.9rem; color: var(--blue); }
.cert-card__download:hover { text-decoration: underline; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* ── Sectores / Nosotros / Productos: contenido ampliado ─────── */
@media (min-width: 700px) {
  .split-block { align-items: stretch; }
  .split-block__content { align-self: center; }
  /* La foto ocupa la altura del texto (mín. 320 px) y se recorta: todas iguales sea cual sea su proporción */
  .split-block__media { display: block; position: relative; min-height: 320px; }
  .split-block__media .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
}
.split-block__content .split-block__text + .split-block__text { margin-top: 0.85rem; }
.team-quote { margin: 2.5rem auto 0; max-width: 640px; text-align: center; font-family: var(--font-head); font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 700; line-height: 1.35; color: var(--text); }
.team-quote__by { display: block; margin-top: 0.6rem; font-family: var(--font-body, inherit); font-size: 0.9rem; font-weight: 600; color: var(--text-3); }
.product-card__more { display: inline-block; margin-top: 0.9rem; font-weight: 700; font-size: 0.9rem; color: var(--blue); }
.product-card__more:hover { text-decoration: underline; }
.product-card__imglink { display: block; }

/* Párrafos centrados: la caja también se centra (no solo el texto) */
.prose[style*="text-align:center"], .prose[style*="text-align: center"] { margin-inline: auto; }

.hero__logo-m { display: none; }

/* Business cases (galerías de proyectos en sectores) */
.cases { margin-top: 3rem; }
.case + .case { margin-top: 2.5rem; }
.case__head { margin-bottom: 1rem; }
.case__title { font-size: 1.125rem; line-height: 1.35; margin: 0 0 .5rem; }
.case__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.case__meta span { font-size: .8125rem; padding: .2rem .7rem; border-radius: 999px; background: rgba(0,0,0,.05); color: var(--text-muted, #555); }
.case__gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(6.5rem, 14vw, 10.5rem); gap: .5rem; }
.case__ph { display: block; overflow: hidden; border-radius: 8px; background: #e8e8e8; cursor: zoom-in; }
.case__ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.case__ph:hover img { transform: scale(1.05); }
.case__gallery--5 .case__ph:first-child { grid-column: span 2; grid-row: span 2; }
.case__gallery--4 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(9rem, 20vw, 14rem); }
.case__gallery--3 { grid-template-columns: 2fr 1fr; grid-auto-rows: clamp(7rem, 15vw, 10.5rem); }
.case__gallery--3 .case__ph:first-child { grid-row: span 2; }
.case__gallery--2 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(10rem, 24vw, 16rem); }
@media (max-width: 575.98px) {
  .case__gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(6rem, 28vw, 9rem); }
  .case__gallery--5 .case__ph:first-child, .case__gallery--3 .case__ph:first-child { grid-column: span 2; grid-row: span 1; }
}
.case { scroll-margin-top: 6rem; }
/* Fichas de proyecto que enlazan a la galería completa (servicios y productos) */
.case-refs { margin-top: 3rem; }
.case-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.case-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.case-card:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(15, 23, 42, .08); }
.case-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e8e8e8; }
.case-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.case-card:hover .case-card__img img { transform: scale(1.04); }
.case-card__body { display: flex; flex-direction: column; gap: .6rem; padding: .9rem 1rem 1rem; flex: 1; }
.case-card__title { font-weight: 600; font-size: .95rem; line-height: 1.35; }
.case-card__more { margin-top: auto; font-size: .85rem; font-weight: 600; color: var(--blue); }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.88); padding: 1.5rem; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }
.lightbox__close { position: absolute; top: .75rem; right: 1rem; background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.newsletter__msg a { color: inherit; text-decoration: underline; }

/* Mapa: se carga solo al pulsar (evita cookies de Google sin consentimiento) */
.location-block__map { position: relative; }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 1.5rem; text-align: center; background: var(--bg-soft, #f1f4f9); }
.map-consent p { margin: 0; font-size: .8rem; color: var(--text-muted, #5b6472); max-width: 28rem; }
.location-block__map iframe:not([src]) { visibility: hidden; }

/* Artículos del blog */
.post .post-top { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: var(--radius-lg); display: block; margin-bottom: 1.75rem; }
.post__body .split-block__text { margin-bottom: 1rem; }
.post__body .split-block__title { margin: 1.75rem 0 .75rem; }
.post-gallery { display: grid; gap: .5rem; margin-top: 2rem; }
.post-gallery--c1 { grid-template-columns: 1fr; }
.post-gallery--c2 { grid-template-columns: repeat(2, 1fr); }
.post-gallery--c3 { grid-template-columns: repeat(3, 1fr); }
.post-gallery--c4 { grid-template-columns: repeat(4, 1fr); }
.post-gallery__ph { display: block; overflow: hidden; border-radius: 8px; background: #e8e8e8; aspect-ratio: 4 / 3; cursor: zoom-in; }
.post-gallery--c1 .post-gallery__ph { aspect-ratio: 16 / 10; }
.post-gallery__ph.is-hero { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.post-gallery__ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.post-gallery__ph:hover img { transform: scale(1.04); }
@media (max-width: 575.98px) { .post-gallery--c3, .post-gallery--c4 { grid-template-columns: repeat(2, 1fr); } .post-gallery--c3 .post-gallery__ph:last-child:nth-child(odd):not(.is-hero) { grid-column: 1 / -1; } }
p.split-cta__title-p { font-family: var(--font-head); font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; letter-spacing: -0.01em; margin-bottom: .75rem; }
.blog-card > img { width: 100%; height: 190px; object-fit: cover; }

/* Móvil: 16 px mínimo en campos (evita el zoom automático de iOS al enfocar) */
@media (max-width: 767.98px) {
  input, select, textarea, .field__input { font-size: 16px !important; }
}

/* Equipo: avatar con iniciales mientras no hay foto real */
.team-card__avatar { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 220px; margin-bottom: 1rem; border-radius: var(--radius-lg); background: linear-gradient(135deg, #0b1f4a 0%, #1d4ed8 100%); color: #fff; font-family: var(--font-head); font-size: 3.2rem; font-weight: 800; letter-spacing: .04em; }

/* Casillas de consentimiento (newsletter y catálogo) */
.newsletter__consent { display: flex; align-items: flex-start; gap: .5rem; margin-top: .6rem; font-size: .8rem; line-height: 1.4; color: rgba(255,255,255,.85); cursor: pointer; }
.newsletter__consent input { width: 1rem; height: 1rem; margin-top: .15rem; flex: none; accent-color: var(--accent, #3b82f6); }
.newsletter__consent a { color: inherit; text-decoration: underline; }
.catalog-form__consent { display: flex; align-items: flex-start; gap: .5rem; margin-top: .75rem; font-size: .8rem; line-height: 1.4; cursor: pointer; }
.catalog-form__consent input { width: 1rem; height: 1rem; margin-top: .15rem; flex: none; }
.catalog-form__consent a { text-decoration: underline; }
.newsletter__inner > div:first-child { flex: 1 1 300px; max-width: 480px; }
.newsletter__form { flex: 0 1 420px; }

/* Aviso de cookies (analítica con consentimiento) */
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 900; max-width: 760px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; padding: 1rem 1.25rem; background: #0b1f4a; color: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.consent__text { margin: 0; flex: 1 1 320px; font-size: .88rem; line-height: 1.5; }
.consent__text a { color: #bcd2ff; text-decoration: underline; }
.consent__btns { display: flex; gap: .6rem; flex: 0 0 auto; }
.consent__btns .btn { padding: .55rem 1.25rem; font-size: .88rem; }
.consent__btns .btn--outline { color: #fff; border-color: rgba(255,255,255,.55); }
.consent-open { cursor: pointer; }
@media (max-width: 575.98px) { .consent { left: .5rem; right: .5rem; bottom: .5rem; } .consent__btns { width: 100%; } .consent__btns .btn { flex: 1; justify-content: center; } }

/* Móvil: selector de idioma con zona táctil suficiente */
@media (max-width: 767.98px) { .lang-switcher__trigger { min-height: 36px; } }

/* ══════════════════════════════════════════════════════════════
   AUDITORÍA 2026-10-31 · accesibilidad y formulario
══════════════════════════════════════════════════════════════ */
/* Los elementos con [hidden] no se muestran nunca, aunque su clase defina display
   (evita que se vean a la vez «Mensaje enviado» y «Ha ocurrido un error»). */
[hidden] { display: none !important; }

/* Enlace «Saltar al contenido» para navegación con teclado */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 10000; padding: .75rem 1.25rem; border-radius: 999px; background: var(--blue); color: var(--white); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

/* Contraste AA: CTAs principales y textos pequeños */
.btn--accent { background: #2563eb; box-shadow: 0 4px 18px rgba(37,99,235,0.35); }
.btn--accent:hover, .btn--accent:focus-visible { background: var(--blue); box-shadow: 0 6px 24px rgba(37,99,235,0.45); }
.newsletter__form button { background: #2563eb; }
.split-block__eyebrow { color: var(--blue); }
.clients-strip__label, .blog-card__meta, .team-quote__by { color: var(--text-2); }
.newsletter__form button:hover { background: var(--blue); }

/* Botón pausar/reproducir el vídeo de portada (WCAG 2.2.2) */
.hero__video-toggle { position: absolute; left: 1.25rem; bottom: 1.25rem; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); background: rgba(10,18,32,0.55); color: #fff; cursor: pointer; transition: background var(--t); }
.hero__video-toggle:hover, .hero__video-toggle:focus-visible { background: rgba(10,18,32,0.85); }
.hero__video-toggle .i-play, .hero__video-toggle.is-paused .i-pause { display: none; }
.hero__video-toggle.is-paused .i-play { display: inline; }

/* ══════════════════════════════════════════════════════════════
   2026-11-02 · Selector de idioma sin banderas (globo + código)
══════════════════════════════════════════════════════════════ */
.lang-switcher__trigger { gap: 0.4rem; padding: 5px 10px; }
.lang-switcher__globe { flex-shrink: 0; }
.lang-switcher__menu { min-width: 200px; }
.lang-switcher__link { gap: 0.5rem; }
.lang-switcher__abbr { margin-left: auto; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; color: var(--text-2); }
.lang-switcher__link.is-active .lang-switcher__abbr { color: var(--blue); }
.lang-switcher__check { flex-shrink: 0; color: var(--blue); }

/* ══════════════════════════════════════════════════════════════
   2026-11-02 · Portada más compacta
══════════════════════════════════════════════════════════════ */
/* Servicios: cuadrícula 2×2 (foto arriba, texto debajo) en tableta y ordenador */
@media (min-width: 768px) {
  .split-blocks--grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
  .split-blocks--grid .split-block { display: flex; flex-direction: column; gap: 0; align-items: stretch; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
  .split-blocks--grid .split-block__media { order: 0 !important; position: relative; min-height: 0; height: clamp(190px, 20vw, 240px); }
  .split-blocks--grid .split-block__media .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 0; }
  .split-blocks--grid .split-block__content { align-self: stretch; display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.4rem 1.5rem; }
  .split-blocks--grid .split-block__title { font-size: 1.3rem; }
  .split-blocks--grid .split-block__text { font-size: 0.95rem; flex: 1; }
}
/* Sectores: 3 columnas en ordenador */
@media (min-width: 1100px) { .sector-mini-grid { grid-template-columns: repeat(3, 1fr); } }
/* Mapa dentro del bloque de contacto */
.contact__map { margin-top: 1.5rem; }
.contact__map .location-block__map { min-height: 220px; }
.contact__map .location-block__map iframe { min-height: 220px; }
.contact__directions { display: inline-block; margin-top: 0.75rem; font-weight: 700; color: var(--blue); text-decoration: none; }
.contact__directions:hover { text-decoration: underline; }
/* Móvil: sin mapa embebido antes del formulario, solo el enlace «Cómo llegar» */
@media (max-width: 767.98px) { .contact__map { margin-top: 0.5rem; } .contact__map .location-block__map { display: none; } }
