/* =========================================
   QUALITY SOLUTION CONSULTING
   main.css — Sistema de estilos completo
   ========================================= */

/* =========================================
   1. VARIABLES Y TOKENS DE DISEÑO
   ========================================= */
:root {
  /* Colores corporativos */
  --red:           #CC2229;
  --red-dark:      #A81B21;
  --red-light:     #E8353D;
  --black:         #121212;
  --dark:          #1A1A1A;
  --text:          #2D2D2D;
  --text-secondary:#555555;
  --border:        #E0E0E0;
  --light:         #F4F4F4;
  --lighter:       #F9F9F9;
  --white:         #FFFFFF;

  /* Tipografía */
  --font:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Escala tipográfica */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Espaciado de secciones */
  --section-py: clamp(40px, 5vw, 72px);
  --section-py-sm: clamp(28px, 3.5vw, 48px);

  /* Contenedor */
  --max-w:    1200px;
  --max-w-sm: 880px;

  /* Bordes redondeados */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;

  /* Sombras */
  --shadow:    0 2px 12px rgba(0,0,0,.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.16);

  /* Transiciones */
  --tr: .25s ease;
  --tr-slow: .4s ease;

  /* Header */
  --topbar-h: 36px;
  --header-h: 108px;
}

/* =========================================
   2. RESET Y BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
h1, h2, h3, h4, h5, h6 { line-height: 1.15; font-weight: 700; color: var(--dark); }

/* =========================================
   3. TIPOGRAFÍA
   ========================================= */
h1 { font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; line-height: 1.12; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 600; }
p  { max-width: 68ch; }

.text-red   { color: var(--red); }
.text-white { color: var(--white); }
.text-dark  { color: var(--dark); }
.text-secondary { color: var(--text-secondary); }
.font-800 { font-weight: 800; }
.font-600 { font-weight: 600; }
.uppercase { text-transform: uppercase; letter-spacing: .08em; }

/* Eyebrow (etiqueta sobre H1/H2) */
.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--red);
  margin-bottom: 1rem;
}

/* =========================================
   4. LAYOUT Y UTILIDADES
   ========================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.container-sm {
  width: 100%;
  max-width: var(--max-w-sm);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.section { padding-block: var(--section-py); }
.section-sm { padding-block: var(--section-py-sm); }

.bg-white  { background: var(--white); }
.bg-light  { background: var(--light); }
.bg-dark   { background: var(--dark); }
.bg-black  { background: var(--black); }
.bg-red    { background: var(--red); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }

.text-center { text-align: center; }
.text-left   { text-align: left; }

.mx-auto { margin-inline: auto; }

/* Divisor rojo decorativo */
.red-bar {
  display: block;
  width: 48px;
  height: 4px;
  background: var(--red);
  margin-bottom: 1.5rem;
}
.red-bar-center { margin-inline: auto; margin-bottom: 1.5rem; }

/* Overlay oscuro para fotos */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.68);
}

/* =========================================
   5. BOTONES
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: background var(--tr), color var(--tr), border-color var(--tr), transform var(--tr);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn-outline:hover { background: var(--red); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--dark); }

.btn-dark {
  background: var(--dark);
  color: var(--white);
  border: 2px solid var(--dark);
}
.btn-dark:hover { background: var(--black); border-color: var(--black); }

.btn-sm  { padding: .5rem 1.25rem; font-size: var(--text-xs); }
.btn-lg  { padding: 1rem 2.25rem; font-size: var(--text-base); }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================================
   5b. TOPBAR
   ========================================= */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  height: var(--topbar-h);
  background: var(--red);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: var(--topbar-h);
}
.topbar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}
.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.topbar__sep {
  opacity: 0.5;
}
.topbar a {
  color: var(--white);
  text-decoration: none;
}
.topbar a:hover {
  text-decoration: underline;
}
@media (max-width: 767px) {
  .topbar { display: none; }
  :root { --topbar-h: 0px; --header-h: 72px; }
}

/* =========================================
   6. HEADER Y NAVEGACIÓN
   ========================================= */
.site-header {
  position: fixed;
  top: var(--topbar-h); left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--tr-slow), box-shadow var(--tr-slow);
  /* Fondo oscuro por defecto — el hero también es oscuro, así que
     visualmente no cambia nada, pero el menú SIEMPRE es legible */
  background: var(--dark);
}
.site-header.scrolled {
  background: var(--dark);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.site-header.header-light {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-header.header-light.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

/* Logo */
.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header-logo img { height: 56px; width: auto; display: block; }
.logo-color { display: none; }
.logo-white { display: block; }

.site-header.header-light .logo-color { display: block; }
.site-header.header-light .logo-white { display: none; }

/* Nav */
.header-nav { flex: 1; }
.nav-list {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: .5rem .75rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,.9);
  border-radius: var(--radius-sm);
  transition: color var(--tr), background var(--tr);
  white-space: nowrap;
}
.nav-link:hover, .nav-item:hover .nav-link {
  color: var(--white);
  background: rgba(255,255,255,.08);
}
.site-header.header-light .nav-link { color: var(--text); }
.site-header.header-light .nav-link:hover { color: var(--red); background: rgba(204,34,41,.05); }

/* button used as nav-link (Soluciones HCM — no-navigate dropdown trigger) */
button.nav-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

/* Chevron indicator on dropdown parents */
.nav-chevron {
  font-size: 0.65em;
  margin-left: 3px;
  opacity: 0.75;
  vertical-align: middle;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--tr), transform var(--tr), visibility var(--tr);
  z-index: 1000;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-item:hover > button.nav-link ~ .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 400;
  color: #2D2D2D;
  transition: color var(--tr), background var(--tr);
}
.dropdown li a:hover { color: #CC2229; background: #F4F4F4; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--tr), opacity var(--tr);
}
.site-header.header-light .nav-toggle span { background: var(--dark); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   7. FOOTER
   ========================================= */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,.75);
  padding-top: 64px;
  padding-bottom: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .footer-logo { margin-bottom: 1.25rem; }
.footer-brand .footer-logo img { height: 36px; width: auto; }
.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 300px;
  color: rgba(255,255,255,.6);
}
.footer-cta-mini {
  margin-top: 1.5rem;
}
.footer-col h4 {
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.55);
  transition: color var(--tr);
}
.footer-col ul a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  margin-bottom: .75rem;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a:hover { color: var(--red); }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: var(--text-xs);
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.35); transition: color var(--tr); }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }
.footer-legal { display: flex; gap: 1.5rem; }

/* =========================================
   8. HERO SECTIONS
   ========================================= */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
  padding-bottom: 0;
  /* Fallback cuando no hay foto: gradiente oscuro corporativo */
  background: linear-gradient(135deg, #121212 0%, #1a1a1a 50%, #2d1a1a 100%);
  /* TODO: Sustituir por foto corporativa con overlay:
     background: linear-gradient(rgba(18,18,18,0.82), rgba(18,18,18,0.88)), url('../img/hero-home.jpg') center/cover; */
}
.hero-md {
  min-height: 70vh;
}
.hero-sm {
  min-height: 50vh;
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay con gradiente para mejor legibilidad — oscuridad 70-85% */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(18,18,18,.88) 0%,
    rgba(18,18,18,.78) 55%,
    rgba(18,18,18,.70) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: clamp(24px, 4vw, 48px);
}

.hero-text { max-width: 620px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 1.5rem;
  padding: 6px 16px;
  background: rgba(204,34,41,0.15);
  border: 1px solid rgba(204,34,41,0.4);
  border-radius: 4px;
}
.hero-title {
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Barra roja vertical lateral (del branding de la presentación) */
.hero-red-bar {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--red);
  z-index: 3;
}

/* Hero con dos columnas (texto + form/imagen) */
.hero-2col {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}

/* =========================================
   9. SECCIÓN DE CONFIANZA (TRUST BAR)
   ========================================= */
.trust-bar {
  background: var(--white);
  padding-block: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}
.trust-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding-inline: 12px;
}
.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.trust-number {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.trust-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-secondary);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust-badge img { height: 32px; width: auto; }

/* =========================================
   10. SECCIÓN DE PAINS / PROBLEMAS
   ========================================= */
.pains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.pain-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow var(--tr), transform var(--tr);
}
.pain-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.pain-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(204,34,41,.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}
.pain-text {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

/* =========================================
   11. CARDS DE FUNCIONALIDADES / MÓDULOS
   ========================================= */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.module-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: background var(--tr), border-color var(--tr);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.module-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(204,34,41,.5);
}
.module-icon {
  width: 44px;
  height: 44px;
  background: var(--red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.module-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--white);
}
.module-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  max-width: none;
}

/* Module card sobre fondo blanco */
.module-card-light {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--red);
}
.module-card-light .module-title { color: var(--dark); }
.module-card-light .module-desc  { color: var(--text-secondary); }
.module-card-light:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* =========================================
   12. CARDS DIFERENCIALES
   ========================================= */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.diff-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid #E0E0E0;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow var(--tr), transform var(--tr);
}
.diff-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.diff-card-icon {
  width: 52px;
  height: 52px;
  background: var(--red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.diff-card h4 { margin-bottom: .5rem; }
.diff-card p { font-size: var(--text-sm); color: var(--text-secondary); max-width: none; }

/* =========================================
   12b. FEATURES-DIFF — sección home diferenciales XRP
   ========================================= */
.features-diff {
  padding: var(--section-py) 0;
  background: var(--white);
}
.features-diff .section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--red);
  margin-bottom: .5rem;
}
.features-diff h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .75rem;
}
.features-diff .section-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 2.5rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.features-diff .feature-card {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow var(--tr), transform var(--tr);
}
.features-diff .feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.features-diff .feature-icon {
  width: 52px;
  height: 52px;
  background: var(--red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1.25rem;
}
.features-diff .feature-icon svg { width: 24px; height: 24px; }
.features-diff .feature-card h4 { margin-bottom: .5rem; font-size: 1rem; font-weight: 700; }
.features-diff .feature-card p { font-size: var(--text-sm); color: var(--text-secondary); max-width: none; line-height: 1.6; }
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* =========================================
   13. CARDS DE SECTORES
   ========================================= */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.sector-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  transition: transform var(--tr);
}
.sector-card:hover { transform: translateY(-4px); }
.sector-card:hover .sector-card-overlay { background: rgba(18,18,18,.72); }
.sector-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.sector-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,18,18,.85) 0%, rgba(18,18,18,.3) 100%);
  transition: background var(--tr);
}
.sector-card-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  width: 100%;
}
.sector-card h3 {
  color: var(--white);
  font-size: var(--text-xl);
  margin-bottom: .25rem;
}
.sector-card p {
  color: rgba(255,255,255,.75);
  font-size: var(--text-sm);
}
.sector-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-top: .75rem;
  transition: gap var(--tr);
}
.sector-card:hover .sector-card-arrow { gap: 10px; }

/* Sector card sin foto (alternativo) */
.sector-card-plain {
  background: var(--white);
  border: 1px solid #E0E0E0;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  padding: 1.75rem;
  display: block;
  transition: box-shadow var(--tr), transform var(--tr), border-color var(--tr);
}
.sector-card-plain:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--red);
}
.sector-card-plain .sector-icon {
  width: 48px; height: 48px;
  background: var(--red);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  margin-bottom: 1rem;
}
.sector-card-plain h3 { margin-bottom: .5rem; font-size: var(--text-xl); }
.sector-card-plain p  { font-size: var(--text-sm); color: var(--text-secondary); max-width: none; }

/* =========================================
   14. CARDS DE SERVICIOS
   ========================================= */
.service-list { display: flex; flex-direction: column; gap: 20px; }
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid #E0E0E0;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow var(--tr);
}
.service-item:hover { box-shadow: var(--shadow-md); }
.service-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: var(--red);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.service-item h4 { margin-bottom: .4rem; }
.service-item p  { font-size: var(--text-sm); color: var(--text-secondary); max-width: none; }

/* Grid 2x2 de servicios — página /servicios/ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  padding: 24px;
  background: var(--white);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow var(--tr), transform var(--tr);
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.service-card-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: rgba(204,34,41,.1);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
}
.service-card-icon svg { width: 20px; height: 20px; }
.service-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}
.service-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* =========================================
   14a. CLIENTS GRID — logos/nombres de clientes
   ========================================= */
.clients-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.client-item {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 40px;
  min-width: 180px;
  text-align: center;
  transition: box-shadow var(--tr);
}
.client-item:hover {
  box-shadow: var(--shadow-md);
}
.client-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.02em;
}
@media (max-width: 600px) {
  .clients-grid { gap: 16px; }
  .client-item { padding: 16px 24px; min-width: 140px; }
}

/* =========================================
   14b. FEATURE GRID — layout reutilizable HCM / módulos
   ========================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.feature-card {
  padding: 20px;
  background: var(--white);
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow var(--tr);
  overflow: visible;
}
.feature-card:hover { box-shadow: var(--shadow-md); }
.feature-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.feature-card__header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
  line-height: 1.3;
  min-width: 0;
}
.feature-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: rgba(204,34,41,.1);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
}
.feature-icon svg { width: 18px; height: 18px; flex-shrink: 0; }
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}
/* modules-grid: alias para secciones dark con module-card */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .feature-grid,
  .feature-grid--2,
  .modules-grid { grid-template-columns: 1fr; }
}

/* =========================================
   15. BANDA CTA ROJA
   ========================================= */
.cta-band {
  background: var(--red);
  padding-block: clamp(40px, 5vw, 60px);
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p  { color: rgba(255,255,255,.85); margin-bottom: 2rem; max-width: 560px; margin-inline: auto; }

/* CTA con fondo oscuro + foto */
.cta-dark-section {
  position: relative;
  padding-block: var(--section-py);
  overflow: hidden;
}
.cta-dark-section .hero-bg { opacity: .25; }
.cta-dark-section .container { position: relative; z-index: 2; }

/* =========================================
   16. FAQ ACCORDION
   ========================================= */
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 820px; margin-inline: auto; }
.faq-item {
  background: #fff;
  border: none;
  border-radius: 8px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0;
  background: #fff;
  transition: background var(--tr);
}
.faq-question:hover { background: rgba(204,34,41,.03); }
.faq-question.active { color: var(--red); }

/* FAQ toggle icons — .faq-icon (+ cross) and .faq-chevron (chevron) */
.faq-icon,
.faq-chevron {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--red);
  transition: transform var(--tr);
}
.faq-question.active .faq-icon { transform: rotate(45deg); }
.faq-question.active .faq-chevron { transform: rotate(180deg); }

/* Prevent FAQ icons from inheriting heading font-size */
.faq-question svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.faq-answer {
  display: none;
  padding: 12px 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: none;
}
.faq-answer.open { display: block; }
.faq-item.open .faq-answer { display: block; }

/* details/summary reset (if used) */
summary::marker, summary::-webkit-details-marker { display: none; }

/* =========================================
   17. FORMULARIOS
   ========================================= */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-lg);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-full  { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}
.form-label .required { color: var(--red); margin-left: 2px; }
.form-control {
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--text);
  background: var(--white);
  transition: border-color var(--tr), box-shadow var(--tr);
  width: 100%;
}
.form-control:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,34,41,.1);
}
.form-control.error { border-color: #dc2626; }
.form-control::placeholder { color: #b0b0b0; }
select.form-control { cursor: pointer; }
textarea.form-control { min-height: 110px; resize: vertical; }

.form-error {
  font-size: var(--text-xs);
  color: #dc2626;
  display: none;
}
.form-error.visible { display: block; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.6;
}
.form-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 2px;
  accent-color: var(--red);
  cursor: pointer;
}
.form-check a { color: var(--red); text-decoration: underline; }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: #16a34a;
}
.form-success.visible { display: block; }

/* =========================================
   18. SECCIÓN CON IMAGEN (2 COLUMNAS)
   ========================================= */
.section-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.section-2col > * { min-width: 0; }
.section-2col.reverse { direction: rtl; }
.section-2col.reverse > * { direction: ltr; min-width: 0; }
.section-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.section-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.section-img-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--red);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.section-img-overlay p { font-size: 1rem; font-weight: 700; line-height: 1.5; max-width: none; }

/* =========================================
   19. SECCIÓN CON ESTADÍSTICAS
   ========================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  display: block;
  margin-bottom: .25rem;
}
.stat-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* =========================================
   20. BREADCRUMB
   ========================================= */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: rgba(255,255,255,.6);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,.6); transition: color var(--tr); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { color: rgba(255,255,255,.3); }

.breadcrumb-dark {
  color: var(--text-secondary);
}
.breadcrumb-dark a { color: var(--text-secondary); }
.breadcrumb-dark .breadcrumb-sep { color: var(--border); }
.breadcrumb-dark a:hover { color: var(--red); }

/* =========================================
   21. VALORES / GRID DE ICONOS
   ========================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.value-item {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.value-item:nth-child(1),
.value-item:nth-child(4) { background: var(--red); color: var(--white); }
.value-item:nth-child(2),
.value-item:nth-child(3) { background: var(--white); }
.value-item:nth-child(1) h4,
.value-item:nth-child(4) h4 { color: var(--white); }
.value-icon { font-size: 2rem; }
.value-item h4 { font-size: var(--text-xl); }
.value-item p  { font-size: var(--text-sm); opacity: .85; max-width: none; }

/* =========================================
   22. LISTADO CHECKLIST
   ========================================= */
.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--text);
}
.checklist-item svg { flex-shrink: 0; color: var(--red); margin-top: 2px; }

/* =========================================
   23. BADGE / ETIQUETAS
   ========================================= */
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.badge-red   { background: rgba(204,34,41,.1); color: var(--red); }
.badge-dark  { background: rgba(18,18,18,.08); color: var(--dark); }
.badge-white { background: rgba(255,255,255,.15); color: var(--white); }

/* =========================================
   24. SECCIÓN DE INTRO / PROPUESTA DE VALOR
   ========================================= */
.section-header { margin-bottom: clamp(36px, 5vw, 56px); }
.section-header.centered { text-align: center; }
.section-header.centered p { margin-inline: auto; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p  { font-size: var(--text-lg); color: var(--text-secondary); max-width: 640px; }

/* =========================================
   24b. PLACEHOLDER DE IMAGEN
   ========================================= */
.img-placeholder {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1215 60%, #CC2229 100%);
  min-height: 300px;
  border-radius: var(--radius);
  width: 100%;
  display: block;
}

/* =========================================
   25. CARD DE BLOG
   ========================================= */
.blog-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-top: 1rem;
}

/* ---- Blog grid ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 992px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---- Blog card ---- */
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow var(--tr), transform var(--tr);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* Image area — BEM (__img-link) and legacy (.blog-card-img) */
.blog-card__img-link { display: block; }
.blog-card__img-link img,
.blog-card__img,
.blog-card-img {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
  background: var(--light);
  overflow: hidden;
  transition: transform .4s ease;
}
.blog-card__img-link .img-placeholder { aspect-ratio: 16/9; border-radius: 8px 8px 0 0; }
.blog-card:hover .blog-card__img-link img { transform: scale(1.03); }

/* Body */
.blog-card__body,
.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Meta: category + date */
.blog-card__meta,
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

/* Title */
.blog-card h3,
.blog-card__title {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark);
  margin: 0;
}
.blog-card h3 a,
.blog-card__title a { color: inherit; }
.blog-card h3 a:hover,
.blog-card__title a:hover { color: var(--red); }

/* Excerpt */
.blog-card__excerpt,
.blog-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
  max-width: none;
  margin: 0;
  /* Clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read more link */
.blog-card__link,
.blog-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  transition: gap var(--tr);
}
.blog-card__link:hover,
.blog-card-link:hover { gap: 8px; }

/* =========================================
   26. PAGE HERO (SIN FOTO FULL, VERSIÓN INTERIOR)
   ========================================= */
.page-hero {
  background: linear-gradient(135deg, #121212 0%, #1a1a1a 50%, #2d1a1a 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  min-height: 70vh;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 2rem;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--red);
}
.page-hero h1 { color: var(--white); }
.page-hero p  { color: rgba(255,255,255,.75); font-size: var(--text-lg); margin-top: .75rem; max-width: 620px; }

/* =========================================
   27. SECCIÓN CONTACTO
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-info { color: var(--white); }
.contact-info h2 { color: var(--white); margin-bottom: 1rem; }
.contact-info p  { color: rgba(255,255,255,.75); margin-bottom: 2rem; max-width: none; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,.8);
  font-size: var(--text-sm);
}
.contact-detail svg { flex-shrink: 0; color: var(--red); margin-top: 2px; }
.contact-detail a:hover { color: var(--white); }
.contact-detail strong { display: block; color: var(--white); font-weight: 600; margin-bottom: 2px; }

/* =========================================
   28. PÁGINA DE PRODUCTO (LAYOUT INTERIOR)
   ========================================= */
.product-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.product-features .feature-card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--red);
  transition: box-shadow var(--tr);
}
.product-features .feature-card:hover { box-shadow: var(--shadow); }
.product-features .feature-card h4 { margin-bottom: .5rem; font-size: var(--text-base); }
.product-features .feature-card p  { font-size: var(--text-sm); color: var(--text-secondary); max-width: none; }

/* =========================================
   29. STICKY SIDEBAR FORM (DIAGNÓSTICO)
   ========================================= */
.diag-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
}
.sticky-form-wrap {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

/* =========================================
   30. ARTÍCULO DE BLOG
   ========================================= */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.article-body {
  max-width: none;
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text);
}
/* Blog article — tamaños de título (scoped a .article-body / article)
   No afecta a H1/H2/H3 de landings, home ni otras páginas corporativas */
.article-body h1,
.article-content h1,
article h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.article-body h2,
.article-content h2,
article h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 2.5rem 0 1rem;
}
.article-body h3,
.article-content h3,
article h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 2rem 0 .75rem;
}
.article-body p  { margin-bottom: 1.25rem; max-width: none; }
.article-body ul, .article-body ol {
  margin: 1rem 0 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: 6px;
}
.article-body li { font-size: var(--text-base); }
.article-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.article-sidebar-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 20px;
}

/* =========================================
   31. RESPONSIVE — TABLET (≤ 1024px)
   ========================================= */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .section-2col { grid-template-columns: 1fr; gap: 40px; }
  .section-2col.reverse { direction: ltr; }
  .hero-2col { grid-template-columns: 1fr; }
  .hero-2col .hero-form { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .diag-layout { grid-template-columns: 1fr; }
  .sticky-form-wrap { position: static; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================
   32. RESPONSIVE — MOBILE (≤ 768px)
   ========================================= */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .header-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--dark);
    padding: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--tr-slow);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .header-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav-link { color: rgba(255,255,255,.85); padding: .75rem 0; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    display: none;
  }
  .nav-item.open .dropdown { display: block; }
  .dropdown li a { color: rgba(255,255,255,.6); padding: .4rem 0; }

  .header-actions .btn { display: none; }
  .header-actions .btn.btn-mobile-show { display: inline-flex; }

  .hero { min-height: 65vh; }
  .hero-sm { min-height: auto; }

  .trust-grid { gap: 16px 24px; }
  .trust-divider { display: none; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .section-2col { gap: 32px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }

  .module-grid  { grid-template-columns: 1fr; }
  .diff-grid    { grid-template-columns: 1fr; }
  .sector-grid  { grid-template-columns: 1fr; }
  .pains-grid   { grid-template-columns: 1fr; }
  .product-features { grid-template-columns: 1fr; }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }

  .btn-group { flex-direction: column; width: fit-content; }

  .section-header p { font-size: var(--text-base); }
}

/* =========================================
   32b. CLASES DE SECCIÓN — fondos y variantes
   ========================================= */
.section--white { background: var(--white); }
.section--light { background: var(--light); }
.section--dark  { background: var(--dark); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p  { color: rgba(255,255,255,.78); }
.section--photo { background-size: cover; background-position: center; position: relative; overflow: hidden; }

/* =========================================
   32c. LABEL TAG — eyebrow con cápsula
   ========================================= */
.label-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-secondary);
  background: var(--light);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: .75rem;
}
.label-tag--red {
  background: rgba(204,34,41,.12);
  color: var(--red);
}

/* =========================================
   32d. TWO-COL — layout 2 columnas
   ========================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col--equal { grid-template-columns: 1fr 1fr; }
.two-col__text  { min-width: 0; }
.two-col__visual { min-width: 0; }
.two-col__visual img { width: 100%; display: block; }
.img-rounded { border-radius: var(--radius-lg); overflow: hidden; }
.img-shadow  { box-shadow: var(--shadow-lg); }
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================
   32e. STEPS — pasos numerados
   ========================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 2rem;
}
.step-item { text-align: center; }
.step-number {
  width: 48px; height: 48px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; color: var(--dark); }
.step-item p  { font-size: .9rem; color: var(--text-secondary); line-height: 1.6; }
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* =========================================
   32f. PAGE HERO — variante con clases __
   ========================================= */
.page-hero__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.18); pointer-events: none; }
.page-hero__content { position: relative; z-index: 1; padding-top: 0; padding-bottom: 0; width: 100%; }
.page-hero__title   { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.page-hero__subtitle { color: rgba(255,255,255,.82); font-size: var(--text-lg); line-height: 1.65; max-width: 640px; margin-bottom: 1.5rem; }
.page-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* =========================================
   32g. FORM SECTION — hero+formulario dark
   ========================================= */
.form-section-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 60px;
}
.form-section-text h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: .75rem;
}
.form-section-text p { color: rgba(255,255,255,.78); line-height: 1.7; }
.form-trust-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 2rem;
}
.form-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.9);
  font-size: .9rem;
  font-weight: 500;
}
.form-trust-item svg { flex-shrink: 0; color: #22c55e; }

/* Tarjeta blanca del formulario */
.form-card {
  background: #fff;
  border-radius: 12px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}

/* Submit button full-width */
.btn-full { width: 100%; justify-content: center; }
.btn-submit {
  width: 100%;
  background: var(--red);
  color: #fff;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background var(--tr);
}
.btn-submit:hover { background: var(--red-dark); }

/* =========================================
   VIDEO EMBED — responsive 16/9
   ========================================= */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Disclaimer bajo botón */
.form-disclaimer {
  font-size: .78rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: .5rem;
}
@media (max-width: 860px) {
  .form-section-wrap { grid-template-columns: 1fr; padding-top: calc(var(--header-h) + 32px); }
}

/* =========================================
   33. PÁGINAS LEGALES — tipografía scoped
   ========================================= */
.legal-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.legal-content h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.legal-content h3 {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.legal-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* =========================================
   34. ANIMACIONES Y ACCESIBILIDAD
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Focus visible para accesibilidad */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--red);
  color: var(--white);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--text-sm);
  z-index: 9999;
  transition: top var(--tr);
}
.skip-link:focus { top: 1rem; }

/* Fade in suave */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Estado inicial: invisible, preparado para animación */
.anim-ready {
  opacity: 0;
  transform: translateY(20px);
  transition: none;
}
/* Cuando el observer detecta visibilidad, se añade animate-up */
.animate-up {
  animation: fadeUp .6s ease forwards;
}
/* Sin JS o con prefers-reduced-motion: siempre visible */
@media (prefers-reduced-motion: reduce) {
  .anim-ready { opacity: 1 !important; transform: none !important; }
}

/* =========================================
   FALLBACK ANIMACIÓN: si JS no dispara
   animate-up, el elemento se revela solo
   después de 1.2s
   ========================================= */
.anim-ready {
  animation: revealFallback 0.5s ease 1.2s forwards;
}
.animate-up {
  animation: fadeUp 0.6s ease forwards !important;
}
@keyframes revealFallback {
  to { opacity: 1; transform: none; }
}

/* Iconos texto como fallback sin SVG */
.feature-icon--text {
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Botón secundario header: Estimador XRP ── */
.btn-estimador {
  display: inline-flex;
  align-items: center;
  padding: .45rem .9rem;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
  margin-right: .75rem;
  line-height: 1;
}
.btn-estimador:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
  color: #fff;
}
@media (max-width: 900px) {
  .btn-estimador { display: none; }
}
