/* Estilo A para las páginas de empresa (1-oct-2026).
   Se carga después del <style> de cada página: rediseña los FAQ (pregunta abierta resaltada, flecha en círculo,
   respuestas justificadas). */
:root {
  --a-navy: #1e3a6e;
  --a-navy2: #2b5ea7;
  --a-blue-soft: #eaf1fb;
  --a-blue-softer: #f5f9ff;
  --a-blue-line: #c9daf2;
  --a-text2: #475569;
  --a-border: #e2e8f0;
  --a-shadow: 0 1px 2px rgba(15, 40, 71, .05), 0 10px 28px rgba(15, 40, 71, .06);
}

/* 1. Cabeceras y franjas: vuelven al azul navy del resto del sitio (decisión del dueño,
   1-oct-2026, «todo navy»). Aquí solo quedan las tarjetas claras y los FAQ. */

/* 2. Preguntas frecuentes */
:root body .faq-item {
  background: #fff;
  border: 1px solid var(--a-border);
  border-radius: 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(15, 40, 71, .04);
  transition: background-color .2s, border-color .2s, box-shadow .2s;
  overflow: hidden;
}
:root body .faq-item:hover { border-color: var(--a-blue-line); }
:root body .faq-item[open] {
  background: var(--a-blue-softer);
  border-color: var(--a-blue-line);
  box-shadow: inset 3px 0 0 var(--a-navy), 0 1px 2px rgba(15, 40, 71, .04);
}
:root body .faq-item summary {
  padding: 18px 18px 18px 22px;
  color: var(--a-navy);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
  cursor: pointer;
}
:root body .faq-item summary::-webkit-details-marker { display: none; }
:root body .faq-item summary::after {
  content: "";
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 0;
  background: var(--a-blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a6e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat;
  transform: none;
  transition: transform .2s;
}
:root body .faq-item[open] summary::after { transform: rotate(180deg); }
:root body .faq-item summary:focus-visible { outline: 2px solid var(--a-navy2); outline-offset: -2px; border-radius: 14px; }
:root body .faq-item .answer {
  padding: 0 24px 20px 22px;
  color: var(--a-text2);
  font-size: 15.5px;
  line-height: 1.7;
  text-align: justify;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}
:root body .faq-item .answer strong { color: var(--a-navy); display: inline; font-size: inherit; }
:root body .faq-item .answer a { color: var(--a-navy2); font-weight: 600; }

/* 3. FAQ general: títulos de tema con ícono, buscador, índice y WhatsApp por tema */
:root body .faq-categoria { scroll-margin-top: 90px; }
:root body .faq-categoria h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 16px;
  color: var(--a-navy);
}
:root body .faq-categoria h2::before {
  content: "";
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--a-blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .8-1 1.4V14'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / 19px no-repeat;
}
:root body #faq-diagnostico h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='4' width='12' height='17' rx='2'/%3E%3Cpath d='M9 4V3h6v1M9 11l2 2 4-4M9 17h6'/%3E%3C/svg%3E"); }
:root body #faq-sunafil h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v6c0 4.5 3 7.5 7 9 4-1.5 7-4.5 7-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
:root body #faq-plan h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='17' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
:root body #faq-datos h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }

.faq-tools { display: grid; gap: 14px; margin: 0 0 40px; }
.faq-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--a-blue-line);
  border-radius: 14px;
  padding: 0 16px;
  box-shadow: var(--a-shadow);
}
.faq-search:focus-within { border-color: var(--a-navy2); }
.faq-search svg { flex-shrink: 0; }
.faq-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 16px 0;
  font: inherit;
  font-size: 16px;
  color: #1e293b;
}
.faq-index { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-index a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--a-blue-soft);
  color: var(--a-navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.faq-index a:hover, .faq-index a:focus-visible { background: var(--a-navy); color: #fff; }
.faq-empty { margin: 0; color: var(--a-text2); }
.faq-empty a, .faq-cta a { color: var(--a-navy2); font-weight: 700; }
.faq-cta { margin: 6px 0 0; padding: 12px 16px; border-radius: 12px; background: #fff; border: 1px dashed var(--a-blue-line); color: var(--a-text2); font-size: 15px; }
.faq-section [hidden] { display: none !important; }

/* El menú lateral cerrado queda fuera de la pantalla y estiraba la página en el celular.
   clip recorta sin crear contenedor de scroll, así que sticky sigue funcionando (3-oct-2026) */
html, body { overflow-x: clip; }
