@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@600;700;800&display=swap');

:root {
  --bg: #ffffff;
  --text: #0f0f0f;
  --muted: #7a7a7a;
  --surface: #f3f3f3;
  --radius-lg: 28px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

/* HERO */
.hero {
  text-align: center;
  margin-bottom: 3.5rem;
}
.hero__eyebrow {
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: .6rem;
}
.hero__title {
  font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: 1;
  margin-bottom: .8rem;
}
.hero__subtitle {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
}
.hero__actions {
  margin-top: 1.6rem;
}
.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: .65rem 1.4rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary {
  background: #000;
  color: #fff;
}

/* SECCIÓN DE BLOQUES (como en tu página) */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.feature--text h2 {
  margin-bottom: .45rem;
}
.feature--text p {
  color: var(--muted);
  max-width: 280px;
}
.feature--card,
.feature--card.big {
  background: #f3f3f3;
  border-radius: 28px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature--card.big {
  min-height: 240px;
}
.placeholder {
  width: 90px;
  height: 90px;
  background: rgba(0,0,0,.04);
  border-radius: 24px;
}

/* STATS */
.stats {
  display: flex;
  gap: 3.5rem;
  justify-content: center;
  padding: 2.8rem 0 0;
  border-top: 1px solid rgba(0,0,0,.05);
}
.stat {
  text-align: center;
}
.stat__number {
  font-size: 2.2rem;
  font-weight: 700;
}
.stat__label {
  color: var(--muted);
  margin-top: .4rem;
  font-size: .9rem;
}

/* responsive */
@media (max-width: 720px) {
  .stats {
    flex-direction: column;
    gap: 1.6rem;
  }
  .hero {
    text-align: left;
  }
  .hero__subtitle {
    margin-left: 0;
  }
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.04);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .85rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: #000;
}

.brand__logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.brand__name {
  font-weight: 700;
  letter-spacing: -.01em;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav__link {
  text-decoration: none;
  color: rgba(0,0,0,.6);
  font-weight: 500;
  font-size: .9rem;
}

.nav__link:hover {
  color: #000;
}

.btn--ghost {
  background: #000;
  color: #fff;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .85rem;
}

/* responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
}
.prices-page {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero--small {
  margin-bottom: 2.5rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.plan-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.03);
  border-radius: 20px;
  padding: 1.5rem 1.4rem 1.8rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.03);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.plan-title {
  font-size: 1.25rem;
  margin: 0;
}

.plan-desc {
  color: rgba(0,0,0,.5);
  font-size: .85rem;
}

.plan-price {
  font-size: 1.8rem;
  font-weight: 700;
  margin: .7rem 0 1rem;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  color: rgba(0,0,0,.55);
  font-size: .85rem;
}

.plan-btn {
  margin-top: auto;
  text-align: center;
}

.plan-card--featured {
  border: 1px solid rgba(0,0,0,.12);
  background: #f9f9f9;
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: 1.4rem;
  background: #000;
  color: #fff;
  font-size: .65rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.btn--dark {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.faq-block {
  background: #f7f7f7;
  border-radius: 20px;
  padding: 1.8rem 1.5rem 2rem;
}

.faq-block h2 {
  margin-top: 0;
  margin-bottom: 1.4rem;
}

.faq-item + .faq-item {
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .prices-page {
    padding-top: 4rem;
  }
}

.support-page {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.support-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.support-info h2,
.support-form h2 {
  margin-bottom: 1rem;
}

.support-info p {
  color: rgba(0,0,0,.55);
}

.support-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.03);
  border-radius: 20px;
  padding: 1rem 1.1rem 1rem;
  margin-top: 1rem;
}

.support-card h3 {
  margin-top: 0;
  margin-bottom: .5rem;
}

.support-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(0,0,0,.55);
  font-size: .85rem;
}

.support-card--muted {
  background: #f7f7f7;
}

.support-form .form {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,.03);
  padding: 1.5rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form__label {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  font-size: .85rem;
  font-weight: 500;
}

.form__input {
  background: #f7f7f7;
  border: 1px solid rgba(0,0,0,.02);
  border-radius: 14px;
  padding: .6rem .7rem;
  font-size: .88rem;
  outline: none;
}

.form__input:focus {
  border: 1px solid rgba(0,0,0,.35);
  background: #fff;
}

.form__btn {
  width: fit-content;
  padding: .55rem 1.5rem;
  border-radius: 999px;
}

.form__hint {
  font-size: .7rem;
  color: rgba(0,0,0,.4);
}

.support-bottom {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
}

.status-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.status-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.03);
  padding: 1rem 1rem .9rem;
}

.status-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(0,0,0,.4);
  margin-bottom: .4rem;
}

.status-value {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: .2rem;
}

.status-ok {
  color: #0a0;
}

.status-meta {
  font-size: .7rem;
  color: rgba(0,0,0,.4);
}

@media (max-width: 900px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
  .support-bottom {
    grid-template-columns: 1fr;
  }
}
.form__input--file {
  background: #fff;
  padding: .3rem 0;
}

.form__note {
  font-size: .7rem;
  color: rgba(0,0,0,.45);
}

.form__error {
  background: rgba(255, 0, 0, .07);
  border: 1px solid rgba(255,0,0,.4);
  color: #a40000;
  padding: .6rem .8rem;
  border-radius: 12px;
  margin-top: 1rem;
  font-size: .8rem;
}

.form__ok {
  background: rgba(0, 180, 0, .08);
  border: 1px solid rgba(0, 180, 0, .45);
  color: #005500;
  padding: .6rem .8rem;
  border-radius: 12px;
  margin-top: 1rem;
  font-size: .8rem;
}

/* ====== PERXE – Design Tokens & Overrides (override) ====== */
:root{
  /* Brand */
  --brand-primary: #0055FF;   /* Azul intenso (acción) */
  --brand-secondary: #FF7B00; /* Naranja (hover/energía) */
  --brand-tertiary: #FF003C;  /* Fucsia (alertas) */
  --brand-compl:   #FFC600;   /* Amarillo (toques) */

  /* Neutrales */
  --neutral-50:  #FAFAFA;     /* Fondo principal */
  --neutral-200: #E4E7EC;     /* Bordes / tarjetas */
  --neutral-900: #1C1C1E;     /* Texto principal */

  /* Tipografías */
  --font-heading: "Poppins", system-ui, -apple-system, Segoe UI, Inter, Roboto, Arial, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Mapear tus variables antiguas a las nuevas (para no romper nada) */
  --bg:     var(--neutral-50);
  --text:   var(--neutral-900);
  --muted:  #667085;          /* gris legible para subtítulos */
  --surface:#F5F7FB;          /* tarjetas claras */
}

/* ====== Tipografía global ====== */
body{
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
}

/* Títulos: Poppins Bold/ExtraBold */
h1,h2{ font-family: var(--font-heading); letter-spacing:-.01em; }
h1{ font-weight: 800; font-size: clamp(2.2rem, 4vw + 1rem, 3.1rem); }
h2{ font-weight: 700; font-size: clamp(1.6rem, 2.5vw + .6rem, 2.1rem); }
h3,h4{ font-family: var(--font-body); font-weight:600; }

/* ====== Links / navegación ====== */
.nav__link{ color: rgba(0,0,0,.6); }
.nav__link:hover{ color: var(--brand-primary); }

/* ====== Botones ====== */
.btn{
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing:.01em;
}
.btn--primary{
  background: var(--brand-primary);
  color:#fff;
}
.btn--primary:hover{ background: var(--brand-secondary); }
.btn--dark{ background:#000; color:#fff; } /* lo dejamos negro como en tu header */

/* ====== Tarjetas y superficies ====== */
.feature--card,
.feature--card.big,
.card{
  background: #fff;
  border: 1px solid var(--neutral-200);
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

/* Placeholder más suave */
.placeholder{ background: rgba(0,0,0,.06); }

/* ====== Formularios ====== */
.form__label{ color: rgba(0,0,0,.75); }
.form__input,
.form select,
.form textarea{
  background:#fff;
  border:1px solid var(--neutral-200);
}
.form__input:focus,
.form select:focus,
.form textarea:focus{
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(0,85,255,.12);
  background:#fff;
  outline:none;
}
.form__note{ color: #667085; }
.form__error{
  background: rgba(255,0,60,.06);
  border-color: rgba(255,0,60,.45);
  color:#8f0026;
}
.form__ok{
  background: rgba(0,170,0,.07);
  border-color: rgba(0,170,0,.45);
  color:#0b6a0b;
}

/* ====== Secciones / héroe ====== */
.hero__eyebrow{ color: var(--brand-primary); }
.hero__subtitle{ color: var(--muted); }

/* ====== Precios / destacados ====== */
.plan-card{ border:1px solid var(--neutral-200); }
.plan-card--featured{
  background: #F2F6FF;
  border-color: rgba(0,85,255,.25);
}
.plan-badge{ background: var(--brand-primary); }

/* ====== Utilidades ====== */
.text-primary{ color: var(--brand-primary)!important; }
.text-danger{ color: var(--brand-tertiary)!important; }
.border{ border:1px solid var(--neutral-200); border-radius:12px; }

/* ===== Auth (login) ===== */
.auth-page{ padding-bottom:3rem; }
.auth-wrap {
  width: min(520px, 92%);
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.form__group {
    margin-bottom: 1.2rem;
}

@media (max-width: 900px){
  .auth-wrap{ grid-template-columns: 1fr; }
}
.auth-card{
  padding: 1.4rem 1.25rem;
  border-radius: 20px;
}
.auth-head h2{ margin:0 0 .25rem 0; }
.text-muted{ color:#667085; }

.auth-row{
  margin:.25rem 0 1rem;
  display:flex; justify-content:space-between; align-items:center;
  gap:1rem;
}
.check{ display:flex; align-items:center; gap:.55rem; font-size:.92rem; color:#475467; }

.auth-btn{
  width:100%;
  padding:.9rem 1.1rem;
  border-radius: 14px;
  margin:.25rem 0 .5rem;
}

.auth-aside{ display:flex; flex-direction:column; gap:1rem; }
.auth-list{ margin:.6rem 0 0 1rem; padding:0; color:#475467; }
.auth-list li{ margin:.35rem 0; }

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
    transition: 0.2s ease;
}

.toggle-password:hover {
    opacity: 1;
}

.password-wrapper .form__input {
    padding-right: 40px; /* espacio para el ícono */
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group input {
    width: 100%;
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #555;
    transition: 0.2s ease;
}

.password-toggle:hover {
    color: #000;
}

/* ===== Campos de login con iconos internos ===== */

.auth-field {
  margin-bottom: 1.4rem;
}

.auth-input-wrapper {
  position: relative;
}

/* input de correo y contraseña, mismo tamaño */
.auth-input {
  width: 100%;
  padding: 0.9rem 3rem 0.9rem 1rem; /* espacio extra a la derecha para el icono */
  border-radius: 999px;
  border: 1px solid #E4E7EC;
  background-color: #ffffff;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.auth-input:focus {
  border-color: #0055FF;
  box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.16);
}

/* iconos internos (correo y ojo) */
.auth-input-icon {
  position: absolute;
  right: 1rem;              /* casi al final del espacio en blanco */
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #9CA3AF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* el icono de correo no es clickeable */
.auth-input-icon:not(.auth-input-toggle) {
  pointer-events: none;
}

/* botón de mostrar/ocultar contraseña */
.auth-input-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.auth-input-toggle:focus-visible {
  outline: 2px solid #0055FF;
  outline-offset: 2px;
}

/* ===== Overrides AdminLTE para PERXE Dashboard ===== */

/* Fondo del contenido con tu bg neutro */
.content-wrapper,
.right-side {
  background-color: var(--bg); /* ya lo defines en :root de main.css */
}

/* Header superior con tu azul de marca */
.skin-blue .main-header .navbar,
.skin-blue .main-header .logo {
  background-color: white;
}

/* Hover del header con tu naranja/secundario */
.skin-blue .main-header .navbar .nav > li > a:hover,
.skin-blue .main-header .logo:hover {
  background-color: var(--brand-secondary);
}

/* Sidebar más limpio */
.skin-blue .main-sidebar {
  background-color: #0f172a; /* o el tono oscuro que prefieras */
}

.skin-blue .sidebar-menu > li > a {
  font-family: var(--font-body);
  font-size: 0.92rem;
}

/* Tarjetas tipo AdminLTE con tu estilo de tarjetas */
.box {
  border-top-color: var(--brand-primary);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,.04);
}

/* Botones primarios del dashboard usando tu sistema */
.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-primary:hover {
  background-color: var(--brand-secondary);
  border-color: var(--brand-secondary);
}
.busqueda {
    width: 168;
}

/* LOGO PERXE EN ADMINLTE */
.logo img.logo-perxe {
  height: 42px;         /* Ajusta la altura real del logo */
  width: auto !important;
  object-fit: contain;  /* Mantiene proporciones sin distorsión */
  margin-top: 7px;      /* Ajuste vertical */
  margin-left: 10px;    /* Separación a la izquierda */
  display: block;
}

/* Reducir el contenedor de logo del header */
.main-header .logo {
  padding: 0 !important; 
  background-color: var(--brand-primary); /* mantiene tu color */
  height: 56px;
  line-height: 56px;
}
.padding-l30 {
    padding-left: 30px;
}

/* Layout de nota + botón */
.report-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 15px;
}

.report-note {
  font-size: 0.9rem;
  color: #4b5563; /* gris suave */
  line-height: 1.4;
}

/* Botón similar a "Procesar archivo" pero reutilizando .btn .btn-primary */
.btn-procesar-final {
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

/* Spinner dentro del botón */
.btn-procesar-final .btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  animation: spin-btn 0.6s linear infinite;
}

.btn-procesar-final.loading .btn-spinner {
  display: inline-block;
}

.btn-procesar-final.loading .btn-label {
  opacity: 0.7;
}

@keyframes spin-btn {
  to {
    transform: rotate(360deg);
  }
}

/* Alertas tipo barra (toast superior) */
.dashboard-alert {
  margin-bottom: 15px;
  padding: 12px 16px;
  border-radius: 10px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  font-size: 0.95rem;
}

.dashboard-alert--success {
  background: linear-gradient(90deg, #22c55e, #16a34a); /* verde éxito */
}

.dashboard-alert--error {
  background: linear-gradient(90deg, #ef4444, #b91c1c); /* rojo error */
}

.dashboard-alert__close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  margin-left: 12px;
}

/* ===========================
   NORMALIZAR TIPOGRAFÍA SIDEBAR
   =========================== */

/* TIPOGRAFÍA SOLO PARA TEXTOS DEL MENÚ */
.main-sidebar .sidebar-menu > li.header,
.main-sidebar .sidebar-menu > li > a,
.main-sidebar .sidebar-menu .treeview-menu > li > a {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Encabezados: REPORTES / TRANSPORTADORA / CARTERA */
.main-sidebar .sidebar-menu > li.header {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 18px 6px !important;
  background: #020617 !important;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

/* Links de primer nivel (Reportes, Transportadora, Cartera) */
.main-sidebar .sidebar-menu > li > a {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #e5e7eb !important;
  padding: 10px 18px !important;
  line-height: 1.2 !important;
}

/* Submenú (Informe general, Detalle de guías, Productos, Alcance) */
.main-sidebar .sidebar-menu .treeview-menu > li > a {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #cbd5f5 !important;
  padding: 8px 42px !important;
  line-height: 1.2 !important;
}

/* Iconos: tamaño fijo y alineados */
.main-sidebar .sidebar-menu i.fa {
  width: 18px;
  text-align: center;
  font-size: 16px !important;
  margin-right: 8px;
  opacity: 0.95;
}

/* Hover primer nivel */
.main-sidebar .sidebar-menu > li > a:hover {
  background: #0b1220 !important;
  color: #f9fafb !important;
}

/* Hover submenú */
.main-sidebar .sidebar-menu .treeview-menu > li > a:hover {
  background: #0b1220 !important;
  color: #f9fafb !important;
}

/* Activo */
.main-sidebar .sidebar-menu > li.active > a,
.main-sidebar .sidebar-menu .treeview-menu > li.active > a {
  background: linear-gradient(90deg, #0f172a, #022c22) !important;
  color: #f9fafb !important;
  border-left: 3px solid #22d3ee;
}

/* Iconos en hover / activo */
.main-sidebar .sidebar-menu > li > a:hover i.fa,
.main-sidebar .sidebar-menu > li.active > a i.fa,
.main-sidebar .sidebar-menu .treeview-menu > li > a:hover i.fa,
.main-sidebar .sidebar-menu .treeview-menu > li.active > a i.fa {
  color: #22d3ee !important;
  opacity: 1;
}
#detalleGuiasTable tr.dg-ok td { background: rgba(0, 166, 90, 0.10) !important; }
#detalleGuiasTable tr.dg-bad td { background: rgba(221, 75, 57, 0.10) !important; }
#detalleGuiasTable tr.dg-cancel td { background: rgba(0, 0, 0, 0.06) !important; }
#detalleGuiasTable tr.dg-warn td { background: rgba(243, 156, 18, 0.10) !important; }

/* ====== KPIs compactos 5 en fila ====== */
.kpis-estado-row{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.kpi-estado{
  border-radius: 10px;
  padding: 8px 10px;
  min-height: 58px;
  overflow: hidden;
}

.kpi-estado .kpi-title{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1.1;
  margin: 0 0 4px 0;

  /* evita que el título rompa el layout */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-estado .kpi-value{
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;

  /* evita desbordes en valores largos */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ====== Contenedor del gráfico (evita que se salga) ====== */
.chart-wrap{
  height: 320px;           
  position: relative;
}

.chart-wrap canvas{
  width: 100% !important;
  height: 100% !important; 
}

/* ====== Responsive: 3 columnas en tablet y 2 en móvil ====== */
@media (max-width: 992px){
  .kpis-estado-row{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chart-wrap{ height: 300px; }
}
@media (max-width: 576px){
  .kpis-estado-row{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-wrap{ height: 280px; }
}
@media (min-width: 992px){

  /* 1) Chips/KPIs compactos arriba */
  .kpis-compact{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 arriba */
    gap: 8px;
    margin-bottom: 10px;
  }

  /* Si tienes 5 estados, el 5to baja a segunda fila sin crecer demasiado */
  .kpis-compact .kpi-estado{
    padding: 8px 10px;
    border-radius: 10px;
    min-height: 52px;
    overflow: hidden;
  }
  .kpis-compact .kpi-title{
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 4px 0;
  }
  .kpis-compact .kpi-value{
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
  }

  /* 2) Donut SIEMPRE con alto controlado */
  .donut-wrap{
    height: 360px;      
    position: relative;
  }
  .donut-wrap canvas{
    width: 100% !important;
    height: 100% !important;
    display: block;
  }
}

.kpi-semaforo { background:#f7f7f7; min-width: 170px; }

.kpi-dot{
  width:12px; height:12px; border-radius:50%;
  display:inline-block;
  box-shadow: 0 0 0 3px rgba(0,0,0,.04);
}

/* Estados */
.kpi-green { background: #eefaf0; }
.kpi-green .kpi-dot { background:#28a745; }
.kpi-green #kpiEntregadoIcon { color:#28a745; }

.kpi-yellow { background: #fff9e6; }
.kpi-yellow .kpi-dot { background:#ffc107; }
.kpi-yellow #kpiEntregadoIcon { color:#ffc107; }

.kpi-red { background: #fdecec; }
.kpi-red .kpi-dot { background:#dc3545; }
.kpi-red #kpiEntregadoIcon { color:#dc3545; }

/* ===== KPI Semáforo: hover visible===== */
.kpi-semaforo {
  transition: 
    background-color .15s ease,
    box-shadow .15s ease,
    transform .12s ease;
  cursor: help;
}

/* Elevación general */
.kpi-semaforo:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transform: translateY(-1px);
}

/* Hover por estado (color más fuerte) */
.kpi-semaforo.kpi-green:hover {
  background-color: #d9f2e1; /* verde más oscuro */
}

.kpi-semaforo.kpi-yellow:hover {
  background-color: #ffe8b3; /* amarillo más oscuro */
}

.kpi-semaforo.kpi-red:hover {
  background-color: #f5c6cb; /* rojo más oscuro */
}


/* =========================
   LANDING – Opción B (sin datos reales)
   ========================= */

.layout{
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

.section-head{
  margin: 18px 0 22px;
  text-align: center;
}
.section-title{
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  margin: 0;
}
.section-subtitle{
  margin: 10px auto 0;
  max-width: 720px;
  color: #4b5563;
  line-height: 1.45;
}

/* HERO */
.hero{
  padding-top: 28px;
  padding-bottom: 36px;
}
.hero--split{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}
.hero__eyebrow{
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  color: #2563eb;
  margin: 0 0 12px;
}
.hero__title{
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  margin: 0 0 12px;
}
.hero__subtitle{
  margin: 0 0 18px;
  color: #4b5563;
  line-height: 1.55;
  max-width: 560px;
}

.hero__actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 16px;
}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn--primary{
  background: #2563eb;
  color: #fff;
}
.btn--ghost{
  background: transparent;
  border-color: #e5e7eb;
  color: #111827;
}

.hero__bullets{
  margin: 14px 0 0;
  padding-left: 18px;
  color: #374151;
}
.hero__bullets li{ margin: 8px 0; }

.hero__media img{
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  background: #f3f4f6;
}
.media__hint{
  margin: 10px 0 0;
  font-size: .9rem;
  color: #6b7280;
  text-align: center;
}

/* CAPACIDADES */
.caps{
  margin-top: 10px;
  padding-top: 24px;
}
.caps__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.cap{
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 22px;
  padding: 18px 18px 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,.05);
}
.cap__title{ margin: 0 0 8px; font-size: 1.1rem; }
.cap__text{ margin: 0 0 12px; color: #4b5563; line-height: 1.5; }
.cap__tags{ display: flex; gap: 10px; flex-wrap: wrap; }

.tag{
  font-size: .85rem;
  padding: .32rem .6rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #374151;
}

/* FEATURES alternadas */
.sections{
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 54px;
}
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 44px);
  align-items: center;
}
.split--reverse .split__text{ order: 2; }
.split--reverse .split__media{ order: 1; }

.split__media img{
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  background: #f3f4f6;
}

.checklist{
  margin: 14px 0 0;
  padding-left: 18px;
  color: #374151;
}
.checklist li{ margin: 8px 0; }

/* HOW */
.how{
  margin-top: 64px;
  padding-top: 18px;
}
.how__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.how__item{
  border: 1px solid #eef0f4;
  border-radius: 22px;
  padding: 18px;
  background: #fff;
}
.how__item h3{ margin: 0 0 8px; }
.how__item p{ margin: 0; color: #4b5563; line-height: 1.5; }
.how__cta{ text-align: center; margin-top: 18px; }

/* FAQ */
.faq{
  margin-top: 64px;
}
.faq__item{
  border: 1px solid #eef0f4;
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
  margin: 12px 0;
}
.faq__item summary{
  cursor: pointer;
  font-weight: 600;
}
.faq__item p{
  margin: 10px 0 0;
  color: #4b5563;
  line-height: 1.5;
}

/* CTA */
.cta{
  margin-top: 64px;
}
.cta__box{
  border: 1px solid #eef0f4;
  border-radius: 26px;
  padding: 26px 18px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 10px 34px rgba(0,0,0,.06);
}
.cta__box h2{ margin: 0 0 10px; }
.cta__box p{ margin: 0 0 16px; color: #4b5563; }

/* Responsive */
@media (max-width: 980px){
  .hero--split{ grid-template-columns: 1fr; }
  .caps__grid, .how__grid{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .split--reverse .split__text, .split--reverse .split__media{ order: initial; }
}

.hero__bullets{
  list-style:none;
  padding-left:0;
  margin: 16px 0 0;
}

.hero__bullets li{
  position:relative;
  padding-left:34px;
  margin:12px 0;
  line-height:1.45;
}

.hero__bullets li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:2px;
  width:22px;
  height:22px;
  border-radius:999px;
  background:#22c55e;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:13px;
}

