/* ==========================================================================
   TICsPoint — site.css
   Adaptación del sistema visual (styles.css) a la estructura WEB real
   (hero / sections / cards / buttons / layout).
   Este archivo debe cargarse DESPUÉS de styles.css.
   ========================================================================== */

/* Base visual web */
html { scroll-behavior: smooth; }

body{
  /* Blindamos fondo oscuro aunque algún contenedor esté “raro” */
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(700px 420px at 10% -10%, rgba(108, 92, 231, 0.10), transparent 60%),
    linear-gradient(180deg, var(--color-bg-primary), var(--color-bg-secondary));
}

/* Helpers */
.container{
  max-width: var(--container-max, 1120px);
  margin: 0 auto;
  padding: 0 16px;
}

.section{
  padding: 42px 0;
}

.kicker{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(234, 242, 255, .92);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255,255,255,.02);
}

.lead{
  margin-top: 10px;
  font-size: clamp(15px, 2.2vw, 18px);
  color: rgba(159,179,200,.96);
  max-width: 72ch;
}

/* HERO */
.hero{
  padding: 72px 0 22px;
  position: relative;
}

/* Hero headline */
.hero-title,
.hero h1{
  margin: 0;
  font-family: var(--font-heading, "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(30px, 5vw, 56px);
  color: var(--text, #F8FAFC);
}

.hero-grid{
  display: grid;
  gap: 18px;
  align-items: center;
}

/* Desktop layout for hero */
@media (min-width: 980px){
  .hero-grid{
    grid-template-columns: 1.1fr .9fr;
    gap: 22px;
  }
}

.hero-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Cards */
.cards{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.card{
  border-radius: var(--radius-xl, 16px);
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    radial-gradient(400px 240px at 10% 0%, rgba(34, 211, 238, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  box-shadow: 0 12px 34px rgba(0,0,0,.30);
  padding: 14px;
  backdrop-filter: blur(10px);
}

.card-title{
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: .1px;
  color: var(--color-text-primary, #eaf2ff);
  margin-bottom: 6px;
}

.card-text{
  margin: 0;
  color: rgba(159,179,200,.96);
  line-height: 1.55;
  font-size: 14.5px;
}

/* Buttons (alineados con tokens de styles.css) */
.btn{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  font-family: "Montserrat", system-ui, sans-serif;
  border: 1px solid rgba(255,255,255,.10);
  text-decoration: none;
  transition: transform var(--transition-fast), filter var(--transition-fast), background var(--transition-fast);
  user-select: none;
}

.btn-primary{
  background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-green));
  color: #071018;
}
.btn-primary:hover{ transform: translateY(-1px); filter: brightness(1.02); }

.btn-ghost{
  background: rgba(255,255,255,.03);
  color: rgba(234,242,255,.92);
}
.btn-ghost:hover{ transform: translateY(-1px); background: rgba(255,255,255,.05); }

/* Slide title compat (por si lo reusás desde PPT / componentes) */
.slide-title{
  color: var(--color-text-primary);
}

/* Animación: contenedor a la derecha */
[data-hero-animation]{
  min-height: 320px; 
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(30, 41, 59, 0.18);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* =====================================================================
   MÉTODO (timeline): consistencia visual + altura uniforme
   - Ocultamos los tiempos (son variables por proyecto)
   - Alineamos el “entregable” al borde inferior
   ===================================================================== */

.timeline .tcard{
  display:flex;
  flex-direction:column;
}

.timeline .tcard .deliverable{ margin-top:auto; }

.timeline .tcard > .badge{ display:none; }

/* ==========================================================================
   HEADER & FOOTER (estructura real de TICsPoint)
   - Mantiene header/footer como parciales (partials/*.html)
   - Mobile First + menú hamburguesa
   ========================================================================== */

/* Accesibilidad */
.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(10, 15, 22, .70);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.nav-shell{
  max-width: var(--container-max, 1120px);
  margin: 0 auto;
  padding: 12px 16px;
  position: relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--color-text-primary, #eaf2ff);
  text-decoration:none;
}

.brand-text{ display:flex; flex-direction:column; gap:2px; }
.brand-name{
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.05;
}
.brand-claim{
  font-size: 12px;
  color: rgba(159, 179, 200, .95);
  line-height: 1.1;
}

/* Logo “píldora” (mark) */
.brand-mark{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background:
    radial-gradient(14px 14px at 30% 30%, rgba(255,255,255,.18), transparent 55%),
    linear-gradient(135deg, var(--color-accent-purple, #6c5ce7), var(--color-accent-cyan, #22d3ee), var(--color-accent-green, #00d9a3));
  box-shadow: 0 10px 28px rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,.12);
}
.brand-mark.small{ width: 28px; height: 28px; border-radius: 10px; }

/* Slot de isologotipo (opcional). Si existe /assets/img/isologo.svg se mostrará.
   Si no existe, se usa el punto (tp-dot) de fallback.
*/
.tp-brand__logo{
  height: 32px;
  width: auto;
  display: block;
  border-radius: 8px;
}
.tp-footer__logo{
  height: 28px;
  width: auto;
  display: block;
  border-radius: 8px;
}

/* Toggle */
.nav-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255,255,255,.03);
  color: var(--color-text-primary, #eaf2ff);
  cursor:pointer;
}

.hamburger{
  width: 20px;
  height: 2px;
  background: rgba(234, 242, 255, .88);
  position: relative;
  border-radius: 2px;
}
.hamburger::before,
.hamburger::after{
  content:"";
  position:absolute;
  left:0;
  width: 20px;
  height: 2px;
  background: rgba(234, 242, 255, .88);
  border-radius: 2px;
}
.hamburger::before{ top: -6px; }
.hamburger::after{ top: 6px; }

/* Nav */
.site-nav{
  /* Mobile: panel colapsado */
  display:none;
  position:absolute;
  left: 12px;
  right: 12px;
  top: calc(100% + 10px);
  padding: 12px;
  border-radius: 16px;
  background: rgba(10, 15, 22, .92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
}
.site-nav.is-open{ display:block; }

.nav-link{
  display:block;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(234, 242, 255, .92);
  text-decoration:none;
  font-weight: 600;
  letter-spacing: .1px;
}
.nav-link:hover{
  background: rgba(255,255,255,.05);
}
.nav-link.is-active{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

/* Acciones dentro del nav (idioma + CTA) */
.nav-actions{
  display:flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.lang-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 32px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-weight: 800;
  letter-spacing: .4px;
}

/* Desktop */
@media (min-width: 980px){
  .nav-toggle{ display:none; }

  .site-nav{
    display:flex !important;
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    align-items:center;
    gap: 6px;
  }

  .nav-link{
    display:inline-flex;
    align-items:center;
    padding: 10px 12px;
  }

  .nav-actions{
    flex-direction: row;
    align-items:center;
    padding: 0;
    margin: 0 0 0 8px;
    border-top: 0;
  }

  .brand-claim{ max-width: 520px; }
}

/* Footer */
.site-footer{
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(10, 15, 22, .55);
  backdrop-filter: blur(10px);
}

.footer-shell{
  max-width: var(--container-max, 1120px);
  margin: 0 auto;
  padding: 28px 16px 14px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.footer-col{
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-xl, 16px);
  background: rgba(255,255,255,.03);
  padding: 14px;
}

.footer-brand{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-title{
  font-weight: 800;
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--color-text-primary, #eaf2ff);
}
.footer-sub{
  color: rgba(159,179,200,.95);
  font-size: 13px;
  margin-top: 2px;
}
.footer-text{
  color: rgba(159,179,200,.95);
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.footer-links{
  list-style:none;
  padding: 0;
  margin: 10px 0 0;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.footer-links a{
  color: rgba(234,242,255,.92);
  text-decoration:none;
}
.footer-links a:hover{ filter: brightness(1.05); }

.footer-bottom{
  max-width: var(--container-max, 1120px);
  margin: 0 auto;
  padding: 14px 16px 22px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  justify-content: space-between;
  color: rgba(159,179,200,.92);
  font-size: 12px;
}
.footer-mini{ color: rgba(234,242,255,.92); text-decoration:none; }
.footer-sep{ opacity:.6; }

@media (min-width: 980px){
  .footer-shell{
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 16px;
  }
}

/* ========================================================================== */
/* LIGHT MODE REFINEMENTS (v4.1) — ajustes finos solicitados
   1) Footer: sin bloque gris, mismo fondo que la página.
      Textos “Estrategia + tecnología + UX.” y “© …” en rgba(15,23,42,0.78)
   2) Método: cards alineadas (no crecen por contenido) + “ENTREGABLE” legible.
   3) Botón secundario (outline): borde 1px y color #23D0EB en modo día.
   4) Slot para isologotipo en header/footer.
*/

/* 1) Footer en light */
.theme-light .site-footer{
  background: transparent; /* mismo fondo que la página */
}

.theme-light .footer-title,
.theme-light .footer-bottom,
.theme-light .footer-mini{
  color: rgba(15, 23, 42, 0.78);
}

.theme-light .footer-sub,
.theme-light .footer-text,
.theme-light .footer-links a{
  color: rgba(15, 23, 42, 0.70);
}

/* 2) Método: evitar que una card (ej. Optimizar) “estire” el alto */
.timeline .tcard{
  display: flex;
  flex-direction: column;
}

/* La caja de entregable se pega abajo y mantiene altura consistente */
.timeline .deliverable{
  margin-top: auto;
  min-height: 74px;
}

/* Evita que el texto largo agrande una sola card */
.timeline .deliverable span{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* “ENTREGABLE” legible en light */
.theme-light .timeline .deliverable small{
  color: rgba(15, 23, 42, 0.78);
}

/* 3) Botón secundario (outline) en light */
.theme-light .btn-ghost{
  border: 1px solid #23D0EB;
  color: #23D0EB;
  background: transparent;
}

.theme-light .btn-ghost:hover{
  background: rgba(35, 208, 235, 0.10);
}

/* 4) Slot isologotipo */
.tp-brand__logo,
.footer-brand__logo{
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: inline-block;
}

/* Nota: margin-right removido para que isotipo+logotipo queden más compactos en header */

/* =============================================================================
   PATCH MINIMO: Light/Dark mode sin romper nada
   - Usa tokens existentes (cyan/verde + violeta) y define overrides SOLO
     cuando html[data-theme="light"] o cuando el sistema es light y no hay elección.
   - No toca tu layout: solo colores/superficies.
   ============================================================================= */

/* Default */
html{ color-scheme: dark; }

/* ==========================================================================
   Light theme overrides (toggle + fallbacks)
   - Se activa con: <html data-theme="light">
   - Si NO hay data-theme, sigue el sistema via prefers-color-scheme
   ========================================================================== */

/* --------- 1) Modo claro explícito (toggle) --------- */
html[data-theme="light"] body{
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(700px 420px at 10% -10%, rgba(108, 92, 231, 0.10), transparent 60%),
    linear-gradient(180deg, #F8FAFC, rgba(248, 250, 252, 0.92));
  color: #0F172A;
}

/* Texto utilitario */
html[data-theme="light"] .lead,
html[data-theme="light"] .card-text,
html[data-theme="light"] .footer-text,
html[data-theme="light"] .muted{
  color: rgba(15, 23, 42, 0.78);
}
html[data-theme="light"] .card-title,
html[data-theme="light"] .brand-name,
html[data-theme="light"] .footer-title{
  color: rgba(15, 23, 42, 0.78);
}

html[data-theme="light"] .footer-bottom{
  color: rgba(15, 23, 42, 0.78);
}

html[data-theme="light"] .footer-mini{
  color: rgba(15, 23, 42, 0.78);
}

/* Jerarquía (día): evitamos negro puro sin perder presencia */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3{
  color: rgba(15, 23, 42, 0.92);
}
html[data-theme="light"] .hero h1{
  font-weight: 800;
}

/* Kicker / pills (ej: “Consultoría”) */
html[data-theme="light"] .kicker{
  background: rgba(35, 208, 235, 0.18);
  border-color: rgba(35, 208, 235, 0.45);
  color: rgba(15, 23, 42, 0.86);
}

/* Header / nav */
html[data-theme="light"] .site-header{
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}
html[data-theme="light"] .nav-toggle{
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.14);
  color: #0F172A;
}
html[data-theme="light"] .hamburger,
html[data-theme="light"] .hamburger::before,
html[data-theme="light"] .hamburger::after{
  background: rgba(15, 23, 42, 0.85);
}
html[data-theme="light"] .site-nav{
  background: rgba(248, 250, 252, 0.98);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 48px rgba(0,0,0,.12);
}
html[data-theme="light"] .nav-link{
  color: rgba(15, 23, 42, 0.86);
}
html[data-theme="light"] .nav-link:hover{
  background: rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] .nav-link.is-active{
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.45);
}

/* Lang pill */
html[data-theme="light"] .lang-pill{
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.14);
  color: #0F172A;
}

/* Contenedores “grises” -> más limpios */
html[data-theme="light"] .card{
  background: rgba(248, 250, 252, 0.82);
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
}

/* Timeline cards (Descubrir / Diagnosticar / Diseñar / Implementar) */
html[data-theme="light"] .tcard{
  background: rgba(248, 250, 252, 0.92);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 28px rgba(15,23,42,.10);
  color: rgba(15, 23, 42, 0.90);
}
html[data-theme="light"] .tcard h3,
html[data-theme="light"] .tcard .tbadge,
html[data-theme="light"] .tcard p,
html[data-theme="light"] .tcard li{
  color: rgba(15, 23, 42, 0.90);
}
html[data-theme="light"] .tcard .tbadge{
  background: rgba(35, 208, 235, 0.18);
  border-color: rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .tcard .tline{
  border-color: rgba(15, 23, 42, 0.12);
}

/* Contenedor de animación: transparente en modo día */
html[data-theme="light"] [data-hero-animation]{
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Botones:
   - Los “degradados” (btn-primary) pasan a CYAN #23D0EB con letras negras
   - En hover: VIOLETA con letras blancas
   - Los demás botones quedan como están (ghost/secondary) */
html[data-theme="light"] .btn-primary{
  background: #23D0EB;
  color: #071018;
  border-color: rgba(0,0,0,.08);
}
html[data-theme="light"] .btn-primary:hover{
  background: var(--color-accent-violet, #6c5ce7);
  color: #F8FAFC;
  border-color: rgba(108, 92, 231, 0.35);
  filter: none;
}

/* Footer */
html[data-theme="light"] .site-footer{
  background: transparent;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}
html[data-theme="light"] .footer-col{
  background: transparent;
  border-color: rgba(15, 23, 42, 0.10);
}

/* Ajuste de contraste en textos de footer (modo día) */
html[data-theme="light"] .footer-title,
html[data-theme="light"] .footer-bottom{
  color: rgba(15, 23, 42, 0.78);
}
html[data-theme="light"] .footer-sub,
html[data-theme="light"] .footer-text,
html[data-theme="light"] .footer-bottom,
html[data-theme="light"] .footer-links a{
  color: rgba(15, 23, 42, 0.78);
}

/* Footer real (tp-footer) — en modo día, sin bloque gris y textos en slate */
html[data-theme="light"] .tp-footer{
  background: transparent;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .tp-footer__small,
html[data-theme="light"] .tp-footer__legal{
  color: rgba(15, 23, 42, 0.78);
}

/* Slot de isologotipo (header/footer) */
.tp-brand__logo,
.tp-footer__logo{
  height: 30px;
  width: auto;
  display: block;
}
.tp-footer__logo{ height: 28px; }

/* Método (timeline):
   - Mantener todas las cards con la misma altura (evita que “Optimizar” crezca).
   - Mejorar contraste de la etiqueta “ENTREGABLE” en modo día.
*/
html[data-theme="light"] .timeline .tcard{
 /*  min-height: 230px; No usamos */
}

/* Fijamos el bloque de entregable para que el contenido no estire la card */
.timeline .deliverable{
  margin-top: auto;
  min-height: 72px;
}
.timeline .deliverable span{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html[data-theme="light"] .timeline .deliverable small{
  color: rgba(15, 23, 42, 0.78);
}

/* Botón secundario (outline) en modo día:
   borde 1px y color de línea #23D0EB (sin tocar el comportamiento del resto) */
html[data-theme="light"] .btn-ghost{
  border: 1px solid #23D0EB;
  color: #23D0EB;
}

/* (Sin fallback por preferencia del sistema: por defecto TICsPoint carga en oscuro) */

/* --------- 3) Reduce motion --------- */
@media (prefers-reduced-motion: reduce){
  *{ transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* -------------------------------------------------
   Keyword highlight in main headings (TICsPoint emphasis)
   ------------------------------------------------- */
.tp-keyword{ font-weight: inherit; }
html[data-theme="light"] .tp-keyword{ color:#6c5ce7; }
html:not([data-theme="light"]) .tp-keyword{ color:#23d0eb; }

/* Card subtitle hierarchy (subtle, no competition with title) */
.card .kicker{ font-size: 11px; font-weight: 700; opacity: .78; }
.card .card-text{ color: rgba(234, 242, 255, .88); font-size: 14px; }
html[data-theme="light"] .card .card-text{ color: rgba(15, 23, 42, .78); }

/* -------------------------------------------------
   Soluciones (cards modulares escaneables)
   ------------------------------------------------- */
:root{
  --tp-cyan: #23D0EB;
  --tp-violet: #6c5ce7;
  --tp-teal: #4DB69E;
  --tp-stroke: rgba(148,163,184,.18);
}

.tp-solutions-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 960px){
  .tp-solutions-grid{ grid-template-columns: 1fr 1fr; }
}

.tp-solution-card{
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--tp-stroke);
  background: rgba(30,41,59,.66);
  padding: 18px;
  box-shadow: 0 18px 40px rgba(2,6,23,.35);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.tp-solution-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 26px 54px rgba(2,6,23,.48);
  border-color: rgba(35,208,235,.35);
}

html[data-theme="light"] .tp-solution-card{
  background: rgba(255,255,255,.78);
  border-color: rgba(15,23,42,.12);
  box-shadow: 0 18px 44px rgba(15,23,42,.10);
}
html[data-theme="light"] .tp-solution-card:hover{
  box-shadow: 0 28px 60px rgba(15,23,42,.14);
}

.tp-solution-accent{
  position:absolute;
  top:0; left:0; right:0;
  height: 3px;
  opacity: .95;
}
.tp-accent-cyan{ background: var(--tp-cyan); }
.tp-accent-violet{ background: var(--tp-violet); }

.tp-solution-header{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  margin-bottom: 12px;
}

.tp-solution-icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(148,163,184,.20);
  background: rgba(15,23,42,.55);
  flex: 0 0 auto;
}

.tp-solution-icon i{ font-size: 18px; color: var(--tp-cyan); }
/* Second card icon color */
#flotas.tp-solution-card .tp-solution-icon i{ color: var(--tp-violet); }
html[data-theme="light"] .tp-solution-icon{
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.10);
}

.tp-solution-title{
  margin:0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tp-solution-sub{
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(226,232,240,.82);
}
html[data-theme="light"] .tp-solution-sub{ color: rgba(15,23,42,.68); }

.tp-solution-media{
  margin: 10px 0 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(15,23,42,.22);
}
.tp-solution-media img{ display:block; width:100%; height:auto; }
html[data-theme="light"] .tp-solution-media{ background: rgba(15,23,42,.02); border-color: rgba(15,23,42,.10); }

.tp-solution-sections{
  display:grid;
  gap: 10px;
}

.tp-solution-item{
  border-radius: 14px;
  padding: 12px 12px 12px 14px;
  background: rgba(15,23,42,.35);
  border-left: 3px solid transparent;
  transition: background .18s ease;
}

.tp-solution-item:hover{ background: rgba(15,23,42,.46); }
html[data-theme="light"] .tp-solution-item{
  background: rgba(15,23,42,.03);
}
html[data-theme="light"] .tp-solution-item:hover{ background: rgba(15,23,42,.06); }

.tp-solution-label{
  display:flex;
  gap: 8px;
  align-items:center;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tp-solution-text{
  margin:0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(226,232,240,.88);
}
html[data-theme="light"] .tp-solution-text{ color: rgba(15,23,42,.78); }

.tp-solution-item.tp-cyan{ border-left-color: var(--tp-cyan); }
.tp-solution-item.tp-violet{ border-left-color: var(--tp-violet); }
.tp-solution-item.tp-teal{ border-left-color: var(--tp-teal); }

.tp-solution-item.tp-cyan .tp-solution-label,
.tp-solution-item.tp-cyan .tp-solution-label i{ color: var(--tp-cyan); }
.tp-solution-item.tp-violet .tp-solution-label,
.tp-solution-item.tp-violet .tp-solution-label i{ color: var(--tp-violet); }
.tp-solution-item.tp-teal .tp-solution-label,
.tp-solution-item.tp-teal .tp-solution-label i{ color: var(--tp-teal); }

/* ===============================
   TICsPoint — Value Cards (informativas)
   Usadas en: Problemas típicos, Lo que hago, Soluciones, En común
   =============================== */

.tp-value-cards{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-top:18px;
}
@media (max-width: 1100px){
  .tp-value-cards{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 640px){
  .tp-value-cards{grid-template-columns:1fr;}
}

.tp-value-card{
  position:relative;
  border-radius:18px;
  border:1px solid var(--border);
  background:linear-gradient(180deg,var(--card-bg),rgba(15,23,42,0.35));
  padding:20px 20px 18px;
  display:flex;
  gap:14px;
  align-items:flex-start;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
  min-height:132px;
}

.tp-value-card .tp-value-accent{
  position:absolute;
  top:0;left:0;right:0;
  height:3px;
  border-radius:18px 18px 0 0;
  opacity:.9;
}

.tp-value-icon{
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid var(--border);
     background: rgba(108, 92, 231, .12);
    color: #6c5ce7;
    box-shadow: inset 0 0 0 1px rgba(108, 92, 231, .18);
  display:grid;
  place-items:center;
  flex:0 0 44px;
}
.tp-value-icon i{font-size:18px;color:var(--muted);}

.tp-value-body{min-width:0;}
.tp-value-title{
  font-weight:700;
  letter-spacing:-.01em;
  font-size:1rem;
  line-height:1.2;
  margin:2px 0 8px;
}
.tp-value-text{
  margin:0;
  color:var(--text-secondary);
  font-size:.95rem;
  line-height:1.45;
}

/* Estados (hover / focus) — informativo, no se fuerza cursor pointer */
.tp-value-card:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 34px rgba(0,0,0,.25);
}
.tp-value-card:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
}

/* Color coding (no depender solo del color: se acompaña con iconografía y acento superior) */
.tp-value-card.tp-accent-cyan:hover{border-color:rgba(35,208,235,.55);} 
.tp-value-card.tp-accent-violet:hover{border-color:rgba(108,92,231,.55);} 
.tp-value-card.tp-accent-teal:hover{border-color:rgba(77,182,158,.55);} 
.tp-value-card.tp-accent-green:hover{border-color:rgba(96,165,250,.55);} 

.tp-value-card.tp-accent-cyan .tp-value-accent{background:var(--accent-cyan, #23D0EB);} 
.tp-value-card.tp-accent-violet .tp-value-accent{background:var(--accent-violet, #6c5ce7);} 
.tp-value-card.tp-accent-teal .tp-value-accent{background:var(--accent-teal, #4DB69E);} 
.tp-value-card.tp-accent-green .tp-value-accent{background:var(--accent-blue, #60a5fa);} 

.tp-value-card.tp-accent-cyan .tp-value-icon i{color:var(--accent-cyan, #23D0EB);} 
.tp-value-card.tp-accent-violet .tp-value-icon i{color:var(--accent-violet, #6c5ce7);} 
.tp-value-card.tp-accent-teal .tp-value-icon i{color:var(--accent-teal, #4DB69E);} 
.tp-value-card.tp-accent-green .tp-value-icon i{color:var(--accent-blue, #60a5fa);} 

/* ==========================================================================
   Caso de estudio — layout con más aire y menos abuso de cards
   (Se usa solo en caso-estudio.php)
   ========================================================================== */

.hero.hero--subpage{
  padding: 54px 0 18px;
}

.hero.hero--subpage .hero-title,
.hero.hero--subpage h1{
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.12;
}

.tp-split{
  margin-top: 18px;
  display: grid;
  gap: 16px;
  align-items: start;
}

@media (min-width: 980px){
  .tp-split{ grid-template-columns: 1.06fr .94fr; gap: 22px; }
  .tp-split.tp-split--reverse{ grid-template-columns: .94fr 1.06fr; }
  .tp-split.tp-split--reverse > :first-child{ order: 2; }
  .tp-split.tp-split--reverse > :last-child{ order: 1; }
}

.tp-panel{
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255,255,255,0.02);
  border-radius: 16px;
  padding: 14px;
}

html[data-theme="light"] .tp-panel{
  background: rgba(15, 23, 42, 0.02);
}

.tp-panel.tp-panel--compact{ padding: 10px; }

.tp-panel-head{
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.tp-panel-icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255,255,255,0.02);
}

.tp-panel-icon i{ color: var(--color-accent-cyan, #22D3EE); }
html[data-theme="light"] .tp-panel-icon i{ color: var(--color-accent-violet, #6c5ce7); }

.tp-panel-title{
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.01em;
  font-size: 16px;
  color: var(--color-text-primary);
}

.tp-bullets{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.tp-bullet{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(255,255,255,0.01);
}

html[data-theme="light"] .tp-bullet{ background: rgba(15, 23, 42, 0.01); }

.tp-bullet-dot{
  margin-top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.95);
  flex: 0 0 6px;
}

html[data-theme="light"] .tp-bullet-dot{ background: rgba(108, 92, 231, 0.92); }

.tp-bullet-text{ color: rgba(159,179,200,.96); }
html[data-theme="light"] .tp-bullet-text{ color: rgba(15, 23, 42, .78); }

.tp-media{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    radial-gradient(400px 240px at 10% 0%, rgba(34, 211, 238, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  box-shadow: 0 12px 34px rgba(0,0,0,.30);
}

.tp-media--placeholder{ padding: 18px; }

.tp-media-placeholder{
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tp-media-placeholder i{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255,255,255,0.02);
  color: var(--color-accent-cyan, #22D3EE);
}

html[data-theme="light"] .tp-media-placeholder i{ color: var(--color-accent-violet, #6c5ce7); }

.tp-media-ph-title{
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.tp-media-ph-text{ color: rgba(159,179,200,.96); }
html[data-theme="light"] .tp-media-ph-text{ color: rgba(15, 23, 42, .78); }

.tp-feature-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.tp-feature{
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(255,255,255,0.01);
}

html[data-theme="light"] .tp-feature{ background: rgba(15, 23, 42, 0.01); }

.tp-feature-ico{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255,255,255,0.02);
  color: var(--color-accent-cyan, #22D3EE);
  flex: 0 0 36px;
}

html[data-theme="light"] .tp-feature-ico{ color: var(--color-accent-violet, #6c5ce7); }

.tp-feature-title{
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--color-text-primary);
  margin-bottom: 3px;
}

.tp-feature-text{ color: rgba(159,179,200,.96); }
html[data-theme="light"] .tp-feature-text{ color: rgba(15, 23, 42, .78); }

/* =========================================================
   Publicaciones — Pulido editorial (mínimo, global)
   - cover: tamaño coherente (no gigante)
   - prosa: más aire y legibilidad
   - h2/h3: bajan escala (no compiten con el título)
   - toc: menos "bloque" y mejor lectura
========================================================= */

/* 1) Cover: limitar altura y mantener buen recorte */
.tp-post-cover {
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
}

/* Si tu cover está como <figure class="tp-post-cover"><img ...> */
.tp-post-cover img {
  width: 100%;
  height: auto;
  display: block;

  /* clave: evita imagen “gigante” en vertical */
  max-height: 320px;
  object-fit: cover;
}

/* Responsive: en mobile baja un poco para no dominar la pantalla */
@media (max-width: 560px) {
  .tp-post-cover img {
    max-height: 220px;
  }
}

/* 2) Prosa: aire, ancho óptimo y ritmo */
.prose {
  /* ancho de lectura cómodo, incluso dentro de cards */
  max-width: 72ch;

  /* aire vertical y mejor legibilidad */
  line-height: 1.7;
  font-size: 16px;
}

/* espaciado entre párrafos/listas */
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 18px; }
.prose li { margin: 6px 0; }

/* 3) Títulos intermedios: bajar tamaño y dar aire arriba */
.prose h2 {
  font-weight: 600;                 /* tu nueva jerarquía */
  font-size: clamp(18px, 2.0vw, 22px);
  line-height: 1.25;
  margin: 18px 0 10px;
}

.prose h3 {
  font-weight: 500;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.3;
  margin: 14px 0 8px;
}

/* 4) TOC: que se sienta editorial, no “bloque enorme” */
.tp-toc details {
  background: transparent;
  border-radius: 12px;
  padding: 10px 12px;
}

/* si estás dibujando el borde desde JS (inline), al menos suavizamos */
.tp-toc summary {
  font-weight: 600;                 /* evita “black gritón” */
}

/* 5) Card del artículo: más aire interno si tu card es muy apretado */
#articleContent.card {
  padding: 18px;
}

/* 6) Pullquote: que se vea intencional y no “caja rara” */
.tp-pullquote {
  max-width: 72ch;
  margin-top: 14px;
  font-weight: 500;
  line-height: 1.55;
  padding: 14px 16px;
  border-radius: 12px;
}

/* Mantener ancho editorial, pero centrado */
#articleContent .prose,
#articleContent .tp-pullquote {
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   Insight card – bloque editorial de criterio
   ========================================================= */

.insight-card{
  position: relative;
  padding: 22px 24px;
  border-radius: 18px;

  background: linear-gradient(
    180deg,
    rgba(108,92,231,.06),
    rgba(108,92,231,.02)
  );

  border: 1px solid rgba(108,92,231,.18);
  box-shadow:
    0 12px 30px rgba(15,23,42,.08),
    inset 0 1px 0 rgba(255,255,255,.6);

  font-size: 15px;
  line-height: 1.65;
}

/* Línea de énfasis lateral */
.insight-card::before{
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    #6c5ce7,
    #23d0eb
  );
}

/* Texto interno */
.insight-card p{
  margin: 0;
  color: var(--tp-text);
}

/* Modo oscuro */
.theme-dark .insight-card{
  background: linear-gradient(
    180deg,
    rgba(35,208,235,.10),
    rgba(35,208,235,.04)
  );

  border-color: rgba(35,208,235,.25);

  box-shadow:
    0 14px 36px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.06);
}
