/* =============================================================
   MASTER MONITOR — styles.css
   Separado del HTML para mejor caching, mantenimiento y SEO.
   Organización: Tokens → Reset → Utilidades → Componentes → Layout → Responsive
   ============================================================= */

/* =============================================
   1. DESIGN TOKENS (Custom Properties)
   ============================================= */
:root {
  /* Colors */
  --navy:       #0E2A47;
  --navy2:      #132F52;
  --navy3:      #0A1E38;
  --mint:       #00C896;
  --mint2:      #00A87E;
  --teal:       #0D8A6A;
  --gold:       #E8A020;
  --light:      #F0F6FF;
  --white:      #FFFFFF;
  --text:       #1A2332;
  --muted:      #5A6B82;
  --border:     #D8E4EF;

  /* Typography */
  --ff-head: 'Sora', sans-serif;
  --ff-body: 'DM Sans', sans-serif;

  /* Spacing scale */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Transitions */
  --transition: 200ms cubic-bezier(.4, 0, .2, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(14, 42, 71, .08);
  --shadow-md: 0 4px 16px rgba(14, 42, 71, .12);

  /* Layout */
  --container-max: 1160px;
  --nav-h: 60px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Mejora rendering de fuentes */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

/* =============================================
   3. UTILITIES
   ============================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: 72px 0;
}

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  font-family: var(--ff-head);
}

.section-title {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 12px;
  font-family: var(--ff-head);
}

.section-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 560px;
}

/* Accesibilidad: oculto visualmente pero legible por lectores */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================
   4. NAVBAR
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--navy);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  /* Backdrop blur para glassmorphism sutil */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-top: 7px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--ff-head);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .3px;
}

.nav-logo-img {
  display: block;
  height: auto;
  width: 200px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 13px;
  color: rgba(255, 255, 255, .65);
  transition: color var(--transition);
  font-weight: 400;
  padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link.active {
  font-weight: 500;
}

.nav-cta {
  background: var(--mint);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
  font-family: var(--ff-head);
}

.nav-cta:hover {
  background: #00e0aa;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  width: 28px;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--navy3);
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: var(--space-md) var(--space-lg);
  flex-direction: column;
  gap: 4px;
}

.nav-mobile a {
  display: block;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav-mobile a:last-child {
  border: none;
}

.nav-mobile .nav-cta {
  display: inline-block;
  margin-top: 10px;
  text-align: center;
}

/* =============================================
   5. HERO
   ============================================= */
.hero {
  background: var(--navy);
  overflow: hidden;
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
}

/* Imagen de fondo full-width, detrás de todo lo demás */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

/* Video de fondo full-width, detrás de todo lo demás */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

/* Overlay para legibilidad del texto sobre la foto */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(14, 42, 71, .96) 0%,
    rgba(14, 42, 71, .88) 32%,
    rgba(14, 42, 71, .55) 58%,
    rgba(14, 42, 71, .25) 78%,
    rgba(14, 42, 71, .15) 100%
  );
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(0, 200, 150, .12);
  pointer-events: none;
  z-index: 2;
}

.hero-orb::before {
  content: '';
  position: absolute;
  inset: 60px;
  border-radius: 50%;
  border: 1px solid rgba(0, 200, 150, .08);
}

.hero-orb::after {
  content: '';
  position: absolute;
  inset: 130px;
  border-radius: 50%;
  border: 1px solid rgba(0, 200, 150, .05);
}

.hero .container {
  display: block;
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-left {
  position: relative;
  padding: 64px 0 56px;
  max-width: 560px;
}

/* Mancha de luz suave y animada detrás del título/subtítulo,
   para que el texto siga siendo legible sobre la foto del hero */
.hero-left-glow {
  position: absolute;
  z-index: -1;
  left: -70px;
  top: -60px;
  width: 680px;
  height: 520px;
  background: radial-gradient(
    ellipse 60% 55% at 30% 35%,
    rgba(10, 26, 43, .85) 0%,
    rgba(10, 26, 43, .45) 55%,
    transparent 80%
  );
  pointer-events: none;
  animation: hero-glow-breathe 7s ease-in-out infinite;
}

@keyframes hero-glow-breathe {
  0%, 100% { opacity: .85; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-left-glow { animation: none; }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 200, 150, .12);
  border: 1px solid rgba(0, 200, 150, .28);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.hero-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.3); }
}

.hero-pill-text {
  font-size: 11px;
  color: var(--mint);
  font-weight: 500;
  letter-spacing: .3px;
}

.hero-h1 {
  font-family: var(--ff-head);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.hero-h1 em {
  color: var(--mint);
  font-style: normal;
}

.hero-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, .58);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 440px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  background: var(--mint);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
  font-family: var(--ff-head);
  display: inline-block;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #00e0aa;
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .85);
  font-size: 14px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), color var(--transition);
  display: inline-block;
  font-family: var(--ff-head);
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
}

/* Hero dashboard SVG */
.hero-right {
  width: 420px;
  flex-shrink: 0;
  align-self: flex-end;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero-dashboard {
  width: 100%;
  height: 300px;
}

/* =============================================
   6. STATS BAR
   ============================================= */
.stats-bar {
  background: #081E36;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 20px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, .06);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--ff-head);
  font-size: 26px;
  font-weight: 600;
  color: var(--mint);
  line-height: 1;
}

.stat-lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, .38);
  margin-top: 4px;
  letter-spacing: .3px;
}

/* =============================================
   7. SERVICIOS
   ============================================= */
.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  gap: var(--space-lg);
}

.services-header .section-desc {
  margin-bottom: 0;
}

.services-link {
  font-size: 13px;
  color: var(--teal);
  font-weight: 500;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--teal);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.svc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.svc-card:hover {
  border-color: var(--mint2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.svc-card-img {
  height: 130px;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.svc-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 9px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: .3px;
  font-family: var(--ff-head);
  z-index: 1;
}

.badge-new { background: #dbeafe; color: #1e40af; }
.badge-pop { background: #d1fae5; color: #065f46; }

.svc-card-body {
  padding: 18px;
}

.svc-card-title {
  font-family: var(--ff-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.svc-card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* Resalte de información clave dentro del texto, estilo "highlighter" */
.svc-hl {
  background: rgba(0, 200, 150, .14);
  color: var(--navy);
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.svc-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--teal);
  font-weight: 500;
  margin-top: 12px;
  transition: gap var(--transition);
}

.svc-card:hover .svc-card-link {
  gap: 8px;
}

/* =============================================
   8. POR QUÉ (NOSOTROS)
   ============================================= */.why {
  background: var(--light);
}

/* Grid principal: texto izquierda | imagen derecha */
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* columna izquierda = contenido, derecha = imagen */
  gap: 48px;
  align-items: center;
}

/* Imagen derecha */
.why-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);   /* opcional, quítalo si no lo quieres */
}

/* Grid de cards 2×2 */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 0;
}

.why-card {
  background: transparent;
  padding: 18px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  cursor: default;
}

.why-card:hover {
  border-color: var(--mint);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(29,233,182,.09);
}

.why-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  flex-shrink: 0;
  position: relative;
}

.why-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.45;
}

/* Responsive: apila verticalmente en móvil */
@media (max-width: 768px) {
  .why-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* En móvil la imagen va abajo del texto */
  .why-visual {
    order: 2;
  }
}
/* =============================================
   9. CLIENTES (MARQUEE)
   ============================================= */
.clients-section {
  padding-top: 0;
}

.clients-title {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: var(--space-lg);
  letter-spacing: .4px;
}

.clients-track-wrap {
  overflow: hidden;
  /* Fade en los bordes */
  -webkit-mask: linear-gradient(90deg, transparent, #fff 10%, #fff 90%, transparent);
          mask: linear-gradient(90deg, transparent, #fff 10%, #fff 90%, transparent);
}

.clients-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: scroll-x 28s linear infinite;
}

/* Respeta prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .clients-track {
    animation-play-state: paused;
  }
}

.clients-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-x {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-chip {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 12px;
  font-weight: 500;
  box-shadow:black;
  color: var(--muted);
  white-space: nowrap;
  font-family: var(--ff-head);
    border: 2px solid #000000;
}

/* =============================================
   10. CTA BANNER
   ============================================= */
.cta-banner {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 34px 0;
}

.cta-banner-orb {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(0, 200, 150, .1);
  pointer-events: none;
}

.cta-banner-orb::before {
  content: '';
  position: absolute;
  inset: 60px;
  border-radius: 50%;
  border: 1px solid rgba(0, 200, 150, .07);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--ff-head);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.25;
}

.cta-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, .5);
}

.cta-form {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cta-input {
  height: 44px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 13px;
  width: 220px;
  font-family: var(--ff-body);
  outline: none;
  transition: border-color var(--transition);
}

.cta-input::placeholder {
  color: rgba(255, 255, 255, .35);
}

.cta-input:focus {
  border-color: rgba(0, 200, 150, .5);
}

.cta-btn {
  height: 44px;
  padding: 0 24px;
  background: var(--mint);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  font-family: var(--ff-head);
  transition: background var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.cta-btn:hover {
  background: #00e0aa;
}

/* --- Versión destacada: postulación Mystery Shopper --- */
.cta-banner--featured {
  background:
    radial-gradient(circle at 85% 15%, rgba(232, 160, 32, .18) 0%, transparent 55%),
    linear-gradient(120deg, var(--navy3) 0%, var(--navy2) 55%, var(--navy3) 100%);
  background-size: 100% 100%, 220% 220%;
  animation: cta-bg-drift 16s ease-in-out infinite;
  padding: 68px 0;
  border-top: 1px solid rgba(232, 160, 32, .28);
  border-bottom: 1px solid rgba(232, 160, 32, .28);
}

@keyframes cta-bg-drift {
  0%   { background-position: 0% 0%, 0% 50%; }
  50%  { background-position: 0% 0%, 100% 50%; }
  100% { background-position: 0% 0%, 0% 50%; }
}

/* Capa de partículas ambientales */
.cta-banner--featured::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(232, 160, 32, .55) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(232, 160, 32, .35) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(0, 200, 150, .3) 1.5px, transparent 1.5px);
  background-size: 220px 220px, 300px 300px, 260px 260px;
  background-position: 10% 20%, 70% 60%, 40% 85%;
  animation: cta-particles-drift 22s linear infinite;
  opacity: .55;
}

@keyframes cta-particles-drift {
  0%   { background-position: 10% 20%, 70% 60%, 40% 85%; }
  100% { background-position: 10% -180%, 70% -140%, 40% -160%; }
}

.cta-banner--featured .cta-banner-orb {
  width: 520px;
  height: 520px;
  right: -140px;
  border-color: rgba(232, 160, 32, .18);
  animation: cta-orb-drift-a 13s ease-in-out infinite;
  transform-origin: center;
}

.cta-banner--featured .cta-banner-orb::before {
  inset: 80px;
  border-color: rgba(232, 160, 32, .12);
}

@keyframes cta-orb-drift-a {
  0%, 100% { transform: translateY(-50%) translate(0, 0) scale(1); opacity: .9; }
  50%      { transform: translateY(-50%) translate(-18px, 22px) scale(1.08); opacity: 1; }
}

.cta-banner-orb--2 {
  right: auto;
  left: -120px;
  top: auto;
  bottom: -160px;
  width: 300px;
  height: 300px;
  transform: none;
  border-color: rgba(232, 160, 32, .14);
  animation: cta-orb-drift-b 9s ease-in-out infinite;
  transform-origin: center;
}

.cta-banner-orb--2::before {
  inset: 50px;
  border-color: rgba(232, 160, 32, .1);
}

@keyframes cta-orb-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .85; }
  50%      { transform: translate(16px, -20px) scale(1.12); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cta-banner--featured,
  .cta-banner--featured::after,
  .cta-banner--featured .cta-banner-orb,
  .cta-banner-orb--2 {
    animation: none;
  }
}

.cta-banner--featured .cta-inner {
  align-items: center;
  gap: var(--space-2xl);
}

.cta-copy {
  max-width: 620px;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(232, 160, 32, .16);
  border: 1px solid rgba(232, 160, 32, .4);
  color: var(--gold);
  font-family: var(--ff-head);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  margin-bottom: 16px;
}

.cta-banner--featured .cta-title {
  font-size: clamp(24px, 3.6vw, 38px);
  margin-bottom: 12px;
}

.cta-title-accent {
  color: var(--gold);
}

.cta-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .68);
  max-width: 520px;
  margin-bottom: 20px;
}

.cta-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cta-perk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.cta-perk-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(232, 160, 32, .2);
}

.cta-banner--featured .cta-form {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.cta-banner--featured .cta-btn {
  height: 56px;
  padding: 0 30px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(232, 160, 32, .3);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.cta-banner--featured .cta-btn:hover {
  background: #f5b13a;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(232, 160, 32, .4);
}

.cta-btn-arrow {
  transition: transform var(--transition);
}

.cta-banner--featured .cta-btn:hover .cta-btn-arrow {
  transform: translateX(4px);
}

.cta-form-note {
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
}

@media (prefers-reduced-motion: reduce) {
  .cta-banner--featured .cta-btn:hover { transform: none; }
}

/* =============================================
   11. BLOG
   ============================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-img {
  height: 100px;
  overflow: hidden;
  position: relative;
}

.blog-body {
  padding: 18px;
}

.blog-tag {
  font-size: 9px;
  color: var(--teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 6px;
  font-family: var(--ff-head);
}

.blog-title {
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 8px;
}

.blog-meta {
  font-size: 11px;
  color: var(--muted);
}

/* ── Tarjetas de documentos (Noticias actuales del mercado) ── */
.blog-card.news-doc-card {
  background: var(--navy);
  border-color: transparent;
  display: flex;
  flex-direction: column;
}

.news-doc-img {
  height: 160px;
  overflow: hidden;
  background: var(--navy3);
}

.news-doc-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-doc-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.news-doc-title {
  font-family: var(--ff-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  flex: 1;
}

.news-doc-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  background: var(--mint);
  color: var(--navy);
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.news-doc-btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.news-doc-btn:hover {
  background: #00e0aa;
  transform: translateY(-2px);
}

.news-doc-btn:hover svg {
  transform: translateX(2px);
}

.news-doc-btn:focus-visible {
  outline: 2px solid var(--mint2);
  outline-offset: 2px;
}

/* =============================================
   12. FOOTER
   ============================================= */
.footer {
  background: #06172A;
  padding: 52px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand-name {
  font-family: var(--ff-head);
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-logo-img {
  display: block;
  width: 130px;
  height: auto;
}

.footer-tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, .32);
  line-height: 1.75;
}

.footer-col-title {
  font-family: var(--ff-head);
  font-size: 10px;
  color: rgb(255, 255, 255);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 14px;
}

.footer-link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.701);
  margin-bottom: var(--space-sm);
  display: block;
  transition: color var(--transition);
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.438);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 11px;
  color: rgb(255, 255, 255);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  font-size: 18px;
  color: rgb(255, 255, 255);
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.301);
}

/* =============================================
   13. MODAL DE CONTACTO
   ============================================= */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(6, 23, 42, .75);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-bg.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 36px;
  position: relative;
  transform: translateY(20px);
  transition: transform 300ms cubic-bezier(.4, 0, .2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-bg.open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--light);
  color: var(--muted);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}

.modal-close:hover {
  background: var(--border);
}

.modal h2 {
  font-family: var(--ff-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Form elements */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
  display: block;
  font-family: var(--ff-head);
}

.form-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  background: var(--white);
}

.form-input:focus {
  border-color: var(--mint2);
}

.form-input:user-invalid {
  border-color: #e53e3e;
}

.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--text);
  outline: none;
  resize: vertical;
  min-height: 90px;
  transition: border-color var(--transition);
}

.form-textarea:focus {
  border-color: var(--mint2);
}

.form-submit {
  width: 100%;
  height: 44px;
  background: var(--navy);
  color: #fff;
  font-family: var(--ff-head);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  margin-top: 4px;
  cursor: pointer;
  border: none;
}

.form-submit:hover {
  background: var(--navy2);
}

/* =============================================
   14. TOAST NOTIFICATION
   ============================================= */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-family: var(--ff-body);
  border-left: 3px solid var(--mint);
  box-shadow: var(--shadow-md);
  z-index: 300;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 300ms cubic-bezier(.4, 0, .2, 1), opacity 300ms;
  max-width: 320px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* =============================================
   15. SCROLL REVEAL ANIMATION
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =============================================
   16. RESPONSIVE — TABLET (≤ 900px)
   ============================================= */
@media (max-width: 900px) {
  .hero {
    min-height: 520px;
  }

  .hero-bg-overlay {
    background: linear-gradient(
      180deg,
      rgba(14, 42, 71, .92) 0%,
      rgba(14, 42, 71, .85) 55%,
      rgba(14, 42, 71, .7) 100%
    );
  }

  .hero-left {
    padding: 48px 0 40px;
    max-width: 100%;
  }

  .hero-left-glow {
    width: 100%;
    left: -24px;
    top: -40px;
  }

  .svc-grid  { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }

  .why-inner {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .cta-banner--featured {
    padding: 52px 0;
  }

  .cta-banner--featured .cta-form {
    align-items: flex-start;
  }

  .services-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =============================================
   17. RESPONSIVE — MOBILE (≤ 640px)
   ============================================= */
@media (max-width: 640px) {
  /* Mostrar hamburger, ocultar links de nav */
  .nav-links    { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile.open { display: flex; }

  /* Grids de 1 columna */
  .svc-grid  { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .why-grid  { grid-template-columns: 1fr; }

  /* Stats bar en 2 cols */
  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid rgba(255, 255, 255, .06); }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row { grid-template-columns: 1fr; }

  .cta-form {
    flex-direction: column;
    width: 100%;
  }

  .cta-input { width: 100%; }
  .cta-btn   { width: 100%; text-align: center; }

  .cta-banner--featured { padding: 40px 0; }
  .cta-banner--featured .cta-btn { width: 100%; justify-content: center; }
  .cta-perks { gap: 8px 16px; }

  .section { padding: 48px 0; }

  .modal {
    margin: var(--space-md);
    padding: 24px;
  }

  .toast {
    left: var(--space-md);
    right: var(--space-md);
    max-width: 100%;
  }
}

/* =============================================
   17b. RESPONSIVE — MOBILE EXTRA (≤ 480px)
   Ajustes finos para teléfonos angostos
   ============================================= */
@media (max-width: 480px) {
  .nav-logo-img { width: 150px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-logo-img { width: 110px; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn-primary,
  .hero-btns .btn-ghost { text-align: center; }
}
 @keyframes pulse-ring {
    0%   { r: 8;  opacity: 0.9;  stroke-width: 2.2; }
    70%  { r: 13; opacity: 0.2;  stroke-width: 1; }
    100% { r: 15; opacity: 0;    stroke-width: 0.5; }
  }
  @keyframes breathe {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.65; }
  }
  .pulse1 { animation: pulse-ring 2.4s ease-out infinite; }
  .pulse2 { animation: pulse-ring 2.4s ease-out infinite 1.2s; }
  .tick-ring { animation: breathe 2.4s ease-in-out infinite; }

  /* CSS DE BLOG*/
   :root {
    --navy:       #0E2A47;
    --navy2:      #132F52;
    --navy3:      #0A1E38;
    --mint:       #00C896;
    --mint2:      #00A87E;
    --teal:       #0D8A6A;
    --gold:       #E8A020;
    --light:      #F0F6FF;
    --white:      #FFFFFF;
    --text:       #1A2332;
    --muted:      #5A6B82;
    --border:     #D8E4EF;
    --ff-head:    'Sora', sans-serif;
    --ff-body:    'DM Sans', sans-serif;
    --space-sm:   8px;
    --space-md:   16px;
    --space-lg:   24px;
    --space-xl:   40px;
    --radius-lg:  16px;
    --transition: 200ms cubic-bezier(.4,0,.2,1);
    --shadow-md:  0 4px 16px rgba(14,42,71,.12);
    --container-max: 1160px;
  }

  @import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700&family=DM+Sans:wght@400;500;600&display=swap');

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  body { font-family: var(--ff-body); color: var(--text); background: var(--white); }

  /* ── Tus clases exactas ── */
  .container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
  }

  .section { padding: 72px 0; }

  .section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    font-family: var(--ff-head);
  }

  .section-title {
    font-size: clamp(22px, 3.5vw, 34px);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 12px;
    font-family: var(--ff-head);
  }

  /* ── Blog: solo se modifica el grid para scroll ── */
  .blog-grid {
    display: flex;                          /* flex en vez de grid */
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--mint2) var(--border);
    -webkit-overflow-scrolling: touch;
  }
  .blog-grid::-webkit-scrollbar { height: 4px; }
  .blog-grid::-webkit-scrollbar-track { background: var(--border); border-radius: 4px; }
  .blog-grid::-webkit-scrollbar-thumb { background: var(--mint2); border-radius: 4px; }

  /* ── Tus clases de card sin tocar ── */
  .blog-card {
    flex: 0 0 260px;                        /* ancho fijo para scroll */
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--white);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
  }

  .blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }

  .blog-img {
    height: 100px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
  }

  .blog-img svg { display: block; width: 100%; height: 100%; }

  .blog-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
  }

  .blog-tag {
    font-size: 9px;
    color: var(--teal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 6px;
    font-family: var(--ff-head);
  }

  .blog-title {
    font-family: var(--ff-head);
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 8px;
    flex: 1;
  }

  .blog-meta {
    font-size: 11px;
    color: var(--muted);
  }

  /* ── Link "Saber más" — extensión mínima compatible con tu CSS ── */
  .blog-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--teal);
    font-weight: 500;
    margin-top: 8px;
    transition: gap var(--transition);
    font-family: var(--ff-head);
    text-decoration: none;
  }
  .blog-card:hover .blog-link { gap: 8px; }

  /* Header row con "Ver todos" */
  .blog-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: var(--space-lg);
  }
  .blog-ver-todos {
    font-size: 13px;
    color: var(--teal);
    font-weight: 500;
    white-space: nowrap;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--teal);
    font-family: var(--ff-head);
    text-decoration: none;
    flex-shrink: 0;
  }
  .blog-hint {
    font-size: 11px;
    color: var(--muted);
    margin-top: 8px;
    text-align: right;
  }

  /* Reveal (tu clase) */
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 500ms ease, transform 500ms ease; }
  .reveal.visible { opacity: 1; transform: none; }

  /* STYLE WHATSAPP */

   .wa-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
  }

  /* Anillos de pulso */
  .wa-float__ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0;
    animation: wa-pulse 2.4s ease-out infinite;
  }
  .wa-float__ring:nth-child(2) { animation-delay: .8s; }

  @keyframes wa-pulse {
    0%   { transform: scale(1);   opacity: .7; }
    100% { transform: scale(1.9); opacity: 0;  }
  }

  /* Botón principal */
  .wa-float__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 6px 28px rgba(37, 211, 102, .50);
    text-decoration: none;
    border: none;
    cursor: pointer;
    animation: wa-bob 3.5s ease-in-out infinite;
    transition: background .25s, transform .22s, box-shadow .25s;
  }

  @keyframes wa-bob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-7px); }
  }

  .wa-float__btn:hover {
    background: #128C7E;
    transform: translateY(-4px) scale(1.07);
    box-shadow: 0 12px 36px rgba(37, 211, 102, .60);
    animation-play-state: paused;
  }

  .wa-float__btn svg {
    width: 34px;
    height: 34px;
    fill: #ffffff;
  }

  /* Punto rojo de notificación */
  .wa-float__dot {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 14px;
    height: 14px;
    background: #ff3b30;
    border: 2.5px solid #ffffff;
    border-radius: 50%;
    animation: wa-dot 1.8s ease-in-out infinite;
  }

  @keyframes wa-dot {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.3); }
  }

  /* Tooltip */
  .wa-float__tooltip {
    position: absolute;
    bottom: calc(100% + 14px);
    right: 0;
    background: #ffffff;
    color: #0f1c1a;
    font-family: sans-serif;
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: right;
    white-space: normal;
    max-width: 220px;
    padding: .7rem 1rem;
    border-radius: 14px 14px 4px 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,.18);
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px) scale(.95);
    transform-origin: bottom right;
    transition: opacity .28s, transform .28s;
  }

  .wa-float__tooltip::after {
    content: '';
    position: absolute;
    bottom: -7px;
    right: 18px;
    border-width: 7px 7px 0;
    border-style: solid;
    border-color: #ffffff transparent transparent;
  }

  .wa-float:hover .wa-float__tooltip {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  @media (max-width: 480px) {
    .wa-float { bottom: 1.2rem; right: 1.2rem; }
    .wa-float__btn { width: 54px; height: 54px; }
    .wa-float__btn svg { width: 28px; height: 28px; }
  }

   /* ─── CONTENEDOR ─── */
  .logo-wrap {
    display: inline-block;
    width: 100px;   /* ajusta el tamaño aquí */
  }

  /* ─── ANIMACIONES ─── */

  /* Sombrero flota arriba/abajo */
  #hat-group {
    animation: hat-float 3.6s ease-in-out infinite;
    transform-origin: 340px 160px;
  }
  @keyframes hat-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-7px); }
  }

  /* Lupa se mece */
  #mag-group {
    animation: mag-swing 3.6s ease-in-out infinite;
    transform-origin: 290px 290px;
  }
  @keyframes mag-swing {
    0%, 100% { transform: rotate(0deg); }
    25%       { transform: rotate(3deg); }
    75%       { transform: rotate(-3deg); }
  }

  /* Anillo de lupa respira */
  #lens-ring {
    animation: lens-pulse 3.6s ease-in-out infinite;
    transform-origin: 290px 290px;
  }
  @keyframes lens-pulse {
    0%, 100% { opacity: 1;    r: 72; }
    50%       { opacity: 0.75; r: 75; }
  }

  /* Línea de gráfica se dibuja */
  #chart-line {
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    animation: draw-line 1.4s ease-out 0.3s forwards;
  }
  @keyframes draw-line { to { stroke-dashoffset: 0; } }

  /* Puntos de datos aparecen */
  .cdot {
    opacity: 0;
    animation: dot-pop 0.25s ease-out forwards;
    transform-origin: var(--cx) var(--cy);
  }
  .cdot:nth-child(1) { animation-delay: 0.55s; }
  .cdot:nth-child(2) { animation-delay: 0.75s; }
  .cdot:nth-child(3) { animation-delay: 0.95s; }
  .cdot:nth-child(4) { animation-delay: 1.15s; }
  @keyframes dot-pop {
    0%   { opacity: 0; transform: scale(0); }
    70%  { opacity: 1; transform: scale(1.35); }
    100% { opacity: 1; transform: scale(1); }
  }

  /* Anillos de radar */
  .scan-ring {
    opacity: 0;
    animation: scan-expand 3s ease-out 0.8s infinite;
    transform-origin: 290px 290px;
  }
  .scan-ring:nth-child(2) { animation-delay: 1.8s; }
  @keyframes scan-expand {
    0%   { opacity: 0.55; r: 76; }
    100% { opacity: 0;    r: 110; }
  }

  /* Mango de la lupa aparece */
  #handle {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-handle 0.5s ease-out 0.1s forwards;
  }
  @keyframes draw-handle { to { stroke-dashoffset: 0; } }

  /* Brillo del ala del sombrero */
  #brim-shine {
    animation: brim-anim 3.6s ease-in-out infinite;
  }
  @keyframes brim-anim {
    0%, 100% { opacity: 0.18; }
    50%       { opacity: 0.38; }
  }

  /* ═══════════════════════════════════════════════
   HERO — GRID + ORBS ANIMATIONS
   Pega esto en tu archivo CSS principal
   ═══════════════════════════════════════════════ */

/* ─── SECCIÓN HERO ─────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
}

/* ─── GRID DE FONDO ─────────────────────────────── */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;

  /* Cuadrícula con dos líneas ortogonales */
  background-image:
    linear-gradient(rgba(29, 233, 182, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 233, 182, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;

  /* La cuadrícula se desplaza suavemente en diagonal */
  animation: grid-drift 18s linear infinite;
}

@keyframes grid-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 48px 48px; }
}

/* Fade hacia los bordes para que no se vea cortada */
.hero-grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 50%,
      transparent 30%,
      var(--hero-bg, #0D1F2A) 100%
    );
}

/* ─── ORB PRINCIPAL ─────────────────────────────── */
.hero-orb {
  position: absolute;
  pointer-events: none;
  z-index: 2;

  /* Tamaño y posición — ajusta a tu layout */
  width: 520px;
  height: 520px;
  top: -120px;
  right: -80px;
  border-radius: 50%;

  /* Círculo semitransparente con borde luminoso */
  background: radial-gradient(
    circle at 40% 40%,
    rgba(29, 233, 182, 0.08) 0%,
    rgba(29, 233, 182, 0.03) 50%,
    transparent 70%
  );
  border: 1px solid rgba(29, 233, 182, 0.12);

  /* Tres animaciones en simultáneo */
  animation:
    orb-float  9s  ease-in-out infinite,
    orb-pulse  6s  ease-in-out infinite,
    orb-rotate 28s linear      infinite;
  transform-origin: center center;
}

/* Segundo anillo interno (pseudo-elemento) */
.hero-orb::before {
  content: '';
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  border: 1px solid rgba(29, 233, 182, 0.09);
  animation: orb-rotate 18s linear infinite reverse;
}

/* Tercer anillo punteado */
.hero-orb::after {
  content: '';
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  border: 1px dashed rgba(29, 233, 182, 0.07);
  animation:
    orb-rotate 40s linear infinite,
    orb-pulse  8s  ease-in-out infinite 1s;
}

/* Flotación suave */
@keyframes orb-float {
  0%, 100% { transform: translateY(0px)   translateX(0px); }
  30%       { transform: translateY(-18px) translateX(8px); }
  60%       { transform: translateY(-10px) translateX(-6px); }
}

/* Pulso de opacidad/escala */
@keyframes orb-pulse {
  0%, 100% { opacity: 1;    scale: 1; }
  50%       { opacity: 0.7; scale: 1.06; }
}

/* Rotación continua */
@keyframes orb-rotate {
  from { rotate: 0deg; }
  to   { rotate: 360deg; }
}


/* ─── ORB SECUNDARIO (opcional) ─────────────────── */
/* Si tienes un segundo .hero-orb o un .hero-orb-2   */
.hero-orb-2 {
  position: absolute;
  pointer-events: none;
  z-index: 2;

  width: 320px;
  height: 320px;
  bottom: -60px;
  left: -60px;
  border-radius: 50%;

  background: radial-gradient(
    circle at 60% 60%,
    rgba(29, 233, 182, 0.06) 0%,
    transparent 65%
  );
  border: 1px solid rgba(29, 233, 182, 0.08);

  animation:
    orb-float  12s ease-in-out infinite reverse,
    orb-pulse   8s ease-in-out infinite 2s;
}


/* ─── PUNTOS DE INTERSECCIÓN ANIMADOS ──────────── */
/*
   Si quieres que los nodos del grid "brillen",
   agrega con JS un canvas encima, o usa este truco
   de background-image con radial pequeños:
*/
.hero-grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle 1.5px at center,
    rgba(29, 233, 182, 0.25) 0%,
    transparent 100%
  );
  background-size: 48px 48px;
  background-position: -1px -1px; /* alinea con las líneas */
  animation:
    grid-drift 18s linear infinite,
    dots-blink  4s ease-in-out infinite;
}

@keyframes dots-blink {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}


/* ─── CONTENIDO HERO SOBRE EL FONDO ────────────── */
.hero .container {
  position: relative;
  z-index: 3;
}


/* ─── ACCESIBILIDAD: REDUCE MOTION ─────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-grid-bg,
  .hero-grid-bg::before,
  .hero-grid-bg::after,
  .hero-orb,
  .hero-orb::before,
  .hero-orb::after,
  .hero-orb-2 {
    animation: none;
  }
}

/* Las campañas como chips iluminables */
.cta-title .word:first-of-type {
  margin-top: 14px;
}

.cta-title .word {
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  animation: cta-word-in 0.4s ease forwards;
  font-size: 18px;
}

@keyframes cta-word-in {
  to { opacity: 1; transform: translateY(0); }
}

.cta-title .campaign {
  display: inline-block;
  white-space: nowrap;
  font-size: 18px;
  color: rgba(29, 233, 182, 0.55);   /* ← ajusta a tu color de acento */
  font-weight: 600;
  padding: 1px 3px;
  border-radius: 5px;
  border: 1px solid rgba(29, 233, 182, 0);
  cursor: default;
  transition:
    color       0.35s ease,
    background  0.35s ease,
    border-color 0.35s ease,
    transform   0.35s ease,
    box-shadow  0.35s ease;
}

.cta-title .campaign.lit {
  color: #1DE9B6;                           /* ← tu color de acento */
  background: rgba(29, 233, 182, 0.10);
  border-color: rgba(29, 233, 182, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(29, 233, 182, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .cta-title .word    { animation: none; opacity: 1; transform: none; }
  .cta-title .campaign { transition: none; }
}

/*. CARDS*/

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.why-card {
  background: transparent;
  padding: 18px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  cursor: default;
}
.why-card:hover {
  border-color: var(--mint);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(29,233,182,.09);
}

.why-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  flex-shrink: 0;
  position: relative;
}

.why-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.45;
}

/* ══════════════════════════════
   CARD 1 — IA / Omnicanal / Predictivo
   Ícono: cerebro con pulso de red
   ══════════════════════════════ */
.icon-ai svg { overflow: visible; }

.ai-node { animation: ai-pulse 2.4s ease-in-out infinite; transform-origin: center; }
.ai-node:nth-child(1) { animation-delay: 0s; }
.ai-node:nth-child(2) { animation-delay: .4s; }
.ai-node:nth-child(3) { animation-delay: .8s; }
.ai-node:nth-child(4) { animation-delay: 1.2s; }
.ai-node:nth-child(5) { animation-delay: .6s; }
@keyframes ai-pulse {
  0%,100% { opacity: .5; r: 1.8; }
  50%      { opacity: 1;  r: 2.8; }
}

.ai-line { stroke-dasharray: 30; stroke-dashoffset: 30; animation: ai-draw 1.6s ease forwards; }
.ai-line:nth-child(6)  { animation-delay: .1s; }
.ai-line:nth-child(7)  { animation-delay: .3s; }
.ai-line:nth-child(8)  { animation-delay: .5s; }
.ai-line:nth-child(9)  { animation-delay: .7s; }
.ai-line:nth-child(10) { animation-delay: .9s; }
.ai-line:nth-child(11) { animation-delay:1.1s; }
@keyframes ai-draw { to { stroke-dashoffset: 0; } }

/* ══════════════════════════════
   CARD 2 — Velocidad / Confiable
   Ícono: rayo con ondas
   ══════════════════════════════ */
.icon-speed svg { overflow: visible; }

.bolt-path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: bolt-draw .7s ease .1s forwards; }
.speed-wave {
  stroke-dasharray: 12; stroke-dashoffset: 12;
  opacity: 0;
  animation: wave-in .4s ease forwards;
}
.speed-wave:nth-child(3) { animation-delay: .7s; }
.speed-wave:nth-child(4) { animation-delay: .95s; }
.speed-wave:nth-child(5) { animation-delay:1.2s; }
@keyframes bolt-draw { to { stroke-dashoffset: 0; } }
@keyframes wave-in { to { stroke-dashoffset: 0; opacity: 1; } }

.bolt-glow { animation: glow-p 1.8s ease-in-out 1s infinite; }
@keyframes glow-p {
  0%,100% { opacity: .15; }
  50%      { opacity: .35; }
}

/* ══════════════════════════════
   CARD 3 — Reportes / Promociones
   Ícono: documento con líneas que se escriben
   ══════════════════════════════ */
.icon-report svg { overflow: visible; }

.doc-body { stroke-dasharray: 80; stroke-dashoffset: 80; animation: doc-draw .6s ease .1s forwards; }
@keyframes doc-draw { to { stroke-dashoffset: 0; } }

.doc-line {
  stroke-dasharray: 22; stroke-dashoffset: 22;
  animation: line-write .35s ease forwards;
}
.doc-line:nth-child(3) { animation-delay: .65s; }
.doc-line:nth-child(4) { animation-delay: .95s; }
.doc-line:nth-child(5) { animation-delay:1.2s; }

.doc-check { stroke-dasharray: 20; stroke-dashoffset: 20; animation: check-draw .4s ease 1.5s forwards; opacity: 0; }
@keyframes check-draw { 0%{ opacity:1; stroke-dashoffset:20; } 100%{ opacity:1; stroke-dashoffset:0; } }
@keyframes line-write { to { stroke-dashoffset: 0; } }

/* ══════════════════════════════
   CARD 4 — LATAM / Cobertura
   Ícono: globo con pin de ubicación
   ══════════════════════════════ */
.icon-latam svg { overflow: visible; }

.globe-circle { stroke-dasharray: 120; stroke-dashoffset: 120; animation: globe-draw .8s ease .1s forwards; }
.globe-meridian { stroke-dasharray: 80; stroke-dashoffset: 80; animation: globe-draw .7s ease forwards; }
.globe-meridian:nth-child(3) { animation-delay: .4s; }
.globe-meridian:nth-child(4) { animation-delay: .6s; }
.globe-equator  { stroke-dasharray: 60; stroke-dashoffset: 60; animation: globe-draw .6s ease .5s forwards; }
@keyframes globe-draw { to { stroke-dashoffset: 0; } }

.pin-dot   { transform-origin: 9px 5.5px; animation: pin-drop .4s cubic-bezier(.34,1.56,.64,1) 1.2s both; }
.pin-ring  { transform-origin: 9px 9px;   animation: pin-ring-out .6s ease 1.55s both; }
@keyframes pin-drop {
  from { transform: translateY(-8px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes pin-ring-out {
  0%   { r: 1; opacity: .8; }
  100% { r: 4; opacity: 0;  }
}
 /* CSS DE MAPAS COBERTURA */

  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

  * { box-sizing: border-box; }

  .mm-cta-banner {
    position: relative;
    background: #0d1b2a;
    padding: 3.5rem 1.5rem;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
  }

  .mm-cta-banner::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,229,160,.12) 0%, transparent 65%);
    pointer-events: none;
  }
  .mm-cta-banner::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,180,230,.08) 0%, transparent 65%);
    pointer-events: none;
  }

  .mm-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  /* ── Mundo de fondo (estilo sombra, desvanecido) ── */
  .mm-world-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 640px;
    height: 640px;
    transform: translate(-50%, -50%);
    color: #00e5a0;
    opacity: .06;
    pointer-events: none;
    z-index: 0;
  }
  .mm-world-bg svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  /* ── Cabecera ── */
  .mm-cta-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
  }

  .mm-cta-title {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 700;
    color: #00e5a0;
    margin: 0 0 10px;
    line-height: 1.2;
  }

  .mm-cta-sub {
    font-size: clamp(13px, 2.5vw, 15px);
    color: rgba(255,255,255,.6);
    margin: 0;
    max-width: 420px;
    line-height: 1.6;
  }

  /* ── Formulario ── */
  .mm-cta-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-self: flex-start;
    width: 100%;
    max-width: 420px;
  }

  .mm-cta-input {
    flex: 1;
    min-width: 0;
    padding: .75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0,229,160,.25);
    background: rgba(255,255,255,.05);
    color: #fff;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color .2s, background .2s;
    width: 100%;
  }
  .mm-cta-input::placeholder { color: rgba(255,255,255,.35); }
  .mm-cta-input:focus {
    border-color: #00e5a0;
    background: rgba(0,229,160,.06);
  }

  .mm-cta-btn {
    padding: .75rem 1.6rem;
    border-radius: 8px;
    border: none;
    background: #00e5a0;
    color: #0d1b2a;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, transform .15s;
    width: 100%;
  }
  .mm-cta-btn:hover { background: #00c98c; transform: translateY(-1px); }

  /* ── Divisor ── */
  .mm-divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,.07);
    margin-bottom: 2rem;
  }

  /* ── Etiqueta cobertura ── */
  .mm-coverage-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    color: rgba(255,255,255,.35);
    text-transform: uppercase;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .mm-coverage-label .pin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    background: rgba(0,229,160,.15);
    border-radius: 50%;
    font-size: 11px;
  }

  /* ── Grid países ── */
  .mm-countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
  }

  .mm-country-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 20px 12px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: background .2s, border-color .2s, transform .2s;
    cursor: default;
    text-align: center;
  }
  .mm-country-card:hover {
    background: rgba(0,229,160,.06);
    border-color: rgba(0,229,160,.3);
    transform: translateY(-3px);
  }

  .mm-flag { font-size: 40px; line-height: 1; }

  .mm-country-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
  }

  .mm-country-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
    color: #00e5a0;
    font-weight: 500;
    margin: 0;
  }

  .mm-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #00e5a0;
    flex-shrink: 0;
    animation: mm-pulse 2s ease-in-out infinite;
  }
  @keyframes mm-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .4; transform: scale(.7); }
  }

  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

  /* ══════════════════════════════
     RESPONSIVE — Tablet (≤768px)
  ══════════════════════════════ */
  @media (max-width: 768px) {
    .mm-cta-banner { padding: 2.5rem 1.25rem; }

    .mm-cta-top {
      flex-direction: column;
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    .mm-cta-form {
      max-width: 100%;
      flex-direction: row;
    }

    .mm-cta-input { min-width: 0; flex: 1; }
    .mm-cta-btn   { width: auto; flex-shrink: 0; }

    .mm-countries-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }

    .mm-flag { font-size: 36px; }
    .mm-country-card { padding: 18px 10px 16px; }

    .mm-world-bg { width: 420px; height: 420px; }
  }

  /* ══════════════════════════════
     RESPONSIVE — Mobile (≤480px)
  ══════════════════════════════ */
  @media (max-width: 480px) {
    .mm-cta-banner { padding: 2rem 1rem; }

    .mm-cta-title { font-size: 22px; }
    .mm-cta-sub   { font-size: 13px; }

    .mm-cta-form {
      flex-direction: column;
      gap: 10px;
    }
    .mm-cta-input,
    .mm-cta-btn { width: 100%; }

    .mm-countries-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }

    .mm-flag { font-size: 32px; }

    .mm-country-name { font-size: 13px; }

    .mm-country-card {
      padding: 16px 8px 14px;
      border-radius: 10px;
      gap: 8px;
    }

    .mm-world-bg { width: 300px; height: 300px; }
  }

  /* Vista previa simulada en iframe */
  .device-switcher {
    display: flex; gap: 8px; margin-bottom: 16px;
    justify-content: center;
  }
  .device-btn {
    padding: 6px 14px; border-radius: 6px; border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.06); color: rgba(255,255,255,.7);
    font-size: 12px; font-family: 'Inter',sans-serif; cursor: pointer;
    transition: background .2s, color .2s;
  }
  .device-btn.active {
    background: rgba(0,229,160,.15); border-color: #00e5a0; color: #00e5a0;
  }
  .preview-wrap {
    background: #060f18;
    border-radius: 16px;
    overflow: hidden;
    transition: max-width .3s ease;
    margin: 0 auto;
  }
  .preview-wrap.desktop { max-width: 100%; }
  .preview-wrap.tablet  { max-width: 768px; }
  .preview-wrap.mobile  { max-width: 390px; }

  /* CSS CIERRE DE COBERTURA MAPAS*/
/* =============================================
   TRABAJA CON NOSOTROS — Section
   ============================================= */
.trabaja-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background:
    radial-gradient(circle at 88% 10%, rgba(0, 200, 150, .18) 0%, transparent 50%),
    linear-gradient(135deg, var(--navy3) 0%, var(--navy) 55%, var(--navy2) 100%);
  border-top: 1px solid rgba(0, 200, 150, .25);
  border-bottom: 1px solid rgba(0, 200, 150, .25);
}

/* Partículas ambientales, mismo lenguaje visual que el banner destacado */
.trabaja-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0, 200, 150, .5) 1.5px, transparent 1.5px);
  background-size: 240px 240px;
  background-position: 15% 25%;
  opacity: .45;
}

.trabaja-orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 200, 150, .16);
  pointer-events: none;
}

.trabaja-orb--1 { width: 460px; height: 460px; right: -150px; top: -160px; }
.trabaja-orb--2 {
  width: 300px; height: 300px; left: -110px; bottom: -140px;
  border-color: rgba(232, 160, 32, .14);
}

@media (prefers-reduced-motion: no-preference) {
  .trabaja-orb--1 { animation: cta-orb-drift-a 13s ease-in-out infinite; }
  .trabaja-orb--2 { animation: cta-orb-drift-b 9s ease-in-out infinite; }
}

.trabaja-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-2xl);
  align-items: center;
}

.trabaja-info .section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  background: rgba(0, 200, 150, .14);
  border: 1px solid rgba(0, 200, 150, .35);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.trabaja-info .section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(0, 200, 150, .18);
  flex-shrink: 0;
}

.trabaja-info .section-title {
  color: #fff;
  font-size: clamp(30px, 4.2vw, 46px);
  margin-bottom: 18px;
}

.trabaja-info .section-title .accent {
  color: var(--mint);
}

.trabaja-info .section-desc {
  color: rgba(255, 255, 255, .72);
  font-size: 16px;
  line-height: 1.75;
  max-width: 460px;
}

.trabaja-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trabaja-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.trabaja-bullet {
  color: var(--mint);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 16px;
}

/* Form wrapper */
.trabaja-form-wrap {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 200, 150, .18);
  overflow: hidden;
}

.trabaja-form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--mint) 0%, var(--mint2) 100%);
  z-index: 2;
}

.trabaja-form-wrap .form-submit {
  background: var(--mint);
  color: var(--navy);
  height: 48px;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(0, 200, 150, .28);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.trabaja-form-wrap .form-submit:hover {
  background: #00e0aa;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 200, 150, .36);
}

@media (prefers-reduced-motion: reduce) {
  .trabaja-form-wrap .form-submit:hover { transform: none; }
}

.trabaja-form {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trabaja-form-title {
  font-family: var(--ff-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--mint);
}

.trabaja-checks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.check-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.radio-row {
  display: flex;
  gap: 16px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: var(--mint);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Thanks message */
.trabaja-thanks {
  padding: 48px 32px;
  text-align: center;
}

.thanks-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--white);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.trabaja-thanks h3 {
  font-family: var(--ff-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.trabaja-thanks p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* =============================================
   SERVICE MODALS
   ============================================= */
.svc-modal-bg {
  z-index: 1100;
}

.svc-modal {
  max-width: 680px;
  padding: 0;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}

.svc-modal-banner {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
}

.svc-modal-banner-overlay {
  padding: 28px 32px 24px;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.svc-modal-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--mint);
  color: var(--navy);
  width: fit-content;
}

.svc-modal-title {
  font-family: var(--ff-head);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.svc-modal-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.svc-modal-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.svc-modal-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.svc-modal-highlight {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--light);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--mint);
}

.highlight-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.svc-modal-highlight strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 3px;
}

.svc-modal-highlight p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.svc-modal-video {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.svc-modal-video-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.video-placeholder {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy3);
  aspect-ratio: 16/9;
}

.video-placeholder iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* =============================================
   RESPONSIVE — Trabaja + Modals
   ============================================= */
@media (max-width: 900px) {
  .trabaja-section {
    padding: 64px 0;
  }

  .trabaja-inner {
    grid-template-columns: 1fr;
  }

  .trabaja-checks {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .trabaja-form {
    padding: 20px;
  }

  .trabaja-checks {
    grid-template-columns: 1fr;
  }

  .svc-modal-body {
    padding: 20px;
  }

  .svc-modal-banner {
    min-height: 140px;
  }

  .svc-modal-title {
    font-size: 20px;
  }
}
body { cursor: url("media/lupa.png" ) 8 8, auto; }

/* =================================================================
   BLOG — RECURSOS DESCARGABLES (TABLA PDF)
   Mobile-first: la base (sin media query) es la versión mobile,
   presentada como tarjetas apiladas para que ningún contenido se
   corte ni distorsione en pantallas angostas. A partir de 640px
   se transforma en una tabla real de dos columnas.
   ================================================================= */

.resources-block {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.resources-heading {
  font-family: var(--ff-head);
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 6px;
}

.resources-block .section-desc {
  margin-bottom: 20px;
  max-width: 620px;
}

.resources-table {
  width: 100%;
  border-collapse: collapse;
}

/* ---------- Base = MOBILE: cada <tr> se ve como tarjeta ---------- */
.resources-table thead {
  display: none; /* en mobile el ícono + texto ya son autoexplicativos */
}

.resources-table,
.resources-table tbody {
  display: block;
  width: 100%;
}

.resources-table tr {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.resources-table td {
  display: block;
  border: none;
  padding: 0;
  min-width: 0; /* clave: permite que el texto largo haga wrap sin desbordar */
}

.res-title {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.res-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--teal);
  margin-top: 2px;
}

.res-icon svg { display: block; width: 100%; height: 100%; }

.res-title-text {
  font-family: var(--ff-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
  overflow-wrap: anywhere; /* evita overflow de títulos largos en pantallas muy angostas */
  min-width: 0;
}

.res-action {
  width: 100%;
}

.res-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--mint);
  color: var(--navy);
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.res-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.res-btn:hover,
.res-btn:focus-visible {
  background: #00e0aa;
  transform: translateY(-1px);
}

.res-btn:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* ---------- ≥ 480px: botón deja de ser 100% ancho ---------- */
@media (min-width: 480px) {
  .res-title {
    align-items: center;
  }
  .res-action {
    width: auto;
    align-self: flex-end;
  }
  .res-btn {
    width: auto;
    padding: 9px 20px;
  }
}

/* ---------- ≥ 640px: tabla real de 2 columnas ---------- */
@media (min-width: 640px) {
  .resources-table {
    table-layout: fixed;
  }

  .resources-table thead th:last-child,
  .resources-table td.res-action {
    width: 150px;
  }

  .resources-table thead {
    display: table-header-group;
  }

  .resources-table {
    display: table;
    width: 100%;
  }

  .resources-table tbody {
    display: table-row-group;
  }

  .resources-table thead tr,
  .resources-table tbody tr {
    display: table-row;
    flex-direction: initial;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    gap: 0;
  }

  .resources-table thead th {
    text-align: left;
    font-family: var(--ff-head);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--muted);
    font-weight: 600;
    padding: 0 18px 12px;
    border-bottom: 1px solid var(--border);
  }

  .resources-table thead th:last-child {
    text-align: right;
  }

  .resources-table tbody tr {
    border-bottom: 1px solid var(--border);
  }

  .resources-table tbody tr:last-child {
    border-bottom: none;
  }

  .resources-table td {
    display: table-cell;
    vertical-align: middle;
    padding: 16px 18px;
  }

  .res-title {
    max-width: 520px;
  }

  .res-action {
    width: 150px;
    white-space: nowrap;
    text-align: right;
  }

  .res-btn {
    width: auto;
  }
}

/* ---------- Pantallas muy angostas: margen de seguridad extra ---------- */
@media (max-width: 340px) {
  .resources-table tr { padding: 14px; }
  .res-title-text { font-size: 13px; }
}
/* =============================================
   16. MODAL VISOR DE PDF (Recursos descargables)
   ============================================= */
.pdf-modal-bg .modal {
  max-width: 900px;
  width: 92%;
  height: 88vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 56px 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.pdf-modal-title {
  font-family: var(--ff-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
}

.pdf-modal-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: var(--mint2);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--transition);
}

.pdf-modal-download:hover {
  background: var(--mint);
}

.pdf-modal-body {
  flex: 1;
  background: var(--light);
}

.pdf-modal-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.pdf-modal-bg .modal-close {
  top: 14px;
  right: 16px;
}

@media (max-width: 640px) {
  .pdf-modal-bg .modal {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .pdf-modal-header {
    padding: 14px 50px 12px 16px;
  }

  .pdf-modal-title {
    font-size: 13px;
  }

  .pdf-modal-download span {
    display: none;
  }

  .pdf-modal-download {
    padding: 8px 10px;
  }
}
