/* =============================================================
   ABC CORREDORES DE SEGUROS — STYLESHEET CORPORATE LUXE
   Paleta: Cabecera y Footer Azul Marino · Cuerpo Blanco/Claro
   Norma ISO 31000 · SBS · Responsivo & Accesible
   ============================================================= */

:root {
  /* Fondos Corporativos */
  --header-bg:     #12111d;   /* Cabecera Azul Marino / Obsidian */
  --footer-bg:     #12111d;   /* Footer Azul Marino / Obsidian */
  
  --bg:            #ffffff;   /* Fondo Blanco Principal */
  --bg-2:          #f8fafc;   /* Fondo Claro Secundario (Slate) */
  --bg-3:          #ffffff;   /* Fondo Tarjetas Blancas */
  --bg-card-hover: #f1f5f9;   /* Hover Tarjetas */
  --bg-glass:      rgba(255, 255, 255, 0.92);
  --bg-glass-card: #ffffff;

  /* Colores Corporativos de Marca Oficiales */
  --slate-purple:  #565474;   /* Color corporativo 1 */
  --lavender:      #9A97C4;   /* Púrpura / Lavanda corporativo oficial ABC */
  --lavender-dark: #4c4873;   /* Lavanda de alto contraste para textos y títulos */
  --lavender-light:#f1f0f7;   /* Tinte suave para fondos y badges */
  --charcoal:      #1e293b;   /* Color corporativo 3 */
  --sage:          #778F54;   /* Verde Sabiduría corporativo oficial ABC */
  --sage-dark:     #3f4f29;   /* Verde olivo de alto contraste para textos y títulos */
  --sage-light:    #f2f6ee;   /* Tinte suave para fondos y badges */
  --gold-warm:     #fbcb99;   /* Color corporativo 5 oficial (Durazno/Champagne) — Manual de Marca */
  --gold-warm-hover: #f5bb7d; /* Estado hover del CTA, derivado del oficial */
  --gold:          #c9843f;   /* Acento de texto/ícono con contraste AA sobre blanco */
  --gold-bright:   #f3dab3;   /* Tinte claro para fondos y resplandores */
  --gold-glow:     rgba(251, 203, 153, 0.35);

  /* Tipografía de Alto Contraste */
  --ink:           #0f172a;   /* Texto principal oscuro para fondo blanco */
  --ink-soft:      #334155;   /* Texto secundario */
  --ink-mute:      #64748b;   /* Texto terciario / subtítulos */
  
  --line:          #e2e8f0;   /* Bordes y líneas suaves */
  --line-strong:   #cbd5e1;
  --line-gold:     rgba(180, 83, 9, 0.35);

  --danger:        #dc2626;
  --danger-bg:     rgba(220, 38, 38, 0.08);
  --success:       #16a34a;
  --success-bg:    rgba(22, 163, 74, 0.08);

  --serif:         "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sans:          "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce:   cubic-bezier(0.34, 1.56, 0.64, 1);
  
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --shadow-card:   0 4px 20px -2px rgba(15, 23, 42, 0.07);
  --shadow-glow:   0 0 30px -5px rgba(99, 102, 241, 0.12);
}

/* =============================================================
   Reset & Global Setup
   ============================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: clamp(75px, 12vw, 95px);
  overflow-x: hidden;
  max-width: 100vw;
}

section, [id] {
  scroll-margin-top: clamp(75px, 12vw, 95px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background-color: var(--bg);
  color: var(--ink-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4, h5 {
  text-wrap: balance;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
}
ul { list-style: none; }

::selection {
  background: var(--gold-warm);
  color: #ffffff;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: #ffffff;
  z-index: 99999;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(1280px, 92%);
  margin-inline: auto;
}

section {
  position: relative;
  padding-block: clamp(4.5rem, 7vw, 6.5rem);
}

/* Eyebrows & Section Headings */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--lavender), transparent);
}

.section-head {
  max-width: 72ch;
  margin-bottom: 3.5rem;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head.center .eyebrow {
  justify-content: center;
}
.section-head.center .eyebrow::before,
.section-head.center .eyebrow::after {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lavender));
}
.section-head.center .eyebrow::after {
  background: linear-gradient(90deg, var(--lavender), transparent);
}

.section-head h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-top: 0.5rem;
  color: var(--ink);
}
.section-head p {
  margin-top: 1.1rem;
  color: var(--ink-mute);
  font-size: 1.08rem;
  line-height: 1.6;
}

/* =============================================================
   Buttons & Micro-interactions
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
  transition: transform 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft), background 0.25s, border-color 0.25s, color 0.25s;
}

.btn-primary {
  background: var(--header-bg);
  color: #ffffff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(18, 17, 29, 0.2);
}
.btn-primary:hover {
  background: #252238;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(18, 17, 29, 0.3);
}

.hero .btn-primary {
  background: #ffffff;
  color: #12111d;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}
.hero .btn-primary:hover {
  background: #f1f5f9;
  color: #12111d;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid var(--line-strong);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  background: #f8fafc;
  border-color: #94a3b8;
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: #ffffff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}
.btn-block { width: 100%; }

/* =============================================================
   Navigation Header (Fondo Azul / Oscuro Corporativo)
   ============================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding-block: 0.45rem;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(18, 17, 29, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-block: 0.35rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

/* Recuadro con Fondo Blanco para el Logotipo */
.brand-logo-box {
  background: #ffffff;
  padding: 2px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  height: 58px;
  box-sizing: border-box;
}
.brand-logo-img {
  height: 52px;
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-tagline-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 0.85rem;
}
.brand-tagline-text {
  font-size: 0.75rem;
  font-style: italic;
  color: #d4d2e6;
  max-width: 25ch;
  line-height: 1.25;
  text-align: left;
}
.brand-sbs-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fbcb99;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: #e2e8f0;
  position: relative;
  padding-block: 0.25rem;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #fbcb99;
  transition: width 0.25s ease;
}
.nav-link:hover {
  color: #ffffff;
}
.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(248, 248, 252, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.3s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

/* Mobile Menu */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: rgba(18, 17, 29, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease-out);
}
.nav-mobile.open {
  transform: translateY(0);
}
.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}
.nav-mobile a {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: #f8f8fc;
}
.nav-mobile a:hover {
  color: #fbcb99;
}

/* =============================================================
   Hero Section (Fondo Blanco Corporativo & Grid 2 Columnas)
   ============================================================= */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 7.5rem;
  padding-bottom: 4rem;
  overflow: hidden;
  background: #ffffff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
  width: 100%;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.hero-inner {
  max-width: 100%;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.9rem;
  background: #f2f6ee;
  border: 1px solid rgba(119, 143, 84, 0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #3f4f29;
  margin-bottom: 1.15rem;
}
.hero-meta .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #778F54;
  box-shadow: 0 0 8px rgba(119, 143, 84, 0.6);
}

.hero-title {
  font-size: clamp(1.85rem, 3.1vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin-bottom: 1rem;
  font-family: var(--sans);
  font-weight: 700;
}
.hero-title em {
  font-style: italic;
  font-weight: 700;
  color: #778F54;
  -webkit-text-fill-color: initial;
  background: none;
}

.hero-sub {
  font-size: 0.96rem;
  line-height: 1.62;
  color: #334155;
  max-width: 620px;
  margin-bottom: 0.65rem;
}

.hero-motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: #4c4873;
  margin-bottom: 1.25rem;
  display: block;
  font-weight: 600;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  color: #1e293b;
}
.hero-badge svg {
  width: 15px;
  height: 15px;
  color: #778F54;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.hero-actions .btn {
  font-size: 0.88rem;
  padding: 0.65rem 1.25rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
}
.hero-stat span {
  display: block;
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 0.3rem;
  line-height: 1.3;
}

/* =============================================================
   Hero Slider de Imágenes (Rotación 4s con Efectos Random)
   ============================================================= */
.hero-slider-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid #e2e8f0;
  background: #0f172a;
}

@media (max-width: 768px) {
  .hero-slider-wrap {
    height: 350px;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s ease;
  will-change: transform, opacity, filter;
  overflow: hidden;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 4.5s ease-out;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide.active img {
  transform: scale(1.04);
}

/* Efectos de Transición Random */
.fx-fade-zoom {
  transform: scale(1.08);
}
.hero-slide.active.fx-fade-zoom {
  transform: scale(1);
}

.fx-slide-left {
  transform: translateX(45px);
}
.hero-slide.active.fx-slide-left {
  transform: translateX(0);
}

.fx-slide-up {
  transform: translateY(45px);
}
.hero-slide.active.fx-slide-up {
  transform: translateY(0);
}

.fx-scale-reveal {
  transform: scale(0.92);
}
.hero-slide.active.fx-scale-reveal {
  transform: scale(1);
}

.fx-soft-blur {
  filter: blur(8px);
  transform: scale(1.03);
}
.hero-slide.active.fx-soft-blur {
  filter: blur(0px);
  transform: scale(1);
}

/* Overlay & Controles del Slider */
.hero-slider-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.35) 60%, transparent 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-slider-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(119, 143, 84, 0.9);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.hero-slider-caption {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.hero-slider-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem;
}

.hero-slider-dots {
  display: flex;
  gap: 0.4rem;
}
.hero-slider-dot {
  width: 24px;
  height: 3.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}
.hero-slider-dot.active {
  background: #ffffff;
  width: 34px;
}

.hero-slider-nav-btns {
  display: flex;
  gap: 0.35rem;
}
.hero-slider-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}
.hero-slider-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}



/* =============================================================
   Trust Strip / Insurers Marquee
   ============================================================= */
.trust-strip {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
  padding-block: 1.25rem;
  position: relative;
  overflow: hidden;
}
.trust-strip::before,
.trust-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.trust-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-2), transparent);
}
.trust-strip::after {
  right: 0;
  background: linear-gradient(90deg, transparent, var(--bg-2));
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marqueeScroll 35s linear infinite;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  opacity: 0.9;
}
.marquee-dot {
  color: #3b82f6;
  opacity: 0.8;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =============================================================
   Manifesto & Authority Section (Fondo Blanco)
   ============================================================= */
.manifesto {
  background: #ffffff;
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.manifesto-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.manifesto-pill {
  padding: 1.25rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.manifesto-pill h4 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.manifesto-pill p {
  font-size: 0.88rem;
  color: var(--ink-mute);
  line-height: 1.5;
}

.manifesto-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.manifesto-figure img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}
.manifesto-figure-card {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  padding: 1.25rem;
  background: rgba(18, 17, 29, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #ffffff;
}
.manifesto-figure-card strong {
  display: block;
  color: #fbcb99;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.manifesto-figure-card span {
  font-size: 0.82rem;
  color: #e2e8f0;
}

/* =============================================================
   Consultoría de Riesgos (Norma ISO 31000)
   ============================================================= */
.risk-consulting-section {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.iso-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.risk-consulting-intro {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.8rem;
}
.risk-consulting-subintro {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.risk-consulting-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  margin-top: 3rem;
}
.risk-pillars-list {
  display: grid;
  gap: 1.25rem;
}
.risk-pillar-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.risk-pillar-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
}
.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pillar-icon-box svg {
  width: 24px;
  height: 24px;
}
.pillar-content h3 {
  font-size: 1.12rem;
  color: #0f172a;
  margin-bottom: 0.4rem;
  font-family: var(--sans);
  font-weight: 700;
}
.pillar-content p {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.55;
}

.risk-consulting-media {
  position: relative;
}
.risk-graphic-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}
.risk-img-wrapper {
  position: relative;
  background: #ffffff;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.risk-img-wrapper img {
  width: 100%;
  height: auto;
  max-width: 580px;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.3s ease;
}
.risk-overlay-tag {
  display: none;
}
.risk-graphic-caption {
  padding: 1.5rem;
}
.risk-statement-quote {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  border-left: 3.5px solid var(--sage);
  padding-left: 1rem;
}
.risk-graphic-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.risk-mini-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

/* =============================================================
   Matriz de Soluciones (Intermediación de Seguros)
   ============================================================= */
#soluciones {
  background: #ffffff;
}
.solutions-tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}
.solutions-tabs {
  display: inline-flex;
  padding: 0.35rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  gap: 0.35rem;
}
.solutions-tab {
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-mute);
  transition: all 0.25s ease;
}
.solutions-tab[aria-selected="true"] {
  background: #12111d;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(18, 17, 29, 0.25);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.solution-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s var(--ease-soft), border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}
.solution-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lavender), var(--gold-warm));
  opacity: 0;
  transition: opacity 0.3s;
}
.solution-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
.solution-card:hover::before {
  opacity: 1;
}

.solution-header {
  margin-bottom: 1.25rem;
}
.solution-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  min-height: 46px;
}
.solution-icon {
  font-size: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-bottom: 0;
  flex-shrink: 0;
}
.solution-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage);
  text-align: right;
  line-height: 1.25;
  max-width: 165px;
}
.solution-card h3 {
  font-size: 1.28rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
  line-height: 1.3;
  min-height: 3.3rem;
  display: flex;
  align-items: flex-start;
}
.solution-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.solution-benefits {
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.solution-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.solution-benefit-item svg {
  width: 14px;
  height: 14px;
  color: var(--sage);
  flex-shrink: 0;
  margin-top: 3px;
}
.solution-cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e40af;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s, color 0.2s;
}
.solution-cta:hover {
  color: #12111d;
  gap: 0.65rem;
}

/* =============================================================
   Centro de Inteligencia (20 Guías Técnicas)
   ============================================================= */
.knowledge-hub {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.hub-controls {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hub-search-bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hub-search-bar:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.hub-search-bar svg {
  width: 20px;
  height: 20px;
  color: #64748b;
  margin-right: 0.75rem;
  flex-shrink: 0;
}
.hub-search-input {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 1rem;
  font-family: var(--sans);
  outline: none;
}
.hub-search-input::placeholder {
  color: var(--ink-mute);
}

.hub-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hub-target-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hub-target-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: all 0.2s ease;
}
.hub-target-btn.active {
  background: #12111d;
  color: #ffffff;
  border-color: #12111d;
}

.hub-series-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}
.hub-serie-pill {
  white-space: nowrap;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}
.hub-serie-pill:hover {
  background: #e2e8f0;
  color: var(--ink);
}
.hub-serie-pill.active {
  background: var(--sage);
  border-color: var(--sage);
  color: #ffffff;
}

.guias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.guia-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s var(--ease-soft);
  position: relative;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.guia-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.guia-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.guia-num {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sage);
  white-space: nowrap;
  flex-shrink: 0;
}
.guia-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid var(--line);
}
.guia-badge.public {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.guia-badge.private {
  background: #fffbeb;
  color: var(--gold);
  border-color: #fde68a;
}

.guia-serie-label {
  font-size: 0.75rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.guia-title {
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.guia-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4338ca;
  background: #e0e7ff;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.guia-summary {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guia-actions {
  display: flex;
  gap: 0.6rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

/* =============================================================
   Simulador de Infraseguro & Regla Proporcional
   ============================================================= */
.simulator-section {
  background: #ffffff;
  position: relative;
}

.simulator-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.sim-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sim-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sim-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.sim-label-row label {
  flex: 1 1 200px;
  line-height: 1.35;
  font-weight: 600;
}
.sim-label-row strong {
  color: var(--sage);
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
}
.sim-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: transparent;
  outline: none;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  cursor: pointer;
}
.sim-range:focus-visible {
  outline: none;
}
/* WebKit (Chrome, Safari, Edge, Android) Track */
.sim-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  background: #cbd5e1;
  border-radius: 999px;
  border: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}
/* WebKit Thumb */
.sim-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sage);
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  margin-top: -7px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.sim-range:hover::-webkit-slider-thumb,
.sim-range:active::-webkit-slider-thumb {
  transform: scale(1.18);
  background: var(--sage-dark);
}
/* Firefox Track */
.sim-range::-moz-range-track {
  width: 100%;
  height: 8px;
  background: #cbd5e1;
  border-radius: 999px;
  border: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}
/* Firefox Thumb */
.sim-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sage);
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}
.sim-range:hover::-moz-range-thumb,
.sim-range:active::-moz-range-thumb {
  transform: scale(1.18);
  background: var(--sage-dark);
}

.sim-results {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.sim-metric-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.sim-metric-card span {
  font-size: 0.8rem;
  color: var(--ink-mute);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sim-metric-card strong {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--ink);
  line-height: 1.1;
}
.sim-metric-card.danger {
  border-color: #fca5a5;
  background: #fff5f5;
}
.sim-alert {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 0.85rem;
  line-height: 1.45;
}

/* =============================================================
   Evaluador de Brechas con IA
   ============================================================= */
#evaluador {
  background: var(--bg-2);
}

.evaluator {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.eval-profiles {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.eval-profile {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}
.eval-profile[aria-pressed="true"] {
  background: #12111d;
  color: #ffffff;
  border-color: #12111d;
  box-shadow: 0 4px 12px rgba(18, 17, 29, 0.25);
}

.eval-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  max-width: 100%;
}
.field input, .field select, .field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger) !important;
  background: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}
.field-error-msg {
  display: block;
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.eval-drop {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  cursor: pointer;
  height: 100%;
  min-height: 220px;
  transition: all 0.2s ease;
}
.eval-drop:hover, .eval-drop:focus {
  border-color: #3b82f6;
  background: #eff6ff;
}
.eval-drop svg {
  width: 44px;
  height: 44px;
  color: #64748b;
  margin-bottom: 0.75rem;
}
.eval-drop span {
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 260px;
}

.eval-loading {
  display: none;
  padding: 1.5rem;
  text-align: center;
  color: #3b82f6;
  font-weight: 600;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}
.eval-loading.active {
  display: flex;
}
.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.eval-result {
  display: none;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.eval-result.active {
  display: block;
}

.eval-gauge-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.eval-gauge {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}
.eval-gauge svg {
  transform: rotate(-90deg);
}
.eval-gauge circle.track {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 8;
}
.eval-gauge circle.fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}
.eval-gauge-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.eval-findings {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}
.eval-finding {
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #dc2626;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.eval-finding:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}
.eval-finding-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.5rem;
}
.eval-finding-text {
  font-size: 0.95rem;
  color: #0f172a;
  line-height: 1.6;
  font-weight: 500;
}

.eval-report-card {
  background: #ffffff;
  border: 1.5px solid #778F54;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  margin-top: 2rem;
  box-shadow: 0 10px 30px rgba(119, 143, 84, 0.12);
}
.eval-report-header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}
.eval-report-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}
.eval-report-header h4 {
  font-size: 1.35rem;
  color: #0f172a;
  font-family: var(--sans);
  font-weight: 800;
  margin: 0.2rem 0 0.4rem;
}
.eval-report-body {
  font-size: 0.95rem;
  color: #1e293b;
  line-height: 1.65;
}
.eval-report-body p {
  margin-bottom: 1rem;
}
.eval-report-body strong {
  color: #0f172a;
  font-weight: 700;
}
.eval-report-list {
  margin: 0.5rem 0 1rem 1.25rem;
  padding: 0;
  color: #1e293b;
}
.eval-report-list li {
  margin-bottom: 0.35rem;
}
.eval-report-footer {
  border-top: 1px solid #e2e8f0;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.55;
}

.eval-blur {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  opacity: 0.6;
}
.eval-gate {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  margin-top: -3.5rem;
  position: relative;
  z-index: 5;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.1);
}
.eval-gate p {
  color: #0f172a;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.eval-disclaimer {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 1.5rem;
  text-align: center;
}

/* =============================================================
   Diferencial en Siniestros & Protocolo Maestro (Fondo Blanco)
   ============================================================= */
#diferencial {
  background: #ffffff;
}
.claim-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.claim-step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}
.claim-step-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--lavender-dark);
  margin-bottom: 0.75rem;
}
.claim-step h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.claim-step p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* =============================================================
   Testimonios y Casos de Éxito
   ============================================================= */
#casos {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.testi-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testi-quote {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testi-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
}
.testi-author span {
  font-size: 0.8rem;
  color: var(--ink-mute);
}

/* =============================================================
   Preguntas Frecuentes (FAQ)
   ============================================================= */
#faq {
  background: #ffffff;
}
.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 1rem;
}
.faq-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.faq-q {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q svg {
  width: 20px;
  height: 20px;
  color: #1e40af;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-q svg {
  transform: rotate(180deg);
}
.faq-a {
  display: none;
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.faq-item.open .faq-a {
  display: block;
}

/* =============================================================
   Formulario VIP y Contacto
   ============================================================= */
#contacto {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.form-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.form-panel > div {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
.form-panel form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.field-row .field {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.form-panel .btn,
.form-panel button[type="submit"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: normal;
  word-break: break-word;
}
.form-success {
  display: none;
  padding: 2rem;
  text-align: center;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
}
.form-success.active {
  display: block;
}

/* =============================================================
   Footer (Fondo Azul Marino / Oscuro Corporativo)
   ============================================================= */
.footer {
  background: var(--footer-bg);
  color: #cbd5e1;
  padding-block: 5rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
}
.footer p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #94a3b8;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer ul {
  display: grid;
  gap: 0.6rem;
}
.footer a {
  font-size: 0.88rem;
  color: #cbd5e1;
  transition: color 0.2s ease;
}
.footer a:hover {
  color: #fbcb99;
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* =============================================================
   Modales & Interacción
   ============================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 17, 29, 0.85);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-backdrop.open,
.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  color: var(--ink-soft);
}
.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--ink-soft);
  transition: background 0.2s;
}
.modal-close:hover {
  background: #e2e8f0;
  color: var(--ink);
}
.modal-guia-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1e40af;
}
.modal-guia-title {
  font-size: 1.45rem;
  color: var(--ink);
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
}
.modal-guia-meta {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.modal-guia-meta span {
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  color: #475569;
}
.modal-guia-points {
  margin-block: 1.5rem;
  padding: 1.25rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.modal-download-box {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

[data-lead-gate-modal] {
  z-index: 10001;
}
.modal-card-lead {
  max-width: 580px;
}
.lead-gate-badge {
  display: inline-flex;
  margin-bottom: 0.8rem;
}
.lead-gate-badge span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.lead-gate-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--ink-mute);
  margin-top: 0.85rem;
}

/* =============================================================
   Chat Widget con IA (ABC Risk Advisor)
   ============================================================= */
.chat-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #12111d;
  color: #fbcb99;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 28px rgba(18, 17, 29, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9990;
  transition: transform 0.3s ease;
}
.chat-fab:hover {
  transform: scale(1.08);
}
.chat-fab svg {
  width: 28px;
  height: 28px;
}

.chat-panel {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 380px;
  height: 540px;
  max-height: calc(100vh - 8rem);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  z-index: 9991;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s var(--ease-out);
}
.chat-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.chat-head {
  padding: 1rem 1.25rem;
  background: #12111d;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chat-head-avatar {
  font-size: 1.5rem;
}
.chat-head strong {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
}
.chat-head span {
  font-size: 0.75rem;
  color: #4ade80;
}
.chat-body {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #f8fafc;
}
.chat-msg {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 85%;
}
.chat-msg.bot {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  align-self: flex-start;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.chat-msg.user {
  background: #12111d;
  color: #ffffff;
  align-self: flex-end;
}
.chat-suggestions {
  padding: 0.65rem 1rem;
  background: #ffffff;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.chat-suggestion {
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  color: var(--ink-soft);
  text-align: left;
  border: 1px solid var(--line);
  transition: background 0.2s;
}
.chat-suggestion:hover {
  background: #e2e8f0;
  color: var(--ink);
}
.chat-foot {
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.5rem;
}
.chat-foot input {
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-size: 0.88rem;
  font-family: var(--sans);
  color: var(--ink);
  outline: none;
}
.chat-foot input:focus {
  border-color: #3b82f6;
}
.chat-foot button {
  background: #12111d;
  color: #ffffff;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================================
   Responsive Breakpoints & Mobile Optimization
   ============================================================= */
@media (max-width: 1024px) {
  .manifesto-grid,
  .risk-consulting-grid,
  .simulator-card,
  .eval-body,
  .form-panel {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .simulator-card {
    padding: clamp(1.75rem, 3.5vw, 2.5rem);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav {
    padding-block: 0.65rem;
  }
  .nav-links { display: none; }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .brand-logo-img {
    height: 38px;
  }
  .brand-logo-box {
    padding: 5px 10px;
  }
  .brand-tagline-text {
    font-size: 0.7rem;
    max-width: 20ch;
  }
  .brand-sbs-badge {
    font-size: 0.62rem;
  }

  /* Botones Fluidos y Anti-desborde */
  .btn {
    white-space: normal !important;
    text-align: center;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: break-word;
    line-height: 1.35;
    padding: 0.85rem clamp(1rem, 3.5vw, 1.5rem) !important;
    font-size: clamp(0.9rem, 2.8vw, 1rem) !important;
  }
  .btn-block {
    width: 100%;
    display: flex;
  }

  /* Tarjeta y Métricas del Simulador */
  .simulator-card {
    padding: 1.25rem 1rem !important;
    border-radius: var(--radius-lg);
    gap: 1.5rem !important;
  }
  .sim-inputs {
    gap: 1.25rem;
  }
  .sim-results {
    padding: 1.25rem 1rem !important;
    gap: 1rem;
    border-radius: var(--radius-md);
  }
  .sim-metric-card {
    padding: 0.85rem 1rem;
  }
  .sim-metric-card span {
    font-size: 0.72rem;
    line-height: 1.25;
  }
  .sim-metric-card strong {
    font-size: clamp(1.25rem, 4.5vw, 1.5rem);
    word-break: break-word;
  }
  .sim-alert {
    padding: 0.85rem;
    font-size: 0.82rem;
    word-break: break-word;
  }
  .sim-label-row {
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
  }
  .sim-label-row label {
    flex: 1 1 180px;
    font-size: 0.88rem;
  }
  .sim-label-row strong {
    font-size: 0.98rem;
  }

  /* Secciones y Tipografía */
  section {
    padding-block: clamp(3rem, 6vw, 4.5rem);
  }
  .section-head {
    margin-bottom: 2.25rem;
  }
  .section-head h2 {
    font-size: clamp(1.65rem, 4.5vw, 2.2rem);
  }
  .form-panel {
    padding: clamp(1.25rem, 4vw, 1.75rem) clamp(1rem, 3.5vw, 1.5rem) !important;
    gap: 1.75rem !important;
    border-radius: var(--radius-lg);
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .manifesto-pills {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: clamp(1.75rem, 5vw, 2.3rem);
  }
  .chat-panel {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: 5.25rem;
  }
}

@media (max-width: 576px) {
  /* Cabecera Ultra-compacta */
  .brand-tagline-text {
    display: none;
  }
  .brand-tagline-wrap {
    border-left: none;
    padding-left: 0.35rem;
  }
  .brand-sbs-badge {
    font-size: 0.6rem;
    letter-spacing: 0.02em;
  }
  .brand-mark {
    gap: 0.5rem;
  }
  .brand-logo-img {
    height: 34px;
  }
  .brand-logo-box {
    padding: 4px 8px;
  }
  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  /* Contenedores sin desborde horizontal */
  .container {
    width: calc(100% - 1.5rem);
    margin-inline: auto;
  }
  .form-panel {
    padding: 1.25rem 0.95rem !important;
  }

  /* Evaluador de Riesgos */
  .evaluator {
    padding: 1.25rem 1rem !important;
  }
  .eval-profiles {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .eval-profile-btn {
    flex: 1 1 calc(50% - 0.5rem);
    font-size: 0.8rem;
    padding: 0.5rem 0.65rem;
  }

  /* Forzar columnas únicas en grillas dinámicas */
  [style*="minmax(280px"] {
    grid-template-columns: 1fr !important;
  }

  /* Padding superior en páginas con cabecera fija */
  main[style*="padding-top"] {
    padding-top: clamp(4.5rem, 12vw, 5.5rem) !important;
  }
}
