/********************************/
/******** Numeros Ficha **********/
/********************************/
.formats-row .format-chip {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  padding: .35rem .6rem;
  box-shadow: var(--shadow-1);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  cursor: copy;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.formats-row .format-chip .lbl {
  color: var(--ink-500);
  font-size: .85rem;
}
.formats-row .format-chip strong {
  font-weight: 700;
  letter-spacing: .2px;
}
.formats-row .format-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
  border-color: rgba(15, 23, 42, .12);
}
.formats-row .format-chip.copied {
  outline: 2px solid rgba(34, 197, 94, .35);
}
.formats-row .format-chip.copied::after {
  content: "copiado";
  margin-left: .35rem;
  font-size: .75rem;
  color: #16a34a;
  font-weight: 600;
}
@media (max-width: 575.98px) {
  .hero-pro {
    border-radius: 18px;
  }
  .formats-row .format-chip {
    width: 100%;
    justify-content: flex-start;
  }
  .formats-row .format-chip strong {
    font-size: 1.02rem;
  }
  .card-soft.text-center .h5 {
    font-size: 1.2rem;
  }
}
/* Sticky toolbar XS (opcional) */
@media (max-width: 575.98px) {
  .sticky-cta {
    position: fixed;
    bottom: .75rem;
    left: .75rem;
    right: .75rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: .5rem;
    z-index: 1040;
    background: transparent;
  }
}

/* Chips compactos junto al título */
.fact-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, .06);
  font-weight: 600;
  color: #334155;
  box-shadow: var(--shadow-1);
}
/* Cinta de KPIs a ancho completo */
.kpi-belt--wide {
  display: grid;
  gap: 1rem; /* <- más aire */
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.kpi {
  background: linear-gradient(180deg, #fff, #f8fafc 85%);
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 14px;
  padding: 1rem 1rem; /* <- +padding */
  box-shadow: var(--shadow-1);
  min-height: 96px; /* <- +alto */
}
.kpi-icon {
  font-size: 1.1rem;
  opacity: .9;
}
.kpi-label {
  font-size: .80rem;
  color: #64748b;
  margin-top: .15rem;
}
.kpi-value {
  font-weight: 600;
  font-size: 1.15rem;
  color: #0f172a;
  line-height: 1.2;
}
.kpi-sub {
  font-weight: 600;
  color: #64748b;
  font-size: .9rem;
}
/* Responsive: 6→3→2 */
@media (max-width:1199.98px) {
  .kpi-belt--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width:767.98px) {
  .kpi-belt--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Hero contenedor */
/*.hero-pro{ border-radius:20px; background:linear-gradient(180deg,#f8fafc 0%, #ffffff 40%); box-shadow: var(--shadow-2); }*/
/*.context-strip{
  background: linear-gradient(180deg,#fff,#f8fafc); 
  border:1px solid rgba(15,23,42,.06);
  border-radius:12px; padding:12px 14px; box-shadow: var(--shadow-1);
}*/
.summary {
  color: #334155;
}
.types-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.type-bar {
  --bg: rgba(59, 130, 246, .12);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem .5rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .06);
  background: linear-gradient(90deg, var(--bg) var(--pct), rgba(255, 255, 255, 0) var(--pct));
  font-weight: 700;
  color: #334155;
}
.type-bar .lbl {
  font-weight: 600;
}
.type-bar .pct {
  color: #64748b;
  font-weight: 700;
}
.alert-soft-danger {
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .18);
  color: #b91c1c;
  border-radius: 10px;
  padding: .5rem .75rem;
}
/* Responsive: compacta la tira en móviles */
@media (max-width: 575.98px) {
  .context-strip {
    padding: 10px 12px;
  }
  .type-bar {
    font-size: .92rem;
  }
}
/* Alerta suave informativa */
.alert-soft-info {
  background: rgba(2, 132, 199, .08);
  border: 1px solid rgba(2, 132, 199, .20);
  color: #075985;
  border-radius: 12px;
  padding: .6rem .8rem;
}
/* Botón/alerta clicable */
.smart-hint {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  box-shadow: var(--shadow-1);
}
.smart-hint:hover {
  box-shadow: var(--shadow-2);
}
.smart-hint .hint-cta {
  text-decoration: underline;
  margin-left: .35rem;
}
/* Contenido del popover */
.smart-ul {
  margin: 0;
  padding-left: 1.1rem;
}
.smart-ul li {
  margin: .25rem 0;
}
/* Chips “Más vistos” */
.tile-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
}
.tile-chip .sub {
  color: #64748b;
  font-weight: 600;
}
.tile-chip:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}

/* ---- Comments PRO ---- */
.cmt-card {
  border-radius: 16px;
  padding: .75rem 1rem;
}
.cmt-head {
  padding-bottom: .25rem;
}
.cmt-body {
  padding: .25rem 0 .25rem 2.5rem;
} /* alinea con avatar */
.cmt-foot {
  padding-top: .5rem;
  border-top: 1px dashed rgba(15, 23, 42, .08);
}
.cmt-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e0f2fe, #eff6ff);
  color: #0ea5e9;
  flex: none;
  box-shadow: var(--shadow-1);
}
.cmt-meta .cmt-user {
  line-height: 1;
}
.cmt-meta .cmt-time {
  line-height: 1;
  margin-top: 5px;
  font-size: 0.75em !important;
}
.cmt-stars i {
  font-size: 1.05rem;
}
.who-chip {
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 999px;
  padding: .2rem .5rem;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #334155;
}
.cmt-text {
  font-size: 1rem;
  line-height: 1.5;
}
/* Votes as bubbles */
.vote-chip {
  border: 0;
  outline: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: .25rem .55rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  font-size: .9rem;
  box-shadow: var(--shadow-1);
  transition: transform .15s ease, box-shadow .15s ease;
}
.vote-chip.up {
  background: #ecfdf5;
  color: #16a34a;
} /* verde */
.vote-chip.down {
  background: #fef2f2;
  color: #ef4444;
} /* rojo  */
.vote-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.vote-chip i {
  font-size: 1rem;
}
/**Estilo sutil para votos marcados */
/*.vote-chip.up.active {
  background: #dcfce7;
  color: #16a34a;
  box-shadow: var(--shadow-2);
}
.vote-chip.down.active {
  background: #fee2e2;
  color: #ef4444;
  box-shadow: var(--shadow-2);
}*/

/* base */
.vote-chip { border:1px solid var(--bs-border-color); border-radius:999px; padding:.1rem .6rem; }
.vote-chip i { opacity:.65; }

/* cuando hay voto = up */
.vote-chip-group[data-state="up"]  .vote-chip.up  {
  background: rgba(16,185,129,.12);   /* verde suave */
  border-color: rgba(16,185,129,.35);
  color:#0f766e;
}
.vote-chip-group[data-state="up"]  .vote-chip.up i  { opacity:1; }

/* cuando hay voto = down */
.vote-chip-group[data-state="down"] .vote-chip.down{
  background: rgba(239,68,68,.12);    /* rojo suave */
  border-color: rgba(239,68,68,.35);
  color:#991b1b;
}
.vote-chip-group[data-state="down"] .vote-chip.down i { opacity:1; }


/* Reduce en móviles */
@media (max-width:575.98px) {
  .cmt-body {
    padding-left: 0;
  }
  .cmt-head {
    gap: .5rem;
  }
}

/*****************/
/***** Charts ****/
/*****************/
.chart-card {
  transform: none !important;
} /* evitar escalados del canvas */
.chart-card .fw-semibold {
  margin-bottom: .5rem;
} /* espaciado del título */
.chart-area {
  position: relative;
  height: var(--ch, 260px); /* controlas aquí la altura */
  width: 100%;
}
.chart-area canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* Donut un poco más alto */
.chart-card--donut .chart-area {
  --ch: 300px;
}
.chart-card--lines .chart-area {
  --ch: 300px;
}

/* ---- Más vistos (tiles) ---- */
.list-tiles .tile {
  position: relative;
  background: var(--surface, #fff);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  padding: .6rem .75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-1);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.list-tiles .tile + .tile {
  margin-top: .5rem;
}
.list-tiles .tile:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
  border-color: rgba(15, 23, 42, .12);
}
.tile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
.tile-left {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}
.rank {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .9rem;
  color: #1e3a8a;
  background: linear-gradient(135deg, #dbeafe, #eef2ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.num {
  font-weight: 600;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile-right {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  padding: .15rem .5rem;
  font-size: .85rem;
  font-weight: 600;
}
.metric-chip.danger {
  background: #fef2f2;
  color: #b91c1c;
  border-color: rgba(239, 68, 68, .25);
}
/* Botón copiar (aparece al hover) */
.copy-btn {
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  border: 1px dashed rgba(15, 23, 42, .18);
  background: #fff;
  color: #64748b;
  padding: .2rem .45rem;
  border-radius: 8px;
  font-size: .85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.tile:hover .copy-btn {
  opacity: 1;
  pointer-events: auto;
}
.copy-btn.copied {
  border-color: #22c55e;
  color: #16a34a;
}
/* Responsive: dos columnas en >= md (opcional) */
@media (min-width: 768px) {
  .list-tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
  }
}
/* Tag cloud */
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .5rem;
  max-height: 104px;
  overflow: hidden;
  transition: max-height .2s ease;
}
.tagcloud.is-open {
  max-height: 1000px;
}
.tag-chip {
  --chip: #3b82f6; /* default */
  background: color-mix(in srgb, var(--chip) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--chip) 25%, #fff);
  color: color-mix(in srgb, var(--chip) 80%, #0f172a);
  border-radius: 999px;
  padding: .35rem .6rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  box-shadow: var(--shadow-1);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.tag-chip .txt {
  max-width: 14ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag-chip .hit {
  font-weight: 700;
  font-size: .7rem;
  opacity: .75;
}
.tag-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.tag-chip.tag-xs {
  font-size: .85rem;
  padding: .28rem .5rem;
}
.tag-chip.tag-sm {
  font-size: .9rem;
}
.tag-chip.tag-md {
  font-size: .95rem;
}
.tag-chip.tag-lg {
  font-size: 1rem;
}
.tag-chip.tag-xl {
  font-size: 1.05rem;
}
.tag-chip.tone-1 {
  --chip: #3b82f6;
} /* azul */
.tag-chip.tone-2 {
  --chip: #22c55e;
} /* verde */
.tag-chip.tone-3 {
  --chip: #f59e0b;
} /* ámbar */
.tag-chip.tone-4 {
  --chip: #ef4444;
} /* rojo */
.tag-chip.tone-5 {
  --chip: #8b5cf6;
} /* violeta */
.tag-chip.tone-6 {
  --chip: #0ea5e9;
} /* cyan */
.tag-chip.copied {
  outline: 2px solid color-mix(in srgb, var(--chip) 40%, transparent);
}
/* ---- Siren badge: suave + anillo tipo "online" ---- */
.siren-badge {
  /* color base (se sobreescribe por .siren-success/.warning/.danger) */
  --sr: 59;
  --sg: 130;
  --sb: 246;
  /* intensidades y tiempos */
  --halo1: 6px; /* halo cercano */
  --halo2: 18px; /* halo externo */
  --sa1: .06; /* alpha halo cercano (muy suave) */
  --sa2: .14; /* alpha halo externo (muy suave) */
  --halo1h: 8px; /* halo cercano en pico */
  --halo2h: 22px; /* halo externo en pico */
  --sa1h: .10; /* alpha en pico (ligero) */
  --sa2h: .20; /* alpha en pico (ligero) */
  --siren-dur: 4.2s; /* destello suave (ciclo largo) */
  --ring-dur: 3.6s; /* anillo expansivo */
  --ring-w: 2px; /* grosor del anillo */
  position: relative;
  animation: sirenSoft var(--siren-dur) infinite ease-in-out;
  box-shadow: none;
}
/* Colores por estado */
.siren-success {
  --sr: 34;
  --sg: 197;
  --sb: 94;
} /* verde */
.siren-warning {
  --sr: 245;
  --sg: 158;
  --sb: 11;
} /* ámbar */
.siren-danger {
  --sr: 239;
  --sg: 68;
  --sb: 68;
} /* rojo  */
/* Variantes opcionales */
.siren-gentle {
  --sa1: .05;
  --sa2: .10;
  --sa1h: .08;
  --sa2h: .16;
}
.siren-slower {
  --siren-dur: 5.5s;
  --ring-dur: 4.6s;
}
/* Anillo expansivo (igual que el "online", pero adaptado al badge) */
.siren-badge::after, .siren-badge::before {
  content: "";
  position: absolute;
  inset: -6px; /* anillo por fuera del badge */
  border-radius: 999px; /* sigue el radio del badge */
  border: var(--ring-w) solid rgba(var(--sr), var(--sg), var(--sb), .38);
  opacity: 0;
  pointer-events: none;
  /* dos anillos escalonados para doble pulso */
  animation: sirenRing var(--ring-dur) infinite ease-out;
}
.siren-badge::before {
  animation-delay: .6s;
} /* segundo pulso */
/* Destello suave (halo) */
@keyframes sirenSoft {
  0%, 18%, 100% {
    filter: none;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
  6% {
    filter: saturate(1.02) brightness(1.03);
    box-shadow:
      0 0 0 var(--halo1) rgba(var(--sr), var(--sg), var(--sb), var(--sa1)), 0 0 var(--halo2) 4px rgba(var(--sr), var(--sg), var(--sb), var(--sa2));
  }
  10% {
    filter: saturate(1.05) brightness(1.05);
    box-shadow:
      0 0 0 var(--halo1h) rgba(var(--sr), var(--sg), var(--sb), var(--sa1h)), 0 0 var(--halo2h) 6px rgba(var(--sr), var(--sg), var(--sb), var(--sa2h));
  }
  14% {
    filter: saturate(1.02) brightness(1.02);
    box-shadow:
      0 0 0 var(--halo1) rgba(var(--sr), var(--sg), var(--sb), calc(var(--sa1)*.8)), 0 0 var(--halo2) 4px rgba(var(--sr), var(--sg), var(--sb), calc(var(--sa2)*.8));
  }
}
/* Anillo expansivo (mismo espíritu que el "online") */
@keyframes sirenRing {
  0% {
    transform: scale(.88);
    opacity: .55;
  }
  70% {
    transform: scale(1.45);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .siren-badge {
    animation: none !important;
    box-shadow: none !important;
  }
  .siren-badge::before, .siren-badge::after {
    animation: none !important;
    opacity: 0 !important;
  }
}
/*********************************/
/********* PUNTO ONLINE************/
/*********************************/
/* Avatar preparado para overlay */
.cmt-avatar {
  position: relative;
}
/* Punto verde "online" con pulso suave */
.cmt-live {
  position: absolute;
  top: -4px;
  left: -4px; /* ajusta según prefieras: top/right */
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e; /* verde */
  box-shadow: 0 0 0 2px #fff; /* borde blanco para separarlo */
}
.cmt-live::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, .45);
  animation: cmtPing 1.8s infinite ease-out;
}
@keyframes cmtPing {
  0% {
    transform: scale(.6);
    opacity: .8;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
/* Respeta accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .cmt-live::after {
    animation: none;
  }
}
/******* FORM DENUNCIAS *****/
/* --- Rating stars --- */
#ratingStars i {
  cursor: pointer;
  color: #cbd5e1; /* gris suave para NO seleccionadas */
  transition: color .18s ease, transform .08s ease, text-shadow .18s ease;
  line-height: 1;
}
#ratingStars .bi-star {
  color: #cbd5e1 !important;
} /* contorno suave */
#ratingStars .bi-star:hover, #ratingStars .bi-star:focus {
  color: #94a3b8 !important;
} /* hover sutil */
#ratingStars .active {
  color: #f59e0b !important;
} /* seleccionadas */
#ratingStars i:hover, #ratingStars i:focus {
  transform: translateY(-1px) scale(1.08);
}
#ratingStars i:focus {
  outline: none;
  text-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}
/* Etiqueta de ayuda bajo las estrellas */
#ratingLabel {
  min-height: 1.25rem;
  color: #475569;
}
/* Inputs con focus más agradable */
.form-control:focus, .form-select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 .2rem rgba(59, 130, 246, .12);
}
/* Chips para “tipo de llamada” opcionales (si los usas después) */
.type-chip {
  border-radius: 999px;
  padding: .35rem .7rem;
  font-weight: 600;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, .08);
  color: #334155;
}
.type-chip.active {
  background: #e0f2fe;
  border-color: #93c5fd;
  color: #0ea5e9;
}
/* Contador de caracteres del textarea */
.char-count {
  font-size: .85rem;
  color: #64748b;
  text-align: right;
}
.char-count.warn {
  color: #ef4444;
}
