/* ==========================================================================
   GRUPO SG · Sistema de diseño
   Arquitectura de ecosistema de marcas
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Design tokens ---------- */
:root {
  /* Paleta */
  --ink:           #0B2545;
  --ink-soft:      #13315C;
  --ink-tint:      #3E7CB1;
  --accent-vig:    #6E2A1E;  /* granate · Vigilancia */
  --accent-cert:   #2A7F62;  /* verde · Normativa Certificada */
  --accent-cyber:  #5C6B7A;  /* gris · Ciberseguridad */
  --gold:          #C9A227;
  --gold-soft:     #E8D293;
  --text:          #1f2937;
  --text-soft:     #5C6B7A;
  --text-mute:     #94a3b8;
  --line:          #E5E7EB;
  --line-soft:     #F1F3F5;
  --bg:            #FFFFFF;
  --bg-soft:       #F5F7FA;
  --bg-tint:       #FAFBFC;
  --bg-dark:       #0B2545;

  /* Tipografía */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;

  /* Espaciado */
  --container: 1240px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);

  /* Sombras */
  --shadow-xs: 0 1px 2px rgba(11,37,69,0.04);
  --shadow-sm: 0 1px 3px rgba(11,37,69,0.06), 0 1px 2px rgba(11,37,69,0.04);
  --shadow-md: 0 4px 12px rgba(11,37,69,0.08), 0 2px 4px rgba(11,37,69,0.05);
  --shadow-lg: 0 12px 32px rgba(11,37,69,0.10), 0 4px 12px rgba(11,37,69,0.06);
  --shadow-xl: 0 24px 60px rgba(11,37,69,0.14);

  /* Bordes */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transiciones */
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 240ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 480ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Tipografía editorial ---------- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.125rem; font-weight: 600; }
p  { color: var(--text-soft); }

.serif      { font-family: var(--font-serif); }
.eyebrow    { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-tint); margin-bottom: 1rem; }
.section-title { font-family: var(--font-serif); font-weight: 600; }
.lead       { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-soft); max-width: 60ch; }
.muted      { color: var(--text-mute); }

/* ---------- Container ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
section    { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section-sm { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.bg-soft   { background: var(--bg-soft); }
.bg-tint   { background: var(--bg-tint); }
.bg-dark   { background: var(--bg-dark); color: #fff; }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark p { color: rgba(255,255,255,0.78); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.95rem; font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--t-base);
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-soft); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--ink); background: var(--bg-tint); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #B89220; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { color: var(--ink); padding: 0.5rem 0; font-weight: 600; }
.btn-ghost svg { transition: transform var(--t-base); }
.btn-ghost:hover svg { transform: translateX(4px); }
.btn-light { background: rgba(255,255,255,0.96); color: var(--ink); }
.btn-light:hover { background: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline-light { color: #fff; border: 1px solid rgba(255,255,255,0.3); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }

/* ---------- Chips & badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem; font-weight: 600;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.chip-gold  { background: rgba(201,162,39,0.10); color: #8a6f1c; border-color: rgba(201,162,39,0.25); }
.chip-vig   { background: rgba(110,42,30,0.08); color: var(--accent-vig); border-color: rgba(110,42,30,0.20); }
.chip-cert  { background: rgba(42,127,98,0.10); color: var(--accent-cert); border-color: rgba(42,127,98,0.22); }
.chip-cyber { background: rgba(92,107,122,0.10); color: var(--accent-cyber); border-color: rgba(92,107,122,0.22); }
.chip-blue  { background: rgba(62,124,177,0.10); color: var(--ink-tint); border-color: rgba(62,124,177,0.22); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  background: #0B1F3A;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav.scrolled {
  background: #071B33;
  border-bottom-color: rgba(255,255,255,0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0;
  gap: 1rem;
}
.nav-brand { display: inline-flex; align-items: center; }
.nav-brand-capsule {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  line-height: 1;
}
.nav-brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex; align-items: center; gap: 1.5rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links > li { position: relative; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500;
  color: rgba(255,255,255,0.88);
  transition: color var(--t-fast);
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.4rem 0;
}
.nav-links a:hover { color: #fff; }
.nav-links .dd-caret { font-size: 0.7rem; opacity: 0.75; transition: transform var(--t-fast); }
.has-dropdown:hover > .dd-toggle .dd-caret,
.has-dropdown.open > .dd-toggle .dd-caret { transform: rotate(180deg); }

/* Dropdown menus */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(7,27,51,0.18);
  padding: 0.5rem;
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  z-index: 110;
}
.dropdown::before {
  content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 12px;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.open > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li { width: 100%; }
.dropdown a {
  display: block; width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem; font-weight: 500;
  color: #0B1F3A;
  border-radius: 8px;
  transition: background var(--t-fast), color var(--t-fast);
}
.dropdown a:hover { background: rgba(216,165,41,0.12); color: #071B33; }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.btn-nav-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  font-size: 0.92rem; font-weight: 600;
  border-radius: 999px;
  background: #D8A529;
  color: #071B33;
  white-space: nowrap;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
.btn-nav-cta:hover {
  background: #E2B23A;
  transform: scale(1.03);
  box-shadow: 0 0 0 4px rgba(216,165,41,0.18), 0 6px 18px rgba(216,165,41,0.28);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 0.5rem; background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-inner {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "toggle cta brand"
      "menu   menu menu";
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0;
  }
  .nav-toggle { display: flex; grid-area: toggle; justify-self: start; }
  .nav-cta { grid-area: cta; justify-self: center; margin: 0; }
  .nav-brand { grid-area: brand; justify-self: end; }
  .nav-inner > nav { grid-area: menu; width: 100%; }
  .btn-nav-cta { padding: 0.55rem 0.9rem; font-size: 0.85rem; }

  /* Larger brand logo on mobile/tablet */
  .nav-brand-logo { height: 52px; }
  .nav-brand-capsule { padding: 0.45rem 1rem; }

  /* Menú abierto: menú a la izquierda, X arriba a la derecha y logo centrado a la derecha */
  .nav-inner:has(.nav-links.open) {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "menu toggle"
      "menu brand";
    align-items: start;
    column-gap: 0.5rem;
    row-gap: 0;
    padding-bottom: 0.5rem;
  }
  .nav-inner:has(.nav-links.open) .nav-cta { display: none; }
  .nav-inner:has(.nav-links.open) .nav-toggle {
    display: flex;
    position: static;
    grid-area: toggle;
    justify-self: end;
    align-self: start;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
  }
  .nav-inner:has(.nav-links.open) .nav-brand {
    grid-area: brand;
    justify-self: center;
    align-self: center;
    margin-right: 0.75rem;
  }
  .nav-inner:has(.nav-links.open) .nav-brand-logo { height: 56px; }
  .nav-inner:has(.nav-links.open) .nav-brand-capsule { padding: 0.5rem 0.9rem; }

  .nav-inner:has(.nav-links.open) > nav {
    grid-area: menu;
    width: 100%;
    min-width: 0;
  }

  .nav-links {
    display: none;
    width: 100%;
    background: #071B33;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links a {
    display: flex; justify-content: space-between;
    padding: 0.85rem 0.25rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(255,255,255,0.06);
    padding: 0.25rem 0.5rem; margin: 0 0 0.5rem;
    border-radius: 8px;
    display: none;
  }
  .has-dropdown.open > .dropdown { display: block; }
  .dropdown a { color: rgba(255,255,255,0.9); padding: 0.6rem 0.5rem; border: none; }
  .dropdown a:hover { background: rgba(216,165,41,0.18); color: #fff; }
}




/* ---------- HERO HOME ---------- */
.hero {
  display: flex; align-items: center;
  padding: 5.5rem 0 4rem;
  background: #FFFFFF;
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center;
}
.hero-text h1 {
  font-family: var(--font-serif); font-weight: 500;
  line-height: 1.05;
  margin: 1.25rem 0;
}
.hero-text h1 .w1 { color: var(--ink); }
.hero-text h1 .w2 { color: var(--accent-cert); }
.hero-text h1 .w3 { color: var(--accent-vig); }
.hero-text h1 .w4 { color: var(--gold); }
.hero-text h1 span { display: block; }
.hero-text .lead { margin: 1.5rem 0 2.25rem; font-size: 1.15rem; line-height: 1.6; }
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.hero-visual img { width: 100%; max-width: 540px; object-fit: contain; filter: none; box-shadow: none; transition: transform var(--t-slow); }
.hero-visual img:hover { animation: float 2.5s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-mute);
}
.hero-scroll-line {
  width: 1px; height: 40px; background: linear-gradient(180deg, var(--text-mute) 0%, transparent 100%);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1); }
}
@keyframes heroSlideIn {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-text .eyebrow {
  opacity: 0;
  animation: heroSlideIn 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 200ms;
}
.hero-text h1 span {
  opacity: 0;
  animation: heroSlideIn 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-text h1 span.w1 { animation-delay: 400ms; }
.hero-text h1 span.w2 { animation-delay: 600ms; }
.hero-text h1 span.w3 { animation-delay: 800ms; }
.hero-text h1 span.w4 { animation-delay: 1000ms; }
.hero-text .lead {
  opacity: 0;
  animation: heroFadeUp 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1000ms;
}
.hero-actions {
  opacity: 0;
  animation: heroFadeUp 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1000ms;
}

@media (prefers-reduced-motion: reduce) {
  .hero-text .eyebrow,
  .hero-text h1 span,
  .hero-text .lead,
  .hero-actions {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { order: -1; max-width: 380px; width: 92%; margin: 0 auto; padding: 0 0.5rem; }
  .hero-visual img { max-width: 100%; }
  .hero { min-height: auto; padding: 6rem 0 3rem; }
  .hero-scroll { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
  .hero-visual { max-width: 320px; width: 88%; }
}


/* ---------- KPI band ---------- */
.kpis {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--ink);
  color: #fff;
}
.kpis-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.kpi { text-align: center; padding: 1rem; position: relative; }
.kpi:not(:last-child)::after {
  content: ''; position: absolute; right: -1rem; top: 20%; bottom: 20%;
  width: 1px; background: rgba(255,255,255,0.12);
}
.kpi-num {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(3rem, 6vw, 5rem); line-height: 1;
  color: #fff;
  letter-spacing: -0.03em;
  display: flex; align-items: baseline; justify-content: center; gap: 0.15em;
}
.kpi-prefix { font-size: 0.55em; color: var(--gold); margin-right: 0.05em; }
.kpi-label {
  margin-top: 0.5rem;
  font-size: 0.95rem; font-weight: 500;
  color: rgba(255,255,255,0.85);
}
.kpi-sub {
  margin-top: 0.35rem;
  font-size: 0.78rem; color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}
.kpi-sub--small {
  font-size: 0.68rem;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
}

@media (max-width: 800px) {
  .kpis-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  .kpi:not(:last-child)::after { display: none; }
}

/* ---------- 4 Puertas de entrada ---------- */
.section-head { text-align: center; margin-bottom: 4rem; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 0.85rem; font-family: var(--font-serif); font-weight: 500; }
.section-head p { font-size: 1.1rem; }

.puertas-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.puerta {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.25rem 2rem;
  transition: all var(--t-base);
  position: relative; overflow: hidden;
}
.puerta::before {
  content: ''; position: absolute; top: 0; left: 0; width: 5px; bottom: 0;
  background: var(--puerta-color, var(--ink));
  transition: width var(--t-base);
}
.puerta:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--puerta-color, var(--ink));
}
.puerta:hover::before { width: 8px; }
.puerta--obligacion { --puerta-color: var(--accent-vig); }
.puerta--certificar { --puerta-color: var(--accent-cert); }
.puerta--implantar  { --puerta-color: var(--ink-tint); }
.puerta--proteger   { --puerta-color: var(--accent-cyber); }

.puerta-head {
  display: flex; align-items: center; gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.puerta-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--puerta-color) 8%, transparent);
  color: var(--puerta-color);
  flex-shrink: 0;
}
.puerta-icon svg { width: 26px; height: 26px; }
.puerta-q {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--puerta-color);
}
.puerta h3 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 1.6rem; margin-bottom: 0.75rem;
  color: var(--ink);
}
.puerta p { margin-bottom: 1.25rem; }
.puerta-list { list-style: none; margin: 0 0 1.5rem; }
.puerta-list li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  display: flex; align-items: center; gap: 0.5rem;
}
.puerta-list li::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--puerta-color); flex-shrink: 0;
}
.puerta-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; color: var(--puerta-color);
  font-size: 0.92rem;
}
.puerta-cta svg { width: 18px; height: 18px; transition: transform var(--t-base); }
.puerta:hover .puerta-cta svg { transform: translateX(4px); }
@media (max-width: 700px) {
  .puertas-grid { grid-template-columns: 1fr; }
}

/* ---------- Ecosistema orbital ---------- */
.ecosistema {
  position: relative;
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: var(--bg-soft);
  overflow: hidden;
}
.eco-stage {
  position: relative;
  max-width: 1100px; margin: 0 auto;
  aspect-ratio: 16/12;
  display: flex; align-items: center; justify-content: center;
}
.eco-center {
  position: relative; z-index: 4;
  width: clamp(140px, 18vw, 220px);
  filter: drop-shadow(0 8px 24px rgba(11,37,69,0.18));
}
.eco-center img { width: 100%; height: auto; }
.eco-orbit {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
}
.eco-orbit svg { width: 100%; height: 100%; }
.eco-orbit-circle {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}
.eco-node {
  position: absolute;
  width: clamp(96px, 13vw, 170px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(0.6rem, 1vw, 1rem) clamp(0.5rem, 0.9vw, 0.85rem) clamp(0.55rem, 0.9vw, 0.85rem);
  text-align: center;
  cursor: pointer;
  transition: all var(--t-base);
  z-index: 3;
  box-shadow: var(--shadow-sm);
}
.eco-node:hover {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: var(--shadow-lg);
  border-color: var(--node-color, var(--ink-tint));
  z-index: 5;
}
.eco-node img { width: 70%; max-width: 64px; margin: 0 auto 0.4rem; }
.eco-node .node-title {
  font-size: clamp(0.68rem, 0.9vw, 0.82rem);
  font-weight: 600; color: var(--ink);
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  text-wrap: balance;
}
.eco-node .node-sub {
  font-size: clamp(0.62rem, 0.78vw, 0.72rem);
  color: var(--text-mute); margin-top: 0.2rem;
  line-height: 1.25;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}


/* Posición orbital — 6 nodos alrededor del centro */
.eco-node--n1 { top: 8%;  left: 50%; transform: translate(-50%, -50%); --node-color: var(--accent-vig); }
.eco-node--n2 { top: 28%; left: 92%; transform: translate(-50%, -50%); --node-color: var(--accent-cert); }
.eco-node--n3 { top: 75%; left: 88%; transform: translate(-50%, -50%); --node-color: var(--accent-cyber); }
.eco-node--n4 { top: 92%; left: 50%; transform: translate(-50%, -50%); --node-color: var(--ink-tint); }
.eco-node--n5 { top: 75%; left: 12%; transform: translate(-50%, -50%); --node-color: var(--gold); }
.eco-node--n6 { top: 28%; left: 8%;  transform: translate(-50%, -50%); --node-color: var(--ink-tint); }

@media (max-width: 640px) {
  .eco-stage { aspect-ratio: auto; flex-direction: column; gap: 1rem; padding: 1rem 0; }
  .eco-center { margin: 1rem auto; width: 160px; }
  .eco-orbit { display: none; }
  .eco-node { position: static; transform: none; width: 100%; max-width: 380px; display: flex; align-items: center; gap: 0.85rem; text-align: left; padding: 0.85rem 1rem; }
  .eco-node:hover { transform: translateY(-2px); }
  .eco-node img { width: 44px; max-width: 44px; margin: 0; flex-shrink: 0; }
  .eco-node > div, .eco-node .node-text { min-width: 0; flex: 1; }
  .eco-node .node-title { font-size: clamp(0.85rem, 2.2vw, 0.95rem); }
  .eco-node .node-sub   { font-size: clamp(0.72rem, 2vw, 0.82rem); }
}


/* ---------- Marcas SG ---------- */
.marcas-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 3rem;
}
.marca-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}
.marca-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--marca-color, var(--ink));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-base);
}
.marca-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.marca-card:hover::after { transform: scaleX(1); }
.marca-card--vig   { --marca-color: var(--accent-vig); }
.marca-card--cert  { --marca-color: var(--accent-cert); }
.marca-card--cyber { --marca-color: var(--accent-cyber); }

.marca-sphere {
  height: 130px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.marca-sphere img { max-height: 130px; width: auto; }
.marca-card h3 { font-family: var(--font-serif); font-weight: 500; margin-bottom: 0.5rem; font-size: 1.35rem; }
.marca-card .marca-tag {
  font-size: 0.85rem; color: var(--marca-color, var(--ink-soft));
  font-weight: 600; margin-bottom: 1rem;
}
.marca-card p { font-size: 0.92rem; margin-bottom: 1.25rem; }
.marca-metric {
  display: inline-block;
  font-family: var(--font-serif); font-weight: 600;
  font-size: 1.3rem; color: var(--marca-color, var(--ink));
  padding: 0.4rem 0.85rem;
  background: color-mix(in srgb, var(--marca-color) 8%, transparent);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.marca-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; color: var(--marca-color, var(--ink));
  font-size: 0.9rem;
}
.marca-link svg { transition: transform var(--t-base); width: 16px; height: 16px; }
.marca-card:hover .marca-link svg { transform: translateX(4px); }
@media (max-width: 900px) {
  .marcas-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
}

/* ---------- Plataformas ---------- */
.plataformas-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 3rem;
}
.plataforma {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem;
  transition: all var(--t-base);
}
.plataforma:hover { border-color: var(--ink-tint); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.plataforma-domain {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 0.78rem; color: var(--ink-tint); font-weight: 600;
  margin-bottom: 0.65rem; word-break: break-all;
}
.plataforma h4 { color: var(--ink); margin-bottom: 0.4rem; font-size: 1.05rem; font-family: var(--font-serif); font-weight: 600; }
.plataforma p { font-size: 0.85rem; line-height: 1.5; }
.plataforma .chip { margin-top: 0.85rem; font-size: 0.7rem; }
@media (max-width: 900px) { .plataformas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .plataformas-grid { grid-template-columns: 1fr; } }

/* ---------- Partners ---------- */
.partners {
  background: var(--bg-tint);
}
.partners-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.partner-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column; align-items: flex-start;
  transition: all var(--t-base);
}
.partner-card:hover { border-color: var(--ink); box-shadow: var(--shadow-md); }
.partner-logo {
  height: 80px;
  display: flex; align-items: center;
  margin-bottom: 1.25rem;
}
.partner-logo img { max-height: 70px; width: auto; max-width: 100%; }
.partner-card h4 { font-family: var(--font-serif); font-weight: 600; margin-bottom: 0.35rem; font-size: 1.15rem; }
.partner-card .partner-role {
  font-size: 0.82rem; color: var(--ink-tint); font-weight: 600;
  margin-bottom: 0.85rem;
}
.partner-card p { font-size: 0.9rem; line-height: 1.55; }

.partners-cta {
  margin-top: 3.5rem;
  background: var(--ink); color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.partners-cta .pc-text h3 { color: #fff; margin-bottom: 0.4rem; font-family: var(--font-serif); font-weight: 500; }
.partners-cta .pc-text p { color: rgba(255,255,255,0.78); margin: 0; }
.partners-cta .btn { white-space: nowrap; flex-shrink: 0; min-width: max-content; }
@media (max-width: 800px) {
  .partners-grid { grid-template-columns: 1fr; }
  .partners-cta { flex-direction: column; align-items: flex-start; padding: 2rem 1.5rem; }
  .partners-cta .btn { align-self: flex-start; }
}

/* ---------- Blog / Actualidad ---------- */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 3rem;
}
.blog-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all var(--t-base);
}
.blog-card:hover { border-color: var(--ink-tint); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-image {
  aspect-ratio: 16/9; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: var(--blog-bg, var(--ink));
  color: #fff;
}
.blog-image svg { width: 48px; height: 48px; opacity: 0.85; }
.blog-image--vig { --blog-bg: linear-gradient(135deg, #6E2A1E 0%, #8b3623 100%); }
.blog-image--cert { --blog-bg: linear-gradient(135deg, #2A7F62 0%, #2f8f6e 100%); }
.blog-image--blue { --blog-bg: linear-gradient(135deg, #0B2545 0%, #13315C 100%); }
.blog-body { padding: 1.5rem 1.5rem 1.75rem; }
.blog-meta {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-tint); margin-bottom: 0.85rem;
}
.blog-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-mute); }
.blog-meta .blog-cat { color: var(--ink-tint); }
.blog-body h4 { font-family: var(--font-serif); font-weight: 600; color: var(--ink); font-size: 1.15rem; line-height: 1.3; margin-bottom: 0.75rem; }
.blog-body p { font-size: 0.92rem; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; } }

/* ---------- CTA grande ---------- */
.cta-final {
  background: var(--ink);
  color: #fff;
  padding: clamp(4rem, 8vw, 6rem) 0;
  position: relative; overflow: hidden;
}
.cta-final::before {
  content: ''; position: absolute; top: -50%; right: -10%; width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(201,162,39,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-final-inner { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.cta-final h2 { color: #fff; font-family: var(--font-serif); font-weight: 500; margin-bottom: 1rem; }
.cta-final p { color: rgba(255,255,255,0.78); font-size: 1.1rem; max-width: 580px; margin: 0 auto 2rem; }
.cta-final .btn { font-size: 1rem; padding: 1rem 2rem; }
.cta-note { margin-top: 1.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.55); }

/* ---------- Footer ---------- */
.footer {
  background: #061830;
  color: rgba(255,255,255,0.78);
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-col h5 {
  color: #fff; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 1.25rem; font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--gold); }
.footer-brand { display: flex; align-items: center; gap: 0.65rem; margin-top: -0.25rem; margin-bottom: 1rem; text-decoration: none; cursor: pointer; line-height: 1; }
.footer-brand img { width: 44px; height: 44px; object-fit: contain; }
.footer-brand .b-text { color: #fff; font-weight: 700; font-size: 1.1rem; line-height: 1; }
.footer-brand .b-mark { font-family: var(--font-serif); color: var(--accent-vig); }
.footer-desc { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 1.25rem; max-width: 280px; }
.footer-social { display: flex; gap: 0.65rem; }
.footer-social a {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.55); transition: all var(--t-fast);
  cursor: pointer; position: relative; z-index: 1;
}
.footer-social a:hover,
.footer-social a:focus-visible { color: var(--gold); border-color: rgba(201,162,39,0.5); background: rgba(201,162,39,0.08); }
.footer-social a svg { pointer-events: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.82rem; color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.55); margin-right: 1.25rem; font-size: 0.82rem; }
.footer-bottom a:hover { color: var(--gold); }
.footer-back-top {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  background: rgba(255,255,255,0.04); color: var(--gold);
  border: 1px solid rgba(201,162,39,0.4); border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--t-fast);
  margin-left: auto;
}
.footer-back-top:hover { background: rgba(201,162,39,0.12); border-color: var(--gold); transform: translateY(-2px); }
.footer-back-top i { width: 18px; height: 18px; }
.footer-partners {
  display: flex; align-items: center; gap: 1.5rem;
  opacity: 0.7;
}
.footer-partners img { height: 22px; width: auto; filter: brightness(0) invert(1) opacity(0.6); }
.footer-contact { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.footer-contact a { display: flex; align-items: center; gap: 0.55rem; color: rgba(255,255,255,0.65); font-size: 0.88rem; line-height: 1.3; }
.footer-contact a:hover { color: var(--gold); }
.footer-contact a i { width: 15px; height: 15px; flex-shrink: 0; color: var(--gold); opacity: 0.85; }
.footer-map {
  position: relative; display: block; height: 130px; border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid rgba(255,255,255,0.12);
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.footer-map:hover { border-color: rgba(201,162,39,0.55); transform: translateY(-2px); }
.footer-map iframe { width: 100%; height: 100%; border: 0; pointer-events: none; filter: grayscale(0.3) brightness(0.85) contrast(1.05); }
.footer-map-cta {
  position: absolute; bottom: 8px; right: 8px;
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(6,24,48,0.92); color: var(--gold);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.35rem 0.6rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(201,162,39,0.4);
}
.footer-map-cta i { width: 13px; height: 13px; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .footer-brand-col { grid-column: span 2; }
  .footer-contact-col { grid-column: span 2; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Brands + Platforms rows in footer */
.footer-section { margin-bottom: 2.5rem; }
.footer-section-title {
  color: rgba(255,255,255,0.55); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 1rem; font-weight: 600;
}
.footer-brands-row, .footer-platforms-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.footer-brand-btn, .footer-platform-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-sm); padding: 1rem 1.25rem; min-height: 84px;
  transition: all var(--t-fast); text-decoration: none;
}
.footer-brand-btn:hover, .footer-platform-btn:hover {
  background: rgba(255,255,255,0.07); border-color: rgba(201,162,39,0.45);
  transform: translateY(-2px);
}
.footer-brand-btn img { height: 44px; width: auto; max-width: 100%; object-fit: contain; }
.footer-platform-btn img { height: 36px; width: auto; object-fit: contain; }
.footer-platform-btn span { color: #fff; font-weight: 600; font-size: 0.95rem; }
@media (max-width: 700px) {
  .footer-brands-row, .footer-platforms-row { grid-template-columns: 1fr; }
}


/* ---------- Página interna · Hero secundario ---------- */
.page-hero {
  padding: 9rem 0 4rem;
  background: var(--page-bg-grad, linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%));
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.page-hero--obligacion { --page-bg-grad: linear-gradient(180deg, rgba(110,42,30,0.04) 0%, #fff 100%); }
.page-hero--certificar { --page-bg-grad: linear-gradient(180deg, rgba(42,127,98,0.05) 0%, #fff 100%); }
.page-hero--implantar  { --page-bg-grad: linear-gradient(180deg, rgba(62,124,177,0.05) 0%, #fff 100%); }
.page-hero--proteger   { --page-bg-grad: linear-gradient(180deg, rgba(92,107,122,0.06) 0%, #fff 100%); }
.page-hero-inner {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 3.5rem; align-items: center;
}
.page-hero-text .breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--text-mute); margin-bottom: 1.25rem;
}
.page-hero-text .breadcrumb a { color: var(--text-soft); }
.page-hero-text .breadcrumb a:hover { color: var(--ink); }
.page-hero-text h1 {
  font-family: var(--font-serif); font-weight: 500;
  margin-bottom: 1.25rem;
}
.page-hero-text .lead { font-size: 1.15rem; max-width: 580px; }
.page-hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.page-hero-visual {
  display: flex; align-items: center; justify-content: center;
}
.page-hero-visual img { max-width: 360px; width: 100%; filter: drop-shadow(0 16px 36px rgba(11,37,69,0.12)); }
@media (max-width: 900px) {
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-visual { order: -1; max-width: 280px; margin: 0 auto; }
  .page-hero { padding-top: 7rem; }
}

/* ---------- Bloques de página interna ---------- */
.split-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; margin-top: 3rem;
}
.split-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  position: relative;
}
.split-card .badge {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  padding: 0.35rem 0.65rem; border-radius: var(--radius-sm);
  background: var(--bg-soft); color: var(--ink-soft);
}
.split-card .partner-logo-wrap {
  height: 80px; display: flex; align-items: center; margin-bottom: 1.5rem;
}
.split-card .partner-logo-wrap img { max-height: 70px; width: auto; }
.split-card h3 { font-family: var(--font-serif); font-weight: 600; margin-bottom: 0.5rem; }
.split-card .role-tag {
  display: inline-block; font-weight: 600; font-size: 0.85rem;
  padding: 0.3rem 0.8rem; border-radius: 999px;
  margin-bottom: 1rem;
}
.split-card--bscert .role-tag { background: rgba(11,37,69,0.06); color: var(--ink); }
.split-card--iene   .role-tag { background: rgba(62,124,177,0.10); color: var(--ink-tint); }
.split-card ul { list-style: none; margin-top: 1rem; }
.split-card ul li {
  padding: 0.5rem 0; font-size: 0.92rem; color: var(--text-soft);
  display: flex; gap: 0.65rem; align-items: flex-start;
}
.split-card ul li svg { width: 18px; height: 18px; color: var(--ink-tint); flex-shrink: 0; margin-top: 2px; }
.split-banner {
  margin-top: 1.75rem;
  background: var(--ink); color: #fff;
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  font-family: var(--font-serif); font-weight: 500; font-style: italic;
  font-size: 1.1rem;
  position: relative;
}
.split-banner::before, .split-banner::after { color: var(--gold); }
@media (max-width: 800px) { .split-block { grid-template-columns: 1fr; } }

/* ---------- Journey / Steps ---------- */
.journey {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
  margin-top: 3rem;
  position: relative;
}
.journey::before {
  content: ''; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(to right, var(--line) 0 8px, transparent 8px 14px);
}
.journey-step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center; position: relative;
  transition: all var(--t-base);
}
.journey-step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--ink-tint); }
.journey-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 2px solid var(--step-color, var(--ink));
  color: var(--step-color, var(--ink));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem;
  margin: -2.5rem auto 1rem; position: relative; z-index: 2;
}
.journey-step h4 { font-family: var(--font-serif); font-weight: 600; margin-bottom: 0.5rem; font-size: 1.05rem; }
.journey-step p { font-size: 0.85rem; line-height: 1.5; }
@media (max-width: 800px) {
  .journey { grid-template-columns: 1fr 1fr; }
  .journey::before { display: none; }
}

/* ---------- Normas grid ---------- */
.normas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; margin-top: 2rem; }
.norma-chip {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem; text-align: center;
  transition: all var(--t-base);
}
.norma-chip:hover { border-color: var(--accent-cert); color: var(--accent-cert); }
.norma-chip .n-code { font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.norma-chip .n-name { font-size: 0.78rem; color: var(--text-mute); margin-top: 0.25rem; }
@media (max-width: 700px) { .normas-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Capas Ciberseguridad ---------- */
.capas {
  display: grid; gap: 1rem;
  margin-top: 2.5rem; max-width: 720px; margin-left: auto; margin-right: auto;
}
.capa {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  position: relative;
  display: flex; align-items: center; gap: 1.25rem;
}
.capa::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--capa-color, var(--ink));
  border-radius: var(--radius) 0 0 var(--radius);
}
.capa--1 { --capa-color: #94a3b8; }
.capa--2 { --capa-color: var(--accent-cyber); }
.capa--3 { --capa-color: var(--ink); }
.capa-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--bg-soft); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--capa-color);
}
.capa-icon svg { width: 24px; height: 24px; }
.capa-body h4 { font-family: var(--font-serif); font-weight: 600; margin-bottom: 0.25rem; }
.capa-body p { font-size: 0.92rem; margin: 0; }

/* ---------- Animaciones de scroll ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1), transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
[data-reveal].in {
  opacity: 1; transform: translateY(0);
}
[data-reveal][data-delay="1"] { transition-delay: 80ms; }
[data-reveal][data-delay="2"] { transition-delay: 160ms; }
[data-reveal][data-delay="3"] { transition-delay: 240ms; }
[data-reveal][data-delay="4"] { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-scroll-line { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================================
   ANIMACIONES EXTRA + MICROINTERACCIONES + PARALLAX
   ============================================================================ */

/* ---------- Fade-in al cargar la página ---------- */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
body { animation: pageFadeIn 600ms cubic-bezier(0.4, 0, 0.2, 1); }

/* ---------- Logo del hero: efecto flotante al pasar el ratón ---------- */
.hero-visual img {
  animation: none;
  will-change: auto;
}
.hero-visual img:hover {
  animation: float 2.5s ease-in-out infinite;
}

/* ---------- Pulso sutil de la esfera central del ecosistema ---------- */
@keyframes orbPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 8px 24px rgba(11,37,69,0.18)); }
  50%      { transform: scale(1.04); filter: drop-shadow(0 12px 32px rgba(11,37,69,0.24)); }
}
.eco-center img {
  animation: orbPulse 4s ease-in-out infinite;
}

/* ---------- Rotación lenta de los anillos orbitales ---------- */
@keyframes orbitRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.eco-orbit svg {
  animation: orbitRotate 120s linear infinite;
  transform-origin: center;
}

/* ---------- Hover dinámico en esferas de marcas ---------- */
.marca-card .marca-sphere img {
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.marca-card:hover .marca-sphere img {
  transform: scale(1.08) rotate(-2deg);
}


/* ---------- Glow al hover en KPIs ---------- */
.kpi { transition: transform var(--t-base); }
.kpi:hover { transform: scale(1.04); }
.kpi:hover .kpi-num { color: var(--gold); transition: color var(--t-fast); }

/* ---------- Variantes de reveal ---------- */
[data-reveal="left"] { opacity: 0; transform: translateX(-32px); transition: opacity 700ms, transform 700ms; transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
[data-reveal="left"].in { opacity: 1; transform: translateX(0); }
[data-reveal="right"] { opacity: 0; transform: translateX(32px); transition: opacity 700ms, transform 700ms; transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
[data-reveal="right"].in { opacity: 1; transform: translateX(0); }
[data-reveal="scale"] { opacity: 0; transform: scale(0.92); transition: opacity 700ms, transform 700ms; transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
[data-reveal="scale"].in { opacity: 1; transform: scale(1); }

/* ---------- Brillo en botones ---------- */
.btn-primary, .btn-gold { position: relative; overflow: hidden; }
.btn-primary::after, .btn-gold::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.20), transparent);
  transition: left 800ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover::after, .btn-gold:hover::after { left: 100%; }

/* ============================================================================
   FORMULARIO DE CONTACTO FUNCIONAL
   ============================================================================ */

.form-page-hero {
  padding: 9rem 0 3rem;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
}
.form-section { padding: 2rem 0 6rem; background: var(--bg-soft); }
@media (max-width: 1024px) {
  .hero-visual-hide-md { display: none !important; }
}



.form-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.form-side {
  position: sticky; top: 100px;
}
.form-side h2 { font-family: var(--font-serif); font-weight: 500; margin-bottom: 1rem; }
.form-side .lead { font-size: 1.05rem; margin-bottom: 2rem; }
.form-info-list { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.form-info-item { display: flex; gap: 0.85rem; align-items: flex-start; }
.form-info-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(62,124,177,0.10);
  color: var(--ink-tint);
  display: flex; align-items: center; justify-content: center;
}
.form-info-icon svg { width: 18px; height: 18px; }
.form-info-text h5 { color: var(--ink); margin-bottom: 0.15rem; font-size: 0.92rem; font-weight: 600; }
.form-info-text p { font-size: 0.88rem; margin: 0; }

/* Card del formulario */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.form-progress {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 2rem;
}
.form-progress-step {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--line);
  transition: background var(--t-base);
}
.form-progress-step.active { background: var(--gold); }
.form-progress-step.done   { background: var(--accent-cert); }

.form-step { display: none; animation: stepFadeIn 400ms ease-out; }
.form-step.active { display: block; }
@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.form-step-head { margin-bottom: 1.75rem; }
.form-step-head .step-num {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-tint); margin-bottom: 0.35rem;
}
.form-step-head h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.4rem; margin-bottom: 0.35rem; }
.form-step-head p { font-size: 0.92rem; margin: 0; }

.form-field { margin-bottom: 1.25rem; }
.form-field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.88rem; font-weight: 600; color: var(--ink);
  margin-bottom: 0.5rem;
}
.form-label .req { color: var(--accent-vig); font-weight: 700; margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all var(--t-fast);
}
.form-input:hover, .form-select:hover, .form-textarea:hover {
  border-color: var(--text-mute);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--ink-tint);
  box-shadow: 0 0 0 4px rgba(62,124,177,0.12);
}
.form-input.error, .form-select.error, .form-textarea.error {
  border-color: var(--accent-vig);
  box-shadow: 0 0 0 4px rgba(110,42,30,0.10);
}
.form-textarea { resize: vertical; min-height: 110px; }
.form-help { display: block; margin-top: 0.35rem; font-size: 0.78rem; color: var(--text-mute); }
.form-error {
  display: none; margin-top: 0.35rem; font-size: 0.8rem; color: var(--accent-vig); font-weight: 500;
  align-items: center; gap: 0.35rem;
}
.form-error.show { display: flex; }
.form-error svg { width: 14px; height: 14px; }

/* Tarjetas de opciones (radio-like) */
.form-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.form-option {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1rem 1rem 2.6rem;
  cursor: pointer;
  transition: all var(--t-fast);
}
.form-option:hover { border-color: var(--ink-tint); background: var(--bg-tint); }
.form-option input {
  position: absolute; top: 50%; left: 1rem; transform: translateY(-50%);
  width: 18px; height: 18px;
  accent-color: var(--ink);
}
.form-option-label {
  font-size: 0.92rem; font-weight: 600; color: var(--ink);
  display: block;
}
.form-option-desc { font-size: 0.8rem; color: var(--text-soft); display: block; margin-top: 0.15rem; }
.form-option input:checked + .form-option-label { color: var(--ink); }
.form-option:has(input:checked) {
  border-color: var(--ink);
  background: rgba(11,37,69,0.03);
  box-shadow: 0 0 0 1px var(--ink);
}

/* Checkbox de consentimiento */
.form-checkbox {
  display: flex; gap: 0.65rem; align-items: flex-start;
  font-size: 0.85rem; color: var(--text-soft); line-height: 1.5;
}
.form-checkbox input {
  margin-top: 3px;
  width: 16px; height: 16px;
  accent-color: var(--ink);
  flex-shrink: 0;
}
.form-checkbox a { color: var(--ink-tint); text-decoration: underline; }

/* Botonera de navegación del formulario */
.form-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 2rem; padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.form-actions .btn { min-width: 120px; justify-content: center; }
.form-back { color: var(--text-soft); font-weight: 500; }
.form-back:hover { color: var(--ink); }

/* Estado de éxito */
.form-success {
  display: none;
  text-align: center; padding: 1rem 0 1rem;
}
.form-success.show { display: block; animation: stepFadeIn 500ms ease-out; }
.form-success-icon {
  width: 72px; height: 72px;
  background: rgba(42,127,98,0.12);
  color: var(--accent-cert);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  animation: successPop 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes successPop {
  0%   { transform: scale(0.5); opacity: 0; }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.form-success-icon svg { width: 36px; height: 36px; }
.form-success h3 { font-family: var(--font-serif); font-weight: 600; margin-bottom: 0.5rem; font-size: 1.6rem; }
.form-success p { font-size: 1rem; max-width: 380px; margin: 0 auto 1.5rem; }
.form-success-ref {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--ink);
}

@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; gap: 2rem; }
  .form-side { position: static; }
  .form-card { padding: 1.5rem; }
  .form-field-row { grid-template-columns: 1fr; }
  .form-options { grid-template-columns: 1fr; }
}

/* ============================================================================
   PÁGINA SOBRE NOSOTROS
   ============================================================================ */

.about-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: -3rem; position: relative; z-index: 2;
  box-shadow: var(--shadow-lg);
}
.about-stat { text-align: center; }
.about-stat .stat-num {
  font-family: var(--font-serif); font-weight: 700; font-size: 2.4rem;
  color: var(--ink); line-height: 1;
}
.about-stat .stat-label {
  font-size: 0.85rem; color: var(--text-soft);
  margin-top: 0.4rem;
}
@media (max-width: 800px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding: 1.5rem; margin-top: 1rem; }
}

.timeline {
  position: relative;
  max-width: 800px; margin: 3rem auto 0;
  padding-left: 2.5rem;
}
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 12px; bottom: 12px;
  width: 2px; background: var(--line);
}
.timeline-item {
  position: relative; margin-bottom: 2.5rem;
}
.timeline-item::before {
  content: ''; position: absolute; left: -2.5rem; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--ink);
  transition: all var(--t-base);
}
.timeline-item:hover::before { background: var(--gold); border-color: var(--gold); transform: scale(1.2); }
.timeline-year {
  font-family: var(--font-serif); font-weight: 700; font-size: 1.4rem;
  color: var(--gold); margin-bottom: 0.4rem;
}
.timeline-item h4 { font-family: var(--font-serif); font-weight: 600; margin-bottom: 0.4rem; font-size: 1.1rem; }
.timeline-item p { font-size: 0.95rem; }

.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem;
}
.value-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all var(--t-base);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--ink); }
.value-icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: rgba(201,162,39,0.12); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.value-icon svg { width: 26px; height: 26px; }
.value-card h4 { font-family: var(--font-serif); font-weight: 600; margin-bottom: 0.5rem; font-size: 1.2rem; }
@media (max-width: 800px) { .values-grid { grid-template-columns: 1fr; } }

.team-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; margin-top: 3rem;
}
.team-card {
  text-align: center;
  transition: transform var(--t-base);

}
.team-card:hover { transform: translateY(-4px); }
.team-avatar {
  width: 140px; height: 140px; border-radius: 50%;
  background: linear-gradient(135deg, var(--avatar-c, var(--ink-tint)) 0%, var(--ink) 100%);
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-serif); font-weight: 600; font-size: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid #fff;
}
.team-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.team-avatar--lorena img,
.team-avatar--rosa img,
.team-avatar--laura img,
.team-avatar--beatriz img,
.team-avatar--boris img {
  transform: none;
  object-position: center center;
}
.team-card h4 { font-family: var(--font-serif); font-weight: 600; margin-bottom: 0.2rem; font-size: 1.05rem; }
.team-card .team-role { font-size: 0.85rem; color: var(--ink-tint); margin-bottom: 0.5rem; }
.team-card .team-bio { font-size: 0.82rem; color: var(--text-soft); }
@media (max-width: 800px) { .team-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   PÁGINA CASOS DE ÉXITO
   ============================================================================ */

.cases-filter {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  justify-content: center; margin-bottom: 3rem;
}
.case-filter-btn {
  padding: 0.5rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; color: var(--text-soft);
  cursor: pointer; transition: all var(--t-fast);
}
.case-filter-btn:hover { color: var(--ink); border-color: var(--ink); }
.case-filter-btn.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

.cases-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem;
}
.case-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t-base);
  display: flex; flex-direction: column;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--case-color, var(--ink));
}
.case-banner {
  height: 140px;
  background: var(--case-bg, linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%));
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.92);
}
.case-banner--vig    { --case-bg: linear-gradient(135deg, #6E2A1E 0%, #8b3623 100%); --case-color: var(--accent-vig); }
.case-banner--cert   { --case-bg: linear-gradient(135deg, #2A7F62 0%, #2f8f6e 100%); --case-color: var(--accent-cert); }
.case-banner--cyber  { --case-bg: linear-gradient(135deg, #5C6B7A 0%, #6c7d8e 100%); --case-color: var(--accent-cyber); }
.case-banner--blue   { --case-bg: linear-gradient(135deg, #0B2545 0%, #13315C 100%); --case-color: var(--ink); }
.case-banner svg { width: 56px; height: 56px; opacity: 0.92; }
.case-tag {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.95); color: var(--ink);
  padding: 0.25rem 0.7rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
}
.case-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.case-meta { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 0.85rem; }
.case-body h4 { font-family: var(--font-serif); font-weight: 600; font-size: 1.25rem; margin-bottom: 0.85rem; line-height: 1.3; }
.case-body p { font-size: 0.92rem; flex: 1; margin-bottom: 1.25rem; }
.case-results {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
  padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.case-result {
  text-align: center;
}
.case-result-num {
  font-family: var(--font-serif); font-weight: 700; font-size: 1.4rem;
  color: var(--case-color, var(--ink)); line-height: 1;
}
.case-result-label {
  font-size: 0.72rem; color: var(--text-mute);
  margin-top: 0.25rem;
}
@media (max-width: 800px) {
  .cases-grid { grid-template-columns: 1fr; }
  .case-results { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
}

/* Testimonial */
.testimonial {
  background: var(--ink); color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem 3rem 2.5rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}
.testimonial::before {
  content: '"'; position: absolute; top: -2rem; left: 1.5rem;
  font-family: var(--font-serif); font-size: 10rem; line-height: 1;
  color: rgba(201,162,39,0.18);
}
.testimonial-quote {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.4rem; line-height: 1.4; color: #fff;
  position: relative; z-index: 1;
  max-width: 800px;
}
.testimonial-author {
  margin-top: 1.75rem; display: flex; align-items: center; gap: 1rem;
  position: relative;
}
.testimonial-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, #8a6f1c 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem;
  overflow: hidden; flex-shrink: 0;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testimonial-author-info h5 { color: #fff; margin: 0; font-size: 0.95rem; }
.testimonial-author-info p { color: rgba(255,255,255,0.65); margin: 0; font-size: 0.85rem; }

@media (max-width: 700px) {
  .testimonial { padding: 2rem 1.5rem; }
  .testimonial-quote { font-size: 1.1rem; }
}

/* ========== NOTICIAS / BLOG ========== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.news-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--border, rgba(11,37,69,0.10));
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(11,37,69,0.10);
  border-color: rgba(11,37,69,0.18);
}
.news-card-featured { grid-column: span 3; flex-direction: row; }
.news-card-featured .news-card-media { flex: 1 1 50%; min-height: 320px; }
.news-card-featured .news-card-body { flex: 1 1 50%; padding: 2.25rem; }
.news-card-featured h3 { font-size: 1.65rem; }

.news-card-media {
  position: relative;
  min-height: 200px;
  background: linear-gradient(135deg, #0b2545, #1d4ed8);
}
.news-media-1 { background: linear-gradient(135deg, #0b2545 0%, #1d4ed8 60%, #c8a04a 100%); }
.news-media-2 { background: linear-gradient(135deg, #102a43 0%, #2e5cb8 100%); }
.news-media-3 { background: linear-gradient(135deg, #1a365d 0%, #c8a04a 110%); }
.news-media-4 { background: linear-gradient(135deg, #1f2937 0%, #b91c1c 110%); }
.news-media-5 { background: linear-gradient(135deg, #0f3460 0%, #4f46e5 100%); }
.news-media-6 { background: linear-gradient(135deg, #243b55 0%, #c8a04a 100%); }
.news-media-7 { background: linear-gradient(135deg, #111827 0%, #0ea5e9 100%); }
.news-media-8 { background: linear-gradient(135deg, #14532d 0%, #65a30d 100%); }
.news-media-9 { background: linear-gradient(135deg, #2e1065 0%, #7c3aed 100%); }

.news-tag {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(255,255,255,0.92);
  color: #0b2545;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.35rem 0.7rem; border-radius: 999px;
}
.news-tag-gold { background: #c8a04a; color: #fff; }

.news-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.news-meta {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--text-mute, #5b6b7d);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.news-cat { color: #1d4ed8; font-weight: 600; }
.news-card h3 {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.2rem; line-height: 1.3; margin: 0; color: var(--ink, #0b2545);
}
.news-card p { color: var(--text, #2b3a4a); font-size: 0.95rem; margin: 0; }
.news-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: #1d4ed8; font-weight: 600; font-size: 0.9rem;
  text-decoration: none;
}
.news-link:hover { color: #0b2545; }
.news-link i { width: 16px; height: 16px; }

/* Newsletter */
.newsletter-cta {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center;
  background: #fff; border: 1px solid rgba(11,37,69,0.10);
  border-radius: var(--radius-lg, 16px); padding: 2.5rem;
}
.newsletter-form { display: flex; gap: 0.75rem; }
.newsletter-form input {
  flex: 1; padding: 0.85rem 1rem;
  border: 1px solid rgba(11,37,69,0.18); border-radius: 10px;
  font-size: 1rem; background: #fff;
}
.newsletter-form input:focus { outline: none; border-color: #1d4ed8; }

@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card-featured { grid-column: span 2; flex-direction: column; }
  .news-card-featured .news-card-media { min-height: 220px; }
  .newsletter-cta { grid-template-columns: 1fr; padding: 1.75rem; }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card-featured { grid-column: span 1; }
  .newsletter-form { flex-direction: column; }
}

/* ===== Home: Pillars (Qué es Grupo SG) ===== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.pillar {
  background: #fff;
  border: 1px solid rgba(11,37,69,0.08);
  border-radius: var(--radius-md, 14px);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pillar:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(11,37,69,0.08); }
.pillar-icon {
  width: 48px; height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(196, 156, 71, 0.12);
  color: var(--gold, #c49c47);
}
.pillar-title { font-weight: 600; color: var(--ink, #0b2545); font-size: 0.95rem; }
@media (max-width: 900px) { .pillars-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Home: Mapa del Éxito ===== */
.mapa-card {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, #fffdf6 0%, #fff 100%);
  border: 1px solid rgba(196,156,71,0.35);
  border-left: 4px solid var(--gold, #c49c47);
  border-radius: var(--radius-lg, 18px);
  padding: 2.5rem;
  box-shadow: 0 16px 40px rgba(11,37,69,0.06);
}
.mapa-content h2 { margin-bottom: 0.75rem; }
.mapa-subtitle { font-weight: 500; color: var(--ink, #0b2545); margin-bottom: 0.75rem; }
.mapa-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.mapa-visual {
  display: flex; align-items: center; justify-content: center;
  color: var(--gold, #c49c47);
}
.mapa-visual svg { width: 140px; height: 140px; }
@media (max-width: 800px) {
  .mapa-card { grid-template-columns: 1fr; padding: 1.75rem; }
  .mapa-visual { display: none; }
}

/* === JOURNEY DIAGRAM (Mapa del Éxito) === */
.journey {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0.5rem;
  align-items: stretch;
}
.journey-step {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.journey-step:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 32px -16px rgba(0,0,0,.25);
}
.journey-step--end {
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(212,175,55,0.02));
  border-color: var(--gold);
}
.journey-num {
  position: absolute;
  top: 0.6rem;
  right: 0.85rem;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.journey-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-cream, #fff);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--gold);
}
.journey-icon svg { width: 26px; height: 26px; }
.journey-step h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
.journey-step p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-mute);
  margin: 0;
}
.journey-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  opacity: 0.55;
}
.journey-connector svg { width: 22px; height: 22px; }

@media (max-width: 980px) {
  .journey {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .journey-connector { transform: rotate(90deg); padding: 0.25rem 0; }
}

/* === MAPA PILLARS === */
.mapa-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.mapa-pillar {
  background: var(--bg-cream, #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: left;
  transition: border-color .25s ease, transform .25s ease;
}
.mapa-pillar:hover { border-color: var(--gold); transform: translateY(-3px); }
.mapa-pillar-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(212,175,55,0.10);
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.mapa-pillar-icon svg { width: 22px; height: 22px; }
.mapa-pillar h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1rem;
  margin: 0 0 0.4rem;
}
.mapa-pillar p { font-size: 0.88rem; line-height: 1.5; color: var(--text-mute); margin: 0; }

@media (max-width: 900px) { .mapa-pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mapa-pillars { grid-template-columns: 1fr; } }

/* === MAPA CTA CARD === */
.mapa-cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(212,175,55,0.10), rgba(212,175,55,0.02));
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  flex-wrap: wrap;
}

/* === ALERGENOS.ONLINE · BENTO GRID === */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1.25rem;
  grid-template-areas:
    "hero hero hero hero qr   qr"
    "hero hero hero hero pdf  pdf"
    "cert cert plan plan act  act";
}
.bento-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.bento-card--hero {
  grid-area: hero;
  background: linear-gradient(160deg, rgba(212,175,55,0.10), rgba(212,175,55,0.02));
  border-color: var(--gold);
}
.bento-card--qr   { grid-area: qr; }
.bento-card--pdf  { grid-area: pdf; }
.bento-card--cert { grid-area: cert; }
.bento-card--plan { grid-area: plan; }
.bento-card--act  { grid-area: act; }
.bento-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.35);
  color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
}
.bento-icon svg { width: 22px; height: 22px; }
.bento-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0;
}
.bento-card--hero h3 { font-size: 1.4rem; }
.bento-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
}
.bento-bullets {
  list-style: none; padding: 0; margin: auto 0 0;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.bento-bullets li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; color: var(--text-soft);
}
.bento-bullets svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; grid-template-areas: none; }
  .bento-card,
  .bento-card--hero,
  .bento-card--wide { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: none; }
  .bento-card,
  .bento-card--hero,
  .bento-card--wide { grid-column: span 1; }
}

/* === WHY STRIP === */
.why-strip {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  background: var(--bg-soft, #fafaf7);
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
}
.why-item {
  display: flex; align-items: flex-start; gap: 0.85rem;
  flex: 1;
}
.why-item svg { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.why-item strong {
  display: block;
  font-family: var(--font-serif); font-weight: 500;
  font-size: 1rem; color: var(--ink); margin-bottom: 0.25rem;
}
.why-item span {
  font-size: 0.85rem; color: var(--text-soft); line-height: 1.5;
}
.why-divider {
  width: 1px; background: var(--border, rgba(0,0,0,0.1));
}
@media (max-width: 880px) {
  .why-strip { flex-direction: column; gap: 1.25rem; }
  .why-divider { width: 100%; height: 1px; }
}

/* === STEPS ROW === */
.steps-row {
  display: flex; align-items: stretch; gap: 1rem;
  justify-content: center;
}
.step-mini {
  flex: 1; max-width: 280px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color .25s ease, transform .25s ease;
}
.step-mini:hover { border-color: var(--gold); transform: translateY(-2px); }
.step-mini-num {
  font-family: var(--font-serif);
  font-size: 1.5rem; color: var(--gold);
  margin-bottom: 0.5rem;
}
.step-mini h4 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 1.05rem; margin: 0 0 0.5rem;
}
.step-mini p { font-size: 0.88rem; color: var(--text-soft); line-height: 1.5; margin: 0; }
.step-mini-arrow {
  display: flex; align-items: center; color: var(--gold);
}
.step-mini-arrow svg { width: 24px; height: 24px; }
@media (max-width: 820px) {
  .steps-row { flex-direction: column; align-items: stretch; }
  .step-mini { max-width: none; }
  .step-mini-arrow { transform: rotate(90deg); justify-content: center; padding: 0.25rem 0; }
}

/* === ECOSYSTEM NOTE === */
.ecosystem-note {
  display: flex; align-items: center; gap: 1.25rem;
  background: linear-gradient(135deg, rgba(212,175,55,0.06), rgba(212,175,55,0));
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}
.ecosystem-note-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(212,175,55,0.12);
  color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ecosystem-note p {
  margin: 0; color: var(--text-soft); font-size: 0.95rem; line-height: 1.6;
}

/* ---------- Radar Noticias ---------- */
.news-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0 1.75rem;
  padding: 1.25rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.news-search {
  position: relative;
  display: flex;
  align-items: center;
}
.news-search i {
  position: absolute;
  left: 14px;
  width: 18px; height: 18px;
  color: var(--text-mute);
  pointer-events: none;
}
.news-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.news-search input:focus {
  outline: none;
  border-color: var(--ink-tint);
  box-shadow: 0 0 0 3px rgba(62,124,177,0.18);
}
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.news-filter {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-soft);
  transition: all .15s ease;
}
.news-filter:hover {
  border-color: var(--ink-tint);
  color: var(--ink);
}
.news-filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.news-card-radar { background: #fff; border: 1px solid var(--line); }
.news-card-radar .news-card-body { gap: 0.85rem; }
.news-category-pill {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: rgba(11,37,69,0.06);
  color: var(--ink);
}
.news-importance {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.imp-low      { background: #eef2f7; color: #475569; }
.imp-medium   { background: #fef3c7; color: #92400e; }
.imp-high     { background: #fee2e2; color: #b91c1c; }
.imp-critical { background: #7f1d1d; color: #fff; }

.news-block {
  background: var(--bg-tint);
  border-left: 3px solid var(--gold);
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
}
.news-block-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.news-block p { font-size: 0.88rem; color: var(--text-soft); margin: 0; }

.news-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.news-service-chip {
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: #fff;
}

.news-source-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background .15s ease, transform .15s ease;
}
.news-source-btn:hover { background: var(--ink-soft); transform: translateY(-1px); }
.news-source-btn i { width: 15px; height: 15px; }

.news-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-mute);
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.news-empty i { width: 32px; height: 32px; margin-bottom: 0.5rem; }

@media (min-width: 720px) {
  .news-toolbar:not(.news-toolbar-v2) { flex-direction: row; align-items: center; }
  .news-toolbar:not(.news-toolbar-v2) .news-search { flex: 1 1 320px; max-width: 420px; }
  .news-toolbar:not(.news-toolbar-v2) .news-filters { flex: 1 1 auto; justify-content: flex-end; }
}

/* Toolbar v2: search full width on top, filters below */
.news-toolbar-v2 {
  flex-direction: column;
  align-items: stretch;
  gap: 1.1rem;
  padding: 1.25rem 1.25rem 1.1rem;
}
.news-toolbar-v2 .news-search { width: 100%; max-width: none; }
.news-toolbar-v2 .news-search input { padding: 0.85rem 1rem 0.85rem 2.75rem; font-size: 0.97rem; }
.news-toolbar-v2 .news-filters {
  width: 100%;
  justify-content: flex-start;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
}


/* ============================================================================
   RESPONSIVE POLISH (mobile / tablet safety net)
   ============================================================================ */

/* Evita scroll horizontal por elementos extremos */
html { overflow-x: hidden; }

/* Imágenes y multimedia siempre fluidas */
img, video, iframe, svg { max-width: 100%; }
img, video { height: auto; }

/* Grid/flex items: permitir que el texto contraiga sin desbordar */
.section-head, .container > * { min-width: 0; }

/* Forzar 1 columna en cards de CTA inline-styled en móvil */
@media (max-width: 820px) {
  .snc-cta-card,
  .mapa-cta-card,
  div[style*="grid-template-columns"][class*="cta-card"] {
    grid-template-columns: 1fr !important;
  }
}

/* Footer: tarjetas de contacto y mapa fluidos */
.footer-map iframe, .footer-map { max-width: 100%; }

/* Áreas táctiles mínimas 44x44 en móvil */
@media (max-width: 640px) {
  .footer-social { gap: 0.85rem; flex-wrap: wrap; }
  .footer-social a { width: 44px; height: 44px; }
  .nav-toggle { width: 44px; height: 44px; align-items: center; justify-content: center; }
  .btn { min-height: 44px; }
}

/* Tablas / bloques largos: scroll interno en vez de romper layout */
.overflow-safe { max-width: 100%; overflow-x: auto; }

/* Hero principal: tipografía fluida y padding cómodo */
@media (max-width: 640px) {
  .form-page-hero { padding: 7rem 0 2.5rem; }
  section { padding: clamp(2.75rem, 9vw, 4.5rem) 0; }
}

/* Footer grid: una columna en móvil, dos en tablet */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand-col { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 1rem; align-items: flex-start; text-align: left; }
}

/* Hero grids inline: prevenir blowout horizontal */
[style*="grid-template-columns"] { min-width: 0; }
[style*="grid-template-columns"] > * { min-width: 0; }

/* Sin texto cortado en botones largos */
.btn { white-space: normal; word-break: keep-all; }

/* ============================================================================
   RESPONSIVE AUDIT · Lotes críticos (Inicio ecosistema, Historia timeline,
   Hero páginas detalle, Grids 3-col). Solo CSS, no toca desktop ≥1025px.
   ============================================================================ */

/* --- #1 Ecosistema 360º · Tablet (641-1024): mantener órbita pero ocultar
       textos de los nodos y agrandar el logo para que se vea nítido. ------ */
@media (max-width: 1024px) {
  #ecosistema .eco-node,
  #ecosistema .eco-node.eco-node--n1,
  #ecosistema .eco-node.eco-node--n2,
  #ecosistema .eco-node.eco-node--n3,
  #ecosistema .eco-node.eco-node--n4,
  #ecosistema .eco-node.eco-node--n5,
  #ecosistema .eco-node.eco-node--n6 {
    width: 84px !important;
    height: 84px !important;
    padding: 0.4rem !important;
    border-radius: 999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  #ecosistema .eco-node > * { display: none !important; }
  #ecosistema .eco-node > img,
  #ecosistema .eco-node img {
    display: block !important;
    width: 60px !important;
    max-width: 60px !important;
    height: 60px !important;
    margin: 0 !important;
    object-fit: contain;
  }
}
@media (max-width: 640px) {
  #ecosistema .eco-node,
  #ecosistema .eco-node.eco-node--n1,
  #ecosistema .eco-node.eco-node--n2,
  #ecosistema .eco-node.eco-node--n3,
  #ecosistema .eco-node.eco-node--n4,
  #ecosistema .eco-node.eco-node--n5,
  #ecosistema .eco-node.eco-node--n6 {
    width: 64px !important;
    height: 64px !important;
  }
  #ecosistema .eco-node img { width: 46px !important; max-width: 46px !important; height: 46px !important; }
}


/* --- #5 Historia · Timeline en tablet/móvil: el fondo del edificio interfiere
       con la lectura. Bajar opacidad y quitar cualquier ::after decorativo. -- */
@media (max-width: 1024px) {
  .history-bg { opacity: 0.06 !important; }
  #historia::after,
  .history-bg::after { content: none !important; background: none !important; }
}

/* --- #8 Hero páginas detalle (marcas + plataformas) · Móvil: pasar a columna
       con la imagen centrada arriba y el texto al 100% de ancho. ---------- */
@media (max-width: 767px) {
  .isogo-hero-grid,
  .alergenapp-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .isogo-hero-grid > div,
  .alergenapp-hero-grid > div { max-width: 100% !important; }
  .isogo-badge-wrap,
  .alergenapp-hero-grid > div:last-child { order: -1; }
  .isogo-badge-wrap img,
  .alergenapp-hero-grid img[alt] {
    width: 180px !important;
    height: 180px !important;
    margin: 0 auto;
  }
  .form-page-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
    line-height: 1.15;
    word-break: normal;
  }
  .form-page-hero .breadcrumb { flex-wrap: wrap; }

  /* Botones apilados a 100% sin texto truncado */
  .form-page-hero .btn { width: 100%; justify-content: center; }
}

/* --- Bento/grids de 3 columnas en páginas detalle: 1 col en móvil, 2 col
       en tablet. El inline `grid-template-columns: repeat(3,1fr)` exige !important. */
@media (max-width: 767px) {
  .bento[style*="repeat(3"],
  div[style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .bento[style*="repeat(3"],
  div[style*="grid-template-columns: repeat(3"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* --- Refuerzo item #2 (reveal on scroll opacity residual en móvil) -------- */
@media (max-width: 767px) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* --- #18 Casos · Logo hero grande en móvil ------------------------------- */
@media (max-width: 640px) {
  .page-hero-visual img { max-width: 160px !important; }
}

/* --- #23 Noticias · Reducir padding del bloque "Impacto para empresas" en
       móvil, y separar el chip "Destacado" del título "Alerta principal". - */
.section-head .chip { display: inline-block; margin-bottom: 0.9rem; }
.section-head .chip + h2 { margin-top: 0.25rem; }

@media (max-width: 640px) {
  .news-block { padding: 0.55rem 0.7rem; }
  .news-block p { font-size: 0.82rem; line-height: 1.5; }
  .news-block-label { font-size: 0.65rem; margin-bottom: 0.15rem; }
}

/* ============================================================================
   COOKIE CONSENT BANNER
   ============================================================================ */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: #ffffff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px rgba(11, 37, 69, 0.10);
  padding: 1.1rem 0;
  font-size: 0.95rem;
  color: var(--text);
}

.cookie-banner-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cookie-banner-text {
  flex: 1 1 auto;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 0.95rem;
}

.cookie-banner-link {
  color: var(--ink-tint);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-banner-link:hover {
  color: var(--ink);
}

.cookie-banner-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--t-fast);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
}

.cookie-btn-primary {
  background: var(--ink);
  color: #ffffff;
}

.cookie-btn-primary:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
}

.cookie-btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

.cookie-btn-secondary:hover {
  border-color: var(--ink);
  background: var(--bg-tint);
}

.cookie-btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: transparent;
}

.cookie-btn-ghost:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

@media (max-width: 900px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cookie-banner-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .cookie-btn {
    width: 100%;
  }

  .cookie-banner-actions {
    flex-direction: column;
    width: 100%;
  }
}

/* Cookie settings modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(11, 37, 69, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  backdrop-filter: blur(2px);
}

.cookie-modal {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: min(560px, 100%);
  max-height: calc(100vh - 2.5rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.cookie-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.cookie-modal-close {
  background: transparent;
  border: none;
  color: var(--text-soft);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast);
}

.cookie-modal-close:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.cookie-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
}

.cookie-modal-intro {
  margin: 0 0 1.25rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cookie-category {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  background: var(--bg-tint);
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-category-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.98rem;
}

.cookie-category-desc {
  color: var(--text-mute);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.cookie-toggle-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mute);
  white-space: nowrap;
}

.cookie-toggle {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--line);
  transition: background var(--t-fast);
  flex-shrink: 0;
}

.cookie-toggle-on {
  background: var(--ink);
}

.cookie-toggle-off {
  background: var(--line);
}

.cookie-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(11, 37, 69, 0.15);
  transition: transform var(--t-fast);
}

.cookie-toggle-on .cookie-toggle-knob {
  transform: translateX(20px);
}

.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--bg-tint);
}

@media (max-width: 480px) {
  .cookie-modal-footer {
    flex-direction: column-reverse;
  }

  .cookie-modal-footer .cookie-btn {
    width: 100%;
  }
}



