/* Web pública de Okuida. Sin nada de terceros: fuentes locales, sin cookies, sin analítica externa.
   Colores y letras de la página de presentación del logotipo: crema, turquesa, avellana y bandas de verde noche;
   titulares en Nunito y texto en Inter (las dos con licencia SIL OFL 1.1, en fuentes/). */

@font-face {
  font-family: "Nunito"; font-weight: 200 1000; font-display: swap;
  src: url("fuentes/nunito-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito"; font-weight: 200 1000; font-display: swap;
  src: url("fuentes/nunito-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "Inter"; font-weight: 100 900; font-display: swap;
  src: url("fuentes/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-weight: 100 900; font-display: swap;
  src: url("fuentes/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0;
}

/* Contraste (WCAG AA) comprobado: texto 8,5:1 y texto suave 4,6:1 sobre crema; enlaces en turquesa oscuro (6,3:1)
   porque el turquesa de la marca sobre crema da 4,3:1 y solo se usa en fondos de botón (blanco encima, 4,8:1),
   bordes y adornos; texto de las bandas de noche 10,6:1. */
:root {
  color-scheme: light;
  --fondo: #f6f1e7;          /* crema */
  --superficie: #ffffff;     /* tarjetas y formularios, nunca el fondo general */
  --escenario: #f3ead6;      /* magnolia de la losa del icono */
  --tinta: #17313a;          /* titulares */
  --texto: #33494e;
  --texto-suave: #5d7074;
  --linea: #e4dccf;
  --turquesa: #1d7f7b;
  --enlace: #15625f;
  --avellana: #8c5f36;
  --noche: #123a3c;          /* bandas */
  --noche-tinta: #e6efed;
  --noche-suave: #a9c4c0;
  --noche-acento: #4fbdb6;
  --sombra-ventana: 0 1px 0 rgb(23 49 58 / 6%), 0 28px 60px -28px rgb(23 49 58 / 40%);
  --medida: 72rem;
  --letra-titulos: "Nunito", ui-rounded, system-ui, sans-serif;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --fondo: #0f1b1d;
    --superficie: #172628;
    --escenario: #1d2a26;
    --tinta: #e7eeed;
    --texto: #c9d6d4;
    --texto-suave: #a3b5b3;
    --linea: #27393b;
    --turquesa: #4fbdb6;
    --enlace: #6fcdc6;
    --avellana: #d4a373;
    --noche: #0a2426;
    --sombra-ventana: 0 28px 60px -28px rgb(0 0 0 / 75%);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11";
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--enlace); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--turquesa); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--letra-titulos); color: var(--tinta);
  line-height: 1.1; margin: 0 0 0.6em; text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4.3rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem); font-weight: 900; letter-spacing: -0.012em; }
h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.35em; }
p { margin: 0 0 1em; max-width: 64ch; }

.saltar {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--superficie); padding: 0.6rem 1rem; border-radius: 8px;
}
.saltar:focus { top: 1rem; }

.envoltura { width: min(100% - 2rem, var(--medida)); margin-inline: auto; }

/* ---------- Botones ---------- */

.boton {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  border-radius: 12px; border: 2px solid var(--turquesa);
  font: inherit; font-family: var(--letra-titulos); font-weight: 800; font-size: 1.05rem;
  text-decoration: none; cursor: pointer;
  background: var(--turquesa); color: #fff;
}
.boton:hover { background: var(--enlace); border-color: var(--enlace); text-decoration: none; }
.boton.secundario { background: transparent; color: var(--enlace); }
.boton.secundario:hover { background: color-mix(in srgb, var(--turquesa) 12%, transparent); }
@media (prefers-color-scheme: dark) {
  .boton { color: #0f1b1d; }
  .boton:hover { color: #0f1b1d; }
  .boton.secundario, .boton.secundario:hover { color: var(--enlace); }
}

/* ---------- Cabecera: banda de verde noche, logotipo P8 ---------- */

.cabecera {
  position: sticky; top: 0; z-index: 5;
  background: var(--noche); color: var(--noche-tinta);
}
.cabecera .envoltura { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.cabecera .marca { display: block; margin-right: auto; }
.cabecera .marca img { height: 34px; width: auto; }
.cabecera nav { display: flex; gap: 1.25rem; align-items: center; }
.cabecera nav a { color: var(--noche-tinta); text-decoration: none; font-weight: 600; font-size: 0.97rem; }
.cabecera nav a:hover { color: #fff; text-decoration: underline; }
.cabecera nav a.boton {
  min-height: 2.5rem; padding: 0.45rem 1rem; font-size: 0.97rem;
  background: var(--noche-acento); border-color: var(--noche-acento); color: #0f1b1d;
}
.cabecera nav a.boton:hover { background: #7fd3cd; border-color: #7fd3cd; color: #0f1b1d; text-decoration: none; }
.cabecera nav a.boton.secundario { background: transparent; color: var(--noche-tinta); border-color: var(--noche-suave); }
.cabecera nav a.boton.secundario:hover { background: rgb(255 255 255 / 8%); }
@media (max-width: 40rem) { .cabecera nav .opcional { display: none; } }

/* ---------- Portada ---------- */

.portada { padding: clamp(2.5rem, 6vw, 5rem) 0 0; }
.portada .envoltura { display: grid; gap: 2.5rem; }
.portada .envoltura > *, .recorrido [role="tabpanel"] > * { min-width: 0; }
.portada .entradilla { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.32rem); color: var(--texto); max-width: 46ch; }
.portada .acciones { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.especialidades { margin-top: 1.25rem; color: var(--texto-suave); font-size: 0.98rem; }

/* ---------- Recorrido por la aplicación: lo que se recuerda de la página ---------- */

.recorrido { margin-top: clamp(2.5rem, 5vw, 4rem); }
.recorrido [role="tablist"] {
  display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--linea); margin-bottom: 1.25rem;
}
.recorrido [role="tablist"]::-webkit-scrollbar { display: none; }
.recorrido [role="tab"] {
  flex: none; font: inherit; font-family: var(--letra-titulos); font-weight: 800; font-size: 1rem;
  padding: 0.7rem 0.95rem 0.8rem; border: 0; background: none; cursor: pointer;
  color: var(--texto-suave); border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.recorrido [role="tab"]:hover { color: var(--tinta); }
.recorrido [role="tab"][aria-selected="true"] { color: var(--enlace); border-bottom-color: var(--turquesa); }
.recorrido [role="tabpanel"] { display: grid; gap: 1.25rem; }
.recorrido [role="tabpanel"][hidden] { display: none; }
.recorrido .pie { color: var(--texto-suave); max-width: 60ch; margin: 0; }
.recorrido .pie strong { color: var(--tinta); }

.ventana {
  margin: 0; border-radius: 14px; overflow: hidden;
  background: var(--superficie); border: 1px solid var(--linea);
  box-shadow: var(--sombra-ventana);
}
.ventana .barra { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--linea); }
.ventana .barra span { width: 10px; height: 10px; border-radius: 50%; background: var(--linea); }
.ventana img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.ventana.grafica img { aspect-ratio: auto; object-fit: contain; }

@media (prefers-reduced-motion: no-preference) {
  .recorrido [role="tabpanel"]:not([hidden]) .ventana { animation: aparecer 280ms ease-out; }
}
@keyframes aparecer { from { opacity: 0.4; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Secciones ---------- */

.seccion { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.seccion > .envoltura > p:first-of-type { color: var(--texto-suave); }

.resuelve { display: grid; gap: 2rem 3rem; margin-top: 2.5rem; padding: 0; list-style: none; }
@media (min-width: 52rem) { .resuelve { grid-template-columns: 1fr 1fr; } }
.resuelve li { border-top: 3px solid var(--turquesa); padding-top: 1rem; }
.resuelve li:nth-child(4n+2), .resuelve li:nth-child(4n+3) { border-top-color: var(--avellana); }
.resuelve p { margin: 0; color: var(--texto); }

  background: var(--superficie); border: 1px solid var(--linea); border-radius: 16px; padding: 1.5rem;
}
  font-family: var(--letra-titulos); font-size: 2.3rem; font-weight: 900; letter-spacing: -0.01em;
  margin: 0.2rem 0 0.4rem; color: var(--tinta); line-height: 1.15;
}

/* ---------- Lista de interés: sobre el «escenario» magnolia ---------- */

.interes { background: var(--escenario); border-block: 1px solid var(--linea); }
.interes .envoltura { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .interes .envoltura { grid-template-columns: 1fr 1fr; align-items: start; } }
.interes p { color: var(--texto); }

.formulario {
  background: var(--superficie); color: var(--texto);
  border: 1px solid var(--linea); border-radius: 16px; padding: clamp(1.25rem, 3vw, 2rem);
  display: grid; gap: 1.1rem;
}
.campo { display: grid; gap: 0.35rem; }
.campo label { font-weight: 700; color: var(--tinta); }
.campo input[type="email"], .campo select {
  font: inherit; color: var(--tinta); background: var(--fondo);
  border: 1.5px solid #c9bfae; border-radius: 10px; padding: 0.7rem 0.85rem; min-height: 3rem; width: 100%;
}
@media (prefers-color-scheme: dark) { .campo input[type="email"], .campo select { border-color: #3b5254; } }
.campo input:focus-visible, .campo select:focus-visible { border-color: var(--turquesa); }
.casilla { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; color: var(--tinta); }
.casilla input { width: 1.3rem; height: 1.3rem; margin: 0.2rem 0 0; accent-color: var(--turquesa); }
.letra-pequena { font-size: 0.9rem; color: var(--texto-suave); margin: 0; }
.formulario .letra-pequena { color: var(--texto-suave); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.resultado { margin: 0; font-weight: 650; min-height: 1.5em; }
.resultado.ok { color: var(--enlace); }
.resultado.error { color: #b42318; }
@media (prefers-color-scheme: dark) { .resultado.error { color: #ff9b8f; } }
.solo-correo[hidden], .formulario[hidden] { display: none; }

/* ---------- Para empresas: banda de verde noche ---------- */

.empresas { background: var(--noche); color: var(--noche-tinta); }
.empresas .envoltura { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .empresas .envoltura { grid-template-columns: 1.2fr 0.8fr; } }
.empresas p, .empresas li { color: var(--noche-suave); }
.empresas h2, .empresas h3, .empresas strong { color: var(--noche-tinta); }
.empresas ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.empresas a { color: var(--noche-acento); }
.empresas .boton { background: var(--noche-acento); border-color: var(--noche-acento); color: #0f1b1d; }
.empresas .boton:hover { background: #7fd3cd; border-color: #7fd3cd; }

/* ---------- Pie ---------- */

.pie-pagina { padding: 2.5rem 0 3rem; font-size: 0.95rem; color: var(--texto-suave); }
.pie-pagina .envoltura { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; }
.pie-pagina a { color: inherit; }
.pie-pagina .derecha { margin-left: auto; }

/* ---------- Páginas de texto (privacidad, aviso legal, baja) ---------- */

.texto { padding: clamp(2.5rem, 6vw, 4rem) 0 4rem; }
.texto .envoltura { max-width: 46rem; }
.texto h1 { font-size: clamp(2.1rem, 1.5rem + 2vw, 3rem); }
.texto h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.texto li { margin-bottom: 0.4rem; max-width: 64ch; }
.texto table { border-collapse: collapse; width: 100%; margin: 0.5rem 0 1rem; }
.texto th, .texto td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--linea); }
.texto th { width: 32%; color: var(--tinta); }
.texto .formulario + .letra-pequena { margin-top: 1.5rem; }
.pie-pagina .logo-pie img { height: 28px; width: auto; margin-right: 0.5rem; }

/* ---------- Seguridad: banda de verde noche destacada ---------- */

.seguridad { background: var(--noche); color: var(--noche-tinta); }
.seguridad h2, .seguridad h3 { color: var(--noche-tinta); }
.seguridad .envoltura > p:first-of-type { color: var(--noche-suave); font-size: 1.12rem; }
.medidas { display: grid; gap: 1.75rem 2.5rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .medidas { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .medidas { grid-template-columns: repeat(4, 1fr); } }
.medidas li { border-left: 3px solid var(--noche-acento); padding-left: 1rem; }
.medidas li:nth-child(even) { border-left-color: #d4a373; }
.medidas h3 { font-size: 1.08rem; }
.medidas p { margin: 0; color: var(--noche-suave); font-size: 0.98rem; }
.nota-dispositivos { margin-top: 2.25rem; font-weight: 600; color: var(--tinta); }
.seccion > .envoltura > p.nota-dispositivos { color: var(--tinta); }
#instalacion { padding-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Teléfono y correo bajo botón (no están en el HTML; los monta web.js) ---------- */

.contacto-directo { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.dato-oculto { display: inline-flex; align-items: center; }
.dato-oculto .boton-dato { display: none; }
.con-js .dato-oculto .boton-dato {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1.1rem;
  font: inherit; font-family: var(--letra-titulos); font-weight: 800; font-size: 1rem; cursor: pointer;
  border-radius: 12px; border: 2px solid var(--turquesa); background: transparent; color: var(--enlace);
}
.con-js .dato-oculto .boton-dato:hover { background: color-mix(in srgb, var(--turquesa) 12%, transparent); }
.con-js .dato-oculto .boton-dato[hidden] { display: none; }
.dato-valor:empty { display: none; }
.dato-valor { font-weight: 600; }
.dato-enlace { font-weight: 700; }
.empresas .con-js .dato-oculto .boton-dato, .con-js .empresas .dato-oculto .boton-dato { border-color: var(--noche-acento); color: var(--noche-tinta); }
.con-js .empresas .dato-oculto .boton-dato:hover { background: rgb(255 255 255 / 8%); }
.empresas .dato-valor { color: var(--noche-tinta); }
.texto td .dato-oculto .boton-dato { min-height: 2.4rem; padding: 0.3rem 0.9rem; font-size: 0.95rem; }
