/* ===============================
   Predx — app.css
   =============================== */

/* --- FUENTE OPTOTYPES --- */
@font-face {
  font-family: 'Optotypes';
  src: url('fonts/Optician-Sans.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

html,
body {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {

  html,
  body {
    scroll-behavior: auto;
  }
}

.clinic-name {
  display: none;
}

/* --- CONTENEDOR GENERAL --- */
#predx-root {
  font-family: 'Montserrat', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Anclado arriba (no centrado vertical) — evita los huecos enormes que
     dejaba `justify-content: center` cuando un paso era largo y requería scroll. */
  justify-content: flex-start;
  padding: clamp(40px, 5vh, 70px) 20px 60px;
  min-height: 100vh;
  box-sizing: border-box;
  position: relative;
  transition: background-color 0.3s, color 0.3s;
}

input#calibration-slider {
  margin-bottom: 50px;
}

/* Contenedor de la zona de calibración */
#calibration-area {
  max-width: 600px;
  margin: 0 auto;
}

/* Contenedor de los controles (botones y slider) */
.calibration-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* El slider ahora ocupa el espacio flexible */
.calibration-controls input[type="range"] {
  width: 100%;
}

/* Botones de ajuste fino (-) y (+) */
.btn-adjust {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  /* Circulares */
  font-size: 1.8rem;
  font-weight: 600;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  /* Evita que se encojan */
  /* Heredar estilos de botón "Atrás" para consistencia */
  background-color: #e9eef3;
  color: #0d3b66;
  border: 1px solid #d7dee6;
  box-shadow: none;
}

.btn-adjust:hover {
  background-color: #d9e4ed !important;
  /* Añadimos important para sobreescribir :hover general */
}

/* Agrupador del paso */
#predx-root #step-content {
  width: min(980px, 94vw);
  margin: 16px auto 0;
  text-align: center;
  /* centra textos y botones inline/inline-block */
}

/* --- LOGO CABECERA (centrado y responsive) --- */
.app-header {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 40px;
  margin-bottom: 40px;
  z-index: 2;
}

.app-header img {
  display: block;
  width: clamp(200px, 22vw, 280px);
  height: auto;
  max-width: 100%;
}

/* --- TIPOGRAFÍA --- */
#predx-root h1 {
  font-weight: 700;
  font-size: clamp(1.9rem, 2.5vw + 1rem, 2.6rem);
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
  color: #000;
  /* Asegurar color base */
}

/* === Fix: imágenes de pasos, máx 490px y responsivas === */
#predx-root .step-image-container {
  width: min(300px, 92vw);
  max-width: 300px;
  margin: 0 auto 6px;
  aspect-ratio: 1 / 1;
}

#predx-root .step-image {
  /* antes: width: 70%; */
  display: block;
  width: 100%;
  max-width: 490px;
  height: auto;
  /* que no obliguen a scroll vertical si la pantalla es “baja” */
  max-height: min(60vh, 520px);
  object-fit: contain;
}

/* --- BOTONES --- */
#predx-root button {
  background-color: #0170b9;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 0px 12px 0px 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .05s ease, background-color 0.3s ease, box-shadow .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 8px 12px;
  /* separación entre botones */
  /*min-width: 160px;*/
  box-shadow: 0 6px 14px rgba(1, 112, 185, .15);
}

#predx-root button:hover {
  background-color: #015a94;
  box-shadow: 0 8px 18px rgba(1, 112, 185, .22);
}

#predx-root button:active {
  transform: translateY(1px);
}

#predx-root button:disabled {
  background-color: #8da6ba;
  box-shadow: none;
  cursor: not-allowed;
}

/* Variante para "Atrás" */
#predx-root button[data-action="back"] {
  background-color: #e9eef3;
  color: #0d3b66;
}

#predx-root button[data-action="back"]:hover {
  background-color: #d9e4ed;
}

/* --- RESULTADOS --- */
#predx-root .results-summary {
  background-color: rgba(0, 0, 0, 0.06);
  padding: 24px 28px;
  border-radius: 12px;
  margin: 20px auto;
  max-width: 760px;
  /* Alineado a la izquierda — el typewriter de la IA tampoco reposiciona
     líneas previas con left-align, y es la lectura natural en castellano. */
  text-align: left;
}

#predx-root .results-summary .result-box,
#predx-root .results-summary .result-box * {
  text-align: left;
}

#predx-root .results-summary .disclaimer {
  text-align: left;
  /* Sin font-size ni color propios: hereda los del texto IA para que la frase
     final se lea como una continuación natural, no como un bloque legal aparte. */
  margin: 12px 0 18px;
}

/* Los botones siguen centrados — no afecta a la accion */
#predx-root .results-summary .result-actions {
  text-align: center;
  margin-top: 8px;
}

/* --- ACUITY (fuente del optotipo) --- */
#acuity-test-area div {
  font-family: 'Optotypes', sans-serif;
}

/* --- FORMULARIO DE CONTACTO (p03_contact) --- */
#predx-root label[for="contact_name"],
#predx-root label[for="contact_email"],
#predx-root label[for="contact_phone"] {
  display: block !important;
  float: none !important;
  width: min(560px, 92vw);
  margin: 0 auto 6px;
  text-align: left;
  font-weight: 600;
  color: #2f3b48;
}

#predx-root #contact_name,
#predx-root #contact_email,
#predx-root #contact_phone {
  display: block !important;
  float: none !important;
  clear: both !important;
  width: min(560px, 92vw);
  margin: 6px auto 22px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #d7dee6;
  border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03);
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

#predx-root #contact_name:focus,
#predx-root #contact_email:focus,
#predx-root #contact_phone:focus {
  outline: none;
  border-color: #0170b9;
  box-shadow: 0 0 0 4px rgba(1, 112, 185, .12);
}

#predx-root input::placeholder {
  color: #9aa7b3;
}

/* Checkbox de marketing (mismo ancho y alineación limpia) */
#predx-root #step-content div>label:not([for]) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: min(560px, 92vw);
  margin: 4px auto 26px;
  text-align: left;
}

#predx-root input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #0170b9;
}

/* Más aire sobre los botones del paso */
#predx-root [data-action="back"],
#predx-root [data-action="next"] {
  margin-top: 6px;
}


/* Caja del QR centrada y con fondo blanco (contraste en dark) */
#predx-root #qr-code-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 224px;
  height: 224px;
  margin: 0 auto 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  padding: 12px;
}

#predx-root #qr-code-container canvas,
#predx-root #qr-code-container img {
  display: block;
  width: 200px;
  height: 200px;
}

/* Texto de estado centrado bajo el QR */
#predx-root #remote-status-container {
  text-align: center;
  margin: 8px auto 6px;
  min-height: 1.25em;
  /* evita saltos cuando cambia el texto */
  color: #4a5568;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  #predx-root .step-image-container {
    width: min(92vw, 490px);
  }

  #predx-root button {
    width: 100%;
    max-width: 360px;
  }

  #predx-root {
    padding-top: 96px;
  }

  #predx-root #qr-code-container {
    width: 208px;
    height: 208px;
    padding: 10px;
  }

  #predx-root #qr-code-container canvas,
  #predx-root #qr-code-container img {
    width: 188px;
    height: 188px;
  }
}

@media (max-height: 740px) {
  #predx-root {
    padding-top: clamp(72px, 8vh, 110px);
  }

  #predx-root .step-image {
    max-height: 50vh;
  }

  /* más margen para textos/botones */
}

/* ===== p08_profile – "Sobre ti" (select de edad) ===== */

/* Más espacio bajo el título del paso */
#predx-root #step-content>h1+p {
  margin-top: 8px;
  margin-bottom: 22px;
}

/* Label alineado a la izquierda dentro de un contenedor centrado */
#predx-root label[for="profile_age_band"] {
  display: block;
  width: min(420px, 92vw);
  margin: 0 auto 8px;
  text-align: left;
  font-weight: 600;
  color: #2f3b48;
}

/* Select con mejor tamaño, borde suave y flecha personalizada */
#predx-root #profile_age_band {
  display: block;
  width: min(420px, 92vw);
  margin: 0 auto 26px;
  padding: 12px 44px 12px 14px;
  font-size: 1rem;
  background: #fff;
  border: 1px solid #d7dee6;
  border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03);
  transition: border-color .2s ease, box-shadow .2s ease;

  /* Quitar estilo nativo y poner flecha */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

/* Enfoque accesible */
#predx-root #profile_age_band:focus {
  outline: none;
  border-color: #0170b9;
  box-shadow: 0 0 0 4px rgba(1, 112, 185, .12);
}

/* Botones: un poco más de aire arriba en este paso */
#predx-root #profile_age_band~[data-action] {
  margin-top: 10px;
}

/* Responsive fino */
@media (max-width: 480px) {

  #predx-root label[for="profile_age_band"],
  #predx-root #profile_age_band {
    width: min(560px, 94vw);
  }
}

/* ===== Síntomas (sliders 1–10) ===== */
#predx-root .symptom-sliders {
  width: min(620px, 92vw);
  /* barras más cortas y centradas */
  margin: 8px auto 6px;
}

#predx-root .slider-group {
  margin: 22px 0 30px;
  /* más aire entre barras */
}

#predx-root .slider-group label {
  display: block;
  text-align: left;
  margin: 0 0 10px;
  font-weight: 600;
  color: #2f3b48;
}

/* Pista del slider */
#predx-root .slider-group input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: transparent;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

#predx-root .slider-group input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: #e7edf3;
  border-radius: 999px;
}

#predx-root .slider-group input[type="range"]::-moz-range-track {
  height: 8px;
  background: #e7edf3;
  border-radius: 999px;
}

/* Thumb */
#predx-root .slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -5px;
  /* centra en la pista */
  border-radius: 50%;
  background: #0d6db6;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

#predx-root .slider-group input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0d6db6;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

#predx-root .slider-group input[type="range"]:focus {
  box-shadow: 0 0 0 4px rgba(13, 109, 182, .18);
}

/* Escala bajo los sliders */
#predx-root .slider-scale {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(620px, 92vw);
  margin: 8px auto 0;
  font-size: .9rem;
  color: #6c7a89;
}

#predx-root .slider-scale .min,
#predx-root .slider-scale .max {
  min-width: 2ch;
  text-align: center;
}

/* Grupo del slider */
#predx-root .slider-group {
  width: min(620px, 92vw);
  margin: 18px auto 28px;
}

/* Línea de “Valor: x/10” */
#predx-root .slider-value {
  text-align: center;
  margin-top: 8px;
  font-size: .95rem;
  color: #5d6b78;
}

/* Marcas 1–5–10 bajo el slider */
#predx-root .slider-scale {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  /* tres columnas iguales */
  width: 100%;
  margin-top: 6px;
  font-size: .9rem;
  color: #6c7a89;
}

#predx-root .slider-scale span:nth-child(1) {
  justify-self: start;
}

#predx-root .slider-scale span:nth-child(2) {
  justify-self: center;
}

#predx-root .slider-scale span:nth-child(3) {
  justify-self: end;
}

#predx-root .checklist-container {
  text-align: center;
  margin: 0 30%;
}

/* ===== DUOCHROME (Rojo-Verde) ===== */
#predx-root .duo-frame {
  padding: 0px;
  background: #fff;
  border-radius: 16px;
}

#predx-root .duo-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 12px;
  overflow: hidden;
}

#predx-root .duo-half {
  display: flex;
  align-items: center;
  justify-content: center;
}

#predx-root .duo-half.red {
  background: rgb(255 0 0);
}

#predx-root .duo-half.green {
  background: rgb(0 255 0);
}

#predx-root .duo-letters {
  text-align: center;
  line-height: 1.1;
}

#predx-root .duo-letters .row {
  color: #000;
  font-family: 'Optotypes', 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: .12em;
  margin: .22em 0;
}

/* Tamaños decrecientes por fila, grandes y legibles */
#predx-root .duo-letters .r1 {
  font-size: clamp(22px, 2.6vw, 40px);
}

#predx-root .duo-letters .r2 {
  font-size: clamp(19px, 2.3vw, 34px);
}

#predx-root .duo-letters .r3 {
  font-size: clamp(17px, 2.0vw, 29px);
}

#predx-root .duo-letters .r4 {
  font-size: clamp(15px, 1.7vw, 25px);
}

#predx-root .duo-letters .r5 {
  font-size: clamp(13px, 1.5vw, 21px);
}

#predx-root .duo-letters .r6 {
  font-size: clamp(12px, 1.3vw, 18px);
}

/* Botonera: izquierda/centro/derecha */
#predx-root .duo-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(10px, 1.6vw, 20px);
  margin-bottom: clamp(12px, 2vw, 18px);
}

#predx-root .duo-btn {
  padding: 12px 16px;
  border-radius: 0px 12px 0px 12px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(1, 112, 185, .12);
  border: none;
  cursor: pointer;
}

#predx-root .duo-btn.left {
  background: #dbe9ff;
  color: #0d3b66;
  justify-self: start;
}

#predx-root .duo-btn.right {
  background: #dbe9ff;
  color: #0d3b66;
  justify-self: end;
}

#predx-root .duo-btn.neutral {
  background: #0170b9;
  color: #fff;
  justify-self: center;
}

#predx-root .duo-btn:hover {
  filter: brightness(.95);
}

#predx-root .duo-wrap {
  margin: 0 auto;
  max-width: 960px;
  width: min(980px, 95vw);
}

/* Asegura 50/50 y sin separaciones */
#predx-root .duo-panel {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden;
  border-radius: 16px;
}

#predx-root .duo-half {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(56px, 10vh, 120px);
  line-height: 1;
  font-weight: 900;
  user-select: none;
  -webkit-user-select: none;
}

#predx-root .duo-half.red {
  background: rgb(255, 0, 0);
  color: #000;
  padding-right: 64px;
  text-align: left;
  /* el texto lo manejamos por grid en .duo-row */
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal;
  isolation: isolate;
}

#predx-root .duo-half.green {
  background: rgb(0, 255, 0);
  color: #000;
  padding-left: 64px;
  text-align: left;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal;
  isolation: isolate;
}

/* Cada fila es un grid de 3 celdas de ancho fijo, así A|O|R y R|O|A quedan alineados al centro */
#predx-root .duo-row {
  display: grid;
  grid-template-columns: repeat(3, 1ch);
  /* 1ch = ancho de carácter */
  column-gap: .8ch;
  margin: .22em 0;
  white-space: nowrap;
  letter-spacing: 0;
  /* no necesitamos tracking extra */
}

/* Empuja el bloque de 3 celdas contra la “costura” central */
#predx-root .duo-half.red .duo-row {
  margin-left: auto;
  justify-items: end;
}

#predx-root .duo-half.green .duo-row {
  margin-right: auto;
  justify-items: start;
}

#predx-root .duo-cell {
  display: block;
}

/* Botonera con aire */
#predx-root .duo-actions {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  padding: 22px 6px 0
}

#predx-root .duo-btn {
  padding: 12px 18px;
  border-radius: 12px 0px 12px 0px;
  border: 0;
  cursor: pointer;
  font-weight: 700
}

#predx-root .duo-btn.neutral {
  background: #fff;
  color: #222;
}

#predx-root .duo-btn.left,
#predx-root .duo-btn.right {
  background: #e5efff;
}

/* Responsive móvil: apilamos botones y ampliamos panel */
@media (max-width: 768px) {
  #predx-root .duo-half {
    aspect-ratio: 4 / 3;
  }

  #predx-root .duo-actions {
    grid-template-columns: 1fr;
  }

  #predx-root .duo-btn.left,
  #predx-root .duo-btn.right,
  #predx-root .duo-btn.neutral {
    justify-self: stretch;
  }
}

/* Oscurecer TODA la página cuando el paso sea oscuro */
body.dark-page {
  background: #54595F !important;
}

body.dark-page #page,
body.dark-page .site,
body.dark-page .elementor,
body.dark-page .elementor-section-wrap,
body.dark-page #content {
  background: transparent !important;
}

/* ===== Test del Reloj ===== */
#predx-root .clock-wrap {
  width: min(980px, 94vw);
  margin: 10px auto 22px;
}

#predx-root .clock-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 18px;
}

#predx-root .clock-svg {
  width: min(540px, 86vw);
  height: auto;
  display: block;
}

/* Botones de sector */
#predx-root .clock-sectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px auto 6px;
  max-width: 720px;
}

#predx-root .seg-btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #cfd7e0;
  background: #f4f7fb;
  color: #0d3b66;
  font-weight: 700;
  cursor: pointer;
}

#predx-root .seg-btn:hover {
  filter: brightness(.97);
}

#predx-root .seg-btn.active {
  background: #0170b9;
  color: #fff !important;
  border-color: #0170b9;
}

#predx-root .seg-btn.neutral {
  grid-column: span 3;
  background: #e9eef3;
  border-color: #d7dee6;
  color: #223;
}

p.clock-step2 {
  text-align: center;
}



/* Intensidad */
#predx-root .intensity {
  margin: 12px auto 8px;
  max-width: 720px;
}

#predx-root .intensity label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #2f3b48;
}

#predx-root .intensity input[type="range"] {
  width: 100%;
}

.slider-row {
  margin-bottom: 60px;
}

/* Marcas 1,5,10 del slider */
#predx-root .slider-scale {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: .95rem;
  color: #6b7a89;
  margin-top: 4px;
}

#predx-root .slider-scale span:nth-child(1) {
  justify-self: start;
}

#predx-root .slider-scale span:nth-child(2) {
  justify-self: center;
}

#predx-root .slider-scale span:nth-child(3) {
  justify-self: end;
}

/* Listas dentro del paso actual: sin viñetas */
#predx-root #step-content ul {
  list-style: none;
  /* quita los puntos */
  padding-left: 0;
  /* elimina la sangría de la lista */
  margin: 10px auto 18px;
  /* espaciado agradable */
  max-width: 560px;
  /* que no se haga kilométrica en desktop */
}

#predx-root #step-content ul li {
  margin: 6px 0;
  /* separación entre ítems */
}

body.predx-dark {
  background: #54595f;
  color: #fff;
}

/* Botones de sector */
#predx-root .clock-sectors {
  /*display: flex;
    flex-direction: column;*/
  align-items: center;
  gap: 12px;
  /* Espacio uniforme entre botones */
  margin: 20px auto 15px;
  max-width: 380px;
  /* Ancho máximo del contenedor de botones */
}

#predx-root .seg-btn {
  width: 100%;
  /* Ocupa todo el ancho del contenedor */
  margin: 0;
  /* Eliminamos márgenes individuales */
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #cfd7e0;
  background: #f4f7fb;
  color: #0d3b66;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

#predx-root .seg-btn:hover {
  filter: brightness(.97);
}

#predx-root .seg-btn.active {
  background: #0170b9;
  color: #fff;
  border-color: #0170b9;
  padding-left: 64px;
  text-align: left;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal;
  isolation: isolate;
}

/* Cada fila es un grid de 3 celdas de ancho fijo, así A|O|R y R|O|A quedan alineados al centro */
#predx-root .duo-row {
  display: grid;
  grid-template-columns: repeat(3, 1ch);
  /* 1ch = ancho de carácter */
  column-gap: .8ch;
  margin: .22em 0;
  white-space: nowrap;
  letter-spacing: 0;
  /* no necesitamos tracking extra */
}

/* Empuja el bloque de 3 celdas contra la “costura” central */
#predx-root .duo-half.red .duo-row {
  margin-left: auto;
  justify-items: end;
}

#predx-root .duo-half.green .duo-row {
  margin-right: auto;
  justify-items: start;
}

#predx-root .duo-cell {
  display: block;
}

/* Botonera con aire */
#predx-root .duo-actions {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  padding: 22px 6px 0
}

#predx-root .duo-btn {
  padding: 12px 18px;
  border-radius: 12px 0px 12px 0px;
  border: 0;
  cursor: pointer;
  font-weight: 700
}

#predx-root .duo-btn.neutral {
  background: #fff;
  color: #222;
}

#predx-root .duo-btn.left,
#predx-root .duo-btn.right {
  background: #e5efff;
}

/* Responsive móvil: apilamos botones y ampliamos panel */
@media (max-width: 768px) {
  #predx-root .duo-half {
    aspect-ratio: 4 / 3;
  }

  #predx-root .duo-actions {
    grid-template-columns: 1fr;
  }

  #predx-root .duo-btn.left,
  #predx-root .duo-btn.right,
  #predx-root .duo-btn.neutral {
    justify-self: stretch;
  }
}

/* Oscurecer TODA la página cuando el paso sea oscuro */
body.dark-page {
  background: #54595F !important;
}

body.dark-page #page,
body.dark-page .site,
body.dark-page .elementor,
body.dark-page .elementor-section-wrap,
body.dark-page #content {
  background: transparent !important;
}

/* ===== Test del Reloj ===== */
#predx-root .clock-wrap {
  width: min(980px, 94vw);
  margin: 10px auto 22px;
}

#predx-root .clock-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 18px;
}

#predx-root .clock-svg {
  width: min(540px, 86vw);
  height: auto;
  display: block;
}

/* Botones de sector */
#predx-root .clock-sectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px auto 6px;
  max-width: 720px;
}

#predx-root .seg-btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #cfd7e0;
  background: #f4f7fb;
  color: #0d3b66;
  font-weight: 700;
  cursor: pointer;
}

#predx-root .seg-btn:hover {
  filter: brightness(.97);
}

#predx-root .seg-btn.active {
  background: #0170b9;
  color: #fff;
  border-color: #0170b9;
}

#predx-root .seg-btn.neutral {
  grid-column: span 3;
  background: #e9eef3;
  border-color: #d7dee6;
  color: #223;
}

p.clock-step2 {
  text-align: center;
}



/* Intensidad */
#predx-root .intensity {
  margin: 12px auto 8px;
  max-width: 720px;
}

#predx-root .intensity label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #2f3b48;
}

#predx-root .intensity input[type="range"] {
  width: 100%;
}

.slider-row {
  margin-bottom: 60px;
}

/* Marcas 1,5,10 del slider */
#predx-root .slider-scale {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: .95rem;
  color: #6b7a89;
  margin-top: 4px;
}

#predx-root .slider-scale span:nth-child(1) {
  justify-self: start;
}

#predx-root .slider-scale span:nth-child(2) {
  justify-self: center;
}

#predx-root .slider-scale span:nth-child(3) {
  justify-self: end;
}

/* Listas dentro del paso actual: sin viñetas */
#predx-root #step-content ul {
  list-style: none;
  /* quita los puntos */
  padding-left: 0;
  /* elimina la sangría de la lista */
  margin: 10px auto 18px;
  /* espaciado agradable */
  max-width: 560px;
  /* que no se haga kilométrica en desktop */
}

#predx-root #step-content ul li {
  margin: 6px 0;
  /* separación entre ítems */
}

body.predx-dark {
  background: #54595f;
  color: #fff;
}

/* Botones de sector */
#predx-root .clock-sectors {
  /*display: flex;
    flex-direction: column;*/
  align-items: center;
  gap: 12px;
  /* Espacio uniforme entre botones */
  margin: 20px auto 15px;
  max-width: 380px;
  /* Ancho máximo del contenedor de botones */
}

#predx-root .seg-btn {
  width: 100%;
  /* Ocupa todo el ancho del contenedor */
  margin: 0;
  /* Eliminamos márgenes individuales */
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #cfd7e0;
  background: #f4f7fb;
  color: #0d3b66;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

#predx-root .seg-btn:hover {
  filter: brightness(.97);
}

#predx-root .seg-btn.active {
  background: #0170b9;
  color: #fff;
  border-color: #0170b9;
}

#predx-root .seg-btn.neutral {
  background: #e9eef3;
  border-color: #d7dee6;
  color: #223;
  margin-top: 8px;
  /* Pequeño espacio extra para el botón principal */
}

/* --- INTRO VIDEO BACKGROUND --- */
#predx-root.step-intro-active {
  background-color: transparent !important;
}

.intro-video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.intro-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  width: min(980px, 94vw);
  margin: 10px auto 22px;
}

#predx-root .clock-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 18px;
}

#predx-root .clock-svg {
  width: min(540px, 86vw);
  height: auto;
  display: block;
}

/* Botones de sector */
#predx-root .clock-sectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px auto 6px;
  max-width: 720px;
}

#predx-root .seg-btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #cfd7e0;
  background: #f4f7fb;
  color: #0d3b66;
  font-weight: 700;
  cursor: pointer;
}

#predx-root .seg-btn:hover {
  filter: brightness(.97);
}

#predx-root .seg-btn.active {
  background: #0170b9;
  color: #fff;
  border-color: #0170b9;
}

#predx-root .seg-btn.neutral {
  grid-column: span 3;
  background: #e9eef3;
  border-color: #d7dee6;
  color: #223;
}

p.clock-step2 {
  text-align: center;
}



/* Intensidad */
#predx-root .intensity {
  margin: 12px auto 8px;
  max-width: 720px;
}

#predx-root .intensity label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #2f3b48;
}

#predx-root .intensity input[type="range"] {
  width: 100%;
}

.slider-row {
  margin-bottom: 60px;
}

/* Marcas 1,5,10 del slider */
#predx-root .slider-scale {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: .95rem;
  color: #6b7a89;
  margin-top: 4px;
}

#predx-root .slider-scale span:nth-child(1) {
  justify-self: start;
}

#predx-root .slider-scale span:nth-child(2) {
  justify-self: center;
}

#predx-root .slider-scale span:nth-child(3) {
  justify-self: end;
}

/* Listas dentro del paso actual: sin viñetas */
#predx-root #step-content ul {
  list-style: none;
  /* quita los puntos */
  padding-left: 0;
  /* elimina la sangría de la lista */
  margin: 10px auto 18px;
  /* espaciado agradable */
  max-width: 560px;
  /* que no se haga kilométrica en desktop */
}

#predx-root #step-content ul li {
  margin: 6px 0;
  /* separación entre ítems */
}

body.predx-dark {
  background: #54595f;
  color: #fff;
}

/* Botones de sector */
#predx-root .clock-sectors {
  /*display: flex;
    flex-direction: column;*/
  align-items: center;
  gap: 12px;
  /* Espacio uniforme entre botones */
  margin: 20px auto 15px;
  max-width: 380px;
  /* Ancho máximo del contenedor de botones */
}

#predx-root .seg-btn {
  width: 100%;
  /* Ocupa todo el ancho del contenedor */
  margin: 0;
  /* Eliminamos márgenes individuales */
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #cfd7e0;
  background: #f4f7fb;
  color: #0d3b66;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

#predx-root .seg-btn:hover {
  filter: brightness(.97);
}

#predx-root .seg-btn.active {
  background: #0170b9;
  color: #fff !important;
  border-color: #0170b9;
}

#predx-root .seg-btn.neutral {
  background: #e9eef3;
  border-color: #d7dee6;
  color: #223;
  margin-top: 8px;
  /* Pequeño espacio extra para el botón principal */
}

/* --- INTRO VIDEO BACKGROUND --- */
#predx-root.step-intro-active {
  background-color: transparent !important;
}

.intro-video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.intro-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.65);
  z-index: 1;
}

.intro-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  border-radius: 16px;
}


/* --- LAYOUT TEST AGUDEZA (Landolt C) ---
   Anula el padding-bottom enorme del root (340px) y el min-height: 80vh,
   para que el test quede centrado vertical y horizontalmente y entre por
   completo en la ventana, tanto en desktop como en laptops bajos. */
#predx-root.step-acuity-active {
  padding: 20px !important;
  min-height: 100vh;
  justify-content: center;
}

#predx-root.step-acuity-active .app-header {
  padding-top: 0;
  margin-bottom: 12px;
}

#predx-root.step-acuity-active .app-header img {
  width: clamp(120px, 14vw, 180px);
  /* Logo más pequeño para liberar altura */
}

#predx-root.step-acuity-active h1 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 1.6vw + 0.6rem, 1.8rem);
  /* Título más compacto */
}

#predx-root.step-acuity-active #step-content {
  margin-top: 0;
}

/* El área del optotipo se adapta a la altura disponible:
   220px mínimo, 50vh ideal, 420px tope. Esto sólo cambia el contenedor
   visual; el tamaño del optotipo lo calcula acuity-test.js a partir del PPI. */
#predx-root.step-acuity-active #acuity-test-area {
  height: clamp(220px, 50vh, 420px) !important;
}

#predx-root .seg-btn:hover {
  filter: brightness(.97);
}

#predx-root .seg-btn.active {
  background: #0170b9;
  color: #fff !important;
  border-color: #0170b9;
}

#predx-root .seg-btn.neutral {
  background: #e9eef3;
  border-color: #d7dee6;
  color: #223;
  margin-top: 8px;
  /* Pequeño espacio extra para el botón principal */
}

/* --- INTRO VIDEO BACKGROUND --- */
#predx-root.step-intro-active {
  background-color: transparent !important;
}

.intro-video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.intro-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.65);
  z-index: 1;
}

.intro-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  border-radius: 16px;
}


/* --- Vídeo de fondo de la portada (fijo, no scroll, muy tenue) --- */
.intro-bg-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #fafaf7; /* mismo tono cálido que el body para evitar flash */
}

.intro-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.intro-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* El vídeo en sí queda con saturación reducida para sentirse de fondo. */
  filter: saturate(0.85) brightness(1.05);
}

/* Capa blanca muy tenue encima del vídeo. Casi imperceptible: el vídeo
   se intuye más que se ve, ideal como textura de portada. */
.intro-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250, 250, 247, 0.78);
  pointer-events: none;
}

/* --- FAQ en portada (fundamento StAT / Universidad de Stanford) --- */
.intro-faq {
  margin-top: 40px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1f2937;
}

.intro-faq h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 12px;
  text-align: center;
  color: #374151;
}

.intro-faq details {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0;
  padding: 14px 0;
  margin-bottom: 0;
  transition: opacity 0.2s;
}

.intro-faq details[open] {
  background: transparent;
  box-shadow: none;
}

.intro-faq details:last-child {
  border-bottom: 0;
}

.intro-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 24px;
  outline: none;
  color: #111827;
}

.intro-faq summary::-webkit-details-marker {
  display: none;
}

/* Los títulos del FAQ son <h2> dentro del <summary>: se neutralizan
   los márgenes y el tamaño por defecto del navegador para que hereden
   el aspecto del summary y no rompan el layout. */
.intro-faq summary h2 {
  display: inline;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: inherit;
}

.intro-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s;
  color: #6b7280;
}

.intro-faq details[open] summary::after {
  content: "−";
}

.intro-faq details p {
  margin: 10px 0 4px;
  color: #374151;
}

.intro-faq details p b {
  color: #111827;
}

@media (max-width: 600px) {
  .intro-faq {
    margin-top: 24px;
    font-size: 0.9rem;
  }
  .intro-faq h3 {
    font-size: 1rem;
  }
}

/* ============================================================
   Aviso de distancia para modo Quick (preflights p16/p18).
   Discreto, no estridente, alineado con el tono cálido del fondo.
   ============================================================ */
.quick-distance-notice {
  max-width: 480px;
  margin: 0 auto 20px;
  padding: 14px 18px;
  background: rgba(13, 59, 102, 0.06);
  border-left: 3px solid #0d3b66;
  border-radius: 4px;
  color: #0d3b66;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
}

.quick-distance-notice strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

/* Aviso de dispositivo recomendado en la portada (p01_intro). Mismo patrón
   visual que .quick-distance-notice pero con tono más neutro: es informativo
   ("realiza esto en portátil"), no una acción a ejecutar ahora mismo. */
.device-notice {
  max-width: 520px;
  margin: 18px auto 22px;
  padding: 12px 18px;
  background: rgba(13, 59, 102, 0.05);
  border-left: 3px solid #5b7a99;
  border-radius: 4px;
  color: #2a3f55;
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: left;
}

.device-notice strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 3px;
  color: #0d3b66;
}

@media (max-width: 600px) {
  .device-notice {
    max-width: 92vw;
    font-size: 0.9rem;
  }
}

/* ============================================================
   Bloque SEO de la portada (#seo-block)
   - Visible en el primer pintado para que los bots indexen el
     contenido en el primer rastreo (E-E-A-T, FAQ rich snippet).
   - A los 10 s, JS añade .is-collapsed y la altura se reduce a
     una "muestra"; el botón .seo-block-toggle permite re-expandir.
   ============================================================ */
.seo-block {
  position: relative;
  margin: 56px auto 0;
  max-width: 720px;
  text-align: left;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #1f2937;
  /* Sin caja: que fluya con la landing. */
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 8px;
}

/* Separador sutil arriba del bloque para marcar inicio sin "encajonar". */
.seo-block::before {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: rgba(13, 59, 102, 0.25);
  margin: 0 auto 32px;
  border-radius: 2px;
}

.seo-block-inner {
  position: relative;
  overflow: hidden;
  max-height: none;
  transition: max-height 0.6s ease;
}

/* El colapso manual sigue disponible si el usuario pulsa el toggle. */
.seo-block.is-collapsed .seo-block-inner {
  max-height: 140px;
}

.seo-block.is-collapsed .seo-block-inner::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(250, 250, 247, 0), rgba(250, 250, 247, 0.95));
  pointer-events: none;
}

/* Encabezados internos — jerarquía editorial */
.seo-block h2 {
  font-size: clamp(1.25rem, 1.4vw + 0.7rem, 1.6rem);
  font-weight: 700;
  color: #0d3b66;
  margin: 40px 0 14px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.seo-block article:first-child h2 {
  margin-top: 0;
}

.seo-block h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0d3b66;
  margin: 24px 0 8px;
  line-height: 1.35;
}

.seo-block article + article {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.seo-block p,
.seo-block ul {
  margin: 8px 0 12px;
}

.seo-block ul {
  padding-left: 22px;
}

.seo-block li {
  margin-bottom: 6px;
}

/* CTA intermedios "Iniciar el test" */
.seo-block .seo-cta {
  text-align: center;
  margin: 26px 0 18px;
}

/* FAQ interno (details/summary) — mismo patrón que .intro-faq */
.seo-block .seo-faq details {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
}

.seo-block .seo-faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 24px;
  outline: none;
  color: #111827;
}

.seo-block .seo-faq summary::-webkit-details-marker {
  display: none;
}

.seo-block .seo-faq summary h3 {
  display: inline;
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  line-height: inherit;
}

.seo-block .seo-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  line-height: 1;
  color: #6b7280;
}

.seo-block .seo-faq details[open] summary::after {
  content: "−";
}

/* Toggle "Ocultar/Leer más" (visible siempre, controla colapso) */
.seo-block-toggle {
  display: block;
  margin: 16px auto 0;
  background: #e9eef3 !important;
  color: #0d3b66 !important;
  border: 1px solid #d7dee6 !important;
  padding: 10px 22px !important;
  border-radius: 0px 12px 0px 12px !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.seo-block-toggle:hover {
  background: #d9e4ed !important;
}

@media (max-width: 600px) {
  .seo-block {
    padding: 18px 18px;
    font-size: 0.92rem;
  }
  .seo-block h2 {
    font-size: 1.15rem;
  }
  .seo-block h3 {
    font-size: 1rem;
  }
}

/* ============================================================
   Slider de frecuencia — preguntas p09/p10/p11
   Etiqueta verbal en vivo (Nunca/Raramente/A veces/A menudo/Muy a menudo)
   Reemplaza el slider 1-10 numérico que confundía al usuario.
   ============================================================ */
#predx-root .freq-slider-wrap {
  max-width: 520px;
  margin: 0 auto 44px;
  text-align: center;
  padding: 28px 24px 24px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(13, 59, 102, 0.08);
  border-radius: 14px;
}

#predx-root .freq-question {
  font-size: 1rem;
  line-height: 1.4;
  color: #1f2937;
  margin: 0 0 18px;
  font-weight: 500;
}

#predx-root .freq-active-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0d3b66;
  margin: 0 0 16px;
  min-height: 1.8em;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

#predx-root .freq-slider-wrap.is-low .freq-active-label  { color: #16a34a; }
#predx-root .freq-slider-wrap.is-mid .freq-active-label  { color: #d97706; }
#predx-root .freq-slider-wrap.is-high .freq-active-label { color: #dc2626; }

#predx-root .freq-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, #d1fae5 0%, #fef3c7 50%, #fee2e2 100%);
  border-radius: 999px;
  outline: none;
  margin: 8px 0 18px;
  cursor: pointer;
}

#predx-root .freq-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #0d3b66;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#predx-root .freq-slider::-webkit-slider-thumb:hover,
#predx-root .freq-slider:active::-webkit-slider-thumb {
  transform: scale(1.12);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  cursor: grabbing;
}

#predx-root .freq-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #0d3b66;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#predx-root .freq-slider::-moz-range-thumb:hover,
#predx-root .freq-slider:active::-moz-range-thumb {
  transform: scale(1.12);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  cursor: grabbing;
}

#predx-root .freq-slider:focus-visible {
  outline: 3px solid rgba(13, 59, 102, 0.4);
  outline-offset: 4px;
}

#predx-root .freq-anchors {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

#predx-root .freq-anchors span:nth-child(2) {
  text-align: center;
}

#predx-root .freq-anchors span:last-child {
  text-align: right;
}

@media (max-width: 600px) {
  #predx-root .freq-slider-wrap {
    padding: 22px 18px 18px;
    margin-bottom: 32px;
  }
  #predx-root .freq-active-label {
    font-size: 1.3rem;
  }
  #predx-root .freq-anchors {
    font-size: 0.7rem;
  }
}

/* ============================================================
   Reloj de astigmatismo (1.0.16) — overrides finales para ganar
   sobre los duplicados de CSS anteriores. SVG compacto y los 6
   botones de sector en una sola fila.
   ============================================================ */
#predx-root .clock-wrap {
  width: min(980px, 94vw);
  margin: 4px auto 14px;
}

#predx-root .clock-intro {
  margin: 0 auto 10px;
  max-width: 720px;
}

#predx-root .clock-canvas {
  margin: 4px auto 10px;
}

#predx-root .clock-svg {
  width: min(340px, 65vw);
  max-height: 46vh;
  height: auto;
}

#predx-root .clock-step1 {
  margin: 6px 0 8px;
  font-size: 0.95rem;
}

#predx-root .clock-sectors {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 6px auto 6px;
  max-width: 760px;
}

/* Los 6 botones numéricos comparten una fila al 1/6 cada uno (~16% min). */
#predx-root .clock-sectors .seg-btn:not(.neutral) {
  flex: 1 1 0;
  min-width: 80px;
  max-width: 120px;
  padding: 10px 8px;
}

/* "Veo todas las líneas igual" salta a fila propia y ocupa todo el ancho. */
#predx-root .clock-sectors .seg-btn.neutral {
  flex: 1 1 100%;
  margin-top: 4px;
}

@media (max-width: 600px) {
  #predx-root .clock-sectors .seg-btn:not(.neutral) {
    flex: 1 1 28%;
    min-width: 0;
    font-size: 0.85rem;
    padding: 8px 4px;
  }
  #predx-root .clock-svg {
    width: min(280px, 78vw);
  }
}