/* Theme follows system preference: dark (default) / light */
    :root {
      color-scheme: dark;
      /* Brand reds — see content/config/theme-colors.json */
      --red: #ac0000;
      --red-hot: #d63535;
      --red-deep: #7a0505;
  --burgundy: #6d0704;
  --bg: #0a0a0a;
  --surface: #121212;
  --elevated: #1a1a1a;
  --text: #f5f5f4;
  --muted: #a8a29e;
  --line: #292524;
  --hero-glow: rgba(172, 0, 0, 0.12);
  --heading: #ffffff;
  --blockquote-text: #e7e5e4;
  /* Barra más opaca: sin backdrop-filter en header (rompe menú móvil fixed). */
  --header-bg: rgba(10, 10, 10, 0.94);
  --body-grad-top: #0c0c0c;
  --link-hover: #ffffff;
  --card-img-bg: #1f1f1f;
  --cert-strip-bg: #0f0f0f;
  --map-bg: #1a1a1a;
  --blockquote-shadow: rgba(0, 0, 0, 0.35);
  --card-hover-shadow: rgba(172, 0, 0, 0.15);
  --hero-noise-opacity: 0.04;
  --hero-orb: rgba(172, 0, 0, 0.18);
  --note-code: #d6d3d1;
  --btn-outline-fg: #ffffff;
  --brand-sub: var(--muted);
}
/* Light: only when the system prefers light and no forced theme (data-theme) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #f5f2ee;
    --surface: #faf8f5;
    --elevated: #ffffff;
    --text: #292524;
    --muted: #57534e;
    --line: #d6d3d1;
    --hero-glow: rgba(180, 20, 30, 0.07);
    --heading: #1c1917;
    --blockquote-text: #44403c;
    --header-bg: rgba(248, 245, 242, 0.94);
    --body-grad-top: #f0ebe4;
    --link-hover: #6d0704;
    --card-img-bg: #e8e4dc;
    --cert-strip-bg: #ffffff;
    --map-bg: #e7e5e4;
    --blockquote-shadow: rgba(28, 25, 23, 0.08);
    --card-hover-shadow: rgba(109, 7, 4, 0.12);
    --hero-noise-opacity: 0.03;
    --hero-orb: rgba(190, 30, 40, 0.12);
    --note-code: #57534e;
    --btn-outline-fg: #8b1a1a;
    --brand-sub: #57534e;
  }
}
/* Force theme regardless of system preference */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f2ee;
  --surface: #faf8f5;
  --elevated: #ffffff;
  --text: #292524;
  --muted: #57534e;
  --line: #d6d3d1;
  --hero-glow: rgba(180, 20, 30, 0.07);
  --heading: #1c1917;
  --blockquote-text: #44403c;
  --header-bg: rgba(248, 245, 242, 0.94);
  --body-grad-top: #f0ebe4;
  --link-hover: #6d0704;
  --card-img-bg: #e8e4dc;
  --cert-strip-bg: #ffffff;
  --map-bg: #e7e5e4;
  --blockquote-shadow: rgba(28, 25, 23, 0.08);
  --card-hover-shadow: rgba(109, 7, 4, 0.12);
  --hero-noise-opacity: 0.03;
  --hero-orb: rgba(190, 30, 40, 0.12);
  --note-code: #57534e;
  --btn-outline-fg: #8b1a1a;
  --brand-sub: #57534e;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #121212;
  --elevated: #1a1a1a;
  --text: #f5f5f4;
  --muted: #a8a29e;
  --line: #292524;
  --hero-glow: rgba(172, 0, 0, 0.12);
  --heading: #ffffff;
  --blockquote-text: #e7e5e4;
  --header-bg: rgba(10, 10, 10, 0.94);
  --body-grad-top: #0c0c0c;
  --link-hover: #ffffff;
  --card-img-bg: #1f1f1f;
  --cert-strip-bg: #0f0f0f;
  --map-bg: #1a1a1a;
  --blockquote-shadow: rgba(0, 0, 0, 0.35);
  --card-hover-shadow: rgba(172, 0, 0, 0.15);
  --hero-noise-opacity: 0.04;
  --hero-orb: rgba(172, 0, 0, 0.18);
  --note-code: #d6d3d1;
  --btn-outline-fg: #ffffff;
  --brand-sub: var(--muted);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, var(--hero-glow), transparent 50%),
    linear-gradient(180deg, var(--body-grad-top) 0%, var(--bg) 35%);
}
.site-main {
  flex: 1 0 auto;
  width: 100%;
  min-height: 0;
}
h1, h2, h3 {
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
h2 { font-weight: 700; }
h3 { font-weight: 700; }
a { color: var(--red-hot); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }

header {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.nav-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--heading);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.theme-toggle:hover {
  border-color: var(--red);
  color: var(--red-hot);
  background: var(--elevated);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--red-hot);
  outline-offset: 2px;
}
.theme-toggle:active {
  transform: scale(0.96);
}
.theme-toggle .theme-toggle__icon {
  display: none;
  width: 1.2rem;
  height: 1.2rem;
}
.theme-toggle[data-effective="dark"] .theme-toggle__icon--sun {
  display: block;
}
.theme-toggle[data-effective="light"] .theme-toggle__icon--moon {
  display: block;
}
    .brand {
      display: inline-flex;
      align-items: center;
      line-height: 0;
      text-decoration: none;
      flex-shrink: 0;
    }
    .brand:focus-visible {
      outline: 2px solid var(--red-hot);
      outline-offset: 4px;
      border-radius: 2px;
    }
    .brand-logo {
      height: 2.65rem;
      width: auto;
      max-width: 11rem;
      object-fit: contain;
    }
    @media (max-width: 480px) {
      .brand-logo {
        height: 2.1rem;
        max-width: 8.5rem;
      }
    }
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
  font-family: Montserrat, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  transition: color 0.25s ease;
}
nav a:hover { color: var(--red-hot); }
nav a.is-active {
  color: var(--red-hot);
}
nav a.is-active::after {
  width: 100%;
}

/* Mobile menu (hamburger) */
.nav-backdrop {
  display: none;
}
.nav-toggle {
  display: none;
}
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.35rem;
  height: 1rem;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  body.nav-open .site-header {
    z-index: 200;
  }
  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    background: rgba(0, 0, 0, 0.48);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s;
    pointer-events: none;
  }
  .nav-backdrop.nav-backdrop--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
    color: var(--heading);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  }
  .nav-toggle:hover {
    border-color: var(--red);
    color: var(--red-hot);
    background: var(--elevated);
  }
  .nav-toggle:focus-visible {
    outline: 2px solid var(--red-hot);
    outline-offset: 2px;
  }
  .site-header .nav-block {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    z-index: 60;
    max-width: none;
    width: 100%;
    margin: 0;
    /* Alto explícito al viewport: evita panel tipo “slider” de una sola fila en iOS/Safari. */
    height: calc(100dvh - 4rem);
    min-height: calc(100svh - 4rem);
    max-height: none;
    padding: 1rem 1.25rem max(2rem, env(safe-area-inset-bottom, 0px));
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s;
    pointer-events: none;
  }
  body.nav-open .site-header .nav-block {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .site-header .nav-block nav ul {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.2rem;
  }
  .site-header .nav-block nav a {
    display: block;
    padding: 0.95rem 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    border-radius: 4px;
  }
  .site-header .nav-block nav a:hover,
  .site-header .nav-block nav a:focus-visible {
    background: var(--elevated);
  }
  .site-header .nav-block nav a::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-backdrop,
  .site-header .nav-block,
  .nav-toggle__bar {
    transition: none !important;
  }
}

.page-hero {
  padding: 2.5rem 0 2.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.page-hero h1 {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  margin: 0 0 0.5rem;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.15;
}
.page-hero .lede {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}
.page-hero__crumb {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-family: Montserrat, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.page-hero__crumb a {
  color: var(--muted);
  text-decoration: none;
}
.page-hero__crumb a:hover {
  color: var(--red);
}

.page-intro {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 1.5rem;
}

.hero {
  padding: 3.5rem 0 4rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: var(--hero-noise-opacity);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-kicker {
  display: inline-block;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 3px solid var(--red);
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  margin: 0 0 0.35rem;
  color: var(--heading);
  text-transform: uppercase;
}
.hero .tagline {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 0 0.35rem;
  font-weight: 500;
}
.hero .punch {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--heading);
  margin: 1rem 0 1.25rem;
  max-width: 28ch;
}
.hero .lede {
  max-width: 62ch;
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

/* Home: full-width hero slider with overlay copy */
.hero--slide {
  padding: 0;
  min-height: clamp(26rem, 78vh, 52rem);
  display: flex;
  align-items: center;
}
.hero--slide::after {
  display: none;
}
.hero--slide .hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero--slide .hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  transition: opacity 0.55s ease;
  z-index: 0;
}
.hero--slide .hero__bg.is-active {
  opacity: 1;
  z-index: 1;
}
.hero--slide .hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    115deg,
    rgba(10, 10, 10, 0.84) 0%,
    rgba(10, 10, 10, 0.48) 48%,
    rgba(10, 10, 10, 0.32) 100%
  );
  pointer-events: none;
}
.hero--slide::before {
  z-index: 2;
}
.hero--slide .hero__inner {
  position: relative;
  z-index: 3;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  max-width: min(56rem, 100%);
}
.hero__copy {
  max-width: 62ch;
  border-left: 4px solid var(--red);
  padding-left: 1rem;
  margin-left: -0.25rem;
}
.hero__copy[data-hero-slide="1"] > .punch--slide {
  display: none;
}
.hero--slide .punch--slide {
  font-size: clamp(1.85rem, 5vw, 2.85rem);
  color: #fff;
  margin: 0 0 1.15rem;
  max-width: 20ch;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero--slide .lede--slide {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  line-height: 1.68;
  max-width: 62ch;
  margin: 0;
  text-wrap: balance;
}

/* Home: two-slide carousel inside hero */
.hero-carousel {
  outline: none;
}
.hero-carousel:focus-visible {
  outline: 2px solid var(--red-hot);
  outline-offset: 4px;
  border-radius: 4px;
}
.hero-carousel__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero-carousel__slide {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  z-index: 0;
  pointer-events: none;
}
.hero-carousel__slide.is-active {
  position: relative;
  top: auto;
  left: auto;
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
}
.hero__copy > .punch--slide {
  margin-bottom: 1rem;
}
.lede--hero-static {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  line-height: 1.68;
  margin: 0 0 1.15rem;
  text-wrap: balance;
}
.hero-carousel__slide .lede--slide {
  margin: 0;
}
.hero-carousel__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero-carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.35rem;
}
/* Large tap target; visible dot is ::after (avoids broken focus rings in WebKit) */
.hero-carousel__dot {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
}
.hero-carousel__dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%) scale(1);
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-carousel__dot:hover::after {
  background: rgba(255, 255, 255, 0.85);
}
.hero-carousel__dot.is-active::after {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.3);
}
.hero-carousel__dot:focus-visible {
  outline: 2px solid var(--red-hot);
  outline-offset: 2px;
}
.hero-carousel__dot:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
.hero-carousel__dot:disabled::after {
  background: rgba(255, 255, 255, 0.35);
}
.hero-carousel--reduced .hero-carousel__viewport {
  min-height: 0;
}
.hero-carousel--reduced .hero-carousel__slide--compact {
  display: none !important;
}
.hero-carousel--reduced .hero-carousel__slide:not(.hero-carousel__slide--compact) {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
  pointer-events: auto !important;
}
.hero-carousel--reduced .hero-carousel__dots {
  display: none !important;
}

/* Divisions: option 5 — full-bleed strip, pill chips on image, caption on bottom fade */
section.division-showcase {
  position: relative;
  padding: 0 0 2.75rem;
  overflow-x: clip;
}
/* Edge-to-edge banner; copy inside slides still uses .wrap */
.division-showcase__strip {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}
.division-showcase__chipbar,
.nosotros-showcase__chipbar {
  position: absolute;
  left: clamp(0.65rem, 2.5vw, 1rem);
  right: clamp(0.65rem, 2.5vw, 1rem);
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  align-content: flex-end;
  max-width: 100%;
  pointer-events: none;
}
/* Division: chips sit above dot row */
.division-showcase__chipbar {
  bottom: calc(var(--division-stack-dots, 2.85rem) + 0.2rem);
}
.division-showcase__chip,
.nosotros-showcase__chip {
  pointer-events: auto;
  margin: 0;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: clamp(0.62rem, 1.35vw, 0.72rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.division-showcase__chip:hover,
.nosotros-showcase__chip:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.55);
}
.division-showcase__chip[aria-selected="true"],
.nosotros-showcase__chip[aria-selected="true"] {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.division-showcase__chip:focus-visible,
.nosotros-showcase__chip:focus-visible {
  outline: 2px solid var(--red-hot);
  outline-offset: 2px;
}
.division-showcase__chip:disabled {
  opacity: 0.45;
  cursor: default;
}
/* Viewport matches RevSlider banner ratio (1695×480) — wide strip, not a tall crop */
.division-showcase__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1695 / 480;
  min-height: 10.5rem;
  overflow: hidden;
  /* Vertical stack from bottom: dots | chips | text — avoids overlap */
  --division-stack-dots: clamp(2.65rem, 7vw, 3.1rem);
  --division-stack-chip-block: clamp(2.75rem, 9vw, 6.25rem);
  --division-stack-text-gap: 0.85rem;
}
.division-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  z-index: 0;
  pointer-events: none;
}
.division-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  pointer-events: auto;
}
.division-slide__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--card-img-bg);
}
.division-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
/* Strong bottom fade (option 5) so white copy reads on busy photos */
.division-slide__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.55) 38%,
    rgba(0, 0, 0, 0.2) 62%,
    transparent 74%
  );
  pointer-events: none;
}
.division-slide__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  /* Clear dots + chip row(s) + breathing room (copy ends above chips) */
  padding: 0 0
    calc(
      var(--division-stack-dots) + var(--division-stack-chip-block) + var(--division-stack-text-gap)
    );
  max-width: min(52rem, 100%);
}
.division-slide__lede {
  margin: 0;
  font-size: clamp(1.02rem, 2.2vw, 1.32rem);
  line-height: 1.58;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.97);
  max-width: min(48ch, 100%);
  text-wrap: balance;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 0 1.25rem rgba(0, 0, 0, 0.45);
}
.division-showcase__dots-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(0.5rem, 1.75vw, 0.95rem);
  z-index: 6;
  pointer-events: none;
}
.division-showcase__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  pointer-events: auto;
}
.division-showcase__dot {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
}
.division-showcase__dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%) scale(1);
  transition: background 0.2s ease, transform 0.2s ease;
}
.division-showcase__dot:hover::after {
  background: rgba(255, 255, 255, 0.85);
}
.division-showcase__dot.is-active::after {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.3);
}
.division-showcase__dot:focus-visible {
  outline: 2px solid var(--red-hot);
  outline-offset: 2px;
}
.division-showcase__dot:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
.division-showcase__dot:disabled::after {
  background: rgba(255, 255, 255, 0.35);
}
@media (max-width: 640px) {
  .division-showcase__viewport {
    min-height: 12rem;
    --division-stack-dots: 2.45rem;
    --division-stack-chip-block: clamp(3.65rem, 18vw, 5.5rem);
    --division-stack-text-gap: 0.65rem;
  }
}

/* About page — same pattern as Divisiones: full-bleed strip, chips on image, copy on fade */
section.nosotros-showcase {
  position: relative;
  padding: 0 0 2.75rem;
  overflow-x: clip;
}
.nosotros-showcase__chipbar {
  bottom: var(--about-ui-bottom, 1.1rem);
}
.nosotros-showcase__strip {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}
.nosotros-showcase__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1695 / 480;
  min-height: 11rem;
  overflow: hidden;
  --about-ui-bottom: clamp(1rem, 3vw, 1.45rem);
  --about-chip-band: clamp(2.35rem, 7vw, 5.5rem);
  --about-text-gap: 0.85rem;
}
.nosotros-showcase__panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 0;
  pointer-events: none;
}
.nosotros-showcase__panel.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  pointer-events: auto;
}
.nosotros-showcase__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--card-img-bg);
}
.nosotros-showcase__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
/* Visión: cover + slight zoom so the photo fills the wide strip (less letterboxed “square”) */
.nosotros-showcase__panel--vision-zoom .nosotros-showcase__media {
  overflow: hidden;
}
.nosotros-showcase__panel--vision-zoom .nosotros-showcase__bg {
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.08);
  transform-origin: center center;
}
.nosotros-showcase__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.55) 38%,
    rgba(0, 0, 0, 0.2) 62%,
    transparent 74%
  );
  pointer-events: none;
}
.nosotros-showcase__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 0 calc(var(--about-ui-bottom) + var(--about-chip-band) + var(--about-text-gap));
  max-width: min(52rem, 100%);
}
.nosotros-showcase__inner p {
  margin: 0;
  font-size: clamp(1rem, 2.1vw, 1.22rem);
  line-height: 1.62;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.97);
  max-width: min(52ch, 100%);
  text-wrap: balance;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 0 1.25rem rgba(0, 0, 0, 0.45);
}
@media (max-width: 640px) {
  .nosotros-showcase__viewport {
    min-height: 12rem;
    --about-ui-bottom: clamp(0.9rem, 2.8vw, 1.25rem);
    --about-chip-band: clamp(2.15rem, 16vw, 4.75rem);
    --about-text-gap: 0.65rem;
  }
}

.division-showcase--reduced .division-showcase__viewport {
  aspect-ratio: auto;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.division-showcase--reduced .division-showcase__chipbar {
  position: relative;
  inset: auto;
  bottom: auto;
  left: auto;
  right: auto;
  order: -1;
  margin: 0;
  padding: 0.65rem 0.75rem 0;
  pointer-events: none;
}
.division-showcase--reduced .division-showcase__chip {
  background: var(--elevated);
  color: var(--muted);
  border: 1px solid var(--line);
}
.division-showcase--reduced .division-showcase__chip:hover {
  background: var(--surface);
  color: var(--heading);
  border-color: var(--line);
}
.division-showcase--reduced .division-showcase__chip[aria-selected="true"] {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.division-showcase--reduced .division-slide {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
  pointer-events: auto !important;
  aspect-ratio: 1695 / 480;
  min-height: 9rem;
  border-bottom: 1px solid var(--line);
}
.division-showcase--reduced .division-slide:last-child {
  border-bottom: none;
}
.division-showcase--reduced .division-slide__inner {
  padding-bottom: clamp(2rem, 5vw, 3rem);
}
.division-showcase--reduced .division-showcase__dots-wrap {
  display: none !important;
}

section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}
section:nth-of-type(even) { background: var(--surface); }
section:last-of-type { border-bottom: none; }
h2 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  margin: 0 0 1.5rem;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
h3 { font-size: 1.05rem; margin: 0 0 0.5rem; color: var(--heading); font-family: Montserrat, sans-serif; }

.blockquote {
  margin: 0;
  padding: 1.75rem 1.5rem;
  background: var(--elevated);
  border-left: 4px solid var(--red);
  box-shadow: 0 8px 40px var(--blockquote-shadow);
}
.blockquote p { margin: 0; color: var(--blockquote-text); }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover {
  box-shadow: 0 12px 48px var(--card-hover-shadow);
  transform: translateY(-3px);
  border-color: rgba(172, 0, 0, 0.45);
}
.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--card-img-bg);
}
.card .body { padding: 1rem 1.1rem 1.25rem; flex: 1; }
.card p { color: var(--muted); margin: 0; font-size: 0.92rem; }
.card h3 { font-family: Montserrat, sans-serif; font-size: 0.95rem; color: var(--heading); text-transform: uppercase; letter-spacing: 0.04em; }

/* Certifications page — hero strip (RevSlider «preparados» assets from WP, above badge row) */
section.cert-showcase {
  position: relative;
  padding: 0 0 2.25rem;
  overflow-x: clip;
}
.cert-showcase__strip {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}
.cert-showcase__viewport {
  position: relative;
  width: 100%;
  /* Taller than 3:1 — prominent hero strip (still capped on very tall viewports) */
  aspect-ratio: 8 / 3;
  min-height: 12rem;
  max-height: min(72vh, 40rem);
  overflow: hidden;
  background: var(--card-img-bg);
}
.cert-showcase__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  z-index: 0;
  pointer-events: none;
}
.cert-showcase__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  pointer-events: auto;
}
.cert-showcase__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.cert-showcase__dots-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(0.5rem, 1.75vw, 0.95rem);
  z-index: 4;
  pointer-events: none;
}
.cert-showcase__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  pointer-events: auto;
}
.cert-showcase__dot {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
}
.cert-showcase__dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%) scale(1);
  transition: background 0.2s ease, transform 0.2s ease;
}
.cert-showcase__dot:hover::after {
  background: rgba(255, 255, 255, 0.9);
}
.cert-showcase__dot.is-active::after {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.3);
}
.cert-showcase__dot:focus-visible {
  outline: 2px solid var(--red-hot);
  outline-offset: 2px;
}
.cert-showcase__dot:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
.cert-showcase__dot:disabled::after {
  background: rgba(255, 255, 255, 0.35);
}
.cert-showcase--reduced .cert-showcase__viewport {
  aspect-ratio: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0 0 0.5rem;
  background: transparent;
}
.cert-showcase--reduced .cert-showcase__slide {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
  pointer-events: auto !important;
  aspect-ratio: 8 / 3;
  min-height: 9rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.cert-showcase--reduced .cert-showcase__dots-wrap {
  display: none !important;
}
@media (max-width: 640px) {
  .cert-showcase__viewport {
    min-height: 10.5rem;
    max-height: min(58vh, 26rem);
  }
}

/* Certifications: proportional badges, no oversized cells */
.certs-layout {
  display: grid;
  gap: 1.75rem 2.75rem;
  align-items: start;
}
@media (min-width: 900px) {
  .certs-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  }
}
.cert-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (max-width: 640px) {
  .cert-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.cert-strip a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  max-height: 5.25rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--elevated);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
html[data-theme="dark"] .cert-strip a {
  box-shadow: none;
}
.cert-strip a:hover {
  border-color: var(--red);
  box-shadow: 0 6px 20px var(--card-hover-shadow);
}
.cert-strip img {
  max-width: 100%;
  max-height: 2.75rem;
  width: auto;
  height: auto;
  object-fit: contain;
}
.two-col {
  display: grid;
  gap: 2rem;
}
.two-col > * { min-width: 0; }
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; align-items: start; }
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.value {
  padding: 1.25rem;
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: 2px;
  border-top: 3px solid var(--red);
}
.value strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--heading);
  font-family: Montserrat, sans-serif;
  margin-bottom: 0.35rem;
}
.value p { margin: 0; font-size: 0.92rem; color: var(--muted); }

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

/* Products — portfolio card grid */
.product-portfolio__head {
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--heading);
  margin: 0 0 0.5rem;
}
.product-portfolio__intro {
  margin: 0 0 1.75rem;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}
.product-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
a.product-portfolio-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
a.product-portfolio-card:hover {
  border-color: var(--red);
  box-shadow: 0 10px 32px var(--card-hover-shadow);
  transform: translateY(-3px);
}
.product-portfolio-card__media {
  aspect-ratio: 4 / 3;
  background: var(--card-img-bg);
  overflow: hidden;
}
.product-portfolio-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
a.product-portfolio-card:hover .product-portfolio-card__media img {
  transform: scale(1.05);
}
.product-portfolio-card__body {
  padding: 1rem 1.1rem 1.2rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.product-portfolio-card__title {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--heading);
}
.product-back {
  margin: 0 0 1.25rem;
}
.product-back__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}
.product-back__link:hover {
  text-decoration: underline;
}
.product-wp-body {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text);
  max-width: 52rem;
}
.product-wp-body p {
  color: var(--text);
  margin: 0 0 0.5rem;
}
.product-wp-body ul {
  margin: 0 0 1rem 1.2rem;
  padding: 0;
  color: var(--muted);
}
.product-wp-body li {
  margin-bottom: 0.3rem;
}
.product-wp-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 1rem 0;
}
.product-wp-body strong {
  color: var(--heading);
  font-weight: 700;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  background: var(--red);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.82rem;
  font-family: Montserrat, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 2px;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--red-hot); color: #fff !important; }
.btn-outline {
  background: transparent;
  color: var(--btn-outline-fg) !important;
  border: 2px solid var(--red);
}
.btn-outline:hover { background: var(--red); color: #fff !important; }

.contact-block {
  padding: 1.35rem;
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.contact-block p { color: var(--muted); }
.contact-block h3 { margin-top: 0; color: var(--heading); }
.map {
  width: 100%;
  min-width: 0;
  height: 280px;
  min-height: 220px;
  border-radius: 2px;
  margin-top: 0.75rem;
  border: 1px solid var(--line);
  background: var(--map-bg);
  z-index: 0;
}
.map-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
}
footer {
  flex-shrink: 0;
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
footer code { background: var(--elevated); padding: 0.1em 0.35em; border-radius: 2px; font-size: 0.85em; }
footer .footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.25rem;
}
footer .footer-logo-link {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}
footer .footer-logo-link:focus-visible {
  outline: 2px solid var(--red-hot);
  outline-offset: 4px;
  border-radius: 2px;
}
footer .footer-logo {
  height: 3.25rem;
  width: auto;
  max-width: 14rem;
  object-fit: contain;
}
@media (max-width: 480px) {
  footer .footer-logo {
    height: 2.6rem;
    max-width: 11rem;
  }
}
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.1rem;
  margin-top: 1rem;
}
.social-facebook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--elevated);
  color: #1877f2;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.social-facebook:hover {
  color: #fff;
  background: #1877f2;
  border-color: #1877f2;
}
.social-facebook:focus-visible {
  outline: 2px solid var(--red-hot);
  outline-offset: 2px;
}
.social-facebook:active {
  transform: scale(0.96);
}
.social-facebook__icon {
  display: block;
  width: 1.28rem;
  height: 1.28rem;
}
.social-facebook--inline {
  margin-left: 0.4rem;
  vertical-align: middle;
}
.footer-brand {
  color: var(--heading);
}

/* Floating WhatsApp CTA */
.whatsapp-float {
  position: fixed;
  bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  right: calc(1rem + env(safe-area-inset-right, 0px));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem 0.6rem 0.7rem;
  background: #25d366;
  color: #fff !important;
  border-radius: 999px;
  box-shadow: 0 4px 22px rgba(37, 211, 102, 0.42);
  text-decoration: none !important;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.04);
  color: #fff !important;
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}
.whatsapp-float:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.whatsapp-float__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
@media (max-width: 380px) {
  .whatsapp-float__label-long {
    display: none;
  }
  .whatsapp-float {
    padding: 0.65rem;
    border-radius: 50%;
  }
}
.contact-facebook {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin: 0 0 1.35rem;
  padding: 0.85rem 1rem;
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: 2px;
  border-left: 3px solid #1877f2;
  font-size: 0.92rem;
}
.contact-facebook strong { color: var(--heading); }
.contact-facebook .social-facebook--inline {
  margin-left: 0;
}

/* Contact form */
.contact-form-card {
  margin: 2rem 0 1.5rem;
  padding: 1.35rem 1.25rem 1.5rem;
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: 4px;
  border-top: 3px solid var(--red);
}
.contact-form-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--heading);
  font-family: Montserrat, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-form .form-status {
  min-height: 1.5rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.contact-form .form-status.is-ok {
  color: #22c55e;
}
.contact-form .form-status.is-err {
  color: var(--red-hot);
}
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .contact-form .form-status.is-ok {
    color: #15803d;
  }
}
html[data-theme="light"] .contact-form .form-status.is-ok {
  color: #15803d;
}
.contact-form-row {
  margin-bottom: 1rem;
}
.contact-form-row:last-of-type {
  margin-bottom: 0;
}
.contact-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-family: Montserrat, sans-serif;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form textarea {
  min-height: 8rem;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(172, 0, 0, 0.2);
}
.contact-form .form-actions {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.contact-form button[type="submit"] {
  padding: 0.7rem 1.35rem;
  background: var(--red);
  color: #fff !important;
  border: none;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.82rem;
  font-family: Montserrat, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.contact-form button[type="submit"]:hover:not(:disabled) {
  background: var(--red-hot);
}
.contact-form button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.contact-form .form-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}
/* Honeypot: hidden from users, not from bots */
.contact-form .honeypot-wrap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* About page — tabs */
.nosotros-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .nosotros-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
}
.nosotros-media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.nosotros-media img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--line);
  display: block;
}
.nosotros-tabs {
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.tablist [role="tab"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.85rem 1rem;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.tablist [role="tab"]:hover {
  color: var(--heading);
  background: rgba(172, 0, 0, 0.06);
}
.tablist [role="tab"][aria-selected="true"] {
  color: var(--heading);
  border-bottom-color: var(--red);
  background: var(--elevated);
}
.tablist [role="tab"]:focus-visible {
  outline: 2px solid var(--red-hot);
  outline-offset: -2px;
}
.nosotros-tabs [role="tabpanel"] {
  padding: 1.35rem 1.25rem 1.5rem;
  min-height: 12rem;
}
.nosotros-tabs [role="tabpanel"] p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}
.note code { color: var(--note-code); }
section p { color: var(--muted); }

/* —— Motion: hero load —— */
.hero::after {
  content: "";
  position: absolute;
  width: min(70vw, 560px);
  height: 320px;
  top: -100px;
  right: -8%;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, var(--hero-orb), transparent 72%);
  pointer-events: none;
  z-index: 0;
  animation: heroGlowDrift 14s ease-in-out infinite;
}
@keyframes heroGlowDrift {
  0%, 100% { opacity: 0.85; transform: translate(0, 0) rotate(0deg); }
  33% { opacity: 1; transform: translate(-12px, 8px) rotate(2deg); }
  66% { opacity: 0.9; transform: translate(8px, -6px) rotate(-1deg); }
}
@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-motion .hero-kicker {
  opacity: 0;
  animation: heroIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}
.hero-motion h1 {
  opacity: 0;
  animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.14s forwards;
}
.hero-motion .tagline {
  opacity: 0;
  animation: heroIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.26s forwards;
}
.hero-motion .punch {
  opacity: 0;
  animation: heroIn 0.88s cubic-bezier(0.22, 1, 0.36, 1) 0.38s forwards;
}
.hero-motion .lede {
  opacity: 0;
  animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

/* —— Motion: scroll reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.grid-4 .card.reveal:nth-child(1) { transition-delay: 0s; }
.grid-4 .card.reveal:nth-child(2) { transition-delay: 0.07s; }
.grid-4 .card.reveal:nth-child(3) { transition-delay: 0.14s; }
.grid-4 .card.reveal:nth-child(4) { transition-delay: 0.21s; }
.values .value.reveal:nth-child(1) { transition-delay: 0s; }
.values .value.reveal:nth-child(2) { transition-delay: 0.04s; }
.values .value.reveal:nth-child(3) { transition-delay: 0.08s; }
.values .value.reveal:nth-child(4) { transition-delay: 0.12s; }
.values .value.reveal:nth-child(5) { transition-delay: 0.16s; }
.values .value.reveal:nth-child(6) { transition-delay: 0.2s; }
.values .value.reveal:nth-child(7) { transition-delay: 0.24s; }
.values .value.reveal:nth-child(8) { transition-delay: 0.28s; }
.two-col .contact-block.reveal:first-of-type { transition-delay: 0.05s; }
.two-col .contact-block.reveal:last-of-type { transition-delay: 0.12s; }

/* Sin transform en el header: si no, position:fixed del menú móvil queda recortado al alto del header. */
header.site-header {
  animation: headerSlide 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes headerSlide {
  from { opacity: 0; }
  to { opacity: 1; }
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--red-hot);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
nav a:hover::after { width: 100%; }

.card img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover img { transform: scale(1.07); }
.cert-strip a img {
  transition: transform 0.45s ease, opacity 0.35s ease;
}
.cert-strip a:hover img { transform: scale(1.04); opacity: 0.95; }
.btn, .btn-outline {
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover, .btn-outline:hover { transform: translateY(-2px); }
footer .wrap {
  opacity: 0;
  animation: heroIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero--slide .hero__bg {
    transition: none !important;
  }
  .hero-carousel__slide {
    transition: none !important;
  }
  .division-slide,
  .cert-showcase__slide {
    transition: none !important;
  }
  .hero::after { animation: none !important; opacity: 0.6; }
  .hero-motion .hero-kicker,
  .hero-motion h1,
  .hero-motion .tagline,
  .hero-motion .punch,
  .hero-motion .lede {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  header.site-header { animation: none !important; opacity: 1 !important; transform: none !important; }
  nav a::after { display: none; }
  .card img, .cert-strip a img { transition: none !important; }
  .card:hover img { transform: none !important; }
  .btn:hover, .btn-outline:hover { transform: none !important; }
  footer .wrap { animation: none !important; opacity: 1 !important; }
  .whatsapp-float:hover { transform: none !important; }
  .social-facebook:hover { transform: none !important; }
  .social-facebook:active { transform: none !important; }
}
