/* =============================================================
   CAPA EVOLUCIÓN — estructura "bento premium" + paleta
   "Azul profundo refinado" (azul partner #0050c8 + navy, sobre claro).
   Scopeado a body.evolucion-theme (solo /evolucion y comparativas).
   ============================================================= */

body.evolucion-theme {
  --ev-blue: #0050c8;        /* azul partner, acento principal */
  --ev-blue-deep: #0a1f47;   /* navy para titulares */
  --ev-blue-dark: #003a99;   /* hover */
  --ev-blue-soft: #eaf1fc;   /* tinte de fondo */
  --ev-line: #dce6f5;
  --ev-text: #2b3447;
  --ev-muted: #5a6b86;

  --tn-bg: #ffffff;
  --tn-bg-soft: #f5f8fe;
  --tn-bg-blue: var(--ev-blue-soft);
  --tn-text: var(--ev-text);
  --tn-muted: var(--ev-muted);
  --tn-line: var(--ev-line);
  --tn-primary: var(--ev-blue);
  --tn-primary-dark: var(--ev-blue-dark);
  --tn-partner: var(--ev-blue);

  background-color: #ffffff;
  color: var(--ev-text);
}

body.evolucion-theme h1,
body.evolucion-theme h2,
body.evolucion-theme h3,
body.evolucion-theme h4 { color: var(--ev-blue-deep); }
body.evolucion-theme p,
body.evolucion-theme li { color: var(--ev-muted); }
body.evolucion-theme .tn-hero__lead { color: #44546e; }

/* Header */
body.evolucion-theme .tn-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ev-line);
}
body.evolucion-theme .tn-nav__link,
body.evolucion-theme .tn-nav__submenu-link { color: var(--ev-blue-deep); }

/* Kicker */
body.evolucion-theme .tn-kicker {
  color: var(--ev-blue);
  background: var(--ev-blue-soft);
  border: 1px solid rgba(0, 80, 200, 0.16);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 500;
}

/* Partner badge */
body.evolucion-theme .tn-partner-badge {
  background: var(--ev-blue-soft);
  border: 1px solid rgba(0, 80, 200, 0.3);
  color: var(--ev-blue-deep);
}
body.evolucion-theme .tn-partner-badge span { color: var(--ev-blue-deep); }

/* Secciones */
body.evolucion-theme .tn-section { background: #ffffff; }
body.evolucion-theme .tn-section--soft { background: #f5f8fe; }

/* Botones */
body.evolucion-theme .tn-button {
  background: var(--ev-blue);
  color: #ffffff;
  border: 1px solid var(--ev-blue);
  font-weight: 500;
}
body.evolucion-theme .tn-button:hover { background: var(--ev-blue-dark); border-color: var(--ev-blue-dark); }
body.evolucion-theme .tn-button--secondary {
  background: transparent;
  color: var(--ev-blue-deep);
  border: 1px solid rgba(10, 31, 71, 0.32);
}

/* ---------- HERO ---------- */
body.evolucion-theme .ev-hero { position: relative; overflow: hidden; background: #f3f7ff; }
body.evolucion-theme .ev-hero__media { position: absolute; inset: 0; z-index: 0; }
body.evolucion-theme .ev-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center right; }
body.evolucion-theme .ev-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(243,247,255,0.99) 0%, rgba(243,247,255,0.96) 40%, rgba(243,247,255,0.6) 66%, rgba(243,247,255,0.12) 100%); }
body.evolucion-theme .ev-hero__wrap { position: relative; z-index: 1; }
body.evolucion-theme .ev-hero__inner { width: min(600px, 100%); }
body.evolucion-theme .ev-hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.1; margin: 16px 0 14px; }
@media (max-width: 820px) {
  body.evolucion-theme .ev-hero__media img { object-position: 72% center; }
  body.evolucion-theme .ev-hero__media::after { background: linear-gradient(180deg, rgba(243,247,255,0.80) 0%, rgba(243,247,255,0.96) 62%); }
  body.evolucion-theme .ev-hero__inner { width: 100%; }
}

/* Capacidades (imágenes de features) */
.ev-feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-top: 8px; }
.ev-feat { background: #fff; border: 1px solid var(--ev-line, #dce6f5); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.ev-feat img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #eaf1fc; }
.ev-feat__body { padding: 14px 16px 16px; }
.ev-feat__body h3 { margin: 0 0 5px; font-size: 1.02rem; }
.ev-feat__body p { margin: 0; font-size: .9rem; line-height: 1.5; }

/* Sección con imagen a un lado (migración) */
.ev-split-media { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 44px; align-items: center; }
.ev-split-media__img img { width: 100%; height: auto; border-radius: 18px; display: block; box-shadow: 0 22px 55px rgba(10, 31, 71, 0.14); }
.ev-method-2col { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .ev-split-media { grid-template-columns: 1fr; gap: 26px; } .ev-split-media__img { max-width: 420px; margin: 0 auto; } }

/* Imágenes Nube (más anchas que las de capacidades) */
.ev-feat--wide img { aspect-ratio: 16 / 10; }

/* Hero de comparativa: 2 columnas + tarjeta "vs" con logos */
body.evolucion-theme .ev-hero--compare { background: linear-gradient(180deg, #f3f7ff 0%, #ffffff 100%); }
body.evolucion-theme .ev-hero__grid2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
body.evolucion-theme .ev-hero--compare .ev-hero__inner { width: auto; max-width: 620px; }
.ev-vs-hero { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--ev-line, #dce6f5); border-radius: 20px; padding: 34px 24px; box-shadow: 0 22px 55px rgba(10, 31, 71, 0.10); }
.ev-vs-hero__logo { justify-self: center; height: 30px; width: auto; max-width: 100%; }
.ev-vs-hero__comp { width: 52px; height: 52px; max-width: 52px; }
.ev-vs-hero__comp--wide { width: 84px; height: 50px; max-width: 84px; object-fit: contain; }
.ev-vs-hero__vs { font-weight: 700; color: var(--ev-muted, #5a6b86); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; justify-self: center; }
@media (max-width: 860px) { body.evolucion-theme .ev-hero__grid2 { grid-template-columns: 1fr; gap: 26px; } .ev-vs-hero { max-width: 420px; } }

/* ---------- FRANJA DE STATS ---------- */
.ev-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 36px;
  border: 1px solid var(--ev-line, #dce6f5);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.ev-stat { padding: 22px 24px; border-right: 1px solid var(--ev-line, #dce6f5); }
.ev-stat:last-child { border-right: none; }
.ev-stat strong {
  display: block;
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ev-blue-deep, #0a1f47);
}
.ev-stat span { display: block; margin-top: 6px; font-size: 0.85rem; color: var(--ev-muted, #5a6b86); }
@media (max-width: 760px) { .ev-stats { grid-template-columns: repeat(2, 1fr); } .ev-stat:nth-child(2) { border-right: none; } }

/* ---------- GRILLA BENTO ---------- */
.ev-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
  margin-top: 8px;
}
.ev-bento__tile {
  background: #fff;
  border: 1px solid var(--ev-line, #dce6f5);
  border-radius: 18px;
  padding: 22px 22px;
  display: flex;
  flex-direction: column;
}
.ev-bento__tile--lg {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--ev-blue-soft, #eaf1fc);
  border-color: rgba(0, 80, 200, 0.28);
}
.ev-bento__tile i { font-size: 26px; color: var(--ev-blue, #0050c8); }
.ev-bento__tile h3 { margin: 14px 0 6px; font-size: 1.05rem; }
.ev-bento__tile--lg h3 { font-size: 1.5rem; }
.ev-bento__tile p { margin: 0; font-size: 0.93rem; line-height: 1.55; }
@media (max-width: 860px) {
  .ev-bento { grid-template-columns: 1fr 1fr; }
  .ev-bento__tile--lg { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px) {
  .ev-bento { grid-template-columns: 1fr; }
  .ev-bento__tile--lg { grid-column: span 1; }
}

/* ---------- LOGO WALL ---------- */
.ev-logos__label {
  text-align: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ev-muted, #5a6b86);
  margin: 0 0 18px;
}
.ev-logos { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; }
.ev-logo {
  width: 122px; height: 46px; border-radius: 8px;
  background: #fff; border: 1px solid var(--ev-line, #dce6f5);
}

/* ---------- Tarjetas genéricas (para-quién, método) ---------- */
body.evolucion-theme .tn-problem-list article,
body.evolucion-theme .tn-method-grid article,
body.evolucion-theme .tn-plan,
body.evolucion-theme .tn-vs-row {
  background: #ffffff;
  border: 1px solid var(--ev-line);
  border-radius: 16px;
}
body.evolucion-theme .tn-problem-list article h3,
body.evolucion-theme .tn-method-grid article h3,
body.evolucion-theme .tn-plan h3 { color: var(--ev-blue-deep); }
body.evolucion-theme .tn-method-grid article span {
  background: var(--ev-blue-soft);
  color: var(--ev-blue);
}

/* Cards de comparativa: misma altura, botón alineado abajo y uniforme */
body.evolucion-theme .tn-plan { display: flex; flex-direction: column; }
body.evolucion-theme .tn-plan ul { flex: 1 1 auto; }
body.evolucion-theme .tn-plan .tn-button { margin-top: auto; white-space: nowrap; }

/* Plan destacado */
body.evolucion-theme .tn-plan--featured {
  border-color: var(--ev-blue);
  box-shadow: 0 16px 44px rgba(10, 31, 71, 0.1);
}
body.evolucion-theme .tn-plan__label { background: var(--ev-blue); color: #fff; }
body.evolucion-theme .tn-plan__head span { color: var(--ev-blue); letter-spacing: 0.08em; font-weight: 600; }

/* Comparativa */
body.evolucion-theme .tn-vs-dim { color: var(--ev-blue-deep); }
body.evolucion-theme .tn-vs-win { background: var(--ev-blue-soft); border: 1px solid rgba(0, 80, 200, 0.4); }
body.evolucion-theme .tn-vs-lose { background: #fff; border: 1px solid var(--ev-line); }
body.evolucion-theme .tn-vs-win strong { color: var(--ev-blue); }
body.evolucion-theme .tn-vs-lose strong { color: var(--ev-muted); }
body.evolucion-theme .tn-vs-win p, body.evolucion-theme .tn-vs-lose p { color: var(--ev-text); }
body.evolucion-theme .tn-vs-win::before { color: var(--ev-blue); }

/* Formulario */
body.evolucion-theme .tn-form {
  background: #fff;
  border: 1px solid var(--ev-line);
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(10, 31, 71, 0.07);
}
body.evolucion-theme .tn-form label, body.evolucion-theme .tn-form legend { color: var(--ev-blue-deep); }
body.evolucion-theme .tn-form input,
body.evolucion-theme .tn-form select,
body.evolucion-theme .tn-form textarea {
  background: #fbfdff; border: 1px solid var(--ev-line); color: var(--ev-text);
}
body.evolucion-theme .tn-form-aside { background: var(--ev-blue-soft); border: 1px solid rgba(0, 80, 200, 0.22); }
body.evolucion-theme .tn-form-aside strong { color: var(--ev-blue-deep); }

/* Footer: sin override -> usa el estilo base del sitio (igual al resto) */

/* Franja de marcas (marquee de logos) */
.ev-brands-band { padding: 28px 0; background: #f5f8fe; border-top: 1px solid var(--ev-line, #dce6f5); border-bottom: 1px solid var(--ev-line, #dce6f5); overflow: hidden; }
.ev-brands__label { text-align: center; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ev-muted, #5a6b86); margin: 0 0 20px; }
.ev-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.ev-marquee__track { display: flex; align-items: center; gap: 60px; width: max-content; animation: ev-marquee-scroll 45s linear infinite; }
.ev-marquee:hover .ev-marquee__track { animation-play-state: paused; }
.ev-marquee img { height: 30px; width: auto; flex: 0 0 auto; filter: brightness(0); opacity: 0.55; transition: opacity 0.2s ease; }
.ev-marquee img:hover { opacity: 0.9; }
@keyframes ev-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ev-marquee__track { animation: none; transform: none; } }

/* Grilla de soluciones nativas (Ecosistema) */
.ev-sol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
.ev-stats--eco { margin-bottom: 26px; }

/* ---------- Estructura base de grillas (comparativa/método) ---------- */
.tn-method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 8px; }
.tn-method-grid article { padding: 24px 22px; }
.tn-method-grid article span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 600; margin-bottom: 14px; }
.tn-method-grid article h3 { margin: 0 0 6px; font-size: 1.1rem; }
.tn-method-grid article p { margin: 0; font-size: .95rem; line-height: 1.55; }
.tn-vs-grid { display: grid; gap: 18px; margin-top: 8px; }
.tn-vs-row { padding: 24px 24px 10px; }
.tn-vs-dim { margin: 0 0 14px; font-size: 1.15rem; }
.tn-vs-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tn-vs-win, .tn-vs-lose { border-radius: 12px; padding: 16px 18px; }
.tn-vs-win strong, .tn-vs-lose strong { display: block; margin-bottom: 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.tn-vs-win p, .tn-vs-lose p { margin: 0; font-size: .95rem; line-height: 1.55; }
.tn-vs-win::before { content: "✓ "; font-weight: 700; }
@media (max-width: 720px) { .tn-vs-pair { grid-template-columns: 1fr; } }
