/* ==========================================================================
   1. VARIABLES GLOBALES Y RESET
   ========================================================================== */
:root {
  --navy: #042759;
  --noche: #041533;
  --azul-control: #0074CC;
  --azul-tint: #BCE4FA;
  --emerald: #16A442;
  --emerald-dark: #265F5B;
  --verde-bright: #25D266;
  --verde-tint: #DBFBE6;
  --violet: #522583;
  --violet-soft: #8968AA;
  --violet-bg: #E8E6F4;
  --amber: #F2B532;
  --red: #F3553F;
  --warm: #FFF7B2;
  --warm-tint: #FFF7B2;
  --ink: #042759;
  --muted: #6C8A99;
  --muted-light: #93A2B7;
  --bg: #F4F5F6;
  --card: #FFFFFF;
  --border: #CAD4E0;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
input, select, textarea, button { font-family: inherit; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito Sans', 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
section { padding: 76px 24px; }
.wrap { max-width: 1140px; margin: 0 auto; }
a { color: inherit; }

.footer-link-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.footer-link-button:hover,
.footer-link-button:focus-visible {
  text-decoration: underline;
}



/* ==========================================================================
   1.1. MENU RESPONSIVO Y BOTONES
   ========================================================================== */
/* Aseguramos que el nav-inner tenga posición relativa para el menú absoluto de móvil */
.nav-inner {
  position: relative;
}

/* Ocultamos el botón por defecto en escritorio */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 30px; /* Hazlo grande y visible */
  cursor: pointer;
  color: #091733; /* El color oscuro de tu logo */
  padding: 0;
  line-height: 1;
}

.nav-links a {
  text-decoration: none;
  /* ... tus otros estilos de enlaces ... */
  position: relative; /* Necesario para el efecto de subrayado */
}

/* Efecto de subrayado para el enlace activo */
.nav-links a.activo {
  color: #15a24a; /* Un verde tomado de tu logo, cambialo a gusto */
  font-weight: 600;
}

/* La línea de subrayado */
.nav-links a.activo::after {
  content: '';
  position: absolute;
  bottom: -5px; /* Qué tan separada está la línea del texto */
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #15a24a; /* Color de la línea */
  border-radius: 2px;
}

/* 1. Evitamos que la línea de subrayado aparezca en los botones activos */
.nav-links a.btn.activo::after {
  display: none;
}

/* 2. Resaltamos el botón Amber cuando está activo (el usuario está en esa sección) */
.nav-links a.btn-amber.activo {
  background-color: #d97706; /* Un tono más oscuro o diferente de tu botón ámbar actual */
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.2); /* Efecto de botón presionado */
  border: 2px solid #091733; /* Un borde del color de tu logo para destacarlo */
  font-weight: bold;
  color: #ffffff;
}



/* ==========================================================================
   2. COMPONENTES Y BOTONES
   ========================================================================== */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(22, 164, 66, .12); color: var(--emerald-dark);
  font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.tag.violet { background: rgba(82, 37, 131, .1); color: var(--violet); }
.tag .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 4px rgba(242, 181, 50, .25); animation: pulse-amber 2s infinite;
}
@keyframes pulse-amber {
  0% { box-shadow: 0 0 0 0 rgba(242, 181, 50, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(242, 181, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 181, 50, 0); }
}

.sec-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--navy); text-align: center; margin-bottom: 12px;
}

.sec-subtitle {
  font-size: clamp(1.2rem, 3.5vw, 2.4rem); font-weight: 700; color: var(--navy);
  margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center;
}
.sec-sub { color: var(--muted); max-width: 760px; margin: 0 auto 48px; font-size: 1.05rem; text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 12px; font-weight: 700; font-size: 1rem;
  text-decoration: none; transition: color .2s, background .2s, transform .15s, box-shadow .15s;
  cursor: pointer; border: none; position: relative;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--emerald); color: #fff; box-shadow: 0 8px 24px rgba(22, 164, 66, .35); }
.btn-primary:hover { background: var(--emerald-dark); box-shadow: 0 12px 30px rgba(22, 164, 66, .45); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-violet { background: var(--violet); color: #fff; box-shadow: 0 8px 24px rgba(82, 37, 131, .3); }
.btn-outline { background: transparent; color: var(--azul-control); border: 2px solid var(--azul-control); }
.btn-outline:hover { background: var(--azul-control); color: #fff; }
.btn-amber { background: var(--amber); color: var(--noche); box-shadow: 0 10px 26px rgba(242, 181, 50, .35); }
.btn-amber:hover { background: #F0A500; box-shadow: 0 12px 30px rgba(242, 181, 50, .45); }

.btn-outline-green {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 12px 20px; font-size: 0.9rem; font-weight: 700; color: var(--emerald);
  background: rgba(22, 164, 66, 0.05); border: 1.5px solid var(--emerald); border-radius: 12px;
  text-decoration: none !important; cursor: pointer; transition: all 0.25s ease-in-out; box-shadow: 0 2px 8px rgba(22, 164, 66, 0.1);
}
.btn-outline-green:hover { background: var(--emerald); color: #ffffff; box-shadow: 0 6px 20px rgba(22, 164, 66, 0.35); transform: translateY(-2px); }
.btn-outline-green .btn-arrow { transition: transform 0.25s ease; }
.btn-outline-green:hover .btn-arrow { transform: translateX(4px); }

/* Tooltips */
[data-tooltip] { position: relative; cursor: help; }
li:has([data-tooltip]:hover), [data-tooltip]:hover { z-index: 9999 !important; }
[data-tooltip]::after {
  content: attr(data-tooltip); position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%);
  background: #042759; color: #ffffff; padding: 8px 12px; border-radius: 8px; font-size: 0.78rem; font-weight: 500;
  line-height: 1.4; width: 220px; text-align: center; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, transform 0.2s ease; pointer-events: none; z-index: 9999;
}
[data-tooltip]:hover::after { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(-4px); }

/* Floating WA */
#wa {
  position: fixed; bottom: 24px; right: 24px; z-index: 60; color: #fff;
  width: 58px; height: 58px; border-radius: 50%; background: #25D266;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 210, 102, .45); text-decoration: none;
  transition: transform 0.2s, background 0.2s; animation: pulse 2s infinite;
}
#wa:hover { background: #1EBE5D; transform: scale(1.05); animation: none; }
#wa svg { width: 28px; height: 28px; fill: #fff; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 210, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 210, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 210, 102, 0); }
}

/* Nav & Topband */
.stickytop { position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--border), 0 6px 20px rgba(4, 21, 51, .06); }
[id] { scroll-margin-top: 112px; }
nav { background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); padding: 10px 24px; }
.nav-inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { text-decoration: none; display: flex; align-items: center; color: var(--ink); }
.logo-full { height: 48px; width: auto; display: block; }
.logo-svg.foot { height: 52px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600; transition: color .2s; text-underline-offset: 4px; }
.nav-links a:not(.btn):hover { color: var(--navy); text-decoration: underline; }
.nav-links a.hl { color: var(--violet); }
.nav-links .btn { padding: 8px 18px; font-size: 0.9rem; }

.promo-bar {
  background: linear-gradient(90deg, var(--navy), var(--emerald)); color: #fff;
  padding: 7px 24px; display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; text-align: center; box-shadow: 0 4px 12px rgba(4, 21, 51, .15);
}
.promo-bar p { margin: 0; font-weight: 700; font-size: .95rem; }
.promo-bar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  color: var(--warm-tint);
  text-decoration: underline;
  font-weight: 800;
  transition: color .2s;
}
.promo-bar-cta:hover { color: #fff; }

/* ==========================================================================
   3. HEROES Y ENCABEZADOS
   ========================================================================== */
.topband { position: relative; background: #fff; overflow: hidden; }
.topband .ondas { position: absolute; left: -12%; width: 124%; height: auto; pointer-events: none; z-index: 0; opacity: .8; }
.topband .ondas-b { bottom: 70px; animation: ondaB 22s ease-in-out infinite alternate; }
@keyframes ondaB { from { transform: translate3d(0, 0, 0) scaleY(-1); } to { transform: translate3d(-4%, -12px, 0) scaleY(-1); } }

.hero { background: transparent; color: var(--ink); padding: 72px 24px 66px; position: relative; overflow: hidden; }

/* Hero Principal Landing (2 Columnas) */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content {
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  z-index: 2;
}

.hero-visual {
  order: 2;
  position: relative;
  isolation: isolate;
  z-index: 1;
  width: calc(100% + 180px);
  margin-left: -80px;
  clip-path: inset(0 100px 0 0);
}
.hero-visual::before {
  display: none;
}
.hero .tag { margin-bottom: 20px; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.4rem, 4vw, 3.8rem); font-weight: 900; margin-bottom: 20px; line-height: 1.1; color: var(--navy); letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--emerald-dark); }
.hero p.sub { font-size: 1.15rem; color: var(--muted); max-width: 600px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

/* Hero Páginas Legales (1 Columna Centrada) */
.hero-legal { background: transparent; color: var(--ink); padding: 72px 24px 66px; position: relative; overflow: hidden; }
.hero-legal .hero-inner {
  grid-template-columns: 1fr !important;
  justify-content: center !important;
}

.hero-legal .hero-content {
  align-items: center !important;
  text-align: center !important;
  margin: 0 auto !important;
  max-width: 800px;
}




.hero-legal .hero-content .tag,
.hero-legal .hero-content h1,
.hero-legal .hero-content .sub {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.hero-legal .tag { margin-top: 50px; margin-bottom: 20px; text-transform: uppercase; }
.hero-legal h1 { font-size: clamp(2.4rem, 4vw, 3.8rem); font-weight: 900; margin-bottom: 20px; line-height: 1.1; color: var(--navy); letter-spacing: -0.02em; }
.hero-legal h1 em { font-style: normal; color: var(--emerald-dark); }
.hero-legal p.sub { font-size: 1.15rem; color: var(--muted); max-width: 600px; margin-bottom: 34px; }
.hero-legal-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

/* Hero Aliados Subpage */
.hero-section { background: linear-gradient(135deg, var(--azul-control) 0%, var(--emerald) 100%); padding: 120px 24px 80px; }
.hero-center { text-align: center; max-width: 900px; margin: 0 auto; }
.hero-center h1 { font-size: clamp(2.2rem, 4vw, 3.8rem); font-weight: 900; color: #fff; margin-bottom: 24px; line-height: 1.1; letter-spacing: -0.02em; }
.hero-center p.sub { font-size: 1.2rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 40px; line-height: 1.6; max-width: 760px; margin-left: auto; margin-right: auto; }
.hero-center .tag { background: rgba(255, 255, 255, 0.15); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.hero-center .hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-section .btn-primary { background: #fff; color: var(--navy); box-shadow: 0 8px 24px rgba(4, 21, 51, 0.15); }
.hero-section .btn-primary:hover { background: var(--bg); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(4, 21, 51, 0.25); color: var(--navy); }
.hero-section .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.hero-section .btn-outline:hover { background: #fff; color: var(--azul-control); }

/* Hero Fundadores Badges */
.trust-badge-hero { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; background: #ffffff; border: 1px solid rgba(0, 116, 204, 0.2); box-shadow: 0 4px 16px rgba(4, 21, 51, 0.06); padding: 12px 24px; border-radius: 999px; margin-top: 32px; font-size: .85rem; font-weight: 700; color: var(--navy); position: relative; z-index: 10; }
.trust-badge-hero span { display: flex; align-items: center; gap: 6px; }
.trust-badge-hero svg { width: 16px; height: 16px; stroke: var(--azul-control); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.hero .fineprint { margin-top: 16px; font-size: .86rem; color: var(--muted); font-weight: 600; }

.mockup-container {
  width: 100%;
  height: min(68vh, 680px);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  position: relative;
  -webkit-mask-image: none;
  mask-image: none;
}
.mockup-container::before {
  display: none;
}
.hero-video-frame {
  width: calc(100% + 40px);
  position: relative;
  flex: 0 0 auto;
}
.hero-video-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .28) 3%, transparent 9%),
    linear-gradient(0deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .3) 10%, transparent 24%);
}
.hero-video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

.hero-trust { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: .8rem; font-weight: 700; color: var(--muted); box-shadow: 0 2px 8px rgba(4, 21, 51, .04); }
.hero-trust svg { width: 14px; height: 14px; stroke: var(--emerald); stroke-width: 3; fill: none; stroke-linecap: round; }


/* Hero Fundador Subpage (NUEVO: Degradado Oscuro + Ondas Blancas)
-------------------------------------------------------------------------- */
.hero-fundador {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--azul-control), var(--emerald-dark));
    padding: 80px 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-fundador .ondas {
    position: absolute;
    left: -12%;
    width: 124%;
    height: auto;
    bottom: -40px;
    z-index: 0;
    opacity: 1;
    pointer-events: none;
    animation: drift 20s ease-in-out infinite alternate;
  }
  @keyframes drift {
    from { transform: translate3d(0,0,0) scaleY(-1); }
    to { transform: translate3d(-4%,-10px,0) scaleY(-1); }
  }

  /* Contenedor que empuja textos y botones sobre las ondas y LOS CENTRA */
  .hero-fundador .hero-content-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .hero-fundador h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 900; color: #ffffff; max-width: 960px; margin: 0 auto 16px; line-height: 1.12; letter-spacing: -0.02em; text-align: center; }
  .hero-fundador h1 em { font-style: normal; color: var(--warm); }
  .hero-fundador p.sub { font-size: 1.15rem; color: #ffffff; max-width: 720px; margin: 0 auto 30px; line-height: 1.6; text-align: center; }
  .hero-fundador .hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

  .hero-fundador .tag { background: rgba(255, 255, 255, 0.15); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); }
  .hero-fundador .tag .dot { background: var(--verde-bright); box-shadow: 0 0 0 4px rgba(37, 210, 102, 0.3); }

  .hero-fundador .btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
  .hero-fundador .btn-ghost:hover { background: #fff; color: var(--azul-control); }

  /* Trust Badge (Blanco sólido para tapar ondas) */
  .trust-badge-hero { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; background: #ffffff; border: 1px solid rgba(0, 116, 204, 0.2); box-shadow: 0 4px 16px rgba(4, 21, 51, 0.06); padding: 12px 24px; border-radius: 999px; margin-top: 32px; font-size: .85rem; font-weight: 700; color: var(--navy); position: relative; z-index: 10; }
  .trust-badge-hero span { display: flex; align-items: center; gap: 6px; }
  .trust-badge-hero svg { width: 16px; height: 16px; stroke: var(--azul-control); stroke-width: 2.5; fill: none; stroke-linecap: round; }

  .hero-fundador .fineprint { margin-top: 16px; font-size: .86rem; color: rgba(255, 255, 255, 0.6); font-weight: 600; text-align: center; }

  /* Precios de fundadores: los checks se dibujan desde la regla general de .pcard li */
  .pcard.founder .lock { background: rgba(22, 164, 66, 0.1); padding: 6px 12px; border-radius: 8px; display: inline-flex; }

/* ==========================================================================
   4. STATS & MÉTRICAS
   ========================================================================== */
.stats { background: var(--bg); padding: 76px 24px; position: relative; z-index: 1; border-top: 1px solid var(--border); }
.stats-intro { max-width: 820px; margin: 0 auto 40px; text-align: center; }
.stats-intro h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 800; color: var(--navy); margin-bottom: 12px; line-height: 1.2; }
.stats-intro p { color: var(--muted); font-size: 1.05rem; }
.stats-grid { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 18px; text-align: center; box-shadow: 0 10px 30px rgba(4, 21, 51, .04); display: flex; flex-direction: column; justify-content: center; }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--verde-tint); border-radius: 10px; margin: 0 auto 12px; color: var(--emerald-dark); }
.stat-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.stat .num { font-size: 2.2rem; font-weight: 900; color: var(--navy); margin-bottom: 4px; letter-spacing: -1px; }
.stat .lbl { font-size: .88rem; color: var(--muted); font-weight: 600; }

.stat-featured {
  grid-column: span 4; background: var(--navy); color: #fff; border: none; border-radius: 24px; padding: 40px; display: flex; align-items: center; justify-content: space-between; text-align: left; box-shadow: 0 20px 40px rgba(4, 21, 51, .15);
}
.stat-featured .left { display: flex; align-items: center; gap: 24px; }
.stat-featured .num { font-size: 4.5rem; font-weight: 900; color: var(--verde-bright); line-height: 1; }
.stat-featured .title { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.stat-featured .right { max-width: 400px; text-align: right; }
.stat-featured p { font-size: 1.05rem; color: #CAD4E0; line-height: 1.5; margin-bottom: 8px; }
.stat-featured small { font-size: .85rem; color: rgba(255, 255, 255, 0.5); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================================================
   5. COMPARATIVA Y CAPACIDADES (.cap)
   ========================================================================== */
.compare { background: var(--bg); text-align: center; border-bottom: 1px solid var(--border); }
.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1140px; margin: 0 auto; text-align: left; }
.cap { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 32px 28px; transition: box-shadow .3s ease, transform .3s ease; display: flex; flex-direction: column; position: relative; }
.cap.auto { border-left: 4px solid var(--emerald); }
.cap.auto .icon-wrapper { background: rgba(22, 164, 66, 0.08); color: var(--emerald-dark); }
.cap.control { border-left: 4px solid var(--azul-control); }
.cap.control .icon-wrapper { background: rgba(0, 116, 204, 0.08); color: var(--navy); }
.cap.comp { border-left: 4px solid var(--violet); }
.cap.comp .icon-wrapper { background: rgba(82, 37, 131, 0.08); color: var(--violet); }
.cap:hover { box-shadow: 0 16px 40px rgba(4, 21, 51, .08); transform: translateY(-3px) scale(1.01); }

.cap .icon-wrapper { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: transform 0.3s; }
.cap:hover .icon-wrapper { transform: scale(1.05); }
.cap .icon-wrapper svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cap h3 { color: var(--navy); font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; line-height: 1.3; }
.cap .gancho { color: var(--ink); font-weight: 700; font-size: 0.95rem; line-height: 1.4; margin-bottom: 0; }
.cap-detail-wrapper { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s ease; }
.cap:hover .cap-detail-wrapper { grid-template-rows: 1fr; }
.cap .detalle { overflow: hidden; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.cap .detalle-inner { padding-top: 16px; }
.cap .detalle b { color: var(--navy); font-weight: 800; }

/* ==========================================================================
   6. CARRUSEL ROI
   ========================================================================== */
.roi-carousel-section { background: #041533; padding: 80px 24px; text-align: center; }
.roi-wrap { max-width: 1060px; margin: 0 auto; position: relative; }
.carousel-viewport { overflow: hidden; border-radius: 24px; background: var(--bg); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.05); position: relative; }
.carousel-track { display: flex; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); width: 100%; }
.c-slide { min-width: 100%; display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch; text-align: left; box-sizing: border-box; position: relative; }
.c-confirmation-icon { position: absolute; right: 20px; bottom: 18px; width: 76px; height: 76px; pointer-events: none; z-index: 2; }
.c-slide-main { padding: 60px 50px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.c-slide-side { padding: 60px 50px; background: #fff; display: flex; flex-direction: column; justify-content: center; gap: 32px; border-left: 1px solid var(--border); }

.c-theme-green .c-tag { color: var(--emerald-dark); background: rgba(22, 164, 66, .12); }
.c-theme-green .c-metric { color: var(--emerald); }
.c-theme-blue .c-tag { color: var(--navy); background: rgba(0, 116, 204, .12); }
.c-theme-blue .c-metric { color: var(--azul-control); }
.c-theme-purple .c-tag { color: var(--violet); background: rgba(82, 37, 131, .12); }
.c-theme-purple .c-metric { color: var(--violet); }

.c-tag { display: inline-flex; align-items: center; align-self: flex-start; font-weight: 800; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 24px; }
.c-metric { font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 900; line-height: 1; letter-spacing: -0.03em; margin-bottom: 12px; }
.c-desc { font-size: 1.3rem; font-weight: 800; color: var(--navy); line-height: 1.25; }
.c-side-title { font-size: 1rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.c-side-text { font-size: .95rem; color: var(--muted); line-height: 1.5; }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 30px; }
.c-btn { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.15); display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; transition: all 0.2s; }
.c-btn:hover { background: #fff; color: #041533; border-color: #fff; transform: translateY(-2px); }
.c-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c-dots { display: flex; gap: 8px; }
.c-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); cursor: pointer; transition: background 0.3s, transform 0.2s; }
.c-dot.active { background: #fff; transform: scale(1.2); }
.roi-bridge { max-width: 660px; margin: 40px auto 0; font-size: 1.1rem; color: #CAD4E0; font-weight: 600; }
.roi-disclaimer { font-size: 0.8rem; color: #93A2B7; margin-top: 16px; }
.c-visual-bg { position: absolute; right: -20px; bottom: -20px; width: 200px; height: 200px; opacity: 0.08; pointer-events: none; }
.c-theme-green .c-visual-bg { color: var(--emerald); }
.c-theme-blue .c-visual-bg { color: var(--azul-control); }
.c-theme-purple .c-visual-bg { color: var(--violet); }

/* ==========================================================================
   7. PRODUCTO, TORRE Y CAPAS DE NAVEGACIÓN
   ========================================================================== */
.producto { background: #fff; }
.producto .wrap { max-width: 1180px; }
.prod-intro-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; margin-bottom: 72px; text-align: left; }
.hook-text { font-size: 1.35rem; font-weight: 800; color: var(--emerald-dark); margin-bottom: 16px; line-height: 1.3; }
.prod-desc { color: var(--muted); font-size: 1.05rem; margin-bottom: 16px; line-height: 1.6; }
.micro-note { font-size: .9rem; color: var(--navy); font-weight: 700; background: rgba(0, 116, 204, 0.08); padding: 12px 16px; border-radius: 10px; margin-top: 24px; border-left: 4px solid var(--azul-control); }

.chain-flow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; align-items: center; }
.chain-flow .chip { background: #fff; border: 1px solid var(--border); color: var(--navy); font-size: .8rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(4, 21, 51, .04); }
.chain-flow .arrow { color: var(--muted-light); font-weight: 800; }

.tower-wrapper { background: var(--bg); border: 1px solid var(--border); border-radius: 24px; padding: 40px; box-shadow: 0 16px 40px rgba(4, 21, 51, .05); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.t-layer { width: 100%; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 16px; background: #fff; border: 2px solid transparent; box-shadow: 0 8px 24px rgba(0, 0, 0, .04); position: relative; z-index: 2; transition: transform 0.3s; }
.t-layer:hover { transform: translateY(-3px) scale(1.02); }
.t-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #fff; font-weight: 900; font-size: 1.1rem; }
.t-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-info { text-align: left; }
.t-info h4 { font-size: 1rem; color: var(--navy); margin-bottom: 2px; font-weight: 800; }
.t-info p { font-size: .85rem; color: var(--muted); margin: 0; line-height: 1.3; }
.t-legal-note { display: block; max-width: 34rem; margin: 10px 12px 0; color: var(--muted-light); font-size: .68rem; line-height: 1.35; text-align: left; }
.t-legal-marker { color: var(--emerald-dark); font-size: .72em; font-weight: 800; vertical-align: super; line-height: 0; margin-left: 2px; }

.tl-3 { border-color: rgba(82, 37, 131, 0.2); } .tl-3 .t-icon { background: var(--violet); }
.tl-2 { border-color: rgba(0, 116, 204, 0.2); } .tl-2 .t-icon { background: var(--azul-control); }
.tl-1 { border-color: rgba(4, 39, 89, 0.2); }    .tl-1 .t-icon { background: var(--navy); }
.tl-0 { border-color: rgba(22, 164, 66, 0.2); } .tl-0 .t-icon { background: var(--emerald); }

.t-connector { width: 2px; height: 24px; background: linear-gradient(to top, var(--muted-light) 50%, transparent 50%); background-size: 100% 8px; position: relative; z-index: 1; }
.t-connector::after { content: "▲"; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--muted-light); }

.bridge-title { text-align: center; font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--navy); font-weight: 800; margin: 20px 0 40px; position: relative; }
.bridge-title::before { content: ""; display: block; width: 60px; height: 4px; background: var(--emerald); margin: 0 auto 16px; border-radius: 2px; }

/* Sistema de Pestañas (Tabs) */
.layers-tab-system { margin-top: 24px; }
.layer-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; background: rgba(202, 212, 224, 0.3); padding: 8px; border-radius: 18px; margin-bottom: 24px; }
.layer-tab { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; background: transparent; border: none; border-radius: 12px; font-weight: 800; font-size: 1rem; color: var(--muted); cursor: pointer; transition: all 0.25s ease; }
.layer-tab .tab-num { width: 26px; height: 26px; border-radius: 8px; background: var(--border); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 900; transition: all 0.25s ease; }
.layer-tab:hover { background: rgba(255, 255, 255, 0.6); color: var(--navy); }

.layer-tab.active.theme-foundation { background: var(--emerald); color: #fff; box-shadow: 0 8px 20px rgba(22, 164, 66, 0.3); }
.layer-tab.active.theme-ordenes { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(4, 39, 89, 0.3); }
.layer-tab.active.theme-tesoreria { background: var(--azul-control); color: #fff; box-shadow: 0 8px 20px rgba(0, 116, 204, 0.3); }
.layer-tab.active.theme-blindaje { background: var(--violet); color: #fff; box-shadow: 0 8px 20px rgba(82, 37, 131, 0.3); }
.layer-tab.active .tab-num { background: rgba(255, 255, 255, 0.25); color: #fff; }

.layer-panel { display: none; opacity: 0; transform: translateY(10px); transition: opacity 0.35s ease, transform 0.35s ease; }
.layer-panel.active { display: block; opacity: 1; transform: translateY(0); }

.layer-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.layer-num { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.layer-head h3 { color: var(--navy); font-size: 1.45rem; font-weight: 800; }
.layer-head .lead { width: 100%; color: var(--muted); font-size: 1.05rem; line-height: 1.8; margin-left: 56px; margin-top: 4px; margin-bottom: 4px; font-weight: bold; }

.layer-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 40px; }
.macro-card { background: #fff; border-radius: 24px; padding: 36px; box-shadow: 0 24px 50px -12px rgba(4, 21, 51, 0.08); border: 1px solid rgba(202, 212, 224, 0.4); margin-top: 32px; transition: all 0.3s ease; }
.macro-list { display: flex; flex-direction: column; gap: 36px; }
.macro-item { display: flex; align-items: flex-start; gap: 20px; }
.macro-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--verde-tint); color: var(--emerald-dark); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.macro-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.macro-text { flex: 1; }
.macro-text h4 { font-size: 1.15rem; color: var(--navy); font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.macro-text p { font-size: 1rem; color: var(--muted); line-height: 1.5; margin: 0; }
.macro-chip { font-size: .75rem; font-weight: 800; background: rgba(22, 164, 66, .1); color: var(--emerald-dark); padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.05em; }

.mini-diagram { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); font-size: .9rem; font-weight: 800; color: var(--navy); }
.mini-diagram .arr { color: var(--emerald-dark); font-weight: 900; }

/* 🟢 CAPA 0: Catálogos */
#panel-layer-0 .macro-card { background: linear-gradient(135deg, #092b1b 0%, #0e4028 100%); border: 1px solid rgba(22, 164, 66, 0.4); color: #e6f7ec; }
#panel-layer-0 .macro-icon { background: rgba(22, 164, 66, 0.25); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.3); }
#panel-layer-0 .macro-chip { background: rgba(22, 164, 66, 0.3); color: #6ee7b7; }

/* 🔵 CAPA 1: Órdenes */
#panel-layer-1 .macro-card { background: linear-gradient(135deg, #051a36 0%, #0a2b58 100%); border: 1px solid rgba(59, 130, 246, 0.4); color: #ebf3fe; }
#panel-layer-1 .macro-icon { background: rgba(59, 130, 246, 0.25); color: #60a5fa; border: 1px solid rgba(96, 165, 250, 0.3); }
#panel-layer-1 .macro-chip { background: rgba(59, 130, 246, 0.3); color: #93c5fd; }

/* 🔷 CAPA 2: Tesorería */
#panel-layer-2 .macro-card { background: linear-gradient(135deg, #02233c 0%, #003a63 100%); border: 1px solid rgba(0, 116, 204, 0.4); color: #e6f4ff; }
#panel-layer-2 .macro-icon { background: rgba(0, 116, 204, 0.25); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
#panel-layer-2 .macro-chip { background: rgba(0, 116, 204, 0.3); color: #7dd3fc; }

/* 🟣 CAPA 3: Blindaje Legal */
#panel-layer-3 .macro-card { background: linear-gradient(135deg, #180e28 0%, #291542 100%); border: 1px solid rgba(82, 37, 131, 0.5); color: #f5eeeb; }
#panel-layer-3 .macro-icon { background: rgba(82, 37, 131, 0.35); color: #c084fc; border: 1px solid rgba(192, 132, 252, 0.3); }
#panel-layer-3 .macro-chip { background: rgba(82, 37, 131, 0.4); color: #e9d5ff; }

/* Textos adaptados para las tarjetas oscuras */
.layer-panel .macro-card h4 { color: #ffffff !important; }
.layer-panel .macro-card p { color: rgba(255, 255, 255, 0.82) !important; }
.layer-panel .mini-diagram { border-top: 1px solid rgba(255, 255, 255, 0.15) !important; color: rgba(255, 255, 255, 0.85) !important; }
.layer-panel .mini-diagram span { color: #ffffff !important; }

/* Mockups Interactivos (SaaS Window Mockup) */
.layer-panel .video-mockup-wrapper {
  background: rgba(15, 23, 42, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(12px);
}

.window-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: rgba(0, 0, 0, 0.3); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.window-dots { display: flex; gap: 6px; }
.window-dots .dot { width: 10px; height: 10px; border-radius: 50%; }
.window-dots .red { background: #ff5f56; }
.window-dots .yellow { background: #ffbd2e; }
.window-dots .green { background: #27c93f; }
.window-title { font-size: 0.78rem; font-weight: 700; color: rgba(255, 255, 255, 0.6); letter-spacing: 0.5px; }

.live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.70rem; font-weight: 800; color: #34d399; background: rgba(52, 211, 153, 0.1); padding: 3px 8px; border-radius: 20px; border: 1px solid rgba(52, 211, 153, 0.2); }
.pulse-dot { width: 6px; height: 6px; background: #34d399; border-radius: 50%; box-shadow: 0 0 8px #34d399; animation: pulseGlow 1.8s infinite; }

@keyframes pulseGlow {
  0% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.4; transform: scale(0.9); }
}

.layer-panel .video-placeholder {
  position: relative;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  border: none !important; border-radius: 0 !important; padding: 40px 20px !important; min-height: 160px; display: flex; align-items: center; justify-content: center;
}

.demo-ui-content { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.demo-icon-play { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); }
.demo-icon-play svg { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }
.demo-flow-text { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); line-height: 1.6; }
.demo-step.highlight { color: #60a5fa; font-weight: 700; background: rgba(96, 165, 250, 0.15); padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(96, 165, 250, 0.3); }

.demo-progress-bar { position: absolute; bottom: 0; left: 0; height: 3px; width: 100%; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.demo-progress-bar::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.8), transparent); animation: sweepBar 3s infinite linear; }

@keyframes sweepBar { 0% { left: -100%; } 100% { left: 100%; } }

.layer-panel .video-caption { padding: 12px 16px; margin: 0 !important; font-size: 0.82rem !important; background: rgba(0, 0, 0, 0.2); border-top: 1px solid rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.7) !important; }

.video-zoom-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(4, 21, 51, 0.78);
  color: #fff;
  cursor: pointer;
  opacity: 0.9;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}

.video-zoom-btn:hover,
.video-zoom-btn:focus-visible {
  background: var(--emerald-dark);
  opacity: 1;
  transform: translateY(-2px);
}

.video-zoom-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-lightbox[hidden] {
  display: none !important;
}

.video-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 21, 51, 0.82);
  backdrop-filter: blur(6px);
}

.video-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  padding: 44px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: #041533;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.video-lightbox-title {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}

.video-lightbox-player {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
}

.video-lightbox-close {
  position: absolute;
  top: 8px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

body.video-lightbox-open {
  overflow: hidden;
}

/* ==========================================================================
   CORRECCIÓN UNIVERSAL DE TAMAÑO DE VIDEOS Y DEMOS
   ========================================================================== */

/* 1. Contenedor con proporción estándar HD (16:9) */
.layer-panel .video-placeholder,
.evi-vid-placeholder {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important; /* Mantiene la proporción clásica de pantalla de video */
  min-height: unset !important;
  padding: 0 !important;           /* Quita márgenes internos para que el video toque los bordes */
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* 2. Ajuste para que la etiqueta <video> llene la ventana sin deformarse */
.layer-panel .video-placeholder video,
.evi-vid-placeholder video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* Rellena el marco sin distorsionar la imagen */
  display: block !important;
  border-radius: 0 !important;
}

/* 3. Ajuste para textos/placeholders mientras no hay MP4 */
.layer-panel .video-placeholder .demo-ui-content,
.evi-vid-placeholder .demo-ui-content {
  padding: 24px;
  width: 100%;
}

/* ==========================================================================
   8. ALIADOS, REFERIDOS Y BLOQUES DE PÁGINA ALIADOS
   ========================================================================== */
.aliados-unified { background: linear-gradient(180deg, var(--violet-bg), #fff); text-align: center; }
.aliados-unified .sec-sub { max-width: 800px; }
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; text-align: left; align-items: stretch; }

.p-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 32px; position: relative; box-shadow: 0 16px 40px rgba(4, 21, 51, .06); display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s; overflow: visible !important; }
.p-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(4, 21, 51, .1); }
.p-badge { align-self: flex-start; font-size: .75rem; font-weight: 800; padding: 6px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 20px; }
.p-card.ref { border-top: 4px solid var(--emerald); }
.p-card.ref .p-badge { background: rgba(22, 164, 66, .1); color: var(--emerald-dark); }
.p-card.ali { border-top: 4px solid var(--violet); }
.p-card.ali .p-badge { background: rgba(82, 37, 131, .1); color: var(--violet); }
.p-card h3 { color: var(--navy); font-size: 1.35rem; margin-bottom: 12px; line-height: 1.3; }
.p-card p { color: var(--muted); font-size: .95rem; margin-bottom: 24px; line-height: 1.6; }
.p-flow { display: flex; gap: 8px; margin-bottom: 32px; font-size: .85rem; font-weight: 700; color: var(--navy); align-items: center; flex-wrap: wrap; }
.p-flow span { display: flex; align-items: center; gap: 4px; }
.p-flow .arr { color: var(--emerald); }
.p-card .btn { margin-top: auto; width: 100%; text-align: center; }

/*
Controles inferiores de precios */
.price-footer-center {
text-align: center;
margin-top: 40px;
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}

.price-footer-center .fineprint {
margin: 0;
font-size: .86rem;
color: var(--muted);
font-weight: 600;
}

.link-explorar-producto {
display:inline;
color: var(--azul-control);
font-size: 1.05rem;
font-weight: 800;
text-decoration: none;
transition: color 0.2s, transform 0.2s;
padding: 8px 16px;
border-radius: 8px;
}

.link-explorar-producto:hover {
color: var(--navy);
transform: translateY(-2px);
background: rgba(0, 116, 204, 0.05); /* Un hover sutil muy elegante */
}

/* Bloques PÁGINA ALIADOS (/aliados) */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.feat { background: #fff; border: 1px solid rgba(202, 212, 224, 0.4); border-radius: 16px; padding: 32px 28px; box-shadow: 0 8px 24px rgba(4, 21, 51, .03); transition: box-shadow .3s, transform .3s; }
.feat:hover { box-shadow: 0 16px 40px rgba(4, 21, 51, .08); transform: translateY(-4px); }
.feat .fem { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--violet-bg); color: var(--violet); margin-bottom: 20px; }
.feat .fem svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat h4 { color: var(--navy); font-size: 1.15rem; margin-bottom: 10px; font-weight: 800; }
.feat p { color: var(--muted); font-size: .96rem; line-height: 1.6; margin: 0; }

.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-top: 40px; }
.pain-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 12px 30px rgba(4, 21, 51, .04); height: 100%; }
.pain-card .pain { background: #FDF8F8; padding: 20px; border-bottom: 1px dashed rgba(243, 85, 63, 0.2); }
.pain-card .pain span { display: block; font-size: .75rem; text-transform: uppercase; color: var(--red); font-weight: 800; letter-spacing: 0.05em; margin-bottom: 8px; }
.pain-card .pain p { color: var(--ink); font-weight: 700; font-size: .95rem; margin: 0; line-height: 1.4; }
.pain-card .solution { padding: 20px; flex: 1; background: #fff; display: flex; flex-direction: column; }
.pain-card .solution span { display: block; font-size: .75rem; text-transform: uppercase; color: var(--emerald-dark); font-weight: 800; letter-spacing: 0.05em; margin-bottom: 8px; }
.pain-card .solution p { color: var(--muted); font-size: .95rem; margin: 0; line-height: 1.5; }
.pain-card .value { padding: 16px 20px; background: var(--violet-bg); border-top: 1px solid rgba(82, 37, 131, 0.1); display: flex; align-items: flex-start; gap: 10px; margin-top: auto; }
.pain-card .value svg { width: 20px; height: 20px; flex: 0 0 auto; stroke: var(--violet); fill: none; stroke-width: 2; margin-top: 2px; }
.pain-card .value p { color: var(--violet); font-size: .85rem; font-weight: 700; margin: 0; line-height: 1.4; }

.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 40px; align-items: stretch; }
.step { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px; position: relative; }
.step .num { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--navy); color: #fff; font-size: 1.2rem; font-weight: 900; border-radius: 12px; margin-bottom: 20px; }
.step h4 { color: var(--navy); margin-bottom: 8px; font-size: 1.05rem; font-weight: 800; }
.step p { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: 0; }

.highlight-block { background: linear-gradient(135deg, var(--navy), var(--violet)); color: #fff; border-radius: 24px; padding: 60px 40px; text-align: center; margin: 80px auto; max-width: 1060px; box-shadow: 0 24px 50px rgba(82, 37, 131, 0.2); position: relative; overflow: hidden; }
.highlight-confirmation-icon {
  position: absolute;
  left: 32px;
  bottom: 78px;
  width: 160px;
  height: 160px;
  background: var(--emerald);
  -webkit-mask: url("/images/isotipo-04-check-confirmacion.svg") center / contain no-repeat;
  mask: url("/images/isotipo-04-check-confirmacion.svg") center / contain no-repeat;
  opacity: .34;
  pointer-events: none;
  z-index: 0;
}
.highlight-block > h2,
.highlight-block > p,
.highlight-block > .note {
  position: relative;
  z-index: 1;
}
.highlight-block h2 { color: #fff; margin-bottom: 20px; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.2; }
.highlight-block p { color: #E8E6F4; font-size: 1.1rem; line-height: 1.6; max-width: 800px; margin: 0 auto 24px; }
.highlight-block .note { display: inline-block; background: rgba(255, 255, 255, 0.1); padding: 14px 24px; border-radius: 12px; font-size: .95rem; font-weight: 600; color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); max-width: 700px; margin-top: 10px; line-height: 1.5; }

.pt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 40px; }
.pt-card { background: #fff; border: 1px solid rgba(82, 37, 131, 0.2); border-top: 4px solid var(--violet); border-radius: 16px; padding: 32px 24px; box-shadow: 0 12px 30px rgba(82, 37, 131, 0.05); }
.pt-card .icon { display: inline-flex; margin-bottom: 16px; color: var(--violet); }
.pt-card .icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pt-card h4 { color: var(--navy); font-size: 1.15rem; margin-bottom: 12px; font-weight: 800; }
.pt-card p.apport { font-size: .85rem; color: var(--violet); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.pt-card p.desc { color: var(--muted); font-size: .95rem; line-height: 1.5; margin: 0; }

.cta-banner { background: #fff; text-align: center; padding: 80px 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.cta-watermark { position: absolute; left: 50%; top: 50%; width: 320px; height: 320px; transform: translate(-50%, -50%); opacity: .1; pointer-events: none; z-index: 0; }
.cta-banner > h2,
.cta-banner > p,
.cta-banner > div { position: relative; z-index: 1; }
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.cta-banner p { font-size: 1.1rem; color: var(--muted); max-width: 600px; margin: 0 auto 32px; line-height: 1.6; }

/* Tooltip/Validación de Formularios */
.input-error-tooltip { display: block; color: #e53e3e; font-size: 0.78rem; font-weight: 600; margin-top: 4px; margin-bottom: 12px; animation: fadeInError 0.25s ease-in-out; }
@keyframes fadeInError { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   9. PRECIOS Y PÁGINA FUNDADORES (/fundadores)
   ========================================================================== */
.pricing { background: #fff; text-align: center; }
.pricing-trial-link { color: var(--azul-control); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.pricing-trial-link:hover { color: var(--navy); }
.pricing-promo-pill {
  display: table; margin: 0 auto; padding: 8px 16px; border-radius: 999px;
  background: rgba(242, 181, 50, .18); color: #8a5a00; border: 1px solid rgba(242, 181, 50, .45);
  font-size: .85rem; font-weight: 800; line-height: 1.35;
}
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; margin-bottom: 48px; font-weight: 700; color: var(--navy); }
.toggle-switch { position: relative; width: 60px; height: 32px; background: var(--border); border-radius: 32px; cursor: pointer; transition: background 0.3s; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); }
.toggle-switch.active { background: var(--emerald); }
.toggle-switch::after { content: ''; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; background: #fff; border-radius: 50%; transition: transform 0.3s; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }
.toggle-switch.active::after { transform: translateX(28px); }
.save-badge { background: var(--verde-tint); color: var(--emerald-dark); padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; margin-left: 8px; text-transform: uppercase; letter-spacing: 0.05em; }

.eyebrow-purple {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px;
  color: #c084fc; background: rgba(82, 37, 131, 0.2); border: 1px solid rgba(192, 132, 252, 0.35); padding: 4px 12px; border-radius: 50px;
  margin-bottom: 12px; width: fit-content; box-shadow: 0 4px 12px rgba(82, 37, 131, 0.2); backdrop-filter: blur(4px);
}
.eyebrow-purple .eyebrow-dot { width: 6px; height: 6px; background-color: #c084fc; border-radius: 50%; box-shadow: 0 0 8px #c084fc; animation: pulseEyebrow 2s infinite ease-in-out; }
@keyframes pulseEyebrow { 0% { opacity: 0.4; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.15); } 100% { opacity: 0.4; transform: scale(0.85); } }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1060px; margin: 0 auto; text-align: left; align-items: stretch; }
.price-grid-fundadores {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: stretch;
  }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; display: flex; flex-direction: column; position: relative; transition: transform 0.3s, box-shadow 0.3s; overflow: visible !important; }
.plan:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(4, 21, 51, .08); }
.plan.reco { border: 2px solid var(--emerald); box-shadow: 0 16px 40px rgba(22, 164, 66, .15); }
.plan.reco:hover { box-shadow: 0 24px 50px rgba(22, 164, 66, .25); }
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--emerald); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .06em; padding: 4px 14px; border-radius: 999px; text-transform: uppercase; white-space: nowrap; }
.plan h3 { color: var(--navy); font-size: 1.25rem; }
.plan .for { color: var(--muted); font-size: .85rem; margin-bottom: 16px; min-height: 2.6em; line-height: 1.4; }
.plan .price { font-size: 2rem; font-weight: 900; color: var(--navy); letter-spacing: -0.03em; }
.plan .price small { font-size: .85rem; color: var(--muted); font-weight: 600; letter-spacing: normal; }
.plan .price-custom { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.plan ul { margin: 24px 0 32px; flex: 1; list-style: none; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: .9rem; line-height: 1.5; color: var(--ink); }
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  background: url("/images/cumpy-check-azul-verde.svg") center / contain no-repeat;
}

.plan li,
.pcard li {
  padding-top: 3px !important;    /* Espacio arriba del texto (antes era 6px/8px) */
  padding-bottom: 3px !important; /* Espacio abajo del texto */
  line-height: 1.3 !important;    /* Altura entre líneas */
}

.plan li span[data-tooltip] { border-bottom: 1px dashed var(--muted-light); cursor: help; color: var(--navy); font-weight: 700; }
.plan .btn { padding: 14px 20px; font-size: .95rem; text-align: center; width: 100%; }

/* ==========================================================================
   ESTILOS PARA ELEMENTOS NO INCLUIDOS EN PLANES (.not-included)
   ========================================================================== */

.plan li.not-included {
  text-decoration: line-through; /* Tacha el texto literal */
  color: var(--muted-light, #93A2B7); /* Tono tenue para transmitir deshabilitado */
  opacity: 0.75;
}

/* Cambia la palomita (✓) por un tache (✕) */
.plan li.not-included::before {
  content: "✕" !important;
  background: none !important;
  color: var(--red, #F3553F) !important; /* Tache en color rojo */
  font-weight: 800;
  text-decoration: none !important; /* Evita que el propio icono del tache aparezca tachado */
  display: inline-block;
}

/* Mantiene el texto dentro de span (como los tooltips) con el tono atenuado y tachado */
.plan li.not-included span[data-tooltip] {
  color: inherit !important;
  text-decoration: line-through !important;
}

.trial-note { margin-top: 32px; color: var(--muted); font-size: .9rem; text-align: center; }

/* Bloques PÁGINA FUNDADORES (/fundadores) */
.pricewrap { padding: 76px 24px; background: var(--bg); border-top: 1px solid var(--border); }
.pcard { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 40px 32px; position: relative; display: flex; flex-direction: column; box-shadow: 0 12px 30px rgba(4, 21, 51, .04); transition: transform 0.3s; }
.pcard:hover { transform: translateY(-4px); }
.pcard.founder { border: 2px solid var(--amber); box-shadow: 0 24px 50px rgba(242, 181, 50, .12); }
.pcard .badge { position: absolute; top: -14px; left: 32px; background: var(--amber); color: var(--noche); font-size: .75rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px; box-shadow: 0 4px 12px rgba(242, 181, 50, .3); }
.pcard h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 8px; font-weight: 900; }
.pcard .who { color: var(--muted); font-size: .9rem; margin-bottom: 24px; line-height: 1.5; min-height: 2.7em; }
.pcard .price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.pcard .price .old { color: var(--muted-light); text-decoration: line-through; font-size: 1.1rem; font-weight: 700; }
.pcard .price .now { font-size: 2.8rem; font-weight: 900; color: var(--navy); letter-spacing: -0.03em; line-height: 1; }
.pcard .price .mo { color: var(--muted); font-weight: 700; font-size: .95rem; }
.pcard .iva-note { font-size: 0.75rem; color: var(--muted-light); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; display: block; }
.pcard .savings { background: rgba(242, 181, 50, .15); color: #8a5a00; font-size: .8rem; font-weight: 800; padding: 6px 12px; border-radius: 8px; display: inline-block; margin-bottom: 24px; border: 1px solid rgba(242, 181, 50, .3); }
.pcard .lock { font-size: .9rem; color: var(--emerald-dark); font-weight: 800; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; background: #DBFBE6; padding: 10px 14px; border-radius: 10px; }
.pcard ul { list-style: none; margin: 0 0 32px; flex: 1; }
.pcard li { position: relative; padding: 8px 0 8px 30px; font-size: .95rem; color: var(--ink); line-height: 1.4; }
.pcard li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  background: url("/images/cumpy-check-azul-verde.svg") center / contain no-repeat;
}
.pcard li.highlight { font-weight: 800; color: var(--navy); }
.pcard .btn { width: 100%; text-align: center; padding: 16px 20px; }
.price-disclaimer { text-align: center; font-size: .8rem; color: var(--muted); max-width: 800px; margin: 24px auto 0; line-height: 1.5; }

/* Grid de Beneficios Fundadores */
.benefits { padding: 76px 24px; background: #fff; text-align: center; }
.bgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1140px; margin: 0 auto; margin-top: 20px; text-align: left; }
.ben { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 32px 24px; box-shadow: 0 8px 24px rgba(4, 21, 51, .03); transition: transform 0.3s; }
.ben:hover { transform: translateY(-4px); border-color: var(--amber); }
.ben svg { width: 40px; height: 40px; stroke: var(--amber); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 4px 12px rgba(242, 181, 50, .15); }
.ben h4 { color: var(--navy); font-size: 1.1rem; margin-bottom: 8px; font-weight: 800; }
.ben p { color: var(--muted); font-size: .95rem; margin: 0; line-height: 1.5; }

/* Barra de Escasez / Contador Fundadores */
.scarcity { background: var(--noche); color: #fff; padding: 60px 24px; text-align: center; position: relative; overflow: hidden; }
.scarcity-watermark { position: absolute; right: -92px; top: 50%; width: 320px; height: 320px; transform: translateY(-50%); background: var(--emerald); -webkit-mask: url("/images/isotipo-03-revelado-ascendente.svg") center / contain no-repeat; mask: url("/images/isotipo-03-revelado-ascendente.svg") center / contain no-repeat; opacity: .2; pointer-events: none; z-index: 0; }
.scarcity > *:not(.scarcity-watermark) { position: relative; z-index: 1; }
.scarcity::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--amber), transparent); opacity: 0.3; }
.scarcity .num { font-size: clamp(2.5rem, 5vw, 3.2rem); font-weight: 900; color: var(--amber); line-height: 1; }
.scarcity p { color: var(--muted-light); max-width: 600px; margin: 12px auto 0; font-size: 1.05rem; }
.bar { max-width: 560px; margin: 24px auto 0; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.05); }
.bar > span { display: block; height: 100%; width: 68%; background: linear-gradient(90deg, var(--amber), #FFD166); border-radius: 999px; position: relative; overflow: hidden; }
.bar > span::after { content: ''; position: absolute; top: 0; left: 0; bottom: 0; right: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent); animation: shimmer 2s infinite; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.bar-lbl { margin-top: 12px; font-size: .9rem; color: var(--muted-light); font-weight: 700; }
.scarcity .btn { margin-top: 32px; }

/* Formulario Fundadores */
.form-sec { padding: 76px 24px; background: var(--bg); text-align: center; }
.form-card { max-width: 600px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 48px 40px; text-align: left; box-shadow: 0 24px 50px rgba(4, 39, 89, .08); }
.form-card .why { background: var(--warm); border-radius: 14px; padding: 16px 20px; font-size: .95rem; color: #7a5b00; font-weight: 700; margin-bottom: 28px; border: 1px solid rgba(242, 181, 50, .3); line-height: 1.5; }
label { display: block; font-weight: 800; font-size: .9rem; color: var(--navy); margin: 20px 0 8px; }
input, select, textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; font-size: 1rem; background: #fff; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(242, 181, 50, .2); }
.form-card .btn { width: 100%; margin-top: 32px; text-align: center; padding: 18px; }
.note { font-size: .85rem; color: var(--muted); margin-top: 16px; text-align: center; }

/* ==========================================================================
   10. EVIDENCIA & SEGURIDAD VAULT
   ========================================================================== */
.evidencia { background: var(--bg); padding: 76px 24px; }
.evi-card { background: #041533; color: #fff; border-radius: 24px; padding: 48px; max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; text-align: left; box-shadow: 0 24px 50px rgba(4, 21, 51, 0.2); border: 1px solid rgba(255, 255, 255, 0.1); position: relative; }
.evi-tranquility-icon { position: absolute; top: 18px; right: 48px; width: 84px; height: 84px; pointer-events: none; z-index: 2; }
.evi-content { width: 100%; max-width: 920px; margin: 0 auto; }
.evi-content h2 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 800; line-height: 1.2; margin-bottom: 20px; color: #fff; }
.evi-content p { font-size: 1.05rem; color: #CAD4E0; margin-bottom: 24px; line-height: 1.6; }
.evi-honest { font-size: 0.95rem; color: var(--muted-light); font-style: italic; border-left: 3px solid var(--violet); padding-left: 16px; margin-bottom: 32px; }
.evi-metrics { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.evi-metric { background: rgba(37, 210, 102, 0.1); border: 1px solid rgba(37, 210, 102, 0.2); color: var(--verde-bright); padding: 8px 14px; border-radius: 12px; font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
.evi-metric svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.evi-video.mockup-window {
  display: none !important;
  background: rgba(15, 23, 42, 0.75) !important; border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 18px !important; padding: 0 !important; overflow: hidden; box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(12px); margin-top: 16px;
}
.evi-vid-placeholder { position: relative; background: radial-gradient(circle at center, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%); display: flex; align-items: center; justify-content: center; min-height: 200px; overflow: hidden; }
.evi-vid-placeholder video { width: 100%; height: auto; display: block; object-fit: cover; }



.seguridad.dark-vault { background: #041533; padding: 80px 24px; color: #fff; text-align: left; }
.seg-head { max-width: 800px; margin: 0 auto 50px; text-align: center; }
.seg-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: #fff; margin-bottom: 16px; font-weight: 800; line-height: 1.2; }
.seg-head p { color: #CAD4E0; font-size: 1.05rem; }
.seg-grid-new { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; max-width: 1140px; margin: 0 auto 40px; }
.s-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 32px 24px; transition: background 0.3s, border-color 0.3s; }
.s-card:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(82, 37, 131, 0.4); }
.s-card .s-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.s-card .s-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.s-card h4 { font-size: 1.1rem; margin-bottom: 10px; color: #fff; font-weight: 800; }
.s-card p { font-size: .9rem; color: #93A2B7; line-height: 1.6; margin: 0; }
.s-card a { color: var(--verde-bright); text-decoration: none; }
.s-card a:hover { text-decoration: underline; }

.seg-banner { max-width: 1140px; margin: 0 auto; background: linear-gradient(135deg, rgba(82, 37, 131, 0.2), rgba(4, 39, 89, 0.4)); border: 1px solid rgba(82, 37, 131, 0.4); border-radius: 20px; padding: 32px 40px; display: flex; align-items: center; gap: 24px; }
.sb-icon { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 16px; background: var(--violet); color: #fff; display: flex; align-items: center; justify-content: center; }
.sb-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2; }
.sb-text h4 { color: #fff; font-size: 1.25rem; margin-bottom: 6px; font-weight: 800; }
.sb-text p { color: #CAD4E0; font-size: .95rem; margin: 0; line-height: 1.5; }

/* ==========================================================================
   11. FAQ, MODALES Y FOOTER
   ========================================================================== */
.faq { background: #fff; padding: 76px 24px; }
.faq .wrap { max-width: 760px; }
.faq h2 { text-align: center; }
.faq-group { margin-bottom: 48px; }
.faq-group h3 { color: var(--navy); font-size: 1.25rem; font-weight: 800; margin-bottom: 20px; border-bottom: 2px solid var(--border); padding-bottom: 12px; }

details { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; background: var(--card); transition: box-shadow 0.2s; }
details:hover { box-shadow: 0 4px 12px rgba(4, 21, 51, .04); }
summary { cursor: pointer; padding: 16px 22px; font-weight: 700; color: var(--navy); list-style: none; position: relative; font-size: .95rem; padding-right: 40px; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--emerald); }
details[open] summary::after { content: "–"; }
details p { padding: 0 22px 16px; color: var(--muted); font-size: .92rem; line-height: 1.6; margin: 0; }

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 21, 51, 0.6);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 560px;
  border-radius: 24px;
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
  box-shadow: 0 24px 50px rgba(4, 21, 51, 0.2);
  text-align: center;

  /* 🌟 FLEXBOX VERTICAL PARA CENTRAR TODO SU CONTENIDO */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal-content [hidden] {
  display: none !important;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.2rem;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--red);
}

/* 🌟 TITULOS Y TEXTOS (Se eliminó 'display: flex' innecesario) */
.modal-content h3 {
  color: var(--navy);
  font-size: 1.35rem;
  margin-bottom: 8px;
  font-weight: 800;
  text-align: center;
}

.modal-content p {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 24px;
  line-height: 1.5;
  text-align: center;
}

.modal-content .form-note {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 16px;
  text-align: center;
}

/* 🌟 CENTRADO DEL FORMULARIO Y DE SUS CAMPOS */
.modal-content form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 🌟 CENTRADO DE LABELS E INPUTS */
.modal-content label {
  text-align: center;
  display: block;
  width: 100%;
}

.modal-content input {
  text-align: center; /* Alinea el placeholder y el texto al centro */
}

.modal-content .tag {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 12px;
  text-align: center;
  background: rgba(21, 162, 74, 0.12) !important; /* Verde traslúcido suave */
  color: #127434 !important;                     /* Verde oscuro para buen contraste */
  border: 1px solid rgba(21, 162, 74, 0.3) !important; /* Borde verde sutil */
}

/* 🌟 CENTRADO DE LA VISTA DE ÉXITO */
.modal-success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* 2. Forzar que la pill/tag se comporte como un bloque centrado */
.modal-content .tag {
  display: inline-block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}

.final { background: linear-gradient(140deg, var(--navy), #265F5B); color: #fff; text-align: center; }
.final h2, .final p, .final .hero-ctas { position: relative; z-index: 1; }
.final h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 14px; }
.final p { color: #CAD4E0; max-width: 600px; margin: 0 auto 30px; }

footer { background: var(--navy); color: #93A2B7; padding: 48px 24px; font-size: .88rem; }
.foot-grid { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr 1fr 1fr; gap: 24px; }
footer h4 { color: #fff; font-size: .92rem; margin-bottom: 12px; font-weight: 800; }
footer a { color: #93A2B7; text-decoration: none; display: block; padding: 4px 0; transition: color 0.2s; }
footer a:hover { color: #fff; }
.foot-legal { max-width: 1140px; margin: 32px auto 0; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 20px; font-size: .8rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); padding: 0; transition: background .15s, transform .15s; }
.social-row a:hover { background: var(--emerald); transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; fill: #CAD4E0; }
.social-row a:hover svg { fill: #fff; }

/* ==========================================================================
   12. PÁGINAS LEGALES (AVISO PRIVACIDAD, TÉRMINOS Y REGLAMENTO)
   ========================================================================== */

.legal-content-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
}

.legal-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.legal-block {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 32px;
  margin-bottom: 32px;
}

.legal-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.legal-block h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.legal-block h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 24px 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legal-block h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--emerald);
  margin: 16px 0 8px 0;
}

.legal-block p,
.legal-block ul,
.legal-block ol {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.legal-block ul {
  list-style-type: disc;
  padding-left: 24px;
  margin-top: 12px;
}

.legal-block ol {
  list-style-type: lower-alpha;
  padding-left: 24px;
  margin-top: 12px;
}

.legal-block li {
  margin-bottom: 10px;
}

.legal-block strong {
  color: #ffffff;
}

.legal-block a {
  color: var(--emerald);
  text-decoration: underline;
}

.legal-block a:hover {
  color: #34d399;
}

.section-divider-title {
  font-size: 1.4rem !important;
  color: #ffffff !important;
  text-align: center;
  border-bottom: 2px solid var(--emerald);
  padding-bottom: 12px;
  margin-bottom: 24px !important;
}




/* ==========================================================================
   13. ESTILOS DEL MODAL (POP-UP) ALIADOS
   ========================================================================== */

*/
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(4,21,51,0.6);
backdrop-filter: blur(6px);
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s, visibility 0.3s;
padding: 24px;
}

.modal-overlay.active {
opacity: 1;
visibility: visible;
}

.modal-content {
background: #fff;
width: 100%;
max-width: 520px;
border-radius: 24px;
padding: 40px;
position: relative;
transform: translateY(20px);
transition: transform 0.3s;
box-shadow: 0 24px 50px rgba(4,21,51,0.2);
text-align: left;
max-height: 90vh;
overflow-y: auto;
}

.modal-overlay.active .modal-content {
transform: translateY(0);
}

.modal-close {
position: absolute;
top: 20px;
right: 24px;
font-size: 2.2rem;
border: none;
background: none;
color: var(--muted);
cursor: pointer;
line-height: 1;
transition: color 0.2s;
}

.modal-close:hover {
color: var(--red);
}

.modal-content h3 {
color: var(--navy);
font-size: 1.35rem;
margin-bottom: 8px;
font-weight: 800;
}

.modal-content p.m-sub {
color: var(--muted);
font-size: .95rem;
margin-bottom: 24px;
line-height: 1.5;
}

.modal-content label {
display: block;
font-weight: 700;
font-size: .88rem;
color: var(--navy);
margin: 16px 0 6px;
}

.modal-content input,
.modal-content select {
width: 100%;
padding: 14px;
border: 1px solid var(--border);
border-radius: 12px;
font-size: .95rem;
background: #fff;
color: var(--ink);
font-family: inherit;
transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-content input:focus,
.modal-content select:focus {
outline: none;
border-color: var(--violet);
box-shadow: 0 0 0 3px rgba(82, 37, 131, 0.15);
}

/* Estado de Error en Validaciones */
.modal-content input.input-error,
.modal-content select.input-error {
border-color: var(--red) !important;
box-shadow: 0 0 0 3px rgba(243, 85, 63, 0.15) !important;
}

.modal-content .btn {
width: 100%;
margin-top: 24px;
}

.modal-content .form-note {
font-size: .8rem;
color: var(--muted);
margin-top: 16px;
text-align: center;
}

/* Estado de Éxito / Confirmación */
.modal-success-state {
display: none;
text-align: center;
padding: 12px 0;
}

.modal-success-state .success-icon {
width: 64px;
height: 64px;
background: #DBFBE6;
color: #16A442;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 20px;
}

.modal-success-state .success-icon svg {
width: 32px;
height: 32px;
stroke: currentColor;
fill: none;
stroke-width: 3;
stroke-linecap: round;
stroke-linejoin: round;
}

/* ==========================================================================
     SECCIÓN: ¿POR QUÉ RECOMENDAR CUMPY? (4 Columnas + Hover Reveal)
     Puedes mover este CSS a tu archivo estilos.css
     ========================================================================== */
  .why-recommend-dark {
    background: #041533; /* Fondo oscuro azul */
    padding: 80px 24px;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .why-recommend-dark .wrap {
    max-width: 1200px;
    margin: 0 auto;
  }

  .why-recommend-dark .sec-title {
    color: #ffffff;
    text-align: center;
  }

  .why-recommend-dark .sec-sub {
    color: #CAD4E0;
    text-align: center;
    margin-bottom: 56px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Cuadrícula de 4 columnas */
  .hover-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start; /* Evita que las tarjetas se estiren si una crece */
  }

  @media (max-width: 1024px) {
    .hover-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 600px) {
    .hover-grid { grid-template-columns: 1fr; }
  }

  /* La Tarjeta Interactiva */
  .h-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
  }

  .h-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  }

  /* Etiqueta Superior */
  .h-tag {
    align-self: flex-start;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(243, 85, 63, 0.15);
    color: #FF8B7A;
    margin-bottom: 12px;
  }

  /* Título (El Dolor) */
  .h-card h4 {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 800;
    margin: 0;
    line-height: 1.4;
  }

  /* Indicador Visual (Desaparece al hacer hover) */
  .h-indicator {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--emerald);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 1;
    max-height: 20px;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease;
    overflow: hidden;
  }

  .h-card:hover .h-indicator {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
  }

  /* =========================================================
     TRUCO DE EXPANSIÓN SUAVE: grid-template-rows 0fr -> 1fr
     ========================================================= */
  .h-reveal-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
    opacity: 0;
  }

  .h-card:hover .h-reveal-wrapper {
    grid-template-rows: 1fr;
    opacity: 1;
  }

  .h-reveal-inner {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 0;
    transition: padding 0.5s ease;
  }

  .h-card:hover .h-reveal-inner {
    padding-top: 20px;
  }

  /* Cajas Internas Ocultas */
  .h-box {
    padding: 16px;
    border-radius: 12px;
    font-size: .88rem;
    line-height: 1.5;
    color: #CAD4E0;
  }

  .h-box.sol {
    background: rgba(0, 116, 204, 0.15);
    border-left: 3px solid var(--azul-control);
  }
  .h-box.val {
    background: rgba(22, 164, 66, 0.15);
    border-left: 3px solid var(--emerald);
  }

  .h-box-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
  }

  .h-box.sol .h-box-title { color: #73C2FB; }
  .h-box.val .h-box-title { color: var(--emerald); }
  .h-box.val svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; }

/* ==========================================================================
     ALIANDOS --> SECCIÓN: CÓMO FUNCIONA EL PROGRAMA (5 Pasos a color)
     ========================================================================== */
  .como-funciona-sec {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
  }

  .como-funciona-sec > .wrap {
    position: relative;
    z-index: 1;
  }

  .como-funciona-sec .sec-title { text-align: center; }
  .como-funciona-sec .sec-sub { text-align: center; max-width: 760px; margin: 0 auto 56px; }

  /* Grid Responsivo para 5 columnas */
  .step-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
  }

  .step-reveal-icon {
    position: absolute;
    top: -210px;
    right: calc((100% - 80px) / 10);
    width: 260px;
    height: 260px;
    transform: translateX(50%);
    opacity: .38;
    pointer-events: none;
    z-index: 0;
  }

  /* La tarjeta base */
  .step-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 24px rgba(4, 21, 51, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }

  /* El número base */
  .step-card .num {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
  }

  .step-card h4 {
    font-size: 1.1rem;
    color: var(--navy);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
  }

  .step-card p {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
  }

  /* ==========================================
     MAGIA DE COLORES (Uno por cada paso)
     ========================================== */

  /* Paso 1: Navy */
  .step-card:nth-child(1) .num { background: rgba(4, 39, 89, 0.08); color: var(--navy); }
  .step-card:nth-child(1):hover { border-color: var(--navy); box-shadow: 0 16px 40px rgba(4, 39, 89, 0.12); transform: translateY(-4px); }
  .step-card:nth-child(1):hover .num { background: var(--navy); color: #fff; transform: scale(1.1); }

  /* Paso 2: Azul Control */
  .step-card:nth-child(2) .num { background: rgba(0, 116, 204, 0.08); color: var(--azul-control); }
  .step-card:nth-child(2):hover { border-color: var(--azul-control); box-shadow: 0 16px 40px rgba(0, 116, 204, 0.12); transform: translateY(-4px); }
  .step-card:nth-child(2):hover .num { background: var(--azul-control); color: #fff; transform: scale(1.1); }

  /* Paso 3: Violeta */
  .step-card:nth-child(3) .num { background: rgba(82, 37, 131, 0.08); color: var(--violet); }
  .step-card:nth-child(3):hover { border-color: var(--violet); box-shadow: 0 16px 40px rgba(82, 37, 131, 0.12); transform: translateY(-4px); }
  .step-card:nth-child(3):hover .num { background: var(--violet); color: #fff; transform: scale(1.1); }

  /* Paso 4: Ámbar */
  .step-card:nth-child(4) .num { background: rgba(242, 181, 50, 0.15); color: #A87400; }
  .step-card:nth-child(4):hover { border-color: var(--amber); box-shadow: 0 16px 40px rgba(242, 181, 50, 0.15); transform: translateY(-4px); }
  .step-card:nth-child(4):hover .num { background: var(--amber); color: #fff; transform: scale(1.1); }

  /* Paso 5: Esmeralda */
  .step-card:nth-child(5) .num { background: rgba(22, 164, 66, 0.1); color: var(--emerald-dark); }
  .step-card:nth-child(5):hover { border-color: var(--emerald); box-shadow: 0 16px 40px rgba(22, 164, 66, 0.15); transform: translateY(-4px); }
  .step-card:nth-child(5):hover .num { background: var(--emerald); color: #fff; transform: scale(1.1); }

  /* ==========================================================================
     ALIADOS --> SECCIÓN: BENEFICIOS PARA ALIADOS (Tarjetas con hover dinámico)
     ========================================================================== */
  .beneficios-sec {
    background: #ffffff; /* Fondo blanco para separarse de la sección anterior */
    padding: 100px 24px; /* Mucho aire arriba y abajo para que no se vea pegada */
    position: relative;
  }

  .beneficios-sec .wrap { max-width: 1100px; margin: 0 auto; }
  .beneficios-sec .sec-title { text-align: center; }
  .beneficios-sec .sec-sub { text-align: center; max-width: 700px; margin: 0 auto 64px; }

  /* Cuadrícula 2x2 */
  .b-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  /* La Tarjeta de Beneficio */
  .b-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    position: relative;
    overflow: hidden;
    /* Transición con efecto "rebote" suave */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(4, 21, 51, 0.02);
  }

  /* Brillo sutil de fondo que aparece al hacer hover */
  .b-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
  }

  .b-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(4, 21, 51, 0.08);
  }
  .b-card:hover::before { opacity: 1; }

  /* Contenedor del Ícono */
  .b-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease, border-radius 0.4s ease;
  }

  .b-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .b-card:hover .b-icon {
    transform: scale(1.1) rotate(-5deg);
    border-radius: 22px; /* Se hace un poco más redondito al pasar el mouse */
  }

  /* Textos */
  .b-text {
    position: relative;
    z-index: 2;
  }
  .b-text h4 {
    font-size: 1.2rem;
    color: var(--navy);
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color 0.3s ease;
  }
  .b-text p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
  }

  /* ==========================================
     COLORES POR TARJETA
     ========================================== */

  /* 1. Comisión (Verde) */
  .b-card.c-green .b-icon { background: rgba(22, 164, 66, 0.1); color: var(--emerald-dark); }
  .b-card.c-green:hover { border-color: var(--emerald); }
  .b-card.c-green:hover .b-icon { background: var(--emerald); color: #fff; box-shadow: 0 8px 24px rgba(22, 164, 66, 0.3); }

  /* 2. Kit (Morado) */
  .b-card.c-purple .b-icon { background: rgba(82, 37, 131, 0.08); color: var(--violet); }
  .b-card.c-purple:hover { border-color: var(--violet); }
  .b-card.c-purple:hover .b-icon { background: var(--violet); color: #fff; box-shadow: 0 8px 24px rgba(82, 37, 131, 0.3); }

  /* 3. Demo (Azul) */
  .b-card.c-blue .b-icon { background: rgba(0, 116, 204, 0.08); color: var(--azul-control); }
  .b-card.c-blue:hover { border-color: var(--azul-control); }
  .b-card.c-blue:hover .b-icon { background: var(--azul-control); color: #fff; box-shadow: 0 8px 24px rgba(0, 116, 204, 0.3); }

  /* 4. Servicio (Ámbar) */
  .b-card.c-amber .b-icon { background: rgba(242, 181, 50, 0.15); color: #A87400; }
  .b-card.c-amber:hover { border-color: var(--amber); }
  .b-card.c-amber:hover .b-icon { background: var(--amber); color: #fff; box-shadow: 0 8px 24px rgba(242, 181, 50, 0.4); }


  /* ==========================================================================
     ALIADOS --> SECCIÓN: TIPOS DE ALIADOS (Diseño "Profile Cards")
     ========================================================================== */
  .perfiles-sec {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
  }

  .perfiles-sec .wrap {
    max-width: 1060px;
    margin: 0 auto;
  }

  .perfiles-sec .sec-title { text-align: center; }
  .perfiles-sec .sec-sub { text-align: center; max-width: 700px; margin: 0 auto 64px; }

  /* Cuadrícula 2x2 */
  .pt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  /* La Tarjeta de Perfil */
  .pt-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(4, 21, 51, 0.03);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .pt-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(4, 21, 51, 0.08);
  }

  /* Encabezado de color de la tarjeta */
  .pt-header {
    height: 80px;
    width: 100%;
    position: relative;
    transition: height 0.4s ease;
  }

  /* Textura de fondo sutil para el encabezado */
  .pt-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 10px 10px, rgba(255,255,255,0.2) 2px, transparent 0);
    background-size: 20px 20px;
    opacity: 0.5;
  }

  .pt-card:hover .pt-header {
    height: 96px; /* Se expande un poquito al pasar el mouse */
  }

  /* El Avatar circular flotante */
  .pt-avatar {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -40px auto 16px; /* Esto lo hace flotar entre el header y el cuerpo */
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
  }

  .pt-avatar svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .pt-card:hover .pt-avatar {
    transform: scale(1.1) rotate(5deg);
  }

  /* Cuerpo de la tarjeta */
  .pt-body {
    padding: 0 32px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
  }

  .pt-body h4 {
    font-size: 1.3rem;
    color: var(--navy);
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1.2;
  }

  /* Etiqueta "Aporta..." */
  .pt-badge {
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
    display: inline-block;
  }

  .pt-body .desc {
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
  }

  /* ==========================================
     TEMAS DE COLOR POR PERFIL
     ========================================== */

  /* 1. Contador (Azul Control) */
  .pt-card.t-blue .pt-header { background: linear-gradient(135deg, var(--azul-control), #2D9CDB); }
  .pt-card.t-blue .pt-avatar { color: var(--azul-control); }
  .pt-card.t-blue .pt-badge { background: rgba(0, 116, 204, 0.1); color: var(--azul-control); border: 1px solid rgba(0, 116, 204, 0.2); }

  /* 2. Despacho (Violeta) */
  .pt-card.t-purple .pt-header { background: linear-gradient(135deg, var(--violet), #7B49B6); }
  .pt-card.t-purple .pt-avatar { color: var(--violet); }
  .pt-card.t-purple .pt-badge { background: rgba(82, 37, 131, 0.1); color: var(--violet); border: 1px solid rgba(82, 37, 131, 0.2); }

  /* 3. Cámara (Esmeralda) */
  .pt-card.t-green .pt-header { background: linear-gradient(135deg, var(--emerald-dark), var(--emerald)); }
  .pt-card.t-green .pt-avatar { color: var(--emerald); }
  .pt-card.t-green .pt-badge { background: rgba(22, 164, 66, 0.1); color: var(--emerald-dark); border: 1px solid rgba(22, 164, 66, 0.2); }

  /* 4. Consultor (Ámbar) */
  .pt-card.t-amber .pt-header { background: linear-gradient(135deg, #E69A00, var(--amber)); }
  .pt-card.t-amber .pt-avatar { color: #CC8400; }
  .pt-card.t-amber .pt-badge { background: rgba(242, 181, 50, 0.15); color: #A87400; border: 1px solid rgba(242, 181, 50, 0.3); }

  /* ==========================================================================
    ALIADOS --> SECCIÓN: ¿PARA QUIÉN ES? (Tarjetas Pastel Interactivas)
    ========================================================================== */
  .pq-sec {
    background: #ffffff;
    padding: 100px 24px;
    position: relative;
    border-top: 1px solid var(--border);
  }

  .pq-sec .wrap {
    max-width: 1060px;
    margin: 0 auto;
  }

  .pq-sec .sec-title { text-align: center; }
  .pq-sec .sec-sub { text-align: center; max-width: 760px; margin: 0 auto 56px; }

  /* Cuadrícula 2x2 */
  .pq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* La Tarjeta Intro */
  .pq-card {
    border-radius: 24px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, border-color 0.3s ease;
    cursor: default;
  }

  .pq-card:hover {
    transform: translateY(-6px);
  }

  /* El Ícono de la Tarjeta */
  .pq-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 24px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .pq-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .pq-card:hover .pq-icon {
    transform: scale(1.1) rotate(-8deg);
  }

  .pq-card h4 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.2;
  }

  .pq-card p {
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
  }

  /* ==========================================
     TEMAS PASTEL POR TARJETA
     ========================================== */

  /* 1. Contador (Azul) */
  .pq-card.t-blue { background: rgba(0, 116, 204, 0.04); border-color: rgba(0, 116, 204, 0.1); }
  .pq-card.t-blue .pq-icon { background: var(--azul-control); box-shadow: 0 8px 24px rgba(0, 116, 204, 0.3); }
  .pq-card.t-blue:hover { background: rgba(0, 116, 204, 0.08); border-color: rgba(0, 116, 204, 0.2); }

  /* 2. Despacho (Violeta) */
  .pq-card.t-purple { background: rgba(82, 37, 131, 0.04); border-color: rgba(82, 37, 131, 0.1); }
  .pq-card.t-purple .pq-icon { background: var(--violet); box-shadow: 0 8px 24px rgba(82, 37, 131, 0.3); }
  .pq-card.t-purple:hover { background: rgba(82, 37, 131, 0.08); border-color: rgba(82, 37, 131, 0.2); }

  /* 3. Cámara (Verde) */
  .pq-card.t-green { background: rgba(22, 164, 66, 0.04); border-color: rgba(22, 164, 66, 0.1); }
  .pq-card.t-green .pq-icon { background: var(--emerald); box-shadow: 0 8px 24px rgba(22, 164, 66, 0.3); }
  .pq-card.t-green:hover { background: rgba(22, 164, 66, 0.08); border-color: rgba(22, 164, 66, 0.2); }

  /* 4. Consultor (Ámbar) */
  .pq-card.t-amber { background: rgba(242, 181, 50, 0.05); border-color: rgba(242, 181, 50, 0.15); }
  .pq-card.t-amber .pq-icon { background: var(--amber); box-shadow: 0 8px 24px rgba(242, 181, 50, 0.3); }
  .pq-card.t-amber:hover { background: rgba(242, 181, 50, 0.12); border-color: rgba(242, 181, 50, 0.25); }

/* Controles añadidos durante la migración segura */
.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  font-size: .86rem;
  line-height: 1.4;
}

.privacy-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.form-feedback {
  min-height: 1.5em;
  margin-top: 10px;
  color: #9a3412;
  font-weight: 700;
}

.turnstile-slot {
  min-height: 65px;
  margin: 14px 0;
}

.turnstile-slot:empty {
  min-height: 0;
  margin: 0;
}

.whatsapp-float {
  position: fixed;
  z-index: 900;
  right: 20px;
  bottom: 20px;
  padding: 12px 17px;
  color: #fff;
  background: #128c4a;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(4,21,51,.22);
  font-weight: 800;
  text-decoration: none;
}

footer {
  padding: 48px 24px;
  color: #fff;
  background: #041533;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  width: min(1180px, 100%);
  margin: auto;
}

.footer-brand .logo-full {
  max-width: 180px;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer-links a { color: #fff; }

.consent-banner {
  position: fixed;
  z-index: 10000;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 980px;
  margin: auto;
  padding: 18px 20px;
  color: #fff;
  background: #042759;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(4,21,51,.32);
}

.consent-banner p { margin: 0; }
.consent-banner a { color: #fff; text-decoration: underline; }
.consent-banner > div { display: flex; gap: 10px; flex: 0 0 auto; }
.consent-banner .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }

/* Estado genérico de 404. Las pantallas de pago heredadas fueron retiradas. */
.status-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background: var(--bg);
}

.status-card {
  width: min(600px, 100%);
  padding: 48px 36px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 50px -12px rgba(4,21,51,.1);
}

.status-icon {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  color: var(--navy);
  background: rgba(242,181,50,.18);
  border-radius: 50%;
  font-size: 2rem;
}

.status-card h1 { color: var(--navy); margin-bottom: 14px; }
.status-card .lead { color: var(--muted); line-height: 1.6; margin-bottom: 28px; }

/* Igualdad visual con V3: la lógica segura vive en JS/API, no altera el diseño. */
cumpy-menu .logo-full {
  width: 135px;
  height: 48px;
  object-fit: fill;
}

mi-footer .logo-svg.foot {
  width: 309px;
  height: 52px;
  display: block;
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  padding: 0;
  color: #fff;
  background: #25D266;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 210, 102, .45);
  text-decoration: none;
  transition: transform .2s, background .2s;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background: #1EBE5D;
  transform: scale(1.05);
  animation: none;
}

.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

footer {
  padding: 48px 24px;
  color: #93A2B7;
  background: var(--navy);
}

@media (max-width: 640px) {
  .consent-banner { align-items: stretch; flex-direction: column; }
  .consent-banner > div { width: 100%; }
  .consent-banner .btn { flex: 1; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
