/* =====================================================================
   Centro de Ayuda - PosCloud
   Estilos para index.html (usuarios) y admin.html
   ===================================================================== */

* { box-sizing: border-box; }

:root {
  --azul:        #4A90E2;
  --azul-dark:   #357ABD;
  --verde:       #27AE60;
  --rojo:        #E74C3C;
  --amarillo:    #F1C40F;
  --gris-900:    #1f2937;
  --gris-700:    #374151;
  --gris-500:    #6b7280;
  --gris-300:    #d1d5db;
  --gris-100:    #f3f4f6;
  --gris-50:     #f9fafb;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06);
  --shadow:      0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 32px rgba(0,0,0,.12);
  --radius:      10px;
  --radius-lg:   16px;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  /* Tipografia base 16.5px */
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--gris-900);
  background: var(--gris-50);
  min-height: 100vh;
}
body {
  /* Espacio para el FAB flotante abajo derecha */
  padding-bottom: 80px;
}

a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============ BANNER DE ANUNCIOS ============ */
.ca-banner {
  padding: 0;
  animation: caBannerIn .3s ease-out;
}
@keyframes caBannerIn {
  from { transform: translateY(-8px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.ca-banner-wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ca-banner-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.ca-banner-body {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}
.ca-banner-body strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}
.ca-banner-body span {
  font-size: 13.5px;
  opacity: .95;
}
.ca-banner-close {
  background: rgba(255,255,255,.2);
  border: 0;
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-family: inherit;
  flex-shrink: 0;
  transition: background .15s;
}
.ca-banner-close:hover { background: rgba(255,255,255,.35); }

/* Colores por tipo */
.ca-banner-info    { background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%); color: #fff; }
.ca-banner-success { background: linear-gradient(135deg, #27AE60 0%, #1e8449 100%); color: #fff; }
.ca-banner-warning { background: linear-gradient(135deg, #F39C12 0%, #d68910 100%); color: #fff; }
.ca-banner-error   { background: linear-gradient(135deg, #E74C3C 0%, #c0392b 100%); color: #fff; }

@media (max-width: 700px) {
  .ca-banner-wrap { padding: 10px 18px; }
  .ca-banner-body strong { font-size: 14px; }
  .ca-banner-body span   { font-size: 12.5px; }
}

/* ============ STATUS DEL SISTEMA (dot en header) ============ */
.ca-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.14);
  padding: 4px 10px 4px 8px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.18);
}
.ca-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 0 rgba(46,204,113,.5);
  animation: caPulse 2s infinite;
}
.ca-status-warning .ca-status-dot { background: #f39c12; box-shadow: 0 0 0 0 rgba(243,156,18,.5); }
.ca-status-error   .ca-status-dot { background: #e74c3c; box-shadow: 0 0 0 0 rgba(231,76,60,.5); animation-duration: 1s; }

/* ============ WIDGET NOVEDADES EN SIDEBAR ============ */
.ca-widget-novedades-side .ca-widget-head { position: relative; }
.ca-widget-badge {
  background: #E74C3C;
  color: #fff;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  box-shadow: 0 2px 5px rgba(231,76,60,.3);
  animation: caPulse 2s infinite;
}
.ca-nov-side-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 2px;
}
.ca-nov-side-list::-webkit-scrollbar { width: 5px; }
.ca-nov-side-list::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.15);
  border-radius: 100px;
}
.ca-nov-side-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 9px 10px;
  background: var(--gris-50);
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
  text-align: left;
  font-family: inherit;
  align-items: start;
  width: 100%;
}
.ca-nov-side-item:hover {
  background: #fff;
  border-color: var(--azul);
  transform: translateX(2px);
  box-shadow: 0 3px 10px rgba(0,0,0,.06);
}
.ca-nov-side-item-tipo {
  width: 26px; height: 26px;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11.5px;
  flex-shrink: 0;
  margin-top: 1px;
}
.ca-nov-side-item-body {
  min-width: 0;
}
.ca-nov-side-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--gris-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 3px;
}
.ca-nov-side-item-meta .sep { opacity: .4; }
.ca-nov-side-item-titulo {
  font-size: 12.5px;
  color: var(--gris-900);
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ca-nov-side-item.no-leida .ca-nov-side-item-titulo {
  font-weight: 700;
}
.ca-nov-side-item { position: relative; }
.ca-nov-side-item.no-leida {
  background: #fff5f5;
  border-color: rgba(231, 76, 60, .25);
}
.ca-nov-side-item.no-leida::before {
  content: '';
  position: absolute;
  top: 10px; right: 10px;
  width: 7px; height: 7px;
  background: var(--rojo);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(231, 76, 60, .5);
}

.ca-nov-side-ver-todas {
  margin-top: 10px;
  padding: 9px 12px;
  width: 100%;
  background: linear-gradient(135deg, #E74C3C 0%, #c0392b 100%);
  color: #fff;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .15s;
}
.ca-nov-side-ver-todas:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(231,76,60,.35);
}
.ca-nov-side-ver-todas svg { width: 14px; height: 14px; }

/* ============ WIDGET VIDEOS NUEVOS (legacy - ya no se usa) ============ */
.ca-widget-nuevos .ca-widget-icon {
  background: linear-gradient(135deg, #E74C3C 0%, #c0392b 100%);
  animation: caPulse 2s infinite;
}
.ca-nuevos-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ca-nuevo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  background: var(--gris-50);
  cursor: pointer;
  transition: all .15s;
  border: 1px solid transparent;
  text-align: left;
  font-family: inherit;
  width: 100%;
  position: relative;
}
.ca-nuevo-item:hover {
  background: #fff;
  border-color: #E74C3C;
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(231,76,60,.15);
}
.ca-nuevo-thumb {
  width: 64px;
  aspect-ratio: 16/9;
  border-radius: 4px;
  background: #000;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.ca-nuevo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ca-nuevo-badge {
  position: absolute;
  top: 3px; left: 3px;
  background: #E74C3C;
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1;
}
.ca-nuevo-info {
  flex: 1;
  min-width: 0;
}
.ca-nuevo-info h5 {
  margin: 0 0 3px;
  font-size: 12.5px;
  color: var(--gris-900);
  line-height: 1.3;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ca-nuevo-cat {
  font-size: 10.5px;
  color: var(--gris-500);
  text-transform: uppercase;
  letter-spacing: .3px;
}

/* Badge NUEVO en las cards de video (grid principal) */
.ca-video-card { position: relative; }
.ca-video-badge-nuevo {
  position: absolute;
  top: 8px; left: 8px;
  background: linear-gradient(135deg, #E74C3C 0%, #c0392b 100%);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(231,76,60,.35);
  animation: caPulse 2s infinite;
}

/* ----------------- HEADER ----------------- */
.ca-header {
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  color: #fff;
  padding: 16px 32px 14px;
  box-shadow: var(--shadow);
}
.ca-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1600px;
  margin: 0 auto;
}
.ca-brand { display: flex; align-items: center; gap: 14px; }
.ca-brand-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.ca-brand h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .3px;
}
.ca-brand p {
  margin: 1px 0 0;
  font-size: 12.5px;
  opacity: .85;
}
.ca-header-actions { display: flex; gap: 10px; align-items: center; }
.ca-btn-ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
.ca-btn-ghost:hover { background: rgba(255,255,255,.25); }

/* Boton admin discreto (un circulito con "A" para que la gente no le de click) */
.ca-admin-dot {
  display: inline-flex;
  width: 30px; height: 30px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  transition: all .2s;
  font-family: inherit;
}
.ca-admin-dot:hover {
  background: rgba(255,255,255,.22);
  color: #fff;
  text-decoration: none;
  transform: scale(1.05);
}

/* Indicador "explora mas abajo" entre el chat y el contenido */
.ca-explore-hint {
  max-width: 1600px;
  margin: 28px auto 0;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.ca-hint-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gris-300), transparent);
}
.ca-hint-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gris-500);
  font-weight: 500;
  white-space: nowrap;
  animation: caBounce 2.5s ease-in-out infinite;
}
.ca-hint-text svg {
  width: 18px;
  height: 18px;
  color: var(--azul);
}
@keyframes caBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}
@media (max-width: 600px) {
  .ca-explore-hint { padding: 0 18px; gap: 10px; }
  .ca-hint-text { font-size: 13px; }
  .ca-hint-text svg { width: 16px; height: 16px; }
}

/* ============ BUSCADOR DEL HEADER (atajo rapido) ============ */
.ca-header-search {
  flex: 1;
  max-width: 460px;
  margin: 0 20px;
  position: relative;
  display: flex;
  align-items: center;
}
.ca-header-search svg {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,.7);
  pointer-events: none;
  z-index: 2;
}
.ca-header-search input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 100px;
  color: #fff;
  font-size: 13.5px;
  font-family: inherit;
  transition: all .2s;
}
.ca-header-search input::placeholder {
  color: rgba(255,255,255,.65);
}
.ca-header-search input:focus {
  outline: none;
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.5);
  box-shadow: 0 0 0 3px rgba(255,255,255,.15);
}

@media (max-width: 900px) {
  .ca-header-search {
    margin: 8px 0 0;
    max-width: none;
    flex: 1 1 100%;
    order: 3;
  }
  .ca-header-row { flex-wrap: wrap; }
}

/* ============ BOTON NOVEDADES ============ */
.ca-nov-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 100px;
  padding: 7px 14px 7px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
  position: relative;
}
.ca-nov-btn:hover {
  background: rgba(255,255,255,.28);
  transform: translateY(-1px);
}
.ca-nov-btn svg {
  width: 16px;
  height: 16px;
  animation: caNovShake 3s ease-in-out infinite;
  transform-origin: center 20%;
}
@keyframes caNovShake {
  0%, 92%, 100% { transform: rotate(0); }
  94% { transform: rotate(-8deg); }
  96% { transform: rotate(8deg); }
  98% { transform: rotate(-4deg); }
}
.ca-nov-badge {
  background: #E74C3C;
  color: #fff;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(231,76,60,.4);
}

@media (max-width: 600px) {
  .ca-nov-btn span:not(.ca-nov-badge) { display: none; }
  .ca-nov-btn { padding: 8px; }
}

/* ============ MODAL NOVEDADES ============ */
.ca-nov-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.75);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  animation: caFadeIn .2s ease-out;
}
.ca-nov-modal:not([hidden]) { display: flex; }
@keyframes caFadeIn { from { opacity: 0; } to { opacity: 1; } }
.ca-nov-modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: caSlideUp .3s ease-out;
}
@keyframes caSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ca-nov-modal-head {
  padding: 22px 24px;
  background: linear-gradient(135deg, #E74C3C 0%, #c0392b 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.ca-nov-modal-head h2 {
  margin: 0 0 3px;
  font-size: 20px;
  font-weight: 700;
}
.ca-nov-modal-head p {
  margin: 0;
  font-size: 13px;
  opacity: .9;
}
.ca-nov-modal-close {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-family: inherit;
  flex-shrink: 0;
  transition: background .15s;
}
.ca-nov-modal-close:hover { background: rgba(255,255,255,.35); }

.ca-nov-modal-body {
  padding: 20px 24px;
  max-height: 68vh;
  overflow-y: auto;
}

/* Filtros por tipo (Todas / Nuevo / Mejorado / Corregido / Anuncio) */
.ca-nov-filtros {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: var(--gris-100);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ca-nov-filtros::-webkit-scrollbar { display: none; }
.ca-nov-filtro {
  flex: 1;
  min-width: 90px;
  background: transparent;
  border: 1.5px solid transparent;
  padding: 7px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--gris-700);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all .15s;
  white-space: nowrap;
}
.ca-nov-filtro:hover:not(.active) {
  background: rgba(255,255,255,.6);
  color: var(--gris-900);
}
.ca-nov-filtro-count {
  background: rgba(0,0,0,.08);
  padding: 1px 6px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}
.ca-nov-filtro.active .ca-nov-filtro-count {
  background: rgba(255,255,255,.25);
}

/* Grupos por fecha (Esta semana / Este mes / Anterior) */
.ca-nov-grupo {
  margin-bottom: 24px;
}
.ca-nov-grupo:last-child { margin-bottom: 0; }
.ca-nov-grupo-title {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--gris-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gris-100);
}
.ca-nov-grupo-title span {
  color: var(--gris-300);
  font-weight: 600;
  margin-left: 4px;
}

/* Timeline: items uno debajo del otro con linea izquierda */
.ca-nov-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ca-nov-item {
  display: grid;
  grid-template-columns: 40px 1fr 100px;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--gris-100);
  border-radius: 12px;
  align-items: start;
  transition: box-shadow .15s;
}
.ca-nov-item:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.ca-nov-item-tipo {
  width: 36px; height: 36px;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}
.ca-nov-item-body { min-width: 0; }
.ca-nov-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-size: 11.5px;
}
.ca-nov-item-tipo-label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 10.5px;
}
.ca-nov-item-cat {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.ca-nov-destacada {
  background: linear-gradient(135deg, #F39C12, #E67E22);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.ca-nov-item-fecha {
  margin-left: auto;
  color: var(--gris-500);
  font-size: 12px;
  font-weight: 500;
}
.ca-nov-item h5 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--gris-900);
  font-weight: 700;
  line-height: 1.35;
}
.ca-nov-item p {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--gris-700);
  line-height: 1.45;
}
.ca-nov-item-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--gris-50);
  border: 1px solid var(--gris-300);
  border-radius: 100px;
  color: var(--gris-700);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.ca-nov-item-action:hover {
  background: var(--azul);
  border-color: var(--azul);
  color: #fff;
  transform: translateY(-1px);
}
.ca-nov-item-action svg { width: 14px; height: 14px; }

.ca-nov-item-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}
.ca-nov-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ca-nov-item-thumb .play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.4));
}
.ca-nov-item-thumb .play svg { width: 32px; height: 32px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }

@media (max-width: 700px) {
  .ca-nov-item {
    grid-template-columns: 32px 1fr;
    padding: 12px;
    gap: 10px;
  }
  .ca-nov-item-thumb {
    grid-column: 1 / 3;
    max-width: 200px;
  }
  .ca-nov-filtro { font-size: 12px; padding: 6px 10px; }
}

.ca-nov-section {
  margin-bottom: 22px;
}
.ca-nov-section:last-child { margin-bottom: 0; }
.ca-nov-section-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gris-500);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gris-100);
}
.ca-nov-section-title-icon {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, #E74C3C 0%, #c0392b 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
}
.ca-nov-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.ca-nov-video-card {
  background: var(--gris-50);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  border: 1px solid var(--gris-100);
}
.ca-nov-video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.ca-nov-video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.ca-nov-video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ca-nov-video-thumb .badge {
  position: absolute;
  top: 6px; left: 6px;
  background: linear-gradient(135deg, #E74C3C 0%, #c0392b 100%);
  color: #fff;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.ca-nov-video-thumb .play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.4));
}
.ca-nov-video-thumb .play svg { width: 40px; height: 40px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.ca-nov-video-info {
  padding: 8px 12px 10px;
}
.ca-nov-video-info h5 {
  margin: 0 0 3px;
  font-size: 13px;
  color: var(--gris-900);
  line-height: 1.3;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ca-nov-video-cat {
  font-size: 11px;
  color: var(--gris-500);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.ca-nov-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ca-nov-faq-item {
  background: var(--gris-50);
  padding: 12px 14px;
  border-radius: 8px;
  border-left: 3px solid var(--azul);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  text-align: left;
  width: 100%;
  border: 1px solid var(--gris-100);
  border-left: 3px solid var(--azul);
}
.ca-nov-faq-item:hover {
  background: #eff6ff;
  transform: translateX(4px);
  border-left-width: 5px;
}
.ca-nov-faq-item h5 {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--gris-900);
  font-weight: 700;
}
.ca-nov-faq-cat {
  font-size: 11.5px;
  color: var(--gris-500);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.ca-nov-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--gris-500);
  font-size: 14px;
}
.ca-nov-empty h4 { color: var(--gris-700); margin: 0 0 6px; }

/* ----------------- HEADER STATS (inline con brand) ----------------- */
.ca-header-stats {
  max-width: 1600px;
  margin: 8px auto 0;
  padding: 0 32px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ca-header-stat {
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.95);
  padding: 3px 11px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.18);
}
.ca-header-stat .num {
  font-size: 13px;
  font-weight: 800;
}
@media (max-width: 600px) {
  .ca-header-stats { padding: 0 18px; gap: 6px; }
  .ca-header-stat { padding: 5px 11px; font-size: 12px; }
}

/* ============ PANEL DE RESPUESTA (separado del chat) ============ */
.ca-answer-wrap {
  max-width: 1600px;
  margin: 18px auto 0;
  padding: 0 32px;
  animation: caAnswerIn .3s ease-out;
}
@keyframes caAnswerIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ca-answer {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 2px solid var(--azul);
  box-shadow: 0 6px 24px rgba(74,144,226,.15);
  overflow: hidden;
}

/* Header del panel */
.ca-answer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-bottom: 1px solid var(--gris-100);
}
.ca-answer-badge {
  background: var(--azul);
  color: #fff;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  flex-shrink: 0;
}
.ca-answer-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--gris-900);
  flex: 1;
  line-height: 1.3;
}
.ca-answer-close {
  background: rgba(255,255,255,.6);
  border: 1px solid var(--gris-300);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 20px;
  color: var(--gris-700);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-family: inherit;
  flex-shrink: 0;
  transition: all .15s;
}
.ca-answer-close:hover {
  background: #fff;
  color: var(--rojo);
  border-color: var(--rojo);
  transform: scale(1.05);
}

/* Grid: contenido a la izquierda, video (opcional) a la derecha */
.ca-answer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 22px;
}
@media (min-width: 900px) {
  .ca-answer-grid.has-video {
    grid-template-columns: 1fr 320px;
  }
}
.ca-answer-main {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--gris-900);
  min-width: 0;
}
.ca-answer-main p { margin: 8px 0; }
.ca-answer-main p:first-child { margin-top: 0; }

/* Pasos numerados dentro del panel (mas espaciosos que en el chat) */
.ca-answer-main .ca-steps { margin: 12px 0 8px; }
.ca-answer-main .ca-steps li {
  padding: 8px 0 8px 42px;
  font-size: 15.5px;
  line-height: 1.55;
}
.ca-answer-main .ca-steps li::before {
  width: 30px; height: 30px;
  font-size: 14px;
  top: 6px;
}
.ca-answer-main .ca-steps li ul li {
  padding: 3px 0;
  font-size: 14.5px;
  line-height: 1.5;
}

/* Tips y warnings mas visibles en el panel */
.ca-answer-main .ca-tip,
.ca-answer-main .ca-warn {
  margin: 12px 0;
  padding: 12px 16px;
  font-size: 14.5px;
  border-left-width: 4px;
}

/* Panel lateral: video */
.ca-answer-side {
  position: relative;
}
.ca-answer-side .ca-answer-video-label {
  display: block;
  background: var(--gris-900);
  color: #fff;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: center;
  border-radius: 8px 8px 0 0;
}
.ca-answer-side .ca-answer-video {
  background: #000;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
}
.ca-answer-side .ca-answer-video img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.ca-answer-side .ca-answer-video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55));
  transition: background .2s;
}
.ca-answer-side .ca-answer-video:hover .ca-answer-video-play {
  background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.55));
}
.ca-answer-side .ca-answer-video-play svg {
  width: 56px; height: 56px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}
.ca-answer-side .ca-answer-video-title {
  background: #fff;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--gris-700);
  font-weight: 600;
  border: 1px solid var(--gris-100);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Footer del panel: feedback + escuchar */
.ca-answer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 22px;
  border-top: 1px solid var(--gris-100);
  background: var(--gris-50);
}
.ca-answer-fb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--gris-700);
}
.ca-answer-foot .ca-tts {
  font-size: 13px;
  color: var(--azul);
}

@media (max-width: 700px) {
  .ca-answer-wrap { padding: 0 18px; }
  .ca-answer-head { padding: 12px 16px; }
  .ca-answer-head h2 { font-size: 15px; }
  .ca-answer-grid { padding: 16px; gap: 16px; }
  .ca-answer-main { font-size: 15px; }
  .ca-answer-main .ca-steps li { padding-left: 38px; font-size: 15px; }
  .ca-answer-foot { padding: 12px 16px; }
}

/* ============ SECCIONES DE DESCUBRIMIENTO ============ */
.ca-discover {
  max-width: 1600px;
  margin: 22px auto 0;
  padding: 0 32px;
}
@media (max-width: 600px) { .ca-discover { padding: 0 18px; } }

.ca-section-head {
  margin-bottom: 12px;
}
.ca-section-head h2 {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 700;
  color: var(--gris-900);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ca-section-head p {
  margin: 0;
  color: var(--gris-500);
  font-size: 13px;
}
.ca-section-emoji {
  display: inline-flex;
  width: 26px; height: 26px;
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

/* --- Banner "Eres nuevo?" --- */
.ca-banner-nuevo {
  background: linear-gradient(135deg, #fff7e6 0%, #fff2d4 100%);
  border: 2px solid #F39C12;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.ca-banner-nuevo::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(243,156,18,.15), transparent 70%);
  border-radius: 50%;
}
.ca-banner-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.ca-banner-emoji {
  width: 36px; height: 36px;
  background: #F39C12;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}
.ca-banner-head h2 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
  color: #6D4C00;
}
.ca-banner-head p {
  margin: 0;
  color: #8B6914;
  font-size: 13px;
}
.ca-esenciales {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
}
.ca-esencial-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .15s, box-shadow .15s;
  position: relative;
  border: 1px solid rgba(243,156,18,.2);
}
.ca-esencial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(243,156,18,.25);
}
.ca-esencial-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}
.ca-esencial-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ca-esencial-step {
  position: absolute;
  top: 8px; left: 8px;
  background: #F39C12;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.ca-esencial-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.5));
}
.ca-esencial-play svg {
  width: 48px; height: 48px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}
.ca-esencial-info {
  padding: 12px 14px;
}
.ca-esencial-info h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--gris-900);
  line-height: 1.35;
}

/* --- Lo mas buscado (preguntas) --- */
.ca-populares {
  margin-bottom: 20px;
}
.ca-faq-pills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}
.ca-faq-pill {
  background: #fff;
  border: 1.5px solid var(--gris-100);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gris-900);
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .15s;
  line-height: 1.3;
}
.ca-faq-pill:hover {
  border-color: var(--azul);
  background: #f8fbff;
  transform: translateX(2px);
}
.ca-faq-pill .arrow {
  margin-left: auto;
  color: var(--azul);
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
  transition: transform .15s;
}
.ca-faq-pill:hover .arrow { transform: translateX(3px); }
.ca-faq-pill .cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* --- Videos populares --- */
.ca-videos-pop {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.ca-vpop-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
  border: 1px solid var(--gris-100);
}
.ca-vpop-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.ca-vpop-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}
.ca-vpop-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ca-vpop-play {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.5));
}
.ca-vpop-play svg {
  width: 44px; height: 44px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}
.ca-vpop-info {
  padding: 10px 12px;
}
.ca-vpop-info h4 {
  margin: 0 0 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gris-900);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ca-vpop-cat {
  display: inline-block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

/* ----------------- CHATBOT ----------------- */
.ca-search-wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 22px 24px 0;
}
@media (min-width: 1200px) {
  .ca-search-wrap { padding-left: 32px; padding-right: 32px; }
}
.ca-chat {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-top: -32px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Chat mas ancho (aprovecha 95% de la pantalla) y mas bajo.
     Con mas ancho horizontal, cabe mas contenido en 2 columnas. */
  height: 420px;
  max-height: 55vh;
  min-height: 360px;
}

/* Cabecera del chat */
.ca-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #f8faff 0%, #eef4ff 100%);
  border-bottom: 1px solid var(--gris-100);
}
.ca-chat-avatar {
  width: 38px; height: 38px;
  background: var(--azul);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ca-chat-avatar svg { width: 18px; height: 18px; }
.ca-chat-head-info h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--gris-900);
}
.ca-chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gris-500);
  margin-top: 2px;
}
.ca-chat-status .dot-on {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--verde);
  box-shadow: 0 0 0 0 rgba(46,204,113,.5);
  animation: caPulse 2s infinite;
}
@keyframes caPulse {
  0%   { box-shadow: 0 0 0 0 rgba(46,204,113,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}

/* Cuerpo del chat (mensajes) */
.ca-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px 10px;
  background:
    radial-gradient(circle at 20% 0%, rgba(74,144,226,.04), transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(74,144,226,.04), transparent 40%),
    #fafbfd;
  scroll-behavior: smooth;
}
.ca-chat-body::-webkit-scrollbar { width: 8px; }
.ca-chat-body::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.15);
  border-radius: 100px;
}

/* Burbujas (mensajes) */
.ca-msg {
  display: flex;
  margin-bottom: 14px;
  animation: caBubbleIn .25s ease-out;
}
@keyframes caBubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ca-msg-bubble {
  max-width: 82%;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.55;
  word-wrap: break-word;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.ca-msg-bubble p { margin: 6px 0; }
.ca-msg-bubble p:first-child { margin-top: 0; }
.ca-msg-bubble p:last-child  { margin-bottom: 0; }
.ca-msg-bubble strong, .ca-msg-bubble b { color: var(--gris-900); }
.ca-msg-bubble a { color: var(--azul-dark); font-weight: 600; }

/* Burbuja del bot (izquierda, blanca) */
.ca-msg.bot { justify-content: flex-start; }
.ca-msg.bot .ca-msg-bubble {
  background: #fff;
  color: var(--gris-900);
  border: 1px solid var(--gris-100);
  border-top-left-radius: 6px;
}
/* Respuestas del bot ocupan casi TODO el ancho del chat para aprovechar espacio */
.ca-msg.bot .ca-msg-bubble.has-video { max-width: 96%; }
.ca-msg.bot .ca-msg-bubble:has(.ca-resp) {
  max-width: 100%;
  width: 100%;
}
/* Cuando la burbuja lleva una respuesta con tabs/panels, el layout es de columnas.
   Damos flex 1 para que ocupe todo el ancho del chat body. */
.ca-msg:has(.ca-resp) { width: 100%; }

/* ============ RESPUESTA EN TABS DENTRO DEL CHAT ============ */
.ca-resp { margin: 0; }
.ca-resp-titulo {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--azul-dark);
  margin: 0 0 12px;
  padding: 9px 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 8px;
  border-left: 3px solid var(--azul);
  line-height: 1.35;
}
/* Parrafo introductorio del panel Pasos (antes de la lista) */
.ca-resp-panel[data-panel="pasos"] > p:first-of-type {
  margin: 0 0 6px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--gris-700);
}
.ca-resp-panel[data-panel="pasos"] > p:first-of-type strong,
.ca-resp-panel[data-panel="pasos"] > p:first-of-type b { color: var(--gris-900); }

/* Tabs de la respuesta */
.ca-resp-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--gris-100);
  border-radius: 10px;
  margin-bottom: 10px;
}
.ca-resp-tab {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gris-500);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .15s;
}
.ca-resp-tab:hover { color: var(--gris-900); background: rgba(255,255,255,.5); }
.ca-resp-tab.active {
  background: #fff;
  color: var(--azul-dark);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.ca-resp-tab-icon {
  font-size: 15px;
  line-height: 1;
}

/* Body: en MOBILE los tabs funcionan (solo panel activo se ve)
   En DESKTOP TODOS los paneles se ven al mismo tiempo en grid horizontal */
.ca-resp-body { min-height: 100px; }
.ca-resp-panel { display: none; animation: caPanelIn .2s ease-out; }
.ca-resp-panel.active { display: block; }
@keyframes caPanelIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ DESKTOP: pasos ancho (protagonistas) + video/tips pegados a la derecha ============ */
@media (min-width: 780px) {
  .ca-resp-tabs { display: none; }
  .ca-resp-body {
    display: grid;
    /* PASOS = 75% del ancho, VIDEO/TIPS = 25% del ancho pegado a la derecha
       Los pasos tienen mucho ancho horizontal -> menos scroll vertical.
       Video y tips quedan compactos a la derecha. */
    grid-template-columns: 3fr 1fr;
    gap: 22px;
    align-items: start;
  }
  .ca-resp-panel { display: block !important; animation: none; }
  .ca-resp-panel[data-panel="pasos"] { grid-column: 1; grid-row: 1 / span 2; }
  .ca-resp-panel[data-panel="video"] { grid-column: 2; grid-row: 1; }
  .ca-resp-panel[data-panel="tips"]  { grid-column: 2; grid-row: 2; }
  .ca-resp-video-tit { font-size: 12.5px; margin-top: 6px; }
  .ca-resp-video-help { display: none; }
  .ca-resp-panel[data-panel="tips"] .ca-tip,
  .ca-resp-panel[data-panel="tips"] .ca-warn {
    padding: 9px 11px;
    font-size: 12.5px;
    margin: 0 0 6px;
    line-height: 1.4;
  }
  /* Etiqueta arriba de cada bloque para orientarse */
  .ca-resp-panel::before {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--gris-100);
  }
  .ca-resp-panel[data-panel="pasos"]::before { content: 'Pasos a seguir'; color: var(--azul-dark); border-color: var(--azul); }
  .ca-resp-panel[data-panel="video"]::before { content: 'Video tutorial'; color: var(--gris-900); border-color: var(--gris-900); }
  .ca-resp-panel[data-panel="tips"]::before  { content: 'Consejos'; color: var(--verde); border-color: var(--verde); }
  /* Con mas ancho para los pasos, sublistas pueden estar inline */
  .ca-resp-panel[data-panel="pasos"] .ca-steps li ul {
    margin-top: 3px;
  }
}

/* ============ Pantallas anchas (>1400px): pasos aun mas anchos ============ */
@media (min-width: 1400px) {
  .ca-resp-body {
    grid-template-columns: 4fr 1fr;
    gap: 28px;
  }
}

/* Panel VIDEO */
.ca-resp-video {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  aspect-ratio: 16/9;
  width: 100%;
  margin: 4px 0 8px;
}
.ca-resp-video img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ca-resp-video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55));
  transition: background .2s;
}
.ca-resp-video:hover .ca-resp-video-play {
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55));
}
.ca-resp-video-play svg {
  width: 56px; height: 56px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}
.ca-resp-video-tit {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--gris-900);
  text-align: center;
}
.ca-resp-video-help {
  margin: 0;
  font-size: 12.5px;
  color: var(--gris-500);
  text-align: center;
}

@media (max-width: 500px) {
  .ca-resp-tab { font-size: 12.5px; padding: 6px 8px; gap: 4px; }
  .ca-resp-tab-icon { font-size: 13px; }
}

/* Layout de 2 columnas para respuestas con video (desktop) */
@media (min-width: 900px) {
  .ca-msg.bot .ca-msg-bubble.has-video {
    display: grid;
    /* Texto ocupa la mayoria del ancho, video como aside */
    grid-template-columns: 1fr 220px;
    gap: 20px;
    align-items: start;
  }
  .ca-msg.bot .ca-msg-bubble.has-video .ca-msg-body {
    min-width: 0;
    /* El titulo cruza ambas columnas */
  }
  .ca-msg.bot .ca-msg-bubble.has-video .ca-msg-video {
    margin-top: 0;
    max-width: 100%;
    position: sticky;
    top: 0;
  }
  /* Etiqueta "Video tutorial" arriba del thumbnail */
  .ca-msg.bot .ca-msg-bubble.has-video .ca-msg-video::before {
    content: 'Video tutorial';
    display: block;
    background: var(--gris-900);
    color: #fff;
    padding: 5px 10px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-align: center;
  }
}

/* Burbuja del usuario (derecha, azul) */
.ca-msg.user { justify-content: flex-end; }
.ca-msg.user .ca-msg-bubble {
  background: var(--azul);
  color: #fff;
  border-top-right-radius: 6px;
}
.ca-msg.user .ca-msg-bubble a { color: #fff; text-decoration: underline; }

/* ============ SALUDO INICIAL CON TARJETAS ============ */
.ca-welcome-msg .ca-welcome-bubble {
  max-width: 100% !important;
  width: 100%;
  padding: 12px 14px !important;
}
.ca-welcome-head {
  font-size: 15px;
  color: var(--gris-900);
  margin-bottom: 4px;
  line-height: 1.35;
  font-weight: 500;
}
.ca-welcome-head strong { color: var(--azul-dark); font-size: 16px; }
.ca-welcome-sub {
  font-size: 13.5px;
  color: var(--gris-500);
  margin-bottom: 12px;
  line-height: 1.4;
}
.ca-welcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ca-welcome-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--gris-50);
  border: 1.5px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  color: var(--gris-700);
  transition: all .15s;
  text-align: left;
  min-height: 56px;
}
.ca-welcome-card:hover {
  background: #fff;
  border-color: var(--azul);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74,144,226,.15);
}
.ca-welcome-icon {
  width: 34px;
  height: 34px;
  background: var(--azul);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.ca-welcome-icon svg { width: 17px; height: 17px; }
.ca-welcome-txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.ca-welcome-txt strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gris-900);
  line-height: 1.25;
}
.ca-welcome-txt small {
  font-size: 11.5px;
  color: var(--gris-500);
  line-height: 1.2;
}
@media (max-width: 700px) {
  .ca-welcome-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .ca-welcome-card { min-height: 52px; padding: 8px 10px; }
}
@media (max-width: 420px) {
  .ca-welcome-grid { grid-template-columns: 1fr; }
}

/* Animacion "escribiendo..." */
.ca-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ca-typing span {
  width: 8px; height: 8px;
  background: var(--gris-300);
  border-radius: 50%;
  animation: caTyping 1.2s infinite ease-in-out;
}
.ca-typing span:nth-child(2) { animation-delay: .2s; }
.ca-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes caTyping {
  0%, 60%, 100% { transform: translateY(0);    opacity: .4; }
  30%           { transform: translateY(-6px); opacity: 1; }
}

/* Pasos numerados: pensados para lectura clara y organizada */
.ca-steps {
  margin: 8px 0 4px;
  padding: 0;
  list-style: none;
  counter-reset: ca-step;
}
.ca-steps li {
  counter-increment: ca-step;
  position: relative;
  /* Padding vertical generoso para que respiren.
     Padding-left = 36px = espacio para el circulo numerado */
  padding: 6px 0 6px 36px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--gris-900);
}
.ca-steps li strong,
.ca-steps li b {
  color: var(--gris-900);
  font-weight: 700;
}
/* Circulo con el numero del paso */
.ca-steps li::before {
  content: counter(ca-step);
  position: absolute;
  left: 0; top: 5px;
  width: 26px; height: 26px;
  background: var(--azul);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(74,144,226,.3);
}

/* Sublistas dentro de un paso: alineadas con el texto del paso (no debajo del numero) */
.ca-steps li ul {
  margin: 6px 0 2px 0;
  padding-left: 20px;
  list-style: none;
  color: var(--gris-700);
}
.ca-steps li ul li {
  position: relative;
  padding: 3px 0 3px 14px;
  font-size: 13.5px;
  line-height: 1.5;
}
/* Bullet personalizado alineado */
.ca-steps li ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 6px;
  height: 6px;
  background: var(--azul);
  border-radius: 50%;
  display: block;
  opacity: .5;
}
.ca-steps li ul li strong,
.ca-steps li ul li b {
  color: var(--gris-900);
  font-weight: 700;
}

/* Parrafos sueltos dentro de un paso (texto continuo, no lista) */
.ca-steps li p {
  margin: 4px 0;
  font-size: 14px;
  color: var(--gris-700);
  line-height: 1.5;
}

/* Caja de Tip / Importante dentro de respuestas (compactas) */
.ca-tip, .ca-warn {
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  border-left: 3px solid;
}
.ca-tip p, .ca-warn p { margin: 3px 0; }
.ca-tip strong, .ca-warn strong { display: block; margin-bottom: 2px; font-size: 13.5px; }
.ca-tip  { background: #e8f5e9; color: #1b5e20; border-color: #43a047; }
.ca-warn { background: #fff8e1; color: #6d4c00; border-color: #f9a825; }
.ca-tip  strong, .ca-warn strong { display: block; margin-bottom: 4px; }

/* Botones de respuesta rapida en el chat */
.ca-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 2px;
}
.ca-quick {
  background: #fff;
  border: 1.5px solid var(--azul);
  color: var(--azul-dark);
  padding: 7px 13px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.ca-quick:hover {
  background: var(--azul);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74,144,226,.3);
}
.ca-quick.secondary {
  border-color: var(--gris-300);
  color: var(--gris-700);
}
.ca-quick.secondary:hover {
  background: var(--gris-700);
  border-color: var(--gris-700);
  color: #fff;
}

/* Tarjeta de video dentro de una burbuja */
.ca-msg-video {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  position: relative;
  max-width: 320px;
}
.ca-msg-video img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.ca-msg-video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.5));
}
.ca-msg-video-play svg {
  width: 56px; height: 56px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}
.ca-msg-video-title {
  background: #fff;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--gris-700);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Input del chat */
.ca-chat-input {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid var(--gris-100);
  position: relative;
}
.ca-input-box {
  flex: 1;
  position: relative;
}
.ca-chat-input input {
  width: 100%;
  padding: 10px 16px;
  font-size: 15px;
  border: 2px solid var(--gris-300);
  border-radius: 100px;
  transition: border-color .15s;
  font-family: inherit;
  box-sizing: border-box;
}

/* ============ AUTOCOMPLETE ============ */
.ca-suggests {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border: 1px solid var(--gris-100);
  overflow: hidden;
  z-index: 50;
  max-height: 260px;
  overflow-y: auto;
}
.ca-suggest {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--gris-100);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  color: var(--gris-700);
  transition: background .1s;
}
.ca-suggest:last-child { border-bottom: 0; }
.ca-suggest:hover,
.ca-suggest.active {
  background: #eff6ff;
  color: var(--azul-dark);
}
.ca-suggest span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ PREGUNTAS RELACIONADAS ============ */
.ca-resp-rel {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--gris-300);
}
.ca-resp-rel-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gris-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.ca-resp-rel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ca-resp-rel-item {
  background: var(--gris-50);
  border: 1px solid var(--gris-100);
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--gris-700);
  font-family: inherit;
  font-weight: 500;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.3;
}
.ca-resp-rel-item:hover {
  background: #eff6ff;
  border-color: var(--azul);
  color: var(--azul-dark);
  transform: translateX(2px);
}
.ca-resp-rel-item span {
  color: var(--azul);
  font-weight: 700;
  font-size: 15px;
  margin-left: 2px;
}

/* ============ MODO GUIAME PASO A PASO ============ */
.ca-guiame-body {
  padding: 32px 30px;
  background: #fff;
  min-height: 280px;
}
.ca-guiame-progress {
  height: 6px;
  background: var(--gris-100);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 20px;
}
.ca-guiame-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--azul), var(--azul-dark));
  border-radius: 100px;
  transition: width .3s ease;
}
.ca-guiame-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.ca-guiame-num {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--azul), var(--azul-dark));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(74,144,226,.35);
}
.ca-guiame-total {
  color: var(--gris-500);
  font-size: 14px;
  font-weight: 600;
}
.ca-guiame-content {
  font-size: 17px;
  line-height: 1.6;
  color: var(--gris-900);
  padding: 16px 20px;
  background: var(--gris-50);
  border-left: 4px solid var(--azul);
  border-radius: 0 8px 8px 0;
}
.ca-guiame-content strong,
.ca-guiame-content b { color: var(--azul-dark); font-weight: 700; }
.ca-guiame-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
}
.ca-guiame-actions .ca-quick {
  padding: 10px 18px;
  font-size: 14px;
}
.ca-guiame-actions .ca-quick:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.ca-chat-input input:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 4px rgba(74,144,226,.12);
}
.ca-chat-send {
  width: 42px; height: 42px;
  background: var(--azul);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .15s;
}
.ca-chat-send:hover {
  background: var(--azul-dark);
  transform: scale(1.05);
}
.ca-chat-send:disabled {
  background: var(--gris-300);
  cursor: not-allowed;
  transform: none;
}
.ca-chat-send svg { width: 20px; height: 20px; }

/* Boton para escuchar la respuesta (texto a voz) */
.ca-tts {
  background: transparent;
  border: 0;
  color: var(--gris-500);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-family: inherit;
}
.ca-tts:hover { background: var(--gris-100); color: var(--azul); }
.ca-tts svg { width: 16px; height: 16px; }
.ca-tts.playing { color: var(--rojo); }

/* Responsive chat */
@media (max-width: 700px) {
  .ca-search-wrap { padding: 22px 14px 0; }
  .ca-chat { height: auto; min-height: 500px; max-height: 80vh; }
  .ca-chat-head { padding: 12px 16px; }
  .ca-chat-head-info h2 { font-size: 17px; }
  .ca-chat-body { padding: 16px 14px 8px; }
  .ca-msg-bubble { max-width: 88%; font-size: 15.5px; padding: 12px 15px; }
  .ca-chat-input { padding: 10px 12px; }
  .ca-chat-input input { padding: 12px 16px; font-size: 16px; }
}

/* ----------------- LAYOUT ----------------- */
.ca-main {
  max-width: 1600px;
  margin: 32px auto 60px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
}

/* ----------------- SIDEBAR (categorias) ----------------- */
.ca-sidebar h3 {
  margin: 0 0 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gris-500);
}
.ca-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ca-cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s;
  font-size: 14px;
  color: var(--gris-700);
  font-weight: 500;
}
.ca-cat-item:hover {
  border-color: var(--gris-300);
  transform: translateX(2px);
}
.ca-cat-item.active {
  background: var(--azul);
  color: #fff;
  border-color: var(--azul);
}
.ca-cat-item .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--azul);
  flex-shrink: 0;
}
.ca-cat-item.active .dot { background: #fff; }
.ca-cat-count {
  margin-left: auto;
  background: var(--gris-100);
  color: var(--gris-700);
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}
.ca-cat-item.active .ca-cat-count {
  background: rgba(255,255,255,.25);
  color: #fff;
}

/* ----------------- CONTENT ----------------- */
.ca-content section { margin-bottom: 40px; }
.ca-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--gris-900);
}
.ca-section-title .count {
  background: var(--gris-100);
  color: var(--gris-700);
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

/* ----------- Videos grid ----------- */
.ca-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.ca-video-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  border: 1px solid var(--gris-100);
}
.ca-video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.ca-video-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  overflow: hidden;
}
.ca-video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Fallback cuando el thumbnail no carga (video privado/eliminado/sin red) */
.ca-video-thumb.ca-thumb-fail,
.ca-msg-video.ca-thumb-fail {
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  position: relative;
}
.ca-video-thumb.ca-thumb-fail::before,
.ca-msg-video.ca-thumb-fail::before {
  content: attr(data-titulo);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 20px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
  z-index: 1;
}
.ca-msg-video.ca-thumb-fail {
  aspect-ratio: 16/9;
}
.ca-video-play {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.5));
}
.ca-video-play svg {
  width: 56px; height: 56px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
  transition: transform .15s;
}
.ca-video-card:hover .ca-video-play svg { transform: scale(1.1); }
.ca-video-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,.8);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.ca-video-info { padding: 14px 16px 16px; }
.ca-video-info h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--gris-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ca-video-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gris-500);
}
.ca-video-cat {
  background: var(--gris-100);
  color: var(--gris-700);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

/* ----------- FAQs accordion ----------- */
.ca-faqs { display: flex; flex-direction: column; gap: 10px; }
.ca-faq {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gris-100);
  overflow: hidden;
  transition: border-color .15s;
}
.ca-faq.open { border-color: var(--azul); box-shadow: var(--shadow-sm); }
.ca-faq-q {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 600;
  color: var(--gris-900);
  font-size: 15px;
}
.ca-faq-q:hover { background: var(--gris-50); }
.ca-faq-q .chev {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
  color: var(--gris-500);
}
.ca-faq.open .chev { transform: rotate(180deg); }
.ca-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.ca-faq.open .ca-faq-a { max-height: 2000px; }
.ca-faq-body {
  padding: 0 20px 18px;
  color: var(--gris-700);
  font-size: 14.5px;
  line-height: 1.65;
}
.ca-faq-body p { margin: 8px 0; }
.ca-faq-body ol, .ca-faq-body ul { margin: 8px 0; padding-left: 22px; }
.ca-faq-body li { margin: 4px 0; }
.ca-faq-body strong, .ca-faq-body b { color: var(--gris-900); }
.ca-faq-video {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--gris-300);
}
.ca-faq-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  border: 0;
}
.ca-faq-useful {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--gris-100);
  font-size: 13px;
  color: var(--gris-500);
}
.ca-faq-useful button {
  background: var(--gris-100);
  border: 0;
  padding: 5px 12px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ca-faq-useful button:hover { background: var(--azul); color: #fff; }
.ca-faq-useful .voted { background: var(--verde); color: #fff; pointer-events: none; }

/* ----------- Estados vacios ----------- */
.ca-empty {
  text-align: center;
  padding: 50px 20px;
  background: #fff;
  border-radius: var(--radius);
  color: var(--gris-500);
  border: 2px dashed var(--gris-300);
}
.ca-empty .icon { font-size: 42px; margin-bottom: 10px; }
.ca-empty h4 { margin: 0 0 6px; color: var(--gris-700); }

/* ============ BOTON FLOTANTE DE SOPORTE (FAB) ============ */
.ca-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border: 0;
  border-radius: 100px;
  padding: 14px 22px 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  z-index: 400;
  transition: all .2s;
}
.ca-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37,211,102,.55);
}
.ca-fab svg {
  width: 22px; height: 22px;
}
.ca-fab.open {
  background: linear-gradient(135deg, #E74C3C 0%, #c0392b 100%);
  box-shadow: 0 6px 24px rgba(231,76,60,.45);
}
.ca-fab.open .ca-fab-label { display: none; }
.ca-fab.open::before {
  content: '\00D7';
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
}
.ca-fab.open svg { display: none; }

@media (max-width: 600px) {
  .ca-fab { bottom: 16px; right: 16px; padding: 12px 18px 12px 16px; font-size: 14px; }
  .ca-fab svg { width: 20px; height: 20px; }
}

/* Panel de soporte */
.ca-support-panel {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  padding: 18px;
  z-index: 399;
  transform: translateY(20px) scale(.95);
  opacity: 0;
  pointer-events: none;
  transition: all .2s ease-out;
  transform-origin: bottom right;
}
.ca-support-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.ca-support-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.ca-support-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--gris-900);
}
.ca-support-close {
  background: transparent;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  color: var(--gris-500);
  line-height: 1;
  padding: 0 4px;
  font-family: inherit;
}
.ca-support-close:hover { color: var(--gris-900); }
.ca-support-desc {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--gris-500);
  line-height: 1.45;
}
.ca-support-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--gris-900);
  transition: all .15s;
  margin-bottom: 6px;
  background: var(--gris-50);
}
.ca-support-opt:hover {
  background: #eff6ff;
  transform: translateX(3px);
  text-decoration: none;
}
.ca-support-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ca-support-icon svg { width: 18px; height: 18px; }
.ca-support-opt strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--gris-900);
}
.ca-support-opt span {
  font-size: 12px;
  color: var(--gris-500);
}
.ca-support-horario {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gris-100);
  font-size: 12.5px;
  color: var(--gris-500);
  text-align: center;
}
.ca-support-horario strong { color: var(--gris-700); }

@media (max-width: 600px) {
  .ca-support-panel { bottom: 80px; right: 12px; left: 12px; width: auto; }
}

/* ----------- Modal video ----------- */
.ca-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ca-modal.open { display: flex; }
.ca-modal-content {
  max-width: 960px;
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.ca-modal-close {
  position: absolute;
  top: -42px; right: 0;
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 28px;
  cursor: pointer;
}
.ca-modal iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
}
.ca-modal-info {
  background: #fff;
  padding: 18px 22px;
}
.ca-modal-info h3 { margin: 0 0 6px; }
.ca-modal-info p  { margin: 0; color: var(--gris-500); font-size: 14px; }

/* ============ WIDGETS DEL SIDEBAR ============ */
.ca-widget {
  background: #fff;
  border-radius: 10px;
  padding: 14px 14px 12px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gris-100);
}
.ca-widget-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ca-widget-icon {
  display: inline-flex;
  width: 24px; height: 24px;
  background: var(--azul);
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.ca-widget h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--gris-900);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.ca-widget-sub {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--gris-500);
  line-height: 1.4;
}

/* --- Widget progreso --- */
.ca-progreso-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.ca-progreso-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--gris-50);
  border-radius: 6px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all .15s;
  color: var(--gris-700);
  line-height: 1.3;
}
.ca-progreso-item:hover {
  background: #eff6ff;
  color: var(--azul-dark);
}
.ca-progreso-item .num {
  width: 20px; height: 20px;
  background: var(--gris-300);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
  transition: all .15s;
}
.ca-progreso-item.done { color: var(--gris-500); text-decoration: line-through; }
.ca-progreso-item.done .num { background: var(--verde); }
.ca-progreso-item.done .num::after { content: '\2713'; }
.ca-progreso-item.done .num-text { display: none; }
.ca-progreso-bar {
  height: 6px;
  background: var(--gris-100);
  border-radius: 100px;
  overflow: hidden;
}
.ca-progreso-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--verde), #2ecc71);
  border-radius: 100px;
  width: 0;
  transition: width .3s ease;
}

/* --- Widget tip del dia --- */
.ca-widget-tip .ca-tip-texto {
  margin: 0;
  font-size: 13px;
  color: var(--gris-700);
  line-height: 1.5;
  min-height: 42px;
}
.ca-tip-refresh {
  background: transparent;
  border: 0;
  color: var(--gris-500);
  cursor: pointer;
  padding: 4px;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  font-family: inherit;
}
.ca-tip-refresh:hover { color: var(--azul); background: var(--gris-50); }
.ca-tip-refresh svg { width: 14px; height: 14px; }

/* --- Widget soporte --- */
.ca-widget-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s;
  margin-top: 6px;
  color: #fff;
}
.ca-widget-btn:hover { transform: translateY(-1px); text-decoration: none; color: #fff; }
.ca-widget-btn-wa  { background: #25D366; }
.ca-widget-btn-wa:hover  { background: #128C7E; box-shadow: 0 3px 10px rgba(37,211,102,.35); }
.ca-widget-btn-tel { background: var(--azul); }
.ca-widget-btn-tel:hover { background: var(--azul-dark); box-shadow: 0 3px 10px rgba(74,144,226,.35); }

/* --- Widget vistos recientemente (dentro del sidebar) --- */
.ca-widget-vistos { display: none; }
.ca-widget-vistos.tiene { display: block; }
.ca-vistos-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ca-visto-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
  text-align: left;
  border: 0;
  background: var(--gris-50);
  font-family: inherit;
}
.ca-visto-item:hover { background: #eff6ff; }
.ca-visto-thumb {
  width: 60px;
  aspect-ratio: 16/9;
  border-radius: 4px;
  background: #000;
  flex-shrink: 0;
  overflow: hidden;
}
.ca-visto-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ca-visto-titulo {
  font-size: 12px;
  color: var(--gris-700);
  line-height: 1.3;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----------- Sidebar categorias visual (chips de color) ----------- */
.ca-cat-list-visual .ca-cat-item {
  border-left: 4px solid transparent;
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 12px;
}
.ca-cat-list-visual .ca-cat-item .dot {
  width: 10px;
  height: 10px;
}
.ca-cat-list-visual .ca-cat-item.active {
  background: #fff;
  color: var(--gris-900);
  font-weight: 700;
  border-color: var(--azul);
  box-shadow: 0 2px 8px rgba(74,144,226,.15);
}
.ca-cat-list-visual .ca-cat-item.active .dot {
  transform: scale(1.4);
}

/* ----------- Responsive ----------- */
@media (max-width: 900px) {
  .ca-main { grid-template-columns: 1fr; }
  .ca-sidebar { order: 2; }
  .ca-cat-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .ca-cat-item { flex: 0 0 auto; }
  .ca-esenciales { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ca-banner-nuevo { padding: 16px; }
  .ca-banner-head h2 { font-size: 17px; }
  .ca-banner-emoji { width: 36px; height: 36px; font-size: 18px; }
}
@media (max-width: 600px) {
  .ca-header { padding: 22px 18px 18px; }
  .ca-search-wrap { padding: 22px 18px 0; }
  .ca-search { padding: 22px; }
  .ca-main { padding: 0 18px; margin-top: 22px; }
  .ca-brand h1 { font-size: 18px; }
  .ca-brand p  { font-size: 12px; }
}

/* =====================================================================
   PANEL ADMIN
   ===================================================================== */
.adm-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  padding: 20px;
}
.adm-login-card {
  background: #fff;
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 380px;
  width: 100%;
}
.adm-login-card h1 {
  margin: 0 0 6px;
  font-size: 22px;
}
.adm-login-card .sub {
  color: var(--gris-500);
  font-size: 14px;
  margin-bottom: 24px;
}
.adm-login-card label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--gris-700);
  margin: 12px 0 6px;
}
.adm-login-card input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gris-300);
  border-radius: 8px;
  font-size: 14px;
}
.adm-login-card input:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(74,144,226,.15);
}
.adm-login-card button {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background: var(--azul);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.adm-login-card button:hover { background: var(--azul-dark); }
.adm-err {
  background: #fee;
  color: var(--rojo);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 16px;
  display: none;
}
.adm-err.show { display: block; }

/* ---- Admin layout ---- */
.adm-shell { display: none; }
.adm-shell.show { display: block; }

.adm-topbar {
  background: #fff;
  padding: 14px 28px;
  border-bottom: 1px solid var(--gris-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.adm-topbar h1 {
  margin: 0;
  font-size: 18px;
}
.adm-tabs {
  display: flex;
  gap: 4px;
  background: #fff;
  padding: 0 28px;
  border-bottom: 1px solid var(--gris-100);
}
.adm-tab {
  padding: 12px 18px;
  cursor: pointer;
  font-size: 14px;
  color: var(--gris-500);
  border-bottom: 3px solid transparent;
  font-weight: 500;
}
.adm-tab:hover { color: var(--gris-700); }
.adm-tab.active {
  color: var(--azul);
  border-bottom-color: var(--azul);
  font-weight: 600;
}

.adm-content { padding: 28px; max-width: 1400px; margin: 0 auto; }

.adm-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.adm-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.adm-card-head h2 {
  margin: 0;
  font-size: 16px;
}

.adm-btn {
  background: var(--azul);
  color: #fff;
  border: 0;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.adm-btn:hover { background: var(--azul-dark); }
.adm-btn-sm { padding: 5px 10px; font-size: 12px; }
.adm-btn-ghost {
  background: transparent;
  color: var(--gris-700);
  border: 1px solid var(--gris-300);
}
.adm-btn-ghost:hover { background: var(--gris-100); }
.adm-btn-danger {
  background: var(--rojo);
}
.adm-btn-danger:hover { background: #c0392b; }

/* Tablas admin */
.adm-table {
  width: 100%;
  border-collapse: collapse;
}
.adm-table th {
  text-align: left;
  font-size: 12px;
  color: var(--gris-500);
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 2px solid var(--gris-100);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.adm-table td {
  padding: 12px;
  border-bottom: 1px solid var(--gris-100);
  font-size: 14px;
  vertical-align: middle;
}
.adm-table tr:hover td { background: var(--gris-50); }
.adm-table .actions { display: flex; gap: 6px; }

.adm-thumb {
  width: 100px;
  aspect-ratio: 16/9;
  border-radius: 6px;
  background: #000;
  overflow: hidden;
  flex-shrink: 0;
}
.adm-thumb img { width: 100%; height: 100%; object-fit: cover; }

.adm-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}
.adm-pill.on { background: #d4edda; color: #155724; }
.adm-pill.off { background: #f8d7da; color: #721c24; }

/* Boton de estrella para toggle rapido en las tablas */
.adm-star {
  background: transparent;
  border: 1.5px solid var(--gris-300);
  color: var(--gris-300);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  font-family: inherit;
  line-height: 1;
}
.adm-star:hover {
  border-color: #F39C12;
  color: #F39C12;
  transform: scale(1.08);
}
.adm-star.on {
  background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%);
  border-color: #E67E22;
  color: #fff;
  box-shadow: 0 2px 8px rgba(243,156,18,.35);
}
.adm-star.on:hover {
  transform: scale(1.08);
  box-shadow: 0 3px 12px rgba(243,156,18,.5);
}
.adm-star:disabled {
  opacity: .5;
  cursor: wait;
}

/* Checkbox grande en formularios admin (para destacar) */
.adm-checkbox-row {
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px solid var(--gris-100);
}
.adm-check {
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fffaf0;
  border: 2px solid #ffe5b4;
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
  font-weight: 400 !important;
  margin: 0 !important;
}
.adm-check:hover {
  background: #fff3e0;
  border-color: #F39C12;
}
.adm-check input[type=checkbox] {
  width: 22px;
  height: 22px;
  margin: 0;
  cursor: pointer;
  accent-color: #F39C12;
  flex-shrink: 0;
}
.adm-check .star {
  font-size: 28px;
  color: #F39C12;
  flex-shrink: 0;
  line-height: 1;
}
.adm-check input:checked ~ .star { color: #E67E22; }
.adm-check strong {
  display: block;
  color: var(--gris-900);
  font-size: 14px;
  margin-bottom: 2px;
}
.adm-check small {
  display: block;
  color: var(--gris-500);
  font-size: 12px;
  font-weight: 400;
}

/* Form modal admin */
.adm-form-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.7);
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.adm-form-modal.open { display: flex; }
.adm-form {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.adm-form h2 { margin: 0 0 18px; font-size: 19px; }
.adm-row { margin-bottom: 14px; }
.adm-row label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--gris-700);
}
.adm-row input, .adm-row select, .adm-row textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--gris-300);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.adm-row textarea { min-height: 120px; resize: vertical; }
.adm-row input:focus, .adm-row select:focus, .adm-row textarea:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(74,144,226,.15);
}
.adm-row .hint {
  font-size: 12px;
  color: var(--gris-500);
  margin-top: 4px;
}
.adm-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--gris-100);
}
.adm-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Stats */
.adm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.adm-stat {
  background: #fff;
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.adm-stat .num { font-size: 28px; font-weight: 700; color: var(--azul); }
.adm-stat .lbl { font-size: 12px; color: var(--gris-500); text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }

.adm-toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--gris-900);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: all .2s;
  pointer-events: none;
}
.adm-toast.show { opacity: 1; transform: translateY(0); }
.adm-toast.error { background: var(--rojo); }
.adm-toast.ok { background: var(--verde); }

/* ============================================================
   FEEDBACK: te sirvio esta respuesta?  (👍/👎 + textarea)
   ============================================================ */
.ca-fb {
  margin: 14px 0 6px;
  padding: 10px 12px;
  background: #f7f9fc;
  border: 1px solid #e6ecf3;
  border-radius: 10px;
  font-size: 13.5px;
}
.ca-fb-ask {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ca-fb-label {
  color: #4a5568;
  font-weight: 500;
  margin-right: auto;
}
.ca-fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #d1d9e2;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #4a5568;
  transition: all .15s;
}
.ca-fb-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.ca-fb-btn.ca-fb-yes:hover:not(:disabled) { border-color: #27AE60; color: #27AE60; }
.ca-fb-btn.ca-fb-no:hover:not(:disabled)  { border-color: #E74C3C; color: #E74C3C; }
.ca-fb-btn.voted.ca-fb-yes { background: #27AE60; border-color: #27AE60; color: #fff; }
.ca-fb-btn.voted.ca-fb-no  { background: #E74C3C; border-color: #E74C3C; color: #fff; }
.ca-fb-btn:disabled { opacity: .7; cursor: default; }

/* Fix: el atributo hidden HTML tiene que ganar sobre display: flex */
.ca-fb-ask[hidden],
.ca-fb-comment[hidden],
.ca-fb-thanks[hidden] { display: none !important; }

.ca-fb-comment {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ca-fb-comment label {
  font-size: 12.5px;
  color: #4a5568;
  font-weight: 500;
}
.ca-fb-comment textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d9e2;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  min-height: 44px;
  background: #fff;
}
.ca-fb-comment textarea:focus {
  outline: none;
  border-color: #4A90E2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, .15);
}
.ca-fb-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.ca-fb-skip, .ca-fb-send {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s;
}
.ca-fb-skip {
  background: transparent;
  color: #64748b;
  border-color: #d1d9e2;
}
.ca-fb-skip:hover { background: #edf2f7; }
.ca-fb-send {
  background: #4A90E2;
  color: #fff;
}
.ca-fb-send:hover { background: #3a7fcc; }
.ca-fb-skip:disabled, .ca-fb-send:disabled { opacity: .5; cursor: default; }

.ca-fb-thanks {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #ecfdf5;
  border-radius: 8px;
  color: #065f46;
  font-weight: 500;
  font-size: 13px;
}
.ca-fb-thanks svg { flex-shrink: 0; }

/* ============================================================
   ADMIN: DASHBOARD DE ESTADISTICAS
   ============================================================ */
.adm-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}
@media (max-width: 900px) { .adm-stats-row { grid-template-columns: 1fr; } }

/* Timeline: barras verticales por dia */
.adm-timeline {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 3px;
  align-items: end;
  height: 140px;
  padding: 6px 0;
}
.adm-timeline-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-height: 20px;
  cursor: default;
}
.adm-timeline-bar {
  width: 100%;
  background: linear-gradient(180deg, #4A90E2, #357ABD);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  transition: opacity .15s;
}
.adm-timeline-col:hover .adm-timeline-bar { opacity: .8; }
.adm-timeline-lbl {
  font-size: 8px;
  color: #94a3b8;
  margin-top: 3px;
  text-align: center;
  transform: rotate(-45deg);
  transform-origin: center top;
  white-space: nowrap;
}

/* Hora del dia (24 columnas) */
.adm-horas {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 2px;
  align-items: end;
  height: 130px;
  padding: 6px 0;
}
.adm-hora-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.adm-hora-bar {
  width: 100%;
  background: linear-gradient(180deg, #9B59B6, #7d3d9c);
  border-radius: 2px 2px 0 0;
  min-height: 2px;
}
.adm-hora-lbl { font-size: 10px; color: #94a3b8; margin-top: 3px; }

/* Barras horizontales para top FAQs/videos */
.adm-barras { display: flex; flex-direction: column; gap: 8px; }
.adm-barra-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 40px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.adm-barra-lbl {
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adm-barra-track {
  height: 20px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}
.adm-barra-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .3s;
}
.adm-barra-val {
  color: #64748b;
  font-weight: 600;
  text-align: right;
}

/* Catalogo compact */
.adm-catalog {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: center;
}
.adm-catalog > div {
  padding: 12px 6px;
  background: #f8fafc;
  border-radius: 8px;
}
.adm-catalog .n { font-size: 22px; font-weight: 700; color: #334155; }
.adm-catalog .l { font-size: 11px; color: #64748b; margin-top: 3px; text-transform: uppercase; letter-spacing: .5px; }

/* Comentarios recientes de feedback */
.adm-fb-comentarios { display: flex; flex-direction: column; gap: 10px; }
.adm-fb-item {
  padding: 10px 12px;
  background: #f8fafc;
  border-left: 3px solid #cbd5e1;
  border-radius: 6px;
}
.adm-fb-item.positivo { border-left-color: #27AE60; }
.adm-fb-item.negativo { border-left-color: #E74C3C; }
.adm-fb-cabeza {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}
.adm-fb-emoji { font-size: 15px; }
.adm-fb-titulo { color: #334155; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-fb-fecha { color: #94a3b8; font-size: 11px; }
.adm-fb-texto { color: #475569; font-size: 13.5px; line-height: 1.4; }

/* ============================================================
   RESPONSIVE: MOBILE (widgets nuevos)
   ============================================================ */

/* ---- FEEDBACK widget: en mobile los botones se acomodan mejor ---- */
@media (max-width: 480px) {
  .ca-fb {
    padding: 8px 10px;
    font-size: 13px;
  }
  .ca-fb-ask {
    gap: 6px;
  }
  .ca-fb-label {
    width: 100%;
    margin-bottom: 4px;
    font-size: 13px;
  }
  .ca-fb-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 13.5px;
  }
  .ca-fb-actions {
    flex-direction: column-reverse;
    gap: 6px;
  }
  .ca-fb-skip, .ca-fb-send {
    width: 100%;
    padding: 10px;
    font-size: 14px;
  }
}

/* ---- ADMIN DASHBOARD: mobile-friendly ---- */

/* KPI grid: cards ligeramente mas chicas en mobile (auto-fit ya lo hace pero forzamos min) */
@media (max-width: 600px) {
  .adm-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .adm-stat { padding: 12px; }
  .adm-stat .num { font-size: 22px; }
  .adm-stat .lbl { font-size: 10.5px; }
}

/* Timeline 30 dias: en mobile permitimos scroll horizontal para no reventar */
@media (max-width: 700px) {
  .adm-timeline {
    overflow-x: auto;
    padding-bottom: 20px;
  }
  .adm-timeline {
    grid-template-columns: repeat(30, 12px);
    gap: 2px;
    justify-content: start;
  }
  .adm-timeline-lbl {
    font-size: 7px;
  }
}

/* Hora pico 24 columnas: mas compacto en mobile */
@media (max-width: 500px) {
  .adm-horas {
    height: 100px;
    gap: 1px;
  }
  .adm-hora-lbl {
    font-size: 8.5px;
  }
}

/* Catalogo: 2 columnas en mobile (mejor que 4 muy apretadas) */
@media (max-width: 500px) {
  .adm-catalog {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Barras horizontales (top FAQs/videos): reorganizamos en mobile
   - texto arriba
   - barra + valor abajo */
@media (max-width: 600px) {
  .adm-barra-row {
    grid-template-columns: 1fr auto;
    gap: 4px 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
  }
  .adm-barra-lbl {
    grid-column: 1 / -1;
    font-size: 12.5px;
    white-space: normal;
    line-height: 1.3;
  }
  .adm-barra-track {
    height: 14px;
  }
  .adm-barra-val {
    font-size: 12px;
  }
}

/* Comentarios de feedback: fecha debajo del titulo en mobile */
@media (max-width: 500px) {
  .adm-fb-cabeza {
    flex-wrap: wrap;
  }
  .adm-fb-titulo {
    flex: 1 1 100%;
    order: 1;
    white-space: normal;
  }
  .adm-fb-emoji { order: 0; }
  .adm-fb-fecha {
    order: 2;
    flex: 1 1 100%;
    margin-top: 2px;
  }
}

/* Widget de novedades sidebar: en mobile el widget completo pasa a full width */
@media (max-width: 700px) {
  .ca-nov-side-item-titulo {
    font-size: 13px;
    -webkit-line-clamp: 3;
  }
  .ca-nov-side-item-meta {
    font-size: 11px;
  }
}

/* ============================================================
   ADMIN: fixes mobile header + tabs
   ============================================================ */
@media (max-width: 700px) {
  /* Topbar: apilar titulo y acciones */
  .adm-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }
  .adm-topbar h1 { font-size: 18px; margin: 0; }
  .adm-topbar > div {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .adm-topbar .adm-btn {
    padding: 6px 12px;
    font-size: 12.5px;
  }

  /* Tabs: scroll horizontal para que Novedades no se corte */
  .adm-tabs {
    padding: 0 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .adm-tabs::-webkit-scrollbar { display: none; }
  .adm-tab {
    padding: 12px 12px;
    font-size: 13px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* Content padding menor en mobile */
  .adm-content { padding: 16px; }
  .adm-card { padding: 14px; }
}

/* Fix: en mobile el boton cerrar del modal video quedaba fuera de pantalla */
@media (max-width: 700px) {
  .ca-modal-close {
    top: 8px !important;
    right: 8px !important;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,.6) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 22px;
    line-height: 1;
    padding: 0;
  }
}

/* ============================================================
   ADMIN: tablas con scroll horizontal en mobile
   ============================================================ */
@media (max-width: 700px) {
  /* Envuelve la tabla en scroll horizontal para que no rompa el layout */
  .adm-card:has(> .adm-table),
  .adm-card:has(.adm-table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .adm-table {
    min-width: 560px;
    font-size: 13px;
  }
  .adm-table th, .adm-table td {
    padding: 8px 10px;
  }
  .adm-thumb { width: 70px; }
  .adm-card-head {
    flex-wrap: wrap;
    gap: 8px;
  }
  .adm-card-head h2 {
    font-size: 16px;
  }
  .adm-btn { font-size: 13px; padding: 8px 14px; }

  /* Banner de anuncios: compact en mobile */
  .ca-banner-wrap {
    padding: 8px 12px !important;
    gap: 8px;
  }
  .ca-banner-titulo { font-size: 13px; }
  .ca-banner-texto  { font-size: 12px; }
}

/* Fallback para browsers sin :has() (mas viejos): siempre overflow-x auto en tablas */
@media (max-width: 700px) {
  .adm-pane > .adm-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
