/* ============================================================
   DEMOS.CSS — Demos interactivas de ejemplos.html
   (recepcionista IA + CRM, análisis mensual, facturas)
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.demos-aviso {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 720px;
  margin: 0 auto 2rem;
  padding: 0.75rem 1rem;
  background: var(--bg-highlight);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.demos-aviso svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--cyan); margin-top: 1px; }

/* main.css pone overflow-x: hidden en html y body, y eso convierte a body en contenedor
   de scroll y rompe el sticky del menú. clip recorta igual sin ese efecto (solo en esta página) */
html, body { overflow-x: clip; }

/* ── Catálogo: menú lateral de servicios + panel ── */
.catalogo { padding: 1.5rem 0 4rem; }

.catalogo-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.catalogo-menu {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1rem 0.75rem;
  box-shadow: var(--shadow-md);
}

.catalogo-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }

.catalogo-leyenda {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: var(--text-subtle);
  padding: 0 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border);
}

.punto-vivo {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: punto-vivo 2s infinite;
}

@keyframes punto-vivo {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.catalogo-grupo {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin: 1rem 0.5rem 0.35rem;
}

.catalogo-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-align: left;
  font-family: var(--font);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.55rem 0.6rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.catalogo-item > svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--cyan); }
.catalogo-item-txt { flex: 1; min-width: 0; font-size: var(--text-sm); font-weight: 600; line-height: 1.3; color: var(--text-main); }
.catalogo-item:hover { background: var(--bg-secondary); }
.catalogo-item:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }

.catalogo-item[aria-current="true"] {
  background: var(--bg-highlight);
  border-color: var(--cyan-border);
}

.catalogo-item[aria-current="true"] .catalogo-item-txt { color: var(--cyan); font-weight: 700; }

.badge-vivo {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #166534;
  background: #dcfce7;
  border-radius: var(--radius-full);
  padding: 0.15rem 0.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.badge-vivo::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

/* El chatbot de dudas (z-index 9999) no debe quedar encima del modal de factura */
body:has(.demo-modal:not([hidden])) .chat-widget,
body:has(.wa-input:focus) .chat-widget { display: none; } /* ni encima del botón de enviar mientras se escribe en la demo */

/* La flecha de «siguiente» solo existe en móvil (menú en fila) */
.catalogo-siguiente { display: none; }

/* En el menú, «En vivo» se queda en el punto verde (la leyenda lo explica) */
.catalogo-item .badge-vivo { font-size: 0; padding: 0; background: none; }
.catalogo-item .badge-vivo::before { width: 8px; height: 8px; animation: punto-vivo 2s infinite; }

/* ── Panel de cada servicio (compacto: icono + nombre + chips; el porqué en desplegable) ── */
.servicio {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  animation: servicio-entra 0.3s ease;
}

.servicio[hidden] { display: none; }

@keyframes servicio-entra {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Cabecera + chips a la izquierda, cifra destacada a la derecha */
.servicio-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 0.9rem;
}

.servicio-cab { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }

.servicio-icono {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  color: #fff;
  box-shadow: var(--shadow-cyan);
}

.servicio-icono svg { width: 28px; height: 28px; }
.servicio-cab-txt { min-width: 0; }

.servicio-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.2rem; }

.servicio-cat {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
}

.servicio h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.15;
  color: var(--text-main);
}

.servicio-lema { font-size: var(--text-base); color: var(--text-muted); margin-top: 0.2rem; }

/* Ventajas como chips azules */
.servicio-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }

.servicio-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--cyan);
  background: var(--bg-highlight);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-full);
}

.servicio-chips svg { width: 16px; height: 16px; flex-shrink: 0; }

.servicio-dato {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  color: #fff;
  box-shadow: var(--shadow-cyan);
}

.servicio-dato strong { font-size: 2.1rem; line-height: 1; font-weight: 700; }
.servicio-dato span { font-size: var(--text-sm); line-height: 1.45; opacity: 0.92; }

/* Desplegable «¿Por qué importa?» */
.servicio-mas { margin-bottom: 1.25rem; }

.servicio-mas summary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-subtle);
  cursor: pointer;
  list-style: none;
}

.servicio-mas summary::-webkit-details-marker { display: none; }
.servicio-mas summary:hover { color: var(--cyan); }
.servicio-mas summary svg { width: 16px; height: 16px; transition: transform var(--transition); }
.servicio-mas[open] summary svg { transform: rotate(180deg); }

.servicio-mas[open] > :not(summary) { animation: servicio-entra 0.25s ease; }

.servicio-dolor {
  margin: 0.8rem 0;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--text-muted);
  border-left: 3px solid #f97316;
  padding-left: 0.8rem;
}

.servicio-ventajas { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.servicio-ventajas li { display: flex; align-items: flex-start; gap: 0.75rem; }

.servicio-ventajas li > svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  box-sizing: border-box;
  flex-shrink: 0;
  border-radius: 10px;
  color: var(--cyan);
  background: var(--cyan-glow);
}

.servicio-ventajas strong { display: block; font-size: var(--text-base); color: var(--text-main); }
.servicio-ventajas span { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.55; }

/* Columna derecha de la recepcionista: CRM + «¿Sonará a robot?» */
.demo-recep-lado { display: grid; gap: 1rem; min-width: 0; }

.servicio-robot {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-highlight);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-md);
}

.servicio-robot-icono {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--cyan);
  color: #fff;
}

.servicio-robot-icono svg { width: 18px; height: 18px; }
.servicio-robot strong { display: block; font-size: var(--text-base); color: var(--text-main); margin-bottom: 0.15rem; }
.servicio-robot p { font-size: var(--text-sm); line-height: 1.55; color: var(--text-muted); }

/* Zona de demo */
.servicio-prueba { border-top: 1px dashed var(--border-hover); padding-top: 1.25rem; }

.servicio-prueba-tit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.servicio-prueba-tit svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--cyan); }

.servicio-prueba .demos-aviso {
  max-width: none;
  margin: 0 0 0.9rem;
  padding: 0;
  background: none;
  border: none;
  font-size: var(--text-xs);
  color: var(--text-subtle);
}

.servicio-prueba .demos-aviso svg { width: 14px; height: 14px; }

.servicio-prueba--preview .example-mockup { min-height: 220px; padding: 1.5rem; margin-bottom: 0.75rem; }

.servicio-prueba--preview .mockup-phone,
.servicio-prueba--preview .mockup-screen,
.servicio-prueba--preview .mockup-calendar,
.servicio-prueba--preview .mockup-pipeline { width: 100%; max-width: 380px; }

.servicio-preview-nota { display: flex; align-items: center; gap: 0.4rem; font-size: var(--text-xs); color: var(--text-subtle); }
.servicio-preview-nota svg { width: 14px; height: 14px; flex-shrink: 0; }

.servicio-cta {
  display: inline-flex;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--cyan);
}

.servicio-cta:hover { text-decoration: underline; }

/* Vista previa del panel de control */
.mini-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 480px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.mini-kpi { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.85rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); }
.mini-kpi small { font-size: var(--text-xs); color: var(--text-subtle); }
.mini-kpi strong { font-size: 1.5rem; line-height: 1.1; color: var(--text-main); }
.mini-kpi-delta { font-size: var(--text-xs); color: var(--text-subtle); }
.mini-kpi-delta--up, .mini-kpi-delta--down { color: #16a34a; font-weight: 700; }

/* ── Recepcionista + CRM ── */
.demo-recep-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

/* ══════════════════════════════
   CHAT TIPO WHATSAPP (Android, tema claro) — recepcionista y anti-ausencias
══════════════════════════════ */
.wa {
  display: flex;
  flex-direction: column;
  height: 600px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #efeae2;
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.5rem 0.55rem 0.35rem;
  background: #008069;
  color: #fff;
}
.wa-header-icono { display: inline-flex; padding: 0.3rem; opacity: 0.95; }
.wa-header-icono svg { width: 20px; height: 20px; }
.wa-header-acciones { display: flex; gap: 0.1rem; margin-left: auto; flex-shrink: 0; }

.wa-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dfe5e7;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.wa-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.wa-header-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; margin-left: 0.3rem; }
.wa-header-txt strong { font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-header-txt span { font-size: 0.8rem; opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wa-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.6rem 0.9rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background-color: #efeae2;
  background-image: url("../Imágenes/whatsapp-fondo.svg");
  background-size: 360px 360px;
}

.wa-fecha {
  align-self: center;
  margin: 0.3rem 0 0.5rem;
  padding: 0.3rem 0.7rem;
  background: #fff;
  color: #54656f;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: 7px;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  text-transform: uppercase;
}

.wa-msg {
  position: relative;
  max-width: 82%;
  padding: 0.35rem 0.5rem 0.4rem 0.55rem;
  border-radius: 7.5px;
  font-size: 0.9rem;
  line-height: 1.38;
  color: #111b21;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  white-space: pre-wrap;
  word-wrap: break-word;
}
.wa-msg--in { align-self: flex-start; background: #fff; }
.wa-msg--out { align-self: flex-end; background: #d9fdd3; }
/* Piquito solo en el primer mensaje de cada grupo, como en WhatsApp */
.wa-msg--cola { margin-top: 0.45rem; }
.wa-msg--in.wa-msg--cola { border-top-left-radius: 0; }
.wa-msg--out.wa-msg--cola { border-top-right-radius: 0; }
.wa-msg--cola::before {
  content: '';
  position: absolute;
  top: 0;
  width: 8px;
  height: 13px;
}
.wa-msg--in.wa-msg--cola::before { left: -8px; background: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.wa-msg--out.wa-msg--cola::before { right: -8px; background: #d9fdd3; clip-path: polygon(0 0, 100% 0, 0 100%); }

/* Hora y checks abajo a la derecha, dentro de la burbuja */
.wa-meta {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0.45rem 0 -0.3rem 0.6rem;
  font-size: 0.68rem;
  color: #667781;
  white-space: nowrap;
  line-height: 1;
}
.wa-check { width: 16px; height: 11px; color: #8696a0; }
.wa-msg--leido .wa-check { color: #53bdeb; }

.wa-msg--sistema {
  align-self: center;
  max-width: 90%;
  margin: 0.4rem 0;
  background: #ffeecd;
  color: #54656f;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.4;
}

.wa-typing {
  align-self: flex-start;
  margin-top: 0.45rem;
  background: #fff;
  border-radius: 0 7.5px 7.5px 7.5px;
  padding: 0.6rem 0.75rem;
  display: flex;
  gap: 4px;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}
.wa-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8696a0;
  animation: wa-typing 1.2s infinite ease-in-out;
}
.wa-typing span:nth-child(2) { animation-delay: 0.15s; }
.wa-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes wa-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.wa-footer {
  background: transparent;
  padding: 0.35rem 0.4rem 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.wa-contador { font-size: 0.7rem; color: #54656f; text-align: center; }

.wa-form { display: flex; align-items: flex-end; gap: 0.35rem; }
.wa-caja {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  background: #fff;
  border-radius: 24px;
  padding: 0 0.45rem;
  min-height: 46px;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  color: #54656f;
}
.wa-caja-icono { display: inline-flex; padding: 0.3rem; flex-shrink: 0; }
.wa-caja-icono svg { width: 21px; height: 21px; }
.wa-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.6rem 0.2rem;
  font: inherit;
  font-size: 0.95rem;
  color: #111b21;
}
.wa-input::placeholder { color: #8696a0; }
.wa-input:focus { outline: none; }
.wa-caja:focus-within { box-shadow: 0 0 0 2px #00a884; }

.wa-send {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #00a884;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.wa-send svg { width: 20px; height: 20px; }
.wa-send .wa-ico-enviar { display: none; }
.wa-send.wa-send--texto .wa-ico-enviar { display: block; }
.wa-send.wa-send--texto .wa-ico-mic { display: none; }
.wa-send:disabled, .wa-input:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Tabla tipo Airtable (CRM y facturas) ── */
.crm {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}

.crm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.crm-toolbar-titulo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: var(--text-sm); color: var(--text-main); }
.crm-toolbar-titulo svg { width: 16px; height: 16px; color: var(--cyan); }

.crm-refrescar {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--cyan);
  background: var(--cyan-glow);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.75rem;
  cursor: pointer;
}

.crm-refrescar svg { width: 13px; height: 13px; }

.crm-scroll { overflow-x: auto; max-height: 470px; overflow-y: auto; }

.crm-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  white-space: nowrap;
}

.crm-tabla th {
  position: sticky;
  top: 0;
  background: #f7f8fa;
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-subtle);
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--border);
}

.crm-tabla td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.crm-tabla tr:last-child td { border-bottom: none; }

.crm-tabla tr.crm-fila--nueva td {
  background: #e8f7ee;
  animation: crm-nueva 2.5s ease-out;
}

@keyframes crm-nueva {
  0% { background: #b8ecc9; }
  100% { background: #e8f7ee; }
}

.crm-vacio {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-subtle);
  font-size: var(--text-sm);
  white-space: normal;
}

.estado {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: #eef0f3;
  color: #4b5563;
}

.estado--pendiente { background: #fef3c7; color: #92400e; }
.estado--confirmada { background: #dbeafe; color: #1e40af; }
.estado--completada { background: #dcfce7; color: #166534; }
.estado--cancelada { background: #fee2e2; color: #991b1b; }
.estado--ausencia { background: #e0f2fe; color: #075985; }

.crm-nota {
  padding: 0.6rem 1rem;
  font-size: var(--text-xs);
  color: var(--text-subtle);
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.btn-factura {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font);
  font-size: var(--text-xs);
  font-weight: 700;
  color: #fff;
  background: var(--cyan);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-factura:hover { background: var(--cyan-light); }
.btn-factura svg { width: 13px; height: 13px; }
.btn-factura:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Análisis ── */
.demo-accion {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.demo-accion small { color: var(--text-subtle); font-size: var(--text-xs); }

.demo-resultado {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  overflow: hidden;
}

.demo-resultado[hidden] { display: none; }

.demo-iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: none;
  background: #fff;
}

.demo-cargando {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 3rem 1rem;
  color: var(--text-subtle);
  font-size: var(--text-sm);
  text-align: center;
}

.demo-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--cyan-glow);
  border-top-color: var(--cyan);
  animation: demo-spin 0.9s linear infinite;
}

@keyframes demo-spin { to { transform: rotate(360deg); } }

.demo-error {
  padding: 1rem;
  font-size: var(--text-sm);
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
}

.demo-error a { color: inherit; font-weight: 700; text-decoration: underline; }

/* ── Modal de factura ── */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(17, 24, 39, 0.55);
}

.demo-modal[hidden] { display: none; }

.demo-modal-caja {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.demo-modal-caja--ancha { max-width: 860px; }

.demo-modal-cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.demo-modal-cab h3 { font-size: var(--text-lg); color: var(--text-main); }

.demo-modal-cerrar {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-modal-cerrar svg { width: 18px; height: 18px; }

.demo-modal-cuerpo { padding: 1.25rem; }

.demo-form { display: grid; gap: 0.9rem; }

.demo-form label {
  display: grid;
  gap: 0.3rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-main);
}

.demo-form input,
.demo-form select {
  font-family: var(--font);
  font-size: var(--text-base);
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text-main);
}

.demo-form input[readonly] { background: var(--bg-secondary); color: var(--text-muted); }
.demo-form input:focus, .demo-form select:focus { outline: 2px solid var(--cyan-border); border-color: var(--cyan); }

.demo-form-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

.demo-form .btn { justify-content: center; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .catalogo { padding-top: 1rem; }
  /* block y no grid: en una rejilla de una columna el sticky queda atrapado en su fila */
  .catalogo-grid { display: block; }

  /* El menú pasa a una fila de chips con scroll horizontal */
  .catalogo-menu {
    top: 60px;
    z-index: 20;
    margin-bottom: 1rem;
    max-height: none;
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    scrollbar-width: none;
  }

  /* Flecha fija en el borde derecho: indica que se puede deslizar y pasa al siguiente servicio */
  .catalogo-siguiente {
    display: flex;
    position: sticky;
    right: -0.5rem; /* el sticky respeta el padding del menú: lo pegamos al borde */
    align-self: stretch;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    width: 48px;
    margin: -0.5rem -0.5rem -0.5rem auto;
    padding: 0 0.5rem 0 0;
    border: none;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--bg-card) 45%);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    cursor: pointer;
  }

  .catalogo-siguiente svg {
    width: 30px;
    height: 30px;
    padding: 6px;
    box-sizing: border-box;
    border-radius: 50%;
    color: #fff;
    background: var(--cyan);
    box-shadow: var(--shadow-cyan);
  }

  .catalogo-menu::-webkit-scrollbar { display: none; }

  .catalogo-menu ul { display: contents; }
  .catalogo-grupo, .catalogo-leyenda { display: none; }
  .catalogo-item { width: auto; flex: 0 0 auto; white-space: nowrap; padding: 0.5rem 0.75rem; }
  .servicio-top { grid-template-columns: 1fr; }
  .demo-recep-grid { grid-template-columns: 1fr; }
  .wa { height: 500px; }
}

@media (max-width: 580px) {
  .catalogo-menu { top: 56px; margin-bottom: 0.75rem; padding: 0.4rem; }
  .catalogo-siguiente { right: -0.4rem; margin: -0.4rem -0.4rem -0.4rem auto; }
  .catalogo-item { padding: 0.45rem 0.7rem; }
  .servicio { padding: 1rem; border-radius: var(--radius-lg); }

  /* Cabecera: icono pequeño junto a categoría + nombre; el lema a todo el ancho */
  .servicio-cab {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 0.7rem;
    align-items: center;
    margin-bottom: 0.75rem;
  }
  .servicio-cab-txt { display: contents; }
  .servicio-icono { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 11px; }
  .servicio-icono svg { width: 20px; height: 20px; }
  .servicio-meta { grid-column: 2; margin-bottom: 0; }
  .servicio h2 { grid-column: 2; font-size: 1.3rem; }
  .servicio-lema { grid-column: 1 / -1; margin-top: 0.5rem; font-size: var(--text-sm); }

  .servicio-chips { gap: 0.35rem; }
  .servicio-chips li { font-size: var(--text-xs); padding: 0.35rem 0.6rem; }
  .servicio-chips svg { width: 14px; height: 14px; }

  /* Cifra en una franja: número a la izquierda, explicación a la derecha */
  .servicio-top { gap: 0.75rem; margin-bottom: 0.6rem; }
  .servicio-dato { flex-direction: row; align-items: center; gap: 0.85rem; padding: 0.75rem 1rem; }
  .servicio-dato strong { font-size: 1.55rem; white-space: nowrap; }
  .servicio-dato span { font-size: var(--text-xs); }

  .servicio-mas { margin-bottom: 0.6rem; }
  .servicio-prueba { padding-top: 0.7rem; }
  .servicio-prueba-tit { font-size: 0.8rem; margin-bottom: 0.3rem; }
  .servicio-prueba-tit svg { width: 15px; height: 15px; }
  .servicio-prueba .demos-aviso { margin-bottom: 0.6rem; }

  /* Móvil compacto: todo en una línea para que la demo asome en la primera pantalla */
  .servicio { padding: 0.85rem; }
  .servicio-cat, .servicio-lema { display: none; }
  /* icono · nombre · «En vivo» en una sola fila */
  .servicio-cab { grid-template-columns: 36px auto auto; justify-content: start; margin-bottom: 0.6rem; }
  .servicio-cab .servicio-icono { grid-row: 1; }
  .servicio-cab h2 { grid-column: 2; grid-row: 1; }
  .servicio-cab .servicio-meta { grid-column: 3; grid-row: 1; }
  .servicio-icono { width: 36px; height: 36px; border-radius: 10px; }
  .servicio-icono svg { width: 18px; height: 18px; }
  .servicio h2 { font-size: 1.15rem; }
  .servicio-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -0.85rem; padding: 0 0.85rem; }
  .servicio-chips::-webkit-scrollbar { display: none; }
  .servicio-chips li { flex: 0 0 auto; white-space: nowrap; padding: 0.3rem 0.6rem; }
  /* minmax(0, 1fr): sin esto la fila de chips desplazable ensancha la columna */
  .servicio-top { gap: 0.6rem; grid-template-columns: minmax(0, 1fr); }
  .servicio-top-izq { min-width: 0; }
  .servicio-dato { padding: 0.55rem 0.85rem; gap: 0.7rem; border-radius: var(--radius-md); }
  .servicio-dato strong { font-size: 1.3rem; }
  .servicio-mas summary { font-size: var(--text-xs); }
  .demo-form-fila { grid-template-columns: 1fr; }
  .wa { height: 420px; }
}

/* ══════════════════════════════
   FLECHAS DE "HAY MÁS" (js/demos.js → pistaScroll)
   Aparecen solo si el contenido está cortado y se esconden al llegar al final
══════════════════════════════ */
.scroll-pista { position: relative; min-width: 0; }
.scroll-pista--wa-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.scroll-pista--wa-body .wa-body { flex: 1; min-height: 0; }

.scroll-flecha {
  position: absolute;
  z-index: 3;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--cyan-border);
  background: #fff;
  color: var(--cyan);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.scroll-flecha svg { width: 16px; height: 16px; }
.scroll-flecha--visible { opacity: 1; pointer-events: auto; }
.scroll-flecha:hover { background: var(--cyan); color: #fff; }

.scroll-flecha--x { right: 6px; top: 50%; translate: 0 -50%; animation: pistaX 1.6s ease-in-out infinite; }
.scroll-flecha--y { bottom: 8px; left: 50%; translate: -50% 0; animation: pistaY 1.6s ease-in-out infinite; }
.scroll-flecha--y svg { rotate: 90deg; }
@keyframes pistaX { 50% { transform: translateX(3px); } }
@keyframes pistaY { 50% { transform: translateY(3px); } }

/* Variante "dentro" (menú lateral y modal): pegada al borde inferior visible del propio contenedor */
.scroll-flecha--dentro { position: sticky; bottom: 4px; left: auto; translate: none; margin: -30px auto 0; }

/* Velo degradado en el borde cortado para que se note que sigue */
.scroll-pista--crm-scroll::after,
.scroll-pista--servicio-chips::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 42px;
  pointer-events: none;
  background: linear-gradient(to right, rgba(255,255,255,0), #fff 85%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.scroll-pista--crm-scroll:has(.scroll-flecha--x.scroll-flecha--visible)::after,
.scroll-pista--servicio-chips:has(.scroll-flecha--visible)::after { opacity: 1; }
.scroll-pista--servicio-chips .scroll-flecha--x { width: 24px; height: 24px; right: 2px; }
.scroll-pista--servicio-chips .scroll-flecha svg { width: 13px; height: 13px; }

@media (max-width: 900px) {
  .catalogo-menu .scroll-flecha--dentro { display: none; } /* en móvil el menú ya tiene su flecha "siguiente" */
}
@media (max-width: 580px) {
  /* el sangrado negativo de las ventajas pasa al contenedor para que la flecha quede en el borde de la tarjeta */
  .scroll-pista--servicio-chips { margin: 0 -0.85rem; }
  .servicio-chips { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-flecha { animation: none; }
}

/* ══════════════════════════════
   CALENDARIO SEMANAL (recepcionista) — mismas citas que el CRM
══════════════════════════════ */
.demo-recep-lado .crm-scroll { max-height: 246px; }
.servicio-prueba > .agenda { margin-top: 1.5rem; }

.agenda {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}
.agenda-nav { display: flex; align-items: center; gap: 0.25rem; }
.agenda-semana { font-size: var(--text-xs); font-weight: 700; color: var(--text-main); min-width: 5.5rem; text-align: center; }
.agenda-btn {
  width: 26px; height: 26px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--cyan-border);
  background: var(--cyan-glow); color: var(--cyan); cursor: pointer;
}
.agenda-btn svg { width: 14px; height: 14px; }
.agenda-btn:hover { background: var(--cyan); color: #fff; }

.agenda-grid {
  display: grid;
  grid-template-columns: 38px repeat(5, minmax(0, 1fr));
  font-size: 11px;
}
.agenda-esquina, .agenda-dia {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.agenda-dia { padding: 0.35rem 0.25rem; text-align: center; font-weight: 700; color: var(--text-main); }
.agenda-hora {
  padding: 0 0.3rem; text-align: right; color: var(--text-subtle);
  border-top: 1px solid #f1f5f9; line-height: 24px; font-variant-numeric: tabular-nums;
}
.agenda-celda {
  min-height: 24px;
  border-top: 1px solid #f1f5f9;
  border-left: 1px solid #f1f5f9;
  display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; padding: 2px;
  overflow: hidden;
}
.agenda-mas {
  flex: 0 0 auto; padding: 1px 4px; border-radius: 4px;
  font-size: 10px; font-weight: 700; line-height: 16px;
  background: var(--bg-secondary); color: var(--text-muted); cursor: default;
}
.agenda-cita {
  flex: 1 1 auto; min-width: 0;
  padding: 1px 4px; border-radius: 4px;
  font-size: 10px; font-weight: 600; line-height: 16px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #fff;
}
.agenda-cita--marta, .agenda-punto--marta { background: #2563eb; }
.agenda-cita--javier, .agenda-punto--javier { background: #7c3aed; }
.agenda-cita--lucia, .agenda-punto--lucia { background: #0d9488; }
.agenda-cita--tuya, .agenda-punto--tuya { background: #16a34a; }
.agenda-cita--tuya { box-shadow: 0 0 0 2px #bbf7d0; animation: agendaTuya 1.6s ease-in-out 3; }
@keyframes agendaTuya { 50% { box-shadow: 0 0 0 4px #86efac; } }

.agenda-leyenda {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem;
  padding: 0.5rem 0.75rem; border-top: 1px solid var(--border);
  font-size: var(--text-xs); color: var(--text-muted);
}
.agenda-leyenda span { display: inline-flex; align-items: center; gap: 0.3rem; }
.agenda-punto { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

@media (prefers-reduced-motion: reduce) { .agenda-cita--tuya { animation: none; } }

/* ══════════════════════════════
   ANTI-AUSENCIAS — aviso 24 h antes (mismo chat tipo WhatsApp)
══════════════════════════════ */
.wa--corto { height: 440px; }
.aus-botones { display: flex; gap: 0.5rem; }
.aus-btn { flex: 1; min-width: 0; justify-content: center; padding: 0.6rem; font-size: var(--text-sm); white-space: nowrap; }
@media (max-width: 420px) { .aus-btn svg { display: none; } }
/* Vista previa del enlace de reseña dentro de la burbuja (como la de WhatsApp) */
.wa-enlace {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 0.45rem 0 0.15rem; padding: 0.5rem 0.6rem;
  background: #f0f2f5; border-left: 3px solid #25d366; border-radius: 6px;
}
.wa-enlace-ico {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: #4285f4; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 0 0 1px #dadce0;
}
.wa-enlace-txt { display: flex; flex-direction: column; line-height: 1.25; font-size: 0.8em; color: #54656f; }
.wa-enlace-txt strong { color: #111b21; font-size: 1.05em; }
.wa-enlace-estrellas { color: #fbbc04; letter-spacing: 1px; }
.wa-respuestas { display: flex; gap: 0.5rem; }
.wa-respuestas[hidden] { display: none; }
.wa-respuesta {
  flex: 1;
  padding: 0.55rem 0.5rem;
  border: 1px solid #25d366;
  border-radius: 999px;
  background: #fff;
  color: #075e54;
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
}
.wa-respuesta:hover { background: #e7fbe9; }
.wa-respuesta:focus-visible { outline: 2px solid #25d366; outline-offset: 2px; }
.servicio-robot[hidden] { display: none; }

/* Modal abierto: la página de detrás no se mueve (ni scroll ni burbujas animadas) */
html.modal-abierto, html.modal-abierto body { overflow: hidden; }
html.modal-abierto .bubble { animation-play-state: paused; }
.demo-modal { overscroll-behavior: contain; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.demo-modal-caja { overscroll-behavior: contain; }

/* Informes: selector mensual / anual */
.informe-tipos { display: inline-flex; gap: 0.25rem; padding: 0.25rem; margin-bottom: 1rem; background: var(--bg-secondary); border-radius: 999px; border: 1px solid var(--border); }
.informe-tipo { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 1rem; border: 0; border-radius: 999px; background: transparent; color: var(--text-muted); font: inherit; font-size: var(--text-sm); font-weight: 700; cursor: pointer; }
.informe-tipo svg { width: 16px; height: 16px; }
.informe-tipo[aria-checked="true"] { background: #fff; color: var(--cyan); box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12); }
.informe-tipo:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
#btn-analisis:disabled { opacity: 0.55; cursor: not-allowed; }

/* Las flechas fijas dentro de una caja con scroll (modal, menú) no rebotan: el rebote de 3 px
   hacía que el contenido sobrara a ratos y la barra de scroll apareciera y desapareciera en bucle */
.scroll-flecha--dentro { animation: none; }
.demo-modal-caja { scrollbar-gutter: stable; }
@media (max-width: 580px) {
  .wa-header-acciones .wa-header-icono:not(:last-child) { display: none; }
}

/* ── Gastos desde el correo: cliente de correo ficticio (estilo Outlook/Gmail) + registro de gastos ── */
.gastos-demo { display: grid; gap: 1.25rem; }
.correo {
  --c-borde: #e3e6ea; --c-gris: #5f6368; --c-tenue: #80868b; --c-azul: #0b57d0; --c-sel: #e8f0fe; --c-fondo: #f6f8fc;
  border: 1px solid var(--c-borde); border-radius: 14px; background: var(--c-fondo); overflow: hidden;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif; color: #1f1f1f;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15), 0 2px 8px rgba(60, 64, 67, 0.08);
}
.correo svg { width: 18px; height: 18px; }

/* Barra superior */
.correo-top { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.9rem; background: var(--c-fondo); }
.correo-top-ico { display: inline-flex; color: var(--c-gris); padding: 0.35rem; border-radius: 50%; }
.correo-logo { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 1.15rem; color: var(--c-gris); margin-right: 0.4rem; white-space: nowrap; }
.correo-logo-ico { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #1a73e8, #4f8ef7); color: #fff; }
.correo-logo-ico svg { width: 17px; height: 17px; }
.correo-buscar { flex: 1; display: flex; align-items: center; gap: 0.6rem; min-width: 0; padding: 0.55rem 1rem; background: #e9eef6; border-radius: 999px; color: var(--c-gris); font-size: 0.9rem; }
.correo-buscar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.correo-yo { flex: 0 0 32px; height: 32px; border-radius: 50%; background: #0f9d58; color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }

/* Cuerpo: lista + panel de lectura */
.correo-cuerpo { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 0.5rem; padding: 0 0.5rem 0.5rem; height: 560px; }
.correo-col { display: flex; flex-direction: column; min-height: 0; background: #fff; border-radius: 12px; overflow: hidden; }
.correo-carpeta { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0.9rem 0.4rem; font-size: 0.95rem; }
.correo-carpeta-iconos { display: inline-flex; gap: 0.7rem; color: var(--c-gris); }
.correo-carpeta-iconos svg { width: 16px; height: 16px; }
.correo-pestanas { display: flex; border-bottom: 1px solid var(--c-borde); }
.correo-pestana { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.9rem; font-size: 0.82rem; color: var(--c-gris); border-bottom: 3px solid transparent; }
.correo-pestana svg { width: 15px; height: 15px; }
.correo-pestana--activa { color: var(--c-azul); border-bottom-color: var(--c-azul); font-weight: 600; }
.correo-lista { position: relative; list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }

/* Fila de email */
.correo-item { position: relative; border-bottom: 1px solid #f1f3f4; transition: background 0.3s; }
.correo-item-btn { display: flex; align-items: flex-start; gap: 0.65rem; width: 100%; padding: 0.65rem 0.8rem 0.65rem 0.9rem; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; color: var(--c-gris); }
.correo-item-btn:hover { background: #f5f7fa; }
.correo-item-btn:focus-visible { outline: 2px solid var(--c-azul); outline-offset: -2px; }
.correo-item--nuevo::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c-azul); }
.correo-item--abierto, .correo-item--abierto .correo-item-btn:hover { background: var(--c-sel); }
.correo-item--leyendo { background: #fef7e0; }
.correo-item--ignorado { opacity: 0.55; }
.correo-avatar { flex: 0 0 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.correo-avatar--grande { flex-basis: 40px; height: 40px; font-size: 1rem; }
.correo-item-txt { flex: 1; min-width: 0; display: grid; gap: 1px; font-size: 0.8rem; }
.correo-item-fila { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.correo-de { font-size: 0.88rem; font-weight: 400; color: #1f1f1f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.correo-cuando { font-size: 0.75rem; color: var(--c-tenue); white-space: nowrap; }
.correo-asunto { color: #1f1f1f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.correo-item--nuevo .correo-de, .correo-item--nuevo .correo-asunto { font-weight: 700; }
.correo-item--nuevo .correo-cuando { color: var(--c-azul); font-weight: 700; }
.correo-resumen { color: var(--c-tenue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.correo-item-pie { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; margin-top: 0.3rem; min-height: 24px; }
.correo-adjunto { display: inline-flex; align-items: center; gap: 0.35rem; max-width: 70%; padding: 0.15rem 0.6rem 0.15rem 0.3rem; border: 1px solid #dadce0; border-radius: 999px; background: #fff; color: #3c4043; font-size: 0.72rem; }
.correo-adjunto-nombre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.correo-adjunto-pdf { flex: 0 0 auto; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.02em; color: #fff; background: #d93025; border-radius: 3px; padding: 0.05rem 0.25rem; }
.correo-marca { flex: 0 0 auto; display: inline-flex; }
.correo-spinner { width: 16px; height: 16px; border-width: 2px; }
.correo-etq { display: inline-flex; align-items: center; font-size: 0.7rem; font-weight: 600; padding: 0.1rem 0.45rem; border-radius: 4px; background: #ceead6; color: #0d652d; white-space: nowrap; }
.correo-etq::before { content: '✓'; margin-right: 0.25rem; }
.correo-etq--no { background: #e8eaed; color: #5f6368; }
.correo-etq--no::before { content: none; }

/* Panel de lectura */
.correo-vista { position: relative; background: #fff; border-radius: 12px; padding: 1.1rem 1.3rem; overflow-y: auto; min-width: 0; }
.correo-vista-asunto { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.correo-vista-asunto h4 { margin: 0; font-size: 1.2rem; font-weight: 400; color: #1f1f1f; font-family: inherit; }
.correo-chip-carpeta { font-size: 0.7rem; padding: 0.1rem 0.4rem; border-radius: 4px; background: #e8eaed; color: #5f6368; }
.correo-remite { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.correo-remite-txt { flex: 1; min-width: 0; display: grid; font-size: 0.85rem; }
.correo-remite-txt strong { color: #1f1f1f; }
.correo-dir { color: var(--c-gris); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.correo-para { color: var(--c-gris); font-size: 0.78rem; }
.correo-remite-der { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--c-gris); font-size: 0.75rem; white-space: nowrap; }
.correo-remite-der svg { width: 16px; height: 16px; }
.correo-texto { font-size: 0.88rem; color: #222; line-height: 1.55; }
.correo-texto p { margin: 0 0 0.65rem; white-space: pre-line; }
.correo-boletin { border: 1px solid var(--c-borde); border-radius: 10px; overflow: hidden; font-size: 0.85rem; color: #333; }
.correo-boletin-cab { background: #c026d3; color: #fff; font-weight: 700; padding: 0.9rem 1rem; }
.correo-boletin p { margin: 0.8rem 1rem; }
.correo-boletin-pie { font-size: 0.72rem; color: var(--c-tenue); }
.correo-adjuntos { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid #f1f3f4; }
.correo-adjuntos-tit { display: block; font-size: 0.78rem; color: var(--c-gris); margin-bottom: 0.6rem; }

/* Adjunto: la factura dibujada como un documento */
.adjunto { width: min(100%, 340px); border: 1px solid #dadce0; border-radius: 8px; overflow: hidden; background: #f1f3f4; }
.adjunto-pie { display: flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.65rem; background: #fff; border-top: 1px solid #dadce0; font-size: 0.78rem; color: #3c4043; }
.adjunto-nombre { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.adjunto-kb { color: var(--c-tenue); white-space: nowrap; }
.factura-doc { margin: 0.75rem 0.75rem 0; padding: 0.8rem 0.85rem 0.7rem; background: #fff; border-top: 4px solid var(--prov); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); font-size: 0.7rem; color: #333; }
.factura-doc-cab { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.6rem; }
.factura-doc-logo { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--prov); font-size: 0.78rem; min-width: 0; }
.factura-doc-logo strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.factura-doc-marca { flex: 0 0 20px; height: 20px; border-radius: 5px; background: var(--prov); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }
.factura-doc-tipo { font-weight: 800; letter-spacing: 0.12em; color: #9aa0a6; font-size: 0.68rem; }
.factura-doc-datos { display: grid; gap: 1px; padding-bottom: 0.45rem; border-bottom: 1px dashed #dadce0; }
.factura-doc-linea { padding: 0.45rem 0; border-bottom: 1px dashed #dadce0; }
.factura-doc-totales { display: grid; gap: 1px; padding-top: 0.45rem; }
.pdf-campo { display: flex; justify-content: space-between; gap: 0.75rem; padding: 2px 4px; border-radius: 3px; transition: background 0.25s, box-shadow 0.25s; }
.pdf-campo span { color: #80868b; white-space: nowrap; }
.pdf-campo strong { color: #202124; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.pdf-campo--total { margin-top: 2px; padding-top: 4px; border-top: 1px solid #202124; }
.pdf-campo--total strong { font-size: 0.82rem; }
.pdf-campo--leido { background: #fff3a3; box-shadow: inset 0 0 0 1px #f0d000; }

/* Complemento «Asistente de gastos» dentro del cliente de correo */
.correo-addon { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; padding: 0.7rem 1rem; background: #fff; border-top: 1px solid var(--c-borde); }
.correo-addon-tit { display: inline-flex; align-items: center; gap: 0.6rem; min-width: 0; }
.correo-addon-tit > span:last-child { display: grid; line-height: 1.25; }
.correo-addon-tit strong { font-size: 0.9rem; color: #1f1f1f; }
.correo-addon-tit small { font-size: 0.72rem; color: var(--c-tenue); }
.correo-addon-ico { flex: 0 0 34px; height: 34px; border-radius: 10px; background: var(--cyan-glow); color: var(--cyan); display: flex; align-items: center; justify-content: center; }
#btn-gastos:disabled { opacity: 0.7; cursor: progress; }

/* Registro de gastos */
.gasto-cat { display: inline-block; font-size: var(--text-xs); font-weight: 700; padding: 0.15rem 0.55rem; border-radius: var(--radius-full); background: #eef0f3; color: #4b5563; }
.gasto-cat--suministros { background: #dbeafe; color: #1e40af; }
.gasto-cat--software { background: #ede9fe; color: #5b21b6; }
.gasto-cat--seguros { background: #fef3c7; color: #92400e; }
.gasto-cat--material { background: #dcfce7; color: #166534; }
.crm-tabla td.gasto-concepto { white-space: normal; min-width: 170px; }
.gasto-pdf { display: inline-flex; color: #d93025; }
.gasto-pdf svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .correo-cuerpo { grid-template-columns: minmax(0, 1fr); height: auto; }
  .correo-lista { max-height: 340px; }
  .correo-vista { max-height: 520px; }
}
@media (max-width: 580px) {
  .correo-logo { font-size: 0; margin-right: 0; gap: 0; }
  .correo-top-ico--extra { display: none; }
  .correo-vista { padding: 0.9rem; }
  .correo-remite-der .correo-fecha-larga { display: none; }
  .correo-addon .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .correo-item, .pdf-campo { transition: none; }
}


/* ══════════════════════════════
   CIERRE TRIMESTRAL — borrador para la gestoría (mismo cliente de correo que Gastos) + carpeta de Drive
══════════════════════════════ */
.correo-vacio { padding: 2rem 1rem; text-align: center; color: var(--c-tenue); font-size: 0.85rem; }
.trim-espera { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.3rem; color: var(--c-gris); font-size: 0.88rem; padding: 1rem; }
.trim-espera svg { width: 40px; height: 40px; color: #c4c7c5; margin-bottom: 0.4rem; }
.trim-espera p { margin: 0; max-width: 34ch; }
.trim-pasos-tit { margin: 0 0 0.9rem; font-size: 1.05rem; font-weight: 500; color: #1f1f1f; font-family: inherit; }
.trim-pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.trim-paso { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; color: var(--c-gris); }
.trim-paso--hecho { color: #1f1f1f; }
.trim-ok { flex: 0 0 16px; height: 16px; border-radius: 50%; background: #0d652d; color: #fff; font-size: 0.65rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.trim-chip-borrador { background: #fce8e6; color: #c5221f; }
.correo-de.trim-borrador { color: #c5221f; font-weight: 600; }
.trim-campos { display: grid; gap: 0.15rem; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid #f1f3f4; font-size: 0.85rem; }
.trim-campos > div { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.trim-campos > div > span:first-child { color: var(--c-tenue); min-width: 3.4rem; }
.trim-enlace { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; border: 1px solid #dadce0; border-radius: 999px; color: var(--c-azul); font-weight: 500; }
.trim-enlace svg { width: 16px; height: 16px; }
.trim-adjuntos { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.trim-adjunto { max-width: 100%; }
.trim-csv { background: #188038; }
.trim-pie { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.1rem; font-size: 0.78rem; color: var(--c-tenue); }
.trim-enviar { padding: 0.5rem 1.3rem; border-radius: 999px; background: var(--c-azul); color: #fff; font-weight: 600; font-size: 0.85rem; }
.drive-nombre { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.crm-tabla tr.trim-leida td { background: #fff3a3; transition: background 0.2s; }

/* ══════════════════════════════
   CONSENTIMIENTOS — documento relleno + firma simulada
══════════════════════════════ */
.cons-menor { color: #6b7280; font-size: 0.85em; }
.cons-estado { display: inline-block; font-size: var(--text-xs); font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.cons-estado--sin-enviar { background: #eef0f3; color: #4b5563; }
.cons-estado--enviado { background: #fef3c7; color: #92400e; }
.cons-estado--firmado { background: #dcfce7; color: #166534; }
.cons-doc { --prov: #2563eb; background: #fff; border: 1px solid #e5e7eb; border-top: 4px solid var(--prov); border-radius: 6px; padding: 1.25rem 1.4rem; color: #333; font-size: 0.85rem; line-height: 1.55; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.cons-doc-cab { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.9rem; }
.cons-doc-cab .factura-doc-logo { font-size: 0.95rem; }
.cons-doc-cab .factura-doc-marca { flex-basis: 26px; height: 26px; font-size: 0.85rem; }
.cons-doc-ref { color: #9aa0a6; font-size: 0.72rem; letter-spacing: 0.04em; }
.cons-doc-tit { margin: 0 0 0.9rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.03em; color: #111827; text-align: center; }
.cons-doc section { margin: 0 0 0.7rem; padding: 0; min-height: 0; background: none; border: 0; }
.cons-doc h5 { margin: 0 0 0.2rem; font-size: 0.82rem; color: #111827; }
.cons-doc p { margin: 0; }
.cons-dato { background: #fff3a3; box-shadow: inset 0 0 0 1px #f0d000; border-radius: 3px; padding: 0 3px; font-weight: 600; color: #202124; }
.cons-doc p.cons-doc-vol { margin-top: 0.9rem; font-style: italic; color: #4b5563; }
.cons-firmas { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; }
.cons-firma { display: grid; gap: 0.1rem; padding-top: 0.4rem; border-top: 1px solid #9ca3af; font-size: 0.78rem; min-width: 0; }
.cons-firma small { color: #6b7280; }
.cons-firma-trazo { min-height: 2.2rem; display: flex; align-items: flex-end; font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive; font-size: 1.35rem; color: #1e3a8a; line-height: 1; overflow: hidden; white-space: nowrap; }
.cons-firma--hecha small { color: #166534; }
.cons-pie { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.cons-pie-nota { margin: 0; font-size: var(--text-xs); color: #6b7280; flex: 1 1 240px; }
.cons-pie-envio, .cons-pie-ok { margin: 0; display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem; }
.cons-pie-envio { color: #92400e; }
.cons-pie-ok { color: #166534; }
.cons-pie-envio svg, .cons-pie-ok svg { flex: 0 0 18px; width: 18px; height: 18px; }
@media (max-width: 580px) {
  .cons-doc { padding: 1rem; }
  .cons-firmas { grid-template-columns: 1fr; }
  .cons-pie .btn { width: 100%; justify-content: center; }
}

/* ── Marketing y web: se enseñan (caso real / ejemplo), no se prueban en vivo ── */
.badge-caso { display: inline-flex; align-items: center; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #6d28d9; background: #ede9fe; border-radius: var(--radius-full); padding: 0.15rem 0.5rem; flex-shrink: 0; }
.demo-nota-pie { margin: 0.75rem 0 0; font-size: var(--text-xs); color: var(--text-subtle); }
.demo-nota-pie a { color: var(--cyan); font-weight: 700; }

/* Páginas web: marco de navegador */
.navegador { border: 1px solid #d6dae0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08); }
.navegador-barra { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.8rem; background: #eef1f5; border-bottom: 1px solid #d6dae0; }
.navegador-puntos { display: inline-flex; gap: 6px; }
.navegador-puntos i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.navegador-puntos i:nth-child(2) { background: #febc2e; }
.navegador-puntos i:nth-child(3) { background: #28c840; }
.navegador-url { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.8rem; background: #fff; border-radius: 999px; font-size: var(--text-xs); color: #4b5563; overflow: hidden; white-space: nowrap; }
.navegador-url svg { width: 12px; height: 12px; color: #16a34a; flex: 0 0 auto; }
.navegador-modos { display: inline-flex; gap: 2px; padding: 2px; background: #dfe3e9; border-radius: 999px; }
.navegador-modo { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.7rem; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: var(--text-xs); font-weight: 700; color: #4b5563; cursor: pointer; }
.navegador-modo svg { width: 14px; height: 14px; }
.navegador-modo[aria-checked="true"] { background: #fff; color: var(--cyan); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.navegador-marco { position: relative; height: 540px; overflow: hidden; background: #f3f4f6; }
.navegador-marco iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #fff; }
.navegador-marco--movil iframe { border-left: 1px solid #d6dae0; border-right: 1px solid #d6dae0; }

/* Auditoría AEO */
.aeo { border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.aeo-entrada { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1rem; background: var(--bg-secondary); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.aeo-url { flex: 1; min-width: 200px; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; background: #fff; border: 1px solid var(--border); border-radius: 999px; font-size: var(--text-sm); color: var(--text-main); }
.aeo-url svg { width: 16px; height: 16px; color: var(--text-subtle); }
#btn-aeo:disabled { opacity: 0.7; cursor: progress; }
.aeo-panel { padding: 1.1rem 1.2rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 1.5rem; }
.aeo-panel[hidden] { display: none; }
.aeo-nota { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; }
.aeo-anillo { --c: #9ca3af; flex: 0 0 92px; height: 92px; border-radius: 50%; display: flex; align-items: baseline; justify-content: center; padding-top: 30px; background: radial-gradient(closest-side, #fff 78%, transparent 79% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), #e5e7eb 0); }
.aeo-anillo strong { font-size: 1.7rem; color: var(--text-main); line-height: 1; }
.aeo-anillo span { font-size: var(--text-xs); color: var(--text-subtle); }
.aeo-nota-txt { display: grid; gap: 2px; }
.aeo-nota-txt strong { font-size: 1.05rem; color: var(--text-main); }
.aeo-nota-txt span { font-size: var(--text-sm); color: var(--text-muted); }
.aeo-ejes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; align-content: start; }
.aeo-eje { --c: #9ca3af; display: grid; grid-template-columns: minmax(0, 1fr) 28px; grid-template-areas: "n num" "b b"; gap: 3px 0.5rem; font-size: var(--text-xs); }
.aeo-eje-n { grid-area: n; color: var(--text-muted); font-weight: 600; }
.aeo-eje-num { grid-area: num; text-align: right; font-weight: 800; color: var(--text-main); }
.aeo-barra { grid-area: b; height: 7px; border-radius: 99px; background: #eef0f3; overflow: hidden; }
.aeo-barra i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--c); transition: width 0.7s cubic-bezier(.2,.8,.2,1), background 0.4s; }
.aeo--ok { --c: #16a34a; }
.aeo--bien { --c: #2563eb; }
.aeo--regular { --c: #f59e0b; }
.aeo--mal { --c: #dc2626; }
.aeo-hall-tit { margin: 0 0 0.5rem; font-size: var(--text-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-subtle); }
.aeo-hallazgos ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.aeo-hall { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 0.5rem; align-items: start; padding: 0.5rem 0.6rem; border: 1px solid var(--border); border-radius: 8px; font-size: var(--text-xs); transition: background 0.3s, border-color 0.3s; }
.aeo-hall-t { color: var(--text-main); font-weight: 600; }
.aeo-hall-res { grid-column: 2; color: var(--text-subtle); font-weight: 700; }
.aeo-hall-res:empty { display: none; }
.aeo-hall--ok { background: #f0fdf4; border-color: #bbf7d0; }
.aeo-hall--ok .aeo-hall-t { text-decoration: line-through; color: var(--text-subtle); }
.aeo-hall--ok .aeo-hall-res { color: #166534; }
.aeo-hall--pend .aeo-hall-res { color: #92400e; }
.aeo-sev { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; padding: 0.1rem 0.4rem; border-radius: 4px; }
.aeo-sev--critico { background: #fee2e2; color: #991b1b; }
.aeo-sev--alto { background: #ffedd5; color: #9a3412; }
.aeo-sev--medio { background: #fef3c7; color: #92400e; }
.aeo-sev--bajo { background: #eef0f3; color: #4b5563; }

/* LinkedIn: post con aspecto real */
.li-tipos { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.li-tipo { padding: 0.4rem 0.9rem; border: 1px solid #c4c9d0; border-radius: 999px; background: #fff; font: inherit; font-size: var(--text-sm); font-weight: 600; color: #404040; cursor: pointer; }
.li-tipo[aria-selected="true"] { background: #01754f; border-color: #01754f; color: #fff; }
.li-feed { max-width: 560px; }
.li-post { background: #fff; border: 1px solid #dfdedb; border-radius: 10px; font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: rgba(0, 0, 0, 0.9); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.li-cab { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.8rem 1rem 0.4rem; }
.li-avatar { flex: 0 0 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #0f766e, #14b8a6); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.li-autor { flex: 1; min-width: 0; display: grid; font-size: 0.75rem; color: rgba(0, 0, 0, 0.6); line-height: 1.35; }
.li-autor strong { font-size: 0.875rem; color: rgba(0, 0, 0, 0.9); }
.li-cuando { display: inline-flex; align-items: center; gap: 2px; }
.li-cuando svg { width: 12px; height: 12px; }
.li-seguir { font-size: 0.85rem; font-weight: 700; color: #0a66c2; white-space: nowrap; }
.li-texto { padding: 0.2rem 1rem 0; font-size: 0.875rem; line-height: 1.45; }
.li-texto p { margin: 0; }
.li-texto--corto { max-height: 4.4em; overflow: hidden; }
.li-hashtag { color: #0a66c2; font-weight: 600; }
.li-vermas { display: block; margin: 0 1rem 0 auto; padding: 0; border: 0; background: none; font: inherit; font-size: 0.875rem; color: rgba(0, 0, 0, 0.6); cursor: pointer; }
.li-vermas:hover { color: #0a66c2; text-decoration: underline; }
.li-acciones { display: flex; justify-content: space-around; margin-top: 0.6rem; padding: 0.3rem 0.5rem; border-top: 1px solid #e8e8e8; }
.li-acciones span { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.55rem 0.4rem; font-size: 0.8rem; font-weight: 600; color: rgba(0, 0, 0, 0.6); }
.li-acciones svg { width: 18px; height: 18px; }
.li-como { margin: 0.7rem 0 0; max-width: 560px; font-size: var(--text-xs); color: var(--text-subtle); }

/* Reels: antes y después + banco de ideas */
.reels { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.reel { margin: 0; width: 230px; display: grid; gap: 0.5rem; }
.reel figcaption { font-size: var(--text-xs); color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; }
.reel video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; background: #111; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18); }
.reel-etq { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; padding: 0.12rem 0.5rem; border-radius: 999px; background: #eef0f3; color: #4b5563; }
.reel-etq--despues { background: #dcfce7; color: #166534; }
.reels-flecha { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--cyan-glow); color: var(--cyan); }
.reels-flecha svg { width: 22px; height: 22px; }
.reels-hecho { list-style: none; margin: 1.1rem auto 0; padding: 0; max-width: 560px; display: grid; gap: 0.45rem; }
.reels-hecho li { display: flex; align-items: center; gap: 0.55rem; font-size: var(--text-sm); color: var(--text-muted); }
.reels-hecho svg { width: 16px; height: 16px; color: var(--cyan); flex: 0 0 auto; }
.reels-hecho strong { color: var(--text-main); }
.ideas { margin-top: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.ideas-cab { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; padding: 0.8rem 1rem; background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
.ideas-cab > span { display: grid; }
.ideas-cab small { font-size: var(--text-xs); color: var(--text-subtle); }
.ideas-lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; padding: 0.9rem 1rem; }
.ideas-lista:empty { display: none; }
.idea { display: grid; gap: 0.35rem; align-content: start; padding: 0.8rem; border-radius: 10px; border: 1px solid var(--border); border-top: 4px solid #2563eb; animation: servicio-entra 0.3s ease; }
.idea strong { font-size: var(--text-sm); color: var(--text-main); }
.idea-tipo { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; color: #2563eb; }
.idea-tipo svg { width: 13px; height: 13px; }
.idea-gancho { font-size: var(--text-xs); color: var(--text-muted); }
.idea--dolor { border-top-color: #e11d48; }
.idea--dolor .idea-tipo { color: #e11d48; }
.idea--caso { border-top-color: #7c3aed; }
.idea--caso .idea-tipo { color: #7c3aed; }
.idea--actualidad { border-top-color: #0891b2; }
.idea--actualidad .idea-tipo { color: #0891b2; }
#btn-ideas:disabled { opacity: 0.7; }

@media (max-width: 900px) {
  .aeo-panel { grid-template-columns: minmax(0, 1fr); }
  .ideas-lista { grid-template-columns: minmax(0, 1fr); }
  .navegador-marco { height: 460px; }
}
@media (max-width: 580px) {
  .navegador-modo span { display: none; }
  .reel { width: calc(50% - 0.5rem); min-width: 140px; }
  .reels { gap: 0.5rem; }
  .reels-flecha { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .aeo-barra i, .aeo-hall { transition: none; }
  .idea { animation: none; }
}
.cons-firmas--tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cons-firmas--tres .cons-firma-trazo { font-size: 1.15rem; }
@media (max-width: 700px) { .cons-firmas--tres { grid-template-columns: 1fr; } }

/* Reels: versión horizontal (vídeo explicativo 16:9) */
.reel--ancho { width: min(100%, 340px); }
.reel--ancho video { aspect-ratio: 16 / 9; border-radius: 10px; }
@media (max-width: 900px) {
  .reels--ancho { flex-direction: column; }
  .reels--ancho .reels-flecha { transform: rotate(90deg); }
  .reel--ancho { width: min(100%, 520px); }
}
@media (max-width: 580px) {
  .reels--ancho .reel--ancho { width: 100%; }
}