/*
 * Base visual común de los sitios de Eleos Labs (Tovela, Oikos, ZeraAgro, FrontisCare).
 * Se carga DESPUÉS del estilo propio de cada sitio: fija tipografía, cabecera, botones, preguntas,
 * cierre y pie para que los cuatro se sientan de la misma familia. Cada sitio solo define sus colores:
 *
 *   --s-oscuro      fondo de la cabecera, la portada, las secciones oscuras, el cierre y el pie
 *   --s-brillo      color del brillo de la portada y del cierre (un tono medio de la marca)
 *   --s-acento      botón principal
 *   --s-acento-tinta texto sobre el botón principal
 *   --s-enlace      enlaces y detalles sobre fondo claro
 *   --s-tenue-osc   texto secundario sobre fondo oscuro
 *   --s-fondo, --s-tinta, --s-suave, --s-linea
 *
 * Versión de la plantilla: 1 (27-11-2026). Fuente única: plataforma/sitio/eleos-sitio.css.
 */

:root {
  --s-titulo: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --s-cuerpo: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body { font-family: var(--s-cuerpo); font-size: 17px; line-height: 1.6; background: var(--s-fondo); color: var(--s-tinta); }
h1, h2, h3, summary, .cabecera .marca, .pie-producto .marca { font-family: var(--s-titulo); }
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.ancho { width: min(1180px, 100% - 40px); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--s-acento); outline-offset: 3px; border-radius: 6px;
}

/* Botones */
.boton { font: 700 1rem var(--s-cuerpo); border-radius: 12px; padding: 15px 22px; gap: 10px; box-shadow: none; }
.boton.primario { background: var(--s-acento); color: var(--s-acento-tinta); }
.boton.primario:hover { background: color-mix(in srgb, var(--s-acento) 82%, #fff); }
.boton.borde, .boton.linea { background: transparent; border-color: rgba(255,255,255,.38); color: #fff; }
.boton.borde:hover, .boton.linea:hover { background: rgba(255,255,255,.08); }
.boton svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .boton:hover { transform: none; } }

/* Cabecera: marca, cuatro secciones, Entrar y el botón principal */
.cabecera { background: color-mix(in srgb, var(--s-oscuro) 94%, transparent); backdrop-filter: blur(10px); }
.cabecera .ancho { display: flex; align-items: center; gap: 22px; height: 68px; }
.cabecera .marca, .pie-producto .marca { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 1.42rem; font-weight: 800; letter-spacing: -0.03em; }
.cabecera .marca svg, .cabecera .marca img { width: 36px; height: 36px; }
.cabecera nav { display: flex; gap: 24px; margin-left: auto; }
.cabecera nav a { color: var(--s-tenue-osc); text-decoration: none; font-weight: 600; font-size: .95rem; }
.cabecera nav a:hover { color: #fff; }
.cabecera .entrar { color: #fff; font-weight: 600; text-decoration: none; font-size: .95rem; }
.cabecera .boton { padding: 10px 16px; font-size: .92rem; }
section[id] { scroll-margin-top: 76px; }

/* Portada */
.portada h1 { font-size: clamp(2.5rem, 5.3vw, 4.3rem); font-weight: 800; letter-spacing: -0.035em; line-height: .98; }
.portada .bajada { margin-top: 24px; font-size: 1.18rem; color: var(--s-tenue-osc); max-width: 33em; }
.portada .acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.portada .nota { margin-top: 16px; color: var(--s-tenue-osc); opacity: .85; font-size: .92rem; }

/* Secciones */
.bloque { padding: 96px 0; }
.oscuro { background: var(--s-oscuro); color: #fff; }
.oscuro .intro p { color: var(--s-tenue-osc); }

/* Preguntas frecuentes: filas con línea, iguales en los cuatro */
#preguntas h2 { margin-bottom: 36px; }
#preguntas details { background: none; border: 0; border-top: 1px solid var(--s-linea); border-radius: 0; padding: 20px 0; }
#preguntas details:last-of-type { border-bottom: 1px solid var(--s-linea); }
#preguntas summary { cursor: pointer; font-weight: 600; font-size: 1.15rem; padding: 0; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
#preguntas summary::-webkit-details-marker { display: none; }
#preguntas summary::after { content: "+"; font: 800 1.5rem/1 var(--s-titulo); color: var(--s-enlace); transition: transform .2s; }
#preguntas details[open] summary::after { transform: rotate(45deg); }
#preguntas details p { color: var(--s-suave); margin-top: 12px; padding: 0; max-width: 46em; }
#preguntas .preguntas { display: block; }
#preguntas .intro { display: block; margin-bottom: 0; }

/* Cierre: oscuro, centrado, con los mismos dos botones */
.final { background: radial-gradient(760px 400px at 50% 120%, var(--s-brillo) 0%, transparent 70%), var(--s-oscuro); color: #fff; padding: 96px 0; text-align: center; }
.final .ancho { display: block; }
.final h2 { margin-inline: auto; max-width: 20ch; color: #fff; }
.final p { color: var(--s-tenue-osc); margin: 18px auto 0; max-width: 36em; font-size: 1.1rem; }
.final .acciones { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.final .boton.primario { background: var(--s-acento); color: var(--s-acento-tinta); }

/* Precio con calculadora (ZeraAgro y FrontisCare; Tovela y Oikos traen la suya con tramos) */
.precio-comun { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.precio-comun .lado > p { color: var(--s-suave); font-size: 1.1rem; margin-top: 18px; max-width: 32em; }
.precio-comun ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.precio-comun li { padding-left: 28px; position: relative; }
.precio-comun li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--s-enlace); border-bottom: 2.5px solid var(--s-enlace); transform: rotate(-45deg); }
.tarjeta-precio { background: #fff; border: 1px solid var(--s-linea); border-radius: 20px; padding: 32px; display: grid; gap: 14px; }
.tarjeta-precio label { font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.tarjeta-precio output.valor { font: 800 1.2rem var(--s-titulo); color: var(--s-enlace); }
.tarjeta-precio input[type=range] { width: 100%; accent-color: var(--s-enlace); }
.tarjeta-precio .cifra { font: 800 clamp(2.4rem, 5vw, 3.2rem)/1 var(--s-titulo); letter-spacing: -0.03em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.tarjeta-precio .detalle { color: var(--s-suave); }
.tarjeta-precio .boton { justify-self: start; margin-top: 6px; }
.tarjeta-precio .boton.primario { background: var(--s-oscuro); color: #fff; }
.tarjeta-precio .nota-precio { color: var(--s-suave); font-size: .9rem; }
@media (max-width: 860px) { .precio-comun { grid-template-columns: 1fr; gap: 32px; } }

/* Pie del producto (sobre el pie común de Eleos Labs) */
.pie-producto { background: color-mix(in srgb, var(--s-oscuro) 82%, #000); color: var(--s-tenue-osc); padding: 44px 0; font-size: .92rem; }
.pie-producto .ancho { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: center; }
.pie-producto nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.pie-producto nav a { text-decoration: none; font-weight: 600; }
.pie-producto nav a:hover { text-decoration: underline; }
.pie-producto .marca { font-size: 1.2rem; }
.pie-producto .marca svg, .pie-producto .marca img { width: 28px; height: 28px; }
.pie-producto p + p { margin-top: 6px; }
.pie-producto a { color: #fff; }

@media (max-width: 960px) {
  .cabecera nav { display: none; }
  .cabecera .entrar { margin-left: auto; }
}
@media (max-width: 560px) {
  .cabecera .entrar { display: none; }
  .cabecera .ancho { gap: 12px; }
  .cabecera .boton { margin-left: auto; padding: 9px 12px; font-size: .86rem; white-space: nowrap; }
  .cabecera .marca { font-size: 1.22rem; }
  .cabecera .marca svg, .cabecera .marca img { width: 30px; height: 30px; }
  .bloque { padding: 72px 0; }
  .final { padding: 72px 0; }
}

/* Pie común de Eleos Labs, pegado al pie del producto */
.eleos-pie { margin-top: 0; background: var(--s-fondo); color: var(--s-suave); opacity: 1; }
