/* ═══════════════════════════════════════
   CONSULTORÍAS DEBIA SAS — STYLES
   Fuentes: Cormorant Garamond + DM Sans
   ═══════════════════════════════════════ */

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red-900: #4A0E0E;
  --red-800: #6B1414;
  --red-700: #8B1A1A;
  --red-600: #A52020;
  --red-400: #C94040;
  --red-200: #F0BBBB;
  --red-100: #F8E4E4;
  --red-50:  #FDF3F3;

  --ink:     #0F0F0F;
  --ink-80:  #1C1C1C;
  --ink-60:  #3A3A3A;
  --ink-40:  #6B6B6B;
  --ink-20:  #B0B0B0;
  --ink-10:  #E5E5E5;
  --ink-05:  #F5F5F5;
  --white:   #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.14);

  --nav-h: 84px;
  --section-pad: 100px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}
.reveal-up    { transform: translateY(36px); }
.reveal-left  { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.revealed {
  opacity: 1;
  transform: none;
}

/* ─── TYPOGRAPHY ─── */
.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--red-700);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 14px;
}
.section-title em {
  font-style: italic;
  color: var(--red-700);
}
.section-sub {
  font-size: 16px;
  color: var(--ink-40);
  line-height: 1.7;
  max-width: 540px;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .section-sub { margin: 0 auto; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--red-700);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 2px solid var(--white);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--red-100);
  color: var(--red-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn-primary.btn-dark {
  background: var(--red-700);
  color: var(--white);
  border-color: var(--red-700);
}
.btn-primary.btn-dark:hover { background: var(--red-800); border-color: var(--red-800); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.6); transform: translateY(-1px); }
.btn-arrow { transition: transform 0.2s; }
.btn-ghost:hover .btn-arrow { transform: translateX(4px); }

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-size: 14px;
  font-weight: 400;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost-light:hover { border-color: white; background: rgba(255,255,255,0.1); }

.btn-sm { font-size: 13px; padding: 9px 18px; }
.btn-lg { font-size: 15px; padding: 14px 32px; }

/* ─── NAVBAR ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  min-height: var(--nav-h);
  padding-top: 16px;
  padding-bottom: 16px;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--ink-10);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-img {
  height: 70px;
  width: auto;
  display: block;
}
.logo-mark {
  width: 36px; height: 36px;
  color: var(--white);
  flex-shrink: 0;
  transition: color 0.3s;
}
.nav.scrolled .logo-mark { color: var(--red-700); }
.logo-mark-light { color: var(--white) !important; }
.logo-text-group { display: flex; flex-direction: column; }
.logo-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1;
  transition: color 0.3s;
}
.nav.scrolled .logo-name { color: var(--ink); }
.logo-sub {
  font-size: 8px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.65);
  transition: color 0.3s;
}
.nav.scrolled .logo-sub { color: var(--ink-40); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }
.nav.scrolled .nav-link { color: var(--ink-40); }
.nav.scrolled .nav-link::after { background: var(--red-700); }
.nav.scrolled .nav-link:hover { color: var(--ink); }
.nav-cta {
  font-size: 13px;
  font-weight: 500;
  background: var(--white);
  color: var(--red-700);
  padding: 9px 20px;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  border: 2px solid var(--white);
}
.nav-cta:hover { background: var(--red-100); }
.nav.scrolled .nav-cta {
  background: var(--red-700);
  color: var(--white);
  border-color: var(--red-700);
}
.nav.scrolled .nav-cta:hover { background: var(--red-800); border-color: var(--red-800); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background 0.3s;
}
.nav.scrolled .nav-hamburger span { background: var(--ink); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  background: var(--red-800);
  padding: calc(var(--nav-h) + 60px) 24px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  top: -200px; right: -150px;
  background: radial-gradient(circle, rgba(200,40,40,0.35) 0%, transparent 70%);
}
.hero-orb-2 {
  width: 400px; height: 400px;
  bottom: 60px; left: -100px;
  background: radial-gradient(circle, rgba(120,10,10,0.4) 0%, transparent 70%);
}
.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1180px;
  width: 100%;
  flex: 1;
  padding-bottom: 40px;
}
.hero-left { flex: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 62px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 20px;
}
.hero-title em {
  font-style: italic;
  color: rgba(255,255,255,0.65);
}
.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* hero card stack */
.hero-right { flex: 0 0 340px; }
.hero-card-stack {
  position: relative;
  height: 340px;
}
.hcard {
  position: absolute;
  width: 280px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
}
.hcard-back {
  background: rgba(255,255,255,0.04);
  height: 260px;
  bottom: 0; right: 0;
  transform: rotate(6deg);
}
.hcard-mid {
  background: rgba(255,255,255,0.07);
  height: 280px;
  bottom: 10px; right: 10px;
  transform: rotate(3deg);
}
.hcard-front {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  height: 300px;
  bottom: 20px; right: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  animation: float-card 4s ease-in-out infinite;
}
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hcard-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hcard-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
}
.hcard-divider {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin-bottom: 12px;
}
.hcard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.hcard-key {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}
.hcard-val {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
}
.hcard-val.ok   { background: rgba(50,200,100,0.2); color: #7EEFAD; }
.hcard-val.warn { background: rgba(255,180,0,0.2); color: #FFD87E; }
.hcard-val.info { background: rgba(100,160,255,0.2); color: #9BC8FF; }
.hcard-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 10px;
  color: rgba(255,255,255,0.4);
}
.hcard-stamp {
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
}

/* ─── COVERAGE CARD ─── */
.coverage-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 22px;
  animation: float-card 6s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 340px;
  width: 100%;
}
.coverage-card-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.coverage-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.coverage-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}
.coverage-map-wrap {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}
.coverage-map-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}
.coverage-map-wrap svg path {
  fill: rgba(255,255,255,0.12);
  stroke: rgba(255,255,255,0.25);
  stroke-width: 1px;
}
.city-dot-wrap {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
}
.city-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7EEFAD;
  position: relative;
  z-index: 2;
}
.city-dot-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #7EEFAD;
  animation: ping 2s ease-out infinite;
  opacity: 0;
}
@keyframes ping {
  0%   { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}
.coverage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--font-body);
}
.pill-green {
  background: rgba(126,239,173,0.2);
  color: #7EEFAD;
}
.pill-white {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

/* hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1180px;
  width: 100%;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: auto;
  overflow: hidden;
}
.hstat {
  flex: 1;
  padding: 20px 24px;
  text-align: center;
}
.hstat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
}
.hstat-label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 3px;
}
.hstat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* ─── PILARES ─── */
.pilares {
  padding: var(--section-pad) 0;
  background: var(--ink-05);
}
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pilar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--ink-10);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.pilar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red-700);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.pilar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pilar-card:hover::before { transform: scaleX(1); }
.pilar-number {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 600;
  color: var(--ink-10);
  line-height: 1;
  margin-bottom: 12px;
  position: absolute;
  top: 16px; right: 24px;
}
.pilar-icon {
  width: 44px; height: 44px;
  color: var(--red-700);
  margin-bottom: 16px;
}
.pilar-icon svg { width: 100%; height: 100%; }
.pilar-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}
.pilar-text {
  font-size: 14px;
  color: var(--ink-40);
  line-height: 1.65;
}

/* ─── NIVELES ─── */
.niveles {
  padding: var(--section-pad) 0;
  background: var(--white);
}
.niveles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.nivel-card {
  background: var(--white);
  border: 1.5px solid var(--ink-10);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.nivel-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink-20);
}
.nivel-accent {
  position: absolute;
  top: 0; left: 28px; right: 28px;
  height: 2px;
  background: var(--ink-10);
  border-radius: 2px;
  transition: background 0.3s;
}
.nivel-card:hover .nivel-accent { background: var(--red-700); }
.nivel-featured {
  background: var(--ink-80);
  border-color: var(--ink-80);
}
.nivel-featured:hover { border-color: var(--ink-60); }
.nivel-featured .nivel-accent { background: var(--red-400); }
.nivel-featured .nivel-name,
.nivel-featured .nivel-tag,
.nivel-featured .nivel-desc,
.nivel-featured .nivel-list li { color: var(--white) !important; }
.nivel-featured .nivel-time { color: rgba(255,255,255,0.5) !important; }
.nivel-featured .nivel-list li::before { background: rgba(255,255,255,0.4) !important; }

.nivel-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--red-700);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.nivel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.nivel-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--red-700);
  text-transform: uppercase;
}
.nivel-time {
  font-size: 12px;
  color: var(--ink-40);
}
.nivel-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.nivel-desc {
  font-size: 13px;
  color: var(--ink-40);
  margin-bottom: 20px;
  line-height: 1.5;
}
.nivel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.nivel-list li {
  font-size: 13px;
  color: var(--ink-60);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}
.nivel-list li::before {
  content: '';
  display: block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red-700);
  flex-shrink: 0;
  margin-top: 5px;
}
.nivel-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--red-700);
  border: 1.5px solid var(--red-200);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  transition: all 0.2s;
}
.nivel-btn:hover { background: var(--red-50); border-color: var(--red-400); }
.nivel-btn-primary {
  background: var(--red-700);
  color: var(--white);
  border-color: var(--red-700);
}
.nivel-btn-primary:hover { background: var(--red-800); border-color: var(--red-800); }

/* ─── METODOLOGÍA + MÉTRICAS ─── */
.metodologia {
  background: #0F0F0F;
  padding: 100px 0;
}
.metod-eyebrow { color: var(--red-700) !important; }
.metod-title { color: var(--white); }
.metod-title em { color: var(--white); font-style: italic; }

.metod-inner {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 60px;
  align-items: start;
}
.metod-divider {
  background: rgba(255,255,255,0.08);
  align-self: stretch;
}

/* ── Steps (left) ── */
.metod-steps {
  position: relative;
  margin-top: 36px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.metod-line {
  position: absolute;
  left: 19px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: rgba(255,255,255,0.1);
  transform-origin: top center;
  transform: scaleY(0);
  transition: transform 1s ease 0.2s;
}
.metod-line.metod-line--visible {
  transform: scaleY(1);
}
.metod-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 0 0 32px 0;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.metod-step.metod-step--visible {
  opacity: 1;
  transform: none;
}
.metod-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.metod-step--done .metod-num {
  background: rgba(126,239,173,0.12);
  border: 1.5px solid rgba(126,239,173,0.3);
}
.metod-step--done .metod-num svg {
  width: 16px; height: 16px;
}
.metod-step--active .metod-num {
  background: var(--white);
  color: #0F0F0F;
  font-weight: 700;
}
.metod-step--pending .metod-num {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.3);
}
.metod-content strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 3px;
  font-family: var(--font-body);
}
.metod-content span {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-body);
}
.metod-step--pending .metod-content strong {
  color: rgba(255,255,255,0.35);
}

/* ── Metrics (right) ── */
.metod-right { padding-left: 60px; }
.metod-metrics {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 0;
}
.metod-metric-num {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 4px;
}
.metod-suffix, .metod-prefix {
  font-size: 32px;
  opacity: 0.7;
}
.metod-metric-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-body);
  margin: 0 0 10px;
  line-height: 1.5;
}
.metod-bar-wrap {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.metod-bar {
  height: 100%;
  width: 0;
  background: var(--red-700);
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
}
.metod-bar.metod-bar--animated {
  width: var(--bar-w);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .metod-inner {
    grid-template-columns: 1fr;
    gap: 56px 0;
  }
  .metod-divider { display: none; }
  .metod-right { padding-left: 0; }
}

/* ─── SECTOR ASEGURADOR ─── */
.asegurador {
  padding: var(--section-pad) 0;
  background: var(--ink-05);
  position: relative;
  overflow: hidden;
}
.aseg-bg-text {
  position: absolute;
  top: 50%; left: -40px;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 200px;
  font-weight: 600;
  color: rgba(0,0,0,0.04);
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}
.aseg-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.aseg-stats {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.aseg-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.aseg-stat-number {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.aseg-stat-label {
  font-size: 12px;
  color: var(--ink-60);
  line-height: 1.3;
}
.aseg-logo-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: var(--ink-60);
  background: var(--white);
  border: 1px solid var(--ink-10);
  border-radius: 20px;
  padding: 6px 14px;
  margin-right: 8px;
  margin-top: 8px;
}
.aseg-logos { margin-top: 28px; }
.aseg-logos-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 10px;
}
.aseg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.aseg-card {
  background: var(--white);
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.aseg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.aseg-card-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: var(--red-700);
  border-color: var(--red-700);
  gap: 14px;
}
.aseg-card-cta p { font-size: 14px; color: var(--white); font-weight: 400; }
.aseg-card-cta .btn-primary { background: var(--white); color: var(--red-700); border-color: var(--white); }
.aseg-icon-wrap {
  width: 36px; height: 36px;
  background: var(--red-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--red-700);
}
.aseg-icon-wrap svg { width: 18px; height: 18px; }
.aseg-card h4 { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.aseg-card p { font-size: 13px; line-height: 1.65; color: var(--ink-60); }
.aseg-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.aseg-list li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-60);
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.aseg-list li::before {
  content: "·";
  color: var(--red-700);
  font-size: 18px;
  line-height: 1.1;
  flex-shrink: 0;
}
.aseg-sub-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-700);
  margin-top: 10px;
  margin-bottom: 4px;
}
.aseg-sub-label:first-of-type { margin-top: 0; }
.aseg-cta-wrap {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-10);
}
.aseg-cta-wrap p {
  font-size: 14px;
  color: var(--ink-60);
  margin-bottom: 14px;
}


/* ─── SOAT SUBSECTION ─── */
.soat-subsection {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--ink-10);
}
.soat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.soat-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--red-700);
  margin: 0;
  line-height: 1;
}
.soat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.soat-card h4 { font-size: 14px; }
@media (max-width: 1100px) {
  .soat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .soat-grid { grid-template-columns: repeat(2, 1fr); }
  .soat-header { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ─── CHAT POPUP ─── */
.chat-popup {
  position: fixed;
  bottom: 90px;
  right: 28px;
  z-index: 199;
  width: 360px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.chat-popup.chat-popup--open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* chat window */
.chat-window {
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  height: 480px;
}
.chat-header {
  background: var(--red-800);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.chat-header-info { flex: 1; min-width: 0; }
.chat-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.chat-close:hover { background: rgba(255,255,255,0.22); }
.chat-close svg { width: 14px; height: 14px; }
.chat-avatar-wrap { position: relative; }
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-avatar svg { width: 20px; height: 20px; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.chat-online {
  position: absolute;
  bottom: 1px; right: 1px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #4CAF50;
  border: 2px solid var(--red-800);
}
.chat-name { font-size: 14px; font-weight: 500; color: white; }
.chat-status { font-size: 11px; color: rgba(255,255,255,0.6); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--ink-05);
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--ink-10); border-radius: 2px; }

.msg-bot, .msg-user {
  max-width: 82%;
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.55;
  animation: msg-in 0.25s ease;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.msg-bot {
  align-self: flex-start;
  background: var(--white);
  color: var(--ink);
  border-radius: 14px 14px 14px 3px;
  border: 1px solid var(--ink-10);
}
.msg-user {
  align-self: flex-end;
  background: var(--red-700);
  color: var(--white);
  border-radius: 14px 14px 3px 14px;
}
.msg-options {
  align-self: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 90%;
  animation: msg-in 0.25s ease;
}
.msg-opt {
  font-size: 12px;
  border: 1.5px solid var(--red-200);
  color: var(--red-700);
  background: var(--white);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.msg-opt:hover { background: var(--red-50); border-color: var(--red-400); }

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--ink-10);
  background: var(--white);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  height: 38px;
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-md);
  padding: 0 14px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ink-05);
  outline: none;
  transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--red-400); background: var(--white); }
.chat-send {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: var(--red-700);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}
.chat-send:hover { background: var(--red-800); transform: scale(1.05); }
.chat-send svg { width: 16px; height: 16px; }
.chat-typing {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--ink-10);
  border-radius: 14px 14px 14px 3px;
  padding: 12px 16px;
  display: flex;
  gap: 5px;
  animation: msg-in 0.25s ease;
}
.chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-20);
  animation: typing-dot 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ─── CARRUSEL CLIENTES ─── */
.clientes {
  padding: var(--section-pad) 0;
  background: var(--white);
  overflow: hidden;
}
.carousel-track-wrapper {
  position: relative;
  margin-top: 40px;
  overflow: hidden;
}
.carousel-fade-left,
.carousel-fade-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.carousel-fade-left  { left: 0;  background: linear-gradient(to right, var(--white), transparent); }
.carousel-fade-right { right: 0; background: linear-gradient(to left,  var(--white), transparent); }

.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: carousel-scroll 30s linear infinite;
}
.carousel-track:hover { animation-play-state: paused; }
@keyframes carousel-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.carousel-slide { flex-shrink: 0; }
.client-logo-card {
  background: var(--white);
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-md);
  padding: 20px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 72px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.client-logo-card:hover { border-color: var(--red-200); box-shadow: var(--shadow-sm); }
.client-logo-card span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-40);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.client-logo-card:hover span { color: var(--red-700); }

/* ─── TESTIMONIOS ─── */
.testimonios {
  padding: var(--section-pad) 0;
  background: var(--ink-05);
}
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.testi-card {
  background: var(--white);
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testi-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.testi-quote {
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 0.7;
  color: var(--red-100);
  user-select: none;
}
.testi-text {
  font-size: 14px;
  color: var(--ink-60);
  font-style: italic;
  line-height: 1.7;
  flex: 1;
  margin: 0;
}
.testi-sep {
  height: 1px;
  background: var(--ink-10);
}
.testi-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testi-stars {
  display: flex;
  gap: 3px;
}
.testi-stars svg {
  width: 14px; height: 14px;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red-100);
  color: var(--red-700);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testi-author strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-body);
}
.testi-author span {
  font-size: 12px;
  color: var(--ink-40);
  font-family: var(--font-body);
}
@media (max-width: 900px) {
  .testimonios-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
}

/* ─── CTA BAND ─── */
.cta-band {
  background: var(--red-800);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-band-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band-text { text-align: left; }
.cta-band-text h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 10px;
}
.cta-band-text h2 em { font-style: italic; color: rgba(255,255,255,0.65); }
.cta-band-text p { font-size: 15px; color: rgba(255,255,255,0.65); }
.cta-band-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ─── FOOTER ─── */
.footer { background: var(--ink); }
.footer-top {
  padding: 64px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-top-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand .logo-name { color: var(--white); }
.footer-brand .logo-sub  { color: rgba(255,255,255,0.35); }
.footer-brand .logo-mark { color: var(--white); }
.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 280px;
}
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
}
.social-link svg { width: 15px; height: 15px; }
.social-link:hover { background: var(--red-700); color: white; border-color: var(--red-700); }
.footer-links-group h5 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-links-group ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links-group a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-links-group a:hover { color: var(--white); }
.footer-bottom {
  padding: 18px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }
.footer-maker {
  text-align: center;
  padding: 10px 0 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
}
.footer-maker-link {
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer-maker-link:hover { color: rgba(255,255,255,0.7); }

/* ─── FOOTER TOGGLE (mobile only) ─── */
.footer-toggle { display: none; }

/* ─── FLOATING BOT ─── */
.bot-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--red-700);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 13px 20px 13px 14px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(139,26,26,0.4);
  transition: transform 0.2s, box-shadow 0.2s, padding 0.3s;
  font-family: var(--font-body);
}
.bot-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(139,26,26,0.5);
}
.bot-fab-icon { width: 26px; height: 26px; flex-shrink: 0; }
.bot-fab-icon svg { width: 100%; height: 100%; }
.bot-fab-label { font-size: 13px; font-weight: 500; white-space: nowrap; }
.bot-fab-pulse {
  position: absolute;
  top: -3px; right: -3px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #4CAF50;
  border: 2px solid var(--white);
  animation: fab-pulse 2s infinite;
}
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76,175,80,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(76,175,80,0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .aseg-inner { grid-template-columns: 1fr; gap: 48px; }
  .aseg-bg-text { display: none; }
  .footer-top-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero-content { flex-direction: column; gap: 40px; padding-bottom: 0; }
  .hero-right { display: none; }
  .niveles-grid,
  .pilares-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0 20px;
    box-shadow: var(--shadow-md);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-link {
    color: var(--ink-40) !important;
    padding: 12px 24px;
    border-radius: 0;
  }
  .nav-link::after { display: none; }
  .nav-link:hover { background: var(--ink-05); color: var(--ink) !important; }
  .nav-cta {
    margin: 8px 24px 0;
    text-align: center;
    background: var(--red-700) !important;
    color: white !important;
    border-color: var(--red-700) !important;
  }
  .nav-hamburger { display: flex; }

  .hero-stats {
    flex-wrap: wrap;
    border-radius: 0;
  }
  .hstat { flex: 0 0 50%; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .hstat-divider { display: none; }

  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-band-text { text-align: center; }
  .cta-band-actions { justify-content: center; }

  .footer-top-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }

  /* Footer colapsable mobile */
  .footer-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: var(--ink-90, #595959);
    color: var(--white);
    border: none;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.02em;
  }
  .footer-toggle-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 13px;
  }
  .footer-toggle[aria-expanded="true"] .footer-toggle-arrow {
    transform: rotate(180deg);
  }
  .footer-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .footer-collapsible.footer-collapsible--open {
    max-height: 1000px;
  }

  .bot-fab-label { display: none; }
  .bot-fab { padding: 14px; border-radius: 50%; }

  .chat-popup {
    right: 12px;
    bottom: 80px;
    width: calc(100vw - 24px);
    max-width: 360px;
  }
}

@media (max-width: 520px) {
  .niveles-grid,
  .pilares-grid { max-width: 100%; }
  .aseg-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { text-align: center; justify-content: center; }
}