/* Estilos compartidos de la landing (home y Nosotros). */
:root {
  --primary:      #FF7A59;
  --primary-dark: #e8694a;
  --primary-tint: #FFF0EB;
  --navy:         #213343;
  --navy-deep:    #16212C;
  --navy-soft:    #7B96B0;
  --text:         #33475B;
  --text-strong:  #213343;
  --border:       #CBD6E2;
  --bg:           #F7F4ED;
  --muted:        #EEE9DF;
  --bg-soft:      #FBFAF7;
  --alerta:       #F2545B;
  --aviso:        #F5C26B;
  --surface:      #FFFFFF;
  --success:      #00BDA5;
  --info:         #00A4BD;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lexend Deca', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

/* ============ HERO ============ */

.hero {
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 0 0 88px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

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

.logo-box {
  width: 34px;
  height: 34px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-box span { color: #ffffff; font-weight: 700; font-size: 16px; }
.brand-name { font-size: 16px; font-weight: 700; color: var(--text-strong); letter-spacing: -0.2px; }
.brand-name em { color: var(--primary); font-style: normal; }

/* Mismo tratamiento que .brand-name (Tutor en negrita, WP en naranja) pero
   para usar inline dentro de texto corrido, heredando tamaño y color base. */
.marca-tutorwp { font-weight: 700; }
.marca-tutorwp em { color: var(--primary); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-self: center;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--primary-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--primary-dark);
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  padding: 9px 18px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-login:hover { background: var(--primary-tint); }

/* El naranja es color de acción: vive en el botón, no en el fondo. */
.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  padding: 9px 18px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.12s ease;
}
.btn-nav:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .site-header-inner { grid-template-columns: 1fr auto; }
}
@media (max-width: 520px) {
  .btn-login { display: none; }
}

.hero-inner {
  position: relative;
  z-index: 5;
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 32px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow-row {
  margin-bottom: 22px;
}

.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--primary-dark);
}

h1.hero-headline {
  font-size: 54px;
  line-height: 1.08;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -1.2px;
  text-wrap: balance;
  margin: 0 0 22px;
}
h1.hero-headline em { font-style: normal; color: var(--primary); }

.hero-sub {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 36px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 15px 26px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px -10px rgba(255,122,89,0.55);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-primary svg { transition: transform 0.15s ease; }
.btn-primary:hover svg { transform: translateX(3px); }

.hero-cta-note {
  font-size: 12.5px;
  color: var(--navy-soft);
}


/* ---- captura del hero ---- */

.hero-arte { position: relative; }

/* Elipse de fondo: pura forma CSS, sin SVG ni imagen decorativa. */
.hero-elipse {
  position: absolute;
  width: 1400px;
  height: 1400px;
  /* El desplazamiento acompaña al diámetro para que el centro de la elipse
     no se mueva: si se achica sin recalcular, la curva se va de cuadro. */
  right: -615px;
  top: -250px;
  border-radius: 50%;
  /* #F5F2ED queda a 2 puntos del fondo del hero y no se distingue: este es
     el crema de la paleta, que sí se lee sobre el beige. */
  background: var(--muted);
  z-index: 1;
}

.hero-shot {
  position: relative;
  z-index: 10;
  /* -120px metía la captura 64px encima del párrafo del hero. -32px es lo
     máximo que se puede correr dejando 24px de aire con la columna de texto. */
  transform: translateX(-32px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 70px -30px rgba(33,51,67,0.45), 0 12px 24px -12px rgba(33,51,67,0.25);
  line-height: 0;
}
.hero-shot img { width: 100%; height: auto; display: block; }

/* ---- franja de pilares, debajo del hero ---- */

.pilares {
  background: var(--navy-deep);
  padding: 26px 32px;
}
.pilares-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pilar {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1.35;
  color: #ffffff;
}
.pilar svg {
  width: 34px; height: 34px; flex-shrink: 0;
  fill: none; stroke: var(--success); stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}

@media (max-width: 860px) {
  .pilares-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .pilar { font-size: 11.5px; }
}
@media (max-width: 520px) {
  .pilares-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-shot { margin-top: 36px; }
  h1.hero-headline { font-size: 38px; }
}

/* ============ VALUE PILLARS ============ */

/* Banda a todo el ancho, un tono mas clara que el hero (sin llegar a blanco). */
.band-soft { background: var(--bg-soft); }

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 32px;
}

.section-head {
  max-width: 560px;
  margin: 0 0 52px;
}

.section-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 12px;
}

h2.section-title {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.6px;
  text-wrap: balance;
  margin: 0;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 24px -14px rgba(33,51,67,0.18);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pillar:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -14px rgba(33,51,67,0.28);
}

/* Barra de color arriba, con el mismo criterio que las tarjetas del panel:
   cada color identifica el tipo de dato (aviso, respaldo, alerta, informe). */
.pillar { border-top-width: 3px; }
.pillar:nth-child(1) { border-top-color: var(--aviso); }
.pillar:nth-child(2) { border-top-color: var(--success); }
.pillar:nth-child(3) { border-top-color: var(--alerta); }
.pillar:nth-child(4) { border-top-color: var(--info); }

.pillar-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--primary-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}

.pillar h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0;
}

.pillar p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--navy-soft);
  margin: 0;
}

@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
}


/* ---- mini-visuales animadas de cada tarjeta ---- */

.pillars { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar { padding: 24px 20px 22px; gap: 12px; }

.viz {
  margin-top: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.viz-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--text);
  opacity: 0;
  animation: viz-in 6s ease-in-out infinite;
}
.viz-row:nth-child(2) { animation-delay: 0.7s; }
.viz-row:nth-child(3) { animation-delay: 1.4s; }
.viz-row b { font-weight: 600; }

.viz-chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  background: #E5FBF8;
  color: #00816F;
  border-radius: 999px;
  padding: 2px 7px;
  white-space: nowrap;
}

.viz-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--muted);
  overflow: hidden;
}
.viz-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--primary);
  animation: viz-fill 6s ease-in-out infinite;
}
.viz-bar.lento span { background: var(--success); animation-duration: 7s; }

.viz-caption { font-size: 10.5px; line-height: 1.4; color: var(--navy-soft); }

.viz-dot {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--success); flex-shrink: 0;
  animation: viz-pulse 2.4s ease-out infinite;
}

.viz-alert {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-strong);
  background: var(--surface);
  border-left: 3px solid var(--alerta);
  border-radius: 6px;
  padding: 6px 8px;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  animation: viz-in 6s ease-in-out infinite;
}
.viz-alert.amarilla { border-left-color: var(--aviso); }
.viz-alert:nth-child(2) { animation-delay: 1s; }
.viz-alert small { font-weight: 400; font-size: 9.5px; color: var(--navy-soft); }

.viz-chart {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 5px;
  height: 52px;
}
.viz-chart span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--primary-tint);
  border-top: 3px solid var(--primary);
  height: 12%;
  animation: viz-grow 6s ease-in-out infinite;
}
.viz-chart span:nth-child(2) { animation-delay: 0.15s; }
.viz-chart span:nth-child(3) { animation-delay: 0.3s; }
.viz-chart span:nth-child(4) { animation-delay: 0.45s; }
.viz-chart span:nth-child(5) { animation-delay: 0.6s; }

@keyframes viz-in {
  0%, 8%    { opacity: 0; transform: translateY(6px); }
  18%, 82%  { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes viz-fill {
  0%, 10%   { width: 0; }
  70%, 85%  { width: 100%; }
  100%      { width: 100%; opacity: 0; }
}
@keyframes viz-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,189,165,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(0,189,165,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,189,165,0); }
}
@keyframes viz-grow {
  0%, 10%  { height: 12%; }
  55%, 90% { height: var(--alto); }
  100%     { height: 12%; }
}

/* Quien pide menos movimiento ve la pieza quieta, no rota. */
@media (prefers-reduced-motion: reduce) {
  .viz-row, .viz-alert, .viz-bar span, .viz-chart span, .viz-dot {
    animation: none;
    opacity: 1;
  }
  .viz-bar span { width: 100%; }
  .viz-chart span { height: var(--alto); }
}

@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
}



/* ============ FRANJA DE CIFRAS ============ */

.stats-band {
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 120% at 50% 50%, black 25%, transparent 80%);
}
/* Halo naranja tenue detras de las cifras: da profundidad sin ensuciar. */
.stats-band::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -40%;
  width: 900px;
  height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255,122,89,0.16), transparent 62%);
  pointer-events: none;
}

.stats-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 32px;
}

.stats-titulo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  text-align: center;
  margin: 0 0 44px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat { text-align: center; position: relative; }
/* Separadores finos entre cifras, sin cajas. */
.stat + .stat::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: rgba(255,255,255,0.12);
}

.stat-num {
  display: block;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}
.stat p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #9db3c7;
  margin: 10px auto 0;
  max-width: 190px;
}

@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .stat:nth-child(3)::before { display: none; }
  .stat-num { font-size: 38px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat + .stat::before { display: none; }
}


/* ---- simulador de tiempo ---- */

.sim-control { text-align: center; margin-bottom: 44px; }
.sim-control label { display: block; font-size: 14px; color: #9db3c7; margin-bottom: 8px; }
.sim-sitios {
  display: block;
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
}
.sim-control input[type="range"] {
  width: 100%;
  max-width: 460px;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  outline: none;
}
.sim-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--primary); border: 3px solid #ffffff; cursor: pointer;
  box-shadow: 0 4px 12px -2px rgba(0,0,0,0.5);
}
.sim-control input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--primary); border: 3px solid #ffffff; cursor: pointer;
}
.sim-control input[type="range"]:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.sim-escala {
  display: flex; justify-content: space-between;
  max-width: 460px; margin: 8px auto 0;
  font-size: 11.5px; color: #93aabf;
}

.sim-tabla { max-width: 860px; margin: 0 auto; }

.sim-cab, .sim-tarea, .sim-total {
  display: grid;
  grid-template-columns: 1fr 130px 130px;
  gap: 16px;
  align-items: center;
  padding: 13px 0;
}
.sim-cab {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #93aabf;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  padding-bottom: 10px;
}
.sim-cab span:not(:first-child),
.sim-tarea span:not(.t-nombre),
.sim-total strong { text-align: right; }

.sim-tarea { border-bottom: 1px solid rgba(255,255,255,0.07); }
.sim-tarea .t-nombre { font-size: 14.5px; color: #dce6ee; }
.sim-tarea .t-manual {
  font-size: 15px; font-weight: 600; color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.sim-tarea .t-tutor {
  font-size: 15px; font-weight: 600; color: #ffffff;
  font-variant-numeric: tabular-nums;
}
.sim-tarea .t-tutor.auto { color: var(--success); font-size: 13px; font-weight: 600; }

.sim-total { padding-top: 18px; }
.sim-total .t-nombre { font-size: 15px; font-weight: 700; color: #ffffff; }
.sim-total .t-manual { font-size: 26px; font-weight: 700; color: var(--primary); letter-spacing: -0.6px; }
.sim-total .t-tutor  { font-size: 26px; font-weight: 700; letter-spacing: -0.6px; }
.sim-total .t-tutor.destacado { color: var(--success); }

.sim-ahorro {
  max-width: 860px;
  margin: 26px auto 0;
  text-align: center;
  font-size: 16px;
  color: #dce6ee;
}
.sim-ahorro strong { color: #ffffff; font-weight: 700; }


.sim-titulo {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.8px;
  text-align: center;
  text-wrap: balance;
  margin: 0 0 14px;
}
.sim-titulo em { font-style: normal; color: var(--primary); }
.sim-bajada {
  font-size: 15.5px;
  line-height: 1.6;
  color: #9db3c7;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.sim-cierre-caja {
  max-width: 660px;
  margin: 34px auto 0;
  text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 32px 32px 34px;
}

.sim-ahorro-etiqueta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #93aabf;
  margin-bottom: 8px;
}
.sim-ahorro-num {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.4px;
  color: var(--success);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.sim-ahorro-txt { font-size: 16px; line-height: 1.55; color: #dce6ee; }
.sim-ahorro-txt strong { color: #ffffff; }

.sim-pocos {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--aviso);
  margin-top: 14px;
}

.sim-dinero {
  font-size: 16px;
  line-height: 1.9;
  color: #dce6ee;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.sim-dinero strong { color: #ffffff; font-weight: 700; font-variant-numeric: tabular-nums; }

/* El valor por hora se edita en el sitio, sin sacar al lector de la frase. */
.sim-tarifa {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.28);
  border-bottom: 2px solid var(--primary);
  border-radius: 7px;
  padding: 2px 9px;
  cursor: text;
}
.sim-tarifa::after {
  content: "";
  width: 13px; height: 13px;
  margin-left: 3px;
  background: currentColor;
  color: var(--primary);
  /* lapiz: señal universal de "esto se edita" */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sim-tarifa input {
  width: 58px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  -moz-appearance: textfield;
}
.sim-tarifa input::-webkit-outer-spin-button,
.sim-tarifa input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sim-tarifa input:focus { outline: none; }
.sim-tarifa:focus-within { border-color: var(--primary); }
.sim-tarifa span { color: #93aabf; font-size: 14px; font-weight: 600; }

.sim-dinero-pista {
  font-size: 12.5px;
  color: #93aabf;
  margin-top: 8px;
}

.sim-cierre {
  margin: 20px auto 0;
  font-size: 15px;
  line-height: 1.6;
  color: #93aabf;
}

.sim-cta { margin-top: 24px; }

.sim-letra-chica {
  font-size: 11.5px;
  line-height: 1.6;
  color: #93aabf;
  margin: 36px auto 0;
  max-width: 860px;
  text-align: center;
}

@media (max-width: 700px) {
  .sim-cab { display: none; }
  .sim-titulo { font-size: 26px; }
  .sim-sitios { font-size: 46px; }
  .sim-ahorro-num { font-size: 36px; }
  .sim-cierre-caja { padding: 26px 20px 28px; }

  /* Tres columnas no entran: cada tarea pasa a ser una tarjeta con sus
     valores etiquetados (el data-etiqueta de cada celda). */
  .sim-tarea, .sim-total {
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    padding: 14px 0;
  }
  .sim-tarea .t-nombre, .sim-total .t-nombre { grid-column: 1 / -1; }
  .sim-tarea span:not(.t-nombre),
  .sim-total strong { text-align: left; }
  .sim-tarea span:not(.t-nombre)::before,
  .sim-total strong::before {
    content: attr(data-etiqueta);
    display: block;
    font-size: 10.5px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #93aabf;
    margin-bottom: 2px;
  }
  .sim-total .t-manual, .sim-total .t-tutor { font-size: 22px; }
}

/* ============ FILAS DE FUNCIONALIDAD (una por una, en grande) ============ */

.feature-rows { display: flex; flex-direction: column; gap: 104px; }

.feature-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
/* En las filas invertidas la captura va primero SIN tocar el orden del HTML:
   el lector de pantalla sigue leyendo titulo -> lista -> imagen. */
.feature-row.invertida { grid-template-columns: 1.15fr 0.85fr; }
.feature-row.invertida .feature-copy { order: 2; }
.feature-row.invertida .feature-shot { order: 1; }

.feature-copy h3 {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.5px;
  text-wrap: balance;
  margin: 0 0 20px;
}
.feature-copy h3 em { font-style: normal; color: var(--primary); }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.feature-list li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
}
.feature-list li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--primary);
  margin-top: 8px;
  flex-shrink: 0;
}

.feature-shot {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -28px rgba(33,51,67,0.4), 0 10px 20px -12px rgba(33,51,67,0.2);
  line-height: 0;
}
.feature-shot img { width: 100%; height: auto; display: block; }

/* La entrada al hacer scroll la enciende el JS: sin JS no se oculta nada. */
.anim .revelar { opacity: 0; transform: translateY(22px); }
.anim .revelar.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 860px) {
  .feature-rows { gap: 64px; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.invertida .feature-copy,
  .feature-row.invertida .feature-shot { order: initial; }
  .feature-copy h3 { font-size: 25px; }
}


/* Las viñetas entran una tras otra cuando la fila aparece. */
.anim .revelar .feature-list li { opacity: 0; transform: translateY(10px); }
.anim .revelar.visible .feature-list li {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.anim .revelar.visible .feature-list li:nth-child(1) { transition-delay: 0.20s; }
.anim .revelar.visible .feature-list li:nth-child(2) { transition-delay: 0.34s; }
.anim .revelar.visible .feature-list li:nth-child(3) { transition-delay: 0.48s; }

/* La captura llega con un acercamiento leve. */
.anim .revelar .feature-shot { transform: scale(0.965); }
.anim .revelar.visible .feature-shot {
  transform: scale(1);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Barrido de luz: solo en la fila de limpieza, como un "pasar el trapo". */
.feature-shot.barrido { position: relative; }
.feature-shot.barrido::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.75) 50%, transparent 62%);
  transform: translateX(-110%);
}
.anim .revelar.visible .feature-shot.barrido::after {
  animation: barrer 1.5s ease-in-out 0.45s 1;
}
@keyframes barrer {
  to { transform: translateX(110%); }
}

@media (prefers-reduced-motion: reduce) {
  .anim .revelar .feature-list li,
  .anim .revelar .feature-shot { opacity: 1; transform: none; }
  .feature-shot.barrido::after { display: none; }
}


/* Composicion: la pagina del informe con una tarjeta suya flotando encima.
   Rompe la planitud de una captura de puro texto. */
.feature-shot.compuesta {
  position: relative;
  overflow: visible;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.feature-shot.compuesta > img:first-child {
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -28px rgba(33,51,67,0.4), 0 10px 20px -12px rgba(33,51,67,0.2);
}
/* Mas especifico que `.feature-shot img`, que impone width:100%. */
.feature-shot img.shot-flotante {
  position: absolute;
  left: -6%;
  bottom: -11%;
  width: 72%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 26px 46px -18px rgba(33,51,67,0.5);
}

.anim .revelar .shot-flotante { opacity: 0; transform: translateY(16px) scale(0.96); }
.anim .revelar.visible .shot-flotante {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.6s ease 0.45s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
}

@media (prefers-reduced-motion: reduce) {
  .anim .revelar .shot-flotante { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .feature-shot img.shot-flotante { left: 0; bottom: -8%; width: 76%; }
}

/* ============ TESTIMONIAL / MOTIVATION ============ */

.story {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.story-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 100% at 20% 50%, black 30%, transparent 85%);
}

.story-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 32px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.quote-mark {
  font-size: 64px;
  line-height: 1;
  color: var(--primary);
  font-weight: 700;
  margin: 0 0 8px;
  font-family: Georgia, serif;
}

blockquote {
  margin: 0 0 20px;
  font-size: 21px;
  line-height: 1.55;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.2px;
  text-wrap: balance;
}

.quote-attr {
  font-size: 13px;
  color: #9db3c7;
  display: flex;
  align-items: center;
  gap: 10px;
}
.quote-attr .qa-dot { width: 4px; height: 4px; border-radius: 999px; background: #56728a; }

.story-copy h2 {
  font-size: 22px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 16px;
}
.story-copy p {
  font-size: 14.5px;
  line-height: 1.8;
  color: #aec2d4;
  margin: 0 0 16px;
}
.story-copy p:last-child { margin-bottom: 0; }
.story-copy strong { color: #fff; }

@media (max-width: 900px) {
  .story-inner { grid-template-columns: 1fr; }
}

/* ============ PREGUNTAS FRECUENTES ============ */

/* Título arriba y centrado; las preguntas en una columna centrada, cerradas. */
.faq .section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}
.faq-sub {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.faq-sub a { color: var(--primary-dark); font-weight: 600; }

.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--border); }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-strong);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary-dark); }
.faq-item summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 4px; }

/* Un "+" que gira a "×" al abrir: la pregunta se entiende como algo que se despliega. */
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 400; line-height: 1;
  color: var(--primary-dark);
  background: var(--primary-tint);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin: -6px 0 22px;
  max-width: 700px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

@media (max-width: 640px) {
  .faq-item summary { font-size: 15.5px; padding: 18px 0; }
}

/* ============ ANALISIS GRATUITO (Health Check) ============ */

.hc .hc-wrap { padding-top: 88px; padding-bottom: 88px; }
.hc .section-head { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.hc-sub { margin: 16px 0 0; font-size: 15px; line-height: 1.7; color: var(--text); }

.hc-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hc-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hc-campo { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hc-campo label { font-size: 13.5px; font-weight: 600; color: var(--text-strong); line-height: 1.4; }

.hc-campo input,
.hc-campo select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-strong);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 13px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hc-campo input::placeholder { color: #93aabf; }
/* Contorno de 2px en texto fuerte: el naranja claro sobre blanco no llega a 3:1 y el halo tenue de antes casi no se veia. */
.hc-campo input:focus-visible,
.hc-campo select:focus-visible { outline: 2px solid var(--text-strong); outline-offset: 2px; border-color: var(--primary); }
.hc-campo input:disabled,
.hc-campo select:disabled { background: var(--muted); cursor: not-allowed; }
.hc-campo [aria-invalid="true"] { border-color: var(--alerta); }

.hc-error { margin: 0; min-height: 0; font-size: 13px; line-height: 1.5; color: #c8323a; }
.hc-error:empty { display: none; }

.hc-check { display: flex; align-items: flex-start; gap: 12px; }
.hc-check input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); cursor: pointer; }
.hc-check label { font-size: 13.5px; line-height: 1.6; color: var(--text); cursor: pointer; }
/* Enlaces de texto chico (12-14 px): el naranja (#e8694a) sobre blanco da ~3:1. El naranja es color de accion, no de texto. */
.hc-check a,
.hc-google a { color: var(--text-strong); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.hc-check a:hover,
.hc-google a:hover { text-decoration-thickness: 2px; }

.hc-mensaje { border-radius: 8px; padding: 16px 18px; border: 1px solid var(--border); font-size: 14.5px; line-height: 1.6; color: var(--text-strong); }
.hc-mensaje:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.hc-mensaje p { margin: 0; }
.hc-mensaje p + p { margin-top: 4px; }
.hc-mensaje[hidden], .hc-desafio[hidden] { display: none; }
.hc-mensaje-exito { background: #E6F8F5; border-color: var(--success); }
.hc-mensaje-error { background: #FDECEE; border-color: var(--alerta); }
.hc-mensaje-aviso { background: var(--primary-tint); border-color: var(--primary); }

/* Enlace a crear cuenta: secundario a proposito (un solo boton primario por bloque). */
.hc-enlace {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  color: var(--text-strong);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.hc-enlace:hover { background: var(--primary-tint); }
.hc-enlace:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.hc-desafio { display: flex; justify-content: flex-start; }

.hc-accion { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hc-accion .btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.hc-nota { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text); }
.hc-google { margin: 0; font-size: 12px; line-height: 1.6; color: #4a5f75; }

/* Con el aviso de Google a la vista en el formulario, Google permite ocultar su
   distintivo flotante (que ademas tapa el boton de "volver arriba"). */
.grecaptcha-badge { visibility: hidden; }

@media (max-width: 640px) {
  .hc .hc-wrap { padding-top: 64px; padding-bottom: 64px; }
  .hc-card { padding: 24px 20px; }
  .hc-fila { grid-template-columns: 1fr; }
  .hc-accion .btn-primary { width: 100%; justify-content: center; }
}

/* El widget de reCAPTCHA v2 mide 304 px y no se adapta: en un telefono de 375 px
   el contenido util de la tarjeta era de ~269 px y sobresalia. Se recortan los
   margenes laterales y se escala el widget (el desafio de imagenes aparece
   aparte, sobre la pagina, y no lo afecta). Los 69 px son los 78 del widget por
   .88: sin fijar el alto quedaria un hueco. */
@media (max-width: 400px) {
  .hc .hc-wrap { padding-left: 16px; padding-right: 16px; }
  .hc-card { padding: 24px 16px; }
  .hc-desafio { height: 69px; }
  .hc-desafio > div { transform: scale(.88); transform-origin: 0 0; }
}
@media (max-width: 340px) {
  .hc-desafio { height: 60px; }
  .hc-desafio > div { transform: scale(.77); }
}

/* ============ FINAL CTA ============ */

.final-cta {
  background: var(--bg);
  padding: 100px 32px 120px;
  text-align: center;
}

.final-cta-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 56px 48px;
  position: relative;
}

.final-cta-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  border-radius: 999px;
}

.final-cta h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  text-wrap: balance;
}

.final-cta p {
  font-size: 14.5px;
  color: var(--navy-soft);
  max-width: 420px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.site-footer {
  background: var(--navy-deep);
  padding: 60px 32px 40px;
}

.site-footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.site-footer-brand .brand { margin-bottom: 12px; }
.site-footer-brand .logo-box { background: var(--primary); }
.site-footer-brand .logo-box span { color: #fff; }
.site-footer-brand .brand-name { color: #ffffff; }
.site-footer-brand .brand-name em { color: var(--primary); }
.site-footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: #93aabf;
  max-width: 260px;
}

.site-footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 16px;
}
.site-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer-col a {
  font-size: 13.5px;
  color: #93aabf;
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer-col a:hover { color: #ffffff; }

.site-footer-bottom {
  max-width: 1180px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  color: #93aabf;
}

@media (max-width: 700px) {
  .site-footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============ MENÚ RECURSOS ============ */
.menu-recursos { position: relative; display: inline-block; }
.menu-recursos-boton {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  /* Mismos valores que `.nav-links a`: el botón no hereda de esa regla. */
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--text); padding: 0;
  transition: color 0.15s ease;
}
.menu-recursos-boton:hover { color: var(--primary-dark); }
.menu-recursos-boton:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.menu-recursos-panel {
  position: absolute; top: calc(100% + 16px); left: -16px; z-index: 50;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(33,51,67,.12); padding: 8px; min-width: 300px;
}
.menu-recursos-panel:not([hidden]) { display: flex; gap: 8px; }
.menu-recursos-columna { flex: 1; min-width: 280px; padding: 8px 0; }
.menu-recursos-titulo {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy-soft); padding: 4px 16px 8px;
}
.menu-recursos-panel a {
  display: block; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.menu-recursos-panel a:hover, .menu-recursos-panel a[aria-current="page"] { background: var(--primary-tint); }
.menu-recursos-panel strong { display: block; color: var(--text-strong); font-weight: 700; font-size: 14px; }
.menu-recursos-panel span { display: block; font-size: 13px; font-weight: 400; color: var(--text); margin-top: 4px; }
@media (max-width: 860px) {
  .menu-recursos-panel { position: static; box-shadow: none; min-width: 0; }
  .menu-recursos-panel:not([hidden]) { flex-direction: column; }
  .menu-recursos-columna { min-width: 0; }
}

/* ============ GLOSARIO ============ */
body.fondo-blanco { background: #ffffff; }
/* Tipografia y escala propias (IBM Plex Sans), pedidas por Diego sobre la referencia de LLM Pulse. */
.glosario {
  background: #ffffff; font-family: 'IBM Plex Sans', 'Lexend Deca', sans-serif;
  max-width: 1280px; margin: 0 auto; padding: 40px 48px 96px;
}
.glosario-letras { display: flex; gap: 8px; margin-bottom: 32px; }
.glosario-letras a, .glosario-letra-vacia {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 1 1 0; max-width: 44px; height: 44px; border-radius: 6px; font-size: 16px; font-weight: 600;
}
.glosario-letras a { background: #EDF1F5; color: var(--navy); text-decoration: none; transition: background 0.15s ease, color 0.15s ease; }
.glosario-letras a:hover { background: var(--navy); color: #ffffff; }
.glosario-letras a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.glosario-letra-vacia { background: #F6F8FA; color: #C3CDD7; }
.glosario-hero {
  background: var(--navy); color: #ffffff; border-radius: 16px;
  padding: 56px 56px 64px; margin-bottom: 48px;
}
.glosario-contador {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.14); font-size: 15px; font-weight: 600; color: #ffffff;
}
.glosario-hero h1 {
  font-family: inherit; font-size: 56px; line-height: 1.1; font-weight: 700;
  letter-spacing: -0.5px; margin: 28px 0 20px; color: #ffffff;
}
.glosario-hero p { max-width: 780px; font-size: 20px; line-height: 1.55; color: #E3EAF1; }
.glosario-contenido { border-top: 2px solid var(--navy); padding-top: 32px; }
.glosario-seccion { margin-bottom: 40px; scroll-margin-top: 96px; }
.glosario-seccion h2 {
  font-family: inherit; font-size: 36px; line-height: 1; font-weight: 700; color: var(--navy);
  margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid #E5EAF0;
}
.glosario-tarjetas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.glosario-termino {
  border-left: 3px solid var(--navy); border-bottom: 1px solid #E5EAF0;
  padding: 28px 32px; scroll-margin-top: 96px;
}
.glosario-termino:target { background: #F6F8FA; }
.glosario-termino h3 { font-family: inherit; font-size: 24px; line-height: 1.3; font-weight: 400; color: #1B2733; margin: 0 0 10px; }
.glosario-termino p { font-size: 17px; line-height: 1.6; color: #5B6B7B; }
.glosario-termino-pie { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-size: 14px; }
.glosario-termino-pie a { color: var(--primary-dark); font-weight: 500; text-decoration: none; }
.glosario-termino-pie a:hover { text-decoration: underline; }
.glosario-termino-pie .glosario-fuente { color: var(--navy-soft); font-weight: 400; }
.glosario .blog-revision { font-size: 14px; color: var(--navy-soft); margin: 8px 0 40px; }
.glosario .blog-cta { font-family: 'Lexend Deca', sans-serif; }
@media (max-width: 760px) {
  .glosario { padding: 24px 16px 64px; }
  .glosario-letras { flex-wrap: wrap; gap: 6px; }
  .glosario-letras a, .glosario-letra-vacia { flex: 0 0 34px; height: 34px; font-size: 14px; }
  .glosario-hero { padding: 32px 24px 40px; }
  .glosario-hero h1 { font-size: 38px; }
  .glosario-hero p { font-size: 17px; }
  .glosario-tarjetas { grid-template-columns: 1fr; }
  .glosario-termino { padding: 20px 20px; }
  .glosario-termino h3 { font-size: 21px; }
  .glosario-termino p { font-size: 16px; }
}

/* ============ BLOG ============ */
.blog-indice, .blog-articulo { max-width: 780px; margin: 0 auto; padding: 48px 24px 80px; }
.blog-indice { max-width: 1180px; }
.blog-migas { font-size: 13px; color: var(--navy-soft); margin-bottom: 24px; }
.blog-migas a { color: var(--navy-soft); }
.blog-indice-cabecera { text-align: center; margin-bottom: 48px; }
.blog-indice-cabecera h1 { font-size: 40px; color: var(--text-strong); margin: 0 0 16px; }
.blog-indice-cabecera p { color: var(--text); max-width: 620px; margin: 0 auto; }

.blog-tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-tarjeta {
  display: block; text-decoration: none; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden; padding-bottom: 16px;
}
.blog-tarjeta:hover { border-color: var(--primary); }
.blog-tarjeta img { width: 100%; height: auto; display: block; }
.blog-tarjeta-categoria {
  display: inline-block; margin: 16px 16px 0; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; color: var(--primary-dark);
}
.blog-tarjeta h2, .blog-tarjeta h3 { margin: 8px 16px; font-size: 19px; color: var(--text-strong); }
.blog-tarjeta p { margin: 0 16px; font-size: 15px; color: var(--text); }
.blog-vacio { color: var(--navy-soft); }

.blog-categoria {
  display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--primary-dark); margin-bottom: 8px;
}
.blog-articulo h1 { font-size: 38px; line-height: 1.2; color: var(--text-strong); margin: 0 0 16px; }
.blog-datos { font-size: 14px; color: var(--navy-soft); margin: 0 0 24px; }
.blog-destacada { width: 100%; height: auto; border-radius: 8px; margin-bottom: 32px; }

.blog-respuesta-corta {
  background: var(--primary-tint); border-left: 4px solid var(--primary);
  border-radius: 8px; padding: 24px; margin-bottom: 32px;
}
.blog-respuesta-corta strong {
  display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--primary-dark); margin-bottom: 8px;
}
.blog-respuesta-corta p { margin: 0; font-size: 17px; color: var(--text-strong); }

.blog-cuerpo { font-size: 17px; line-height: 1.75; color: var(--text); }
.blog-cuerpo h2 {
  background: var(--navy); color: #fff; font-size: 20px; font-weight: 600; line-height: 1.35;
  padding: 12px 24px; border-left: 6px solid var(--primary);
  border-radius: 0 24px 0 0; margin: 48px 0 24px;
}
.blog-cuerpo h3 { font-size: 20px; color: var(--text-strong); margin: 32px 0 8px; }
.blog-cuerpo a { color: var(--primary-dark); }
.blog-cuerpo img { max-width: 100%; height: auto; border-radius: 8px; }
.blog-cuerpo p { margin: 0 0 1.75em; }
.blog-cuerpo ul > li { margin-bottom: 8px; }
.blog-cuerpo ol { counter-reset: paso; list-style: none; padding-left: 0; }
.blog-cuerpo ol > li {
  counter-increment: paso; position: relative; padding-left: 48px; margin-bottom: 16px;
}
.blog-cuerpo ol > li::before {
  content: counter(paso); position: absolute; left: 0; top: 2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary-tint); color: var(--primary-dark);
  font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.blog-cuerpo blockquote {
  margin: 24px 0; padding: 16px 24px; border-left: 4px solid var(--border);
  background: var(--bg-soft); border-radius: 0 8px 8px 0;
  /* Anula la regla global `blockquote` (testimonios de la home: blanco, 21px). */
  color: var(--text); font-size: inherit; font-weight: 400; line-height: inherit;
  letter-spacing: normal; text-wrap: wrap;
}
.blog-cuerpo blockquote p:last-child { margin-bottom: 0; }

.blog-faq { margin-top: 48px; }
.blog-faq h2 { font-size: 24px; color: var(--text-strong); }
.blog-faq details {
  border: 1px solid var(--border); border-radius: 8px; padding: 16px 24px; margin-bottom: 8px;
}
.blog-faq summary { cursor: pointer; font-weight: 600; color: var(--text-strong); }
.blog-faq details p { margin: 12px 0 0; }

.blog-fuentes { margin-top: 48px; font-size: 15px; }
.blog-fuentes h2 { font-size: 19px; color: var(--text-strong); }
.blog-fuentes a { color: var(--primary-dark); }
.blog-revision { color: var(--navy-soft); font-size: 14px; }

.blog-autor {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 48px;
  padding: 24px; background: var(--bg-soft); border-radius: 8px;
}
.blog-autor img { border-radius: 50%; }
.blog-autor p { margin: 4px 0 0; font-size: 15px; }

.blog-cta {
  margin-top: 48px; padding: 32px; background: var(--navy); border-radius: 8px; color: #fff;
}
.blog-cta h2 { color: #fff; font-size: 24px; margin: 0 0 8px; }
.blog-cta p { color: #CBD6E2; margin: 0 0 24px; }
.blog-cta-nota { font-size: 14px; margin: 16px 0 0 !important; }
.blog-cta-nota a { color: var(--primary); }

.blog-relacionados { max-width: 1180px; margin: 64px auto 0; padding: 0 24px; }
.blog-relacionados h2 { font-size: 24px; color: var(--text-strong); margin-bottom: 24px; }

@media (max-width: 520px) {
  .blog-articulo h1 { font-size: 30px; }
  .blog-cuerpo h2 { font-size: 17px; padding: 8px 16px; }
}

/* Tablas del cuerpo del blog (comparativas). La plantilla envuelve cada tabla en .blog-tabla:
   el contenedor es el que se desplaza en horizontal y, al ser enfocable, se puede recorrer con teclado. */
.blog-tabla { max-width: 100%; overflow-x: auto; margin: 28px 0; }
.blog-tabla:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.blog-cuerpo table { display: table; width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.blog-cuerpo th, .blog-cuerpo td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; vertical-align: top; min-width: 170px; }
.blog-cuerpo th { background: var(--navy); color: #fff; font-weight: 600; }
.blog-cuerpo td:first-child { background: var(--bg-soft); color: var(--text-strong); font-weight: 600; min-width: 130px; }
