/* BachilleratoFacilito · capa «Futurismo educativo»
   Se carga la última en todas las páginas. Afina, calma y unifica el sistema anterior (estilos.css + futuro.css + banners.css):
   superficies planas, un solo acento (cian), violeta como profundidad, movimiento con función y sin animaciones infinitas.
   Los tokens de aquí mandan: cualquier componente nuevo debe usar --px-*. */

/* ---------- 1. Tokens ----------------------------------------------------- */
:root {
  --px-bg: #0a0a0a;
  --px-surface: #111318;
  --px-raised: #171a21;
  --px-edge: #272a33;
  --px-edge-strong: #343846;
  --px-ink: #f5f7fa;
  --px-ink-2: #a1a7b3;
  --px-cyan: #22d3ee;
  --px-violet: #a78bfa;
  --px-ok: #34d399;
  --px-radius: 16px;
  --px-radius-sm: 10px;
  --px-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --px-fast: 160ms;
  --px-mid: 240ms;
}

/* Paleta oscura: se reasignan los tokens heredados para que todo el sitio los adopte */
html:not(.theme-light) {
  --bf-bg: var(--px-bg);
  --bf-paper: var(--px-bg);
  --bf-surface-solid: var(--px-surface);
  --bf-card: linear-gradient(180deg, #14171d 0%, var(--px-surface) 100%);
  --bf-white: var(--px-surface);
  --bf-ink: var(--px-ink);
  --bf-text: var(--px-ink);
  --bf-text-2: var(--px-ink-2);
  --bf-muted: var(--px-ink-2);
  --bf-line: var(--px-edge);
  --bf-border: var(--px-edge);
  --bf-border-strong: var(--px-edge-strong);
  --bf-green: var(--px-cyan);
  --bf-cyan: var(--px-cyan);
  --bf-accent-glow: var(--px-cyan);
  --bf-brand: var(--px-violet);
  --bf-brand-2: var(--px-violet);
  --bf-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --bf-shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
  --bf-glow: 0 0 0 1px rgba(34, 211, 238, 0.18);
  --primary: var(--px-violet);
  --secondary: var(--px-cyan);
  --bg-main: var(--px-bg);
}

/* ---------- 2. Fondo: una sola luz y una rejilla casi invisible -------------- */
html:not(.theme-light) body {
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(167, 139, 250, 0.12), transparent 70%),
    var(--px-bg);
}
html:not(.theme-light)::before { opacity: 0.35; }   /* rejilla de perspectiva: se queda como firma, no como protagonista */
.bf-cursor-glow { display: none !important; }
.bf-hero::before,
.bf-hero::after { display: none !important; }       /* manchas flotantes del hero */

/* ---------- 3. Sin animaciones infinitas (salvo carga y estados reales) ----------- */
html body .bf-header::after { animation: none; opacity: 0.5; background: linear-gradient(90deg, transparent, var(--px-cyan), var(--px-violet), transparent); }
html body .bf-hero h1,
html body .subject-hero h1,
html body .subject-page-heading h1 { animation: px-title-in 0.6s var(--px-ease) both; }
/* Sin desenfoque ni inclinación (bf-title-in): ese efecto se leía como parpadeo al pasar de borroso a nítido */
/* El título es el elemento LCP: se desplaza pero es visible desde el primer pintado (sin partir de opacidad 0) */
@keyframes px-title-in { from { transform: translateY(14px); } to { transform: none; } }
html body .bf-hero__copy h1 em { animation: none; }
/* El hero está en la primera pantalla: no hace el «revelado» del contenedor. Si lo hiciera, se animaría el bloque entero
   y después otra vez cada uno de sus hijos (parpadeo doble). Solo entran los hijos, una vez. */
html body .bf-hero.reveal { opacity: 1; transform: none; filter: none; transition: none !important; }
/* En la portada el velo de carga «Cargando» sumaba una segunda animación de entrada justo antes de la del hero.
   Ahí el contenido ya viene en el HTML, así que se quita el velo y queda una sola entrada. */
html:has(.bf-hero__copy) body .site-loader { display: none !important; }
html body .subject-hero::after { animation: none; display: none; }
html body .subject-hero__icon { animation: none; }

/* ---------- 4. Cabecera y navegación ------------------------------------- */
html:not(.theme-light) body .bf-header {
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--px-edge);
}
html body .bf-nav a { transition: color var(--px-fast) ease, background-color var(--px-fast) ease; }
html body .bf-nav a::after { background: var(--px-cyan); transition: transform var(--px-mid) var(--px-ease); }
html:not(.theme-light) body .bf-nav a:hover,
html:not(.theme-light) body .bf-nav a.is-current { background: rgba(255, 255, 255, 0.05) !important; }

/* ---------- 5. Foco visible: el mismo anillo para todo -------------------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--px-cyan);
  outline-offset: 3px;
}
html body .bf-resource-list__item:focus-visible { outline: 2px solid var(--px-cyan); outline-offset: 3px; }

/* ---------- 6. Tipografía del hero --------------------------------------- */
html body .bf-hero__copy h1 {
  font-family: var(--bf-font-display);
  font-weight: 600 !important;
  font-size: clamp(2.7rem, 6vw, 5.4rem) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.045em !important;
  max-width: 11ch;
}
html body .bf-hero__copy h1 em {
  background: linear-gradient(100deg, var(--px-cyan) 10%, var(--px-violet) 90%);
  -webkit-background-clip: text;
  background-clip: text;
}
html body .bf-hero__summary { max-width: 46ch !important; line-height: 1.7 !important; }

/* ---------- 7. Botones ------------------------------------------------------ */
html body .bf-button,
html body .btn-neon { transition: transform var(--px-fast) var(--px-ease), background-color var(--px-fast) ease, border-color var(--px-fast) ease, box-shadow var(--px-fast) ease; }
html:not(.theme-light) body .bf-button--primary,
html:not(.theme-light) body .bf-hero__cta {
  background: var(--px-cyan) !important;
  color: #04141a !important;
  border: 1px solid var(--px-cyan) !important;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.18) !important;
}
html:not(.theme-light) body .bf-button--primary:hover,
html:not(.theme-light) body .bf-hero__cta:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(34, 211, 238, 0.28) !important; filter: brightness(1.06); }
html body .bf-button:active,
html body .btn-neon:active { transform: translateY(0) scale(0.98); }
html body .bf-hero__cta span { color: inherit !important; transition: transform var(--px-mid) var(--px-ease); }
html body .bf-search-heading h2 { font-family: var(--bf-font-display) !important; font-weight: 600; letter-spacing: -0.03em; }
html body .bf-hero__cta:hover span { transform: translateX(4px); }

/* ---------- 8. Superficies: planas, sin 3D, con elevación discreta --------- */
html body .subject-block-card,
html body .card,
html body .glass-panel,
html body .library-card,
html body .comparison-card,
html body .history-card,
html body .template-block,
html body .physics-directory-card,
html body .subject-summary-card,
html body .bf-resource-list__item {
  --bf-rx: 0deg !important;
  --bf-ry: 0deg !important;
  border-radius: var(--px-radius);
  transform: translate3d(0, var(--bf-lift, 0px), 0);
  transition: transform var(--px-mid) var(--px-ease), border-color var(--px-mid) ease, box-shadow var(--px-mid) ease, background-color var(--px-mid) ease;
}
html body .subject-block-card:hover,
html body .card:hover,
html body .glass-panel:hover,
html body .library-card:hover,
html body .comparison-card:hover,
html body .history-card:hover,
html body .template-block:hover,
html body .physics-directory-card:hover,
html body .subject-summary-card:hover,
html body .bf-resource-list__item:hover {
  --bf-lift: -3px;
  transform: translate3d(0, -3px, 0) !important;
  border-color: color-mix(in srgb, var(--bf-accent, var(--px-cyan)) 45%, var(--px-edge)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 32px rgba(0, 0, 0, 0.38) !important;
}
/* los paneles grandes no se levantan: son contenedores, no destinos */
html body .glass-panel:hover { --bf-lift: 0px; transform: none !important; }
/* el foco de luz del puntero queda tenue */
html body .subject-block-card::before,
html body .card::before,
html body .history-card::before,
html body .library-card::before { background: radial-gradient(360px circle at var(--bf-gx, 50%) var(--bf-gy, 50%), color-mix(in srgb, var(--bf-accent, var(--px-cyan)) 12%, transparent), transparent 62%); }

/* ---------- 10. Búsqueda y cabeceras de sección ------------------------------ */
html:not(.theme-light) body .bf-hero__search {
  background: var(--px-surface) !important;
  border-color: var(--px-edge) !important;
  backdrop-filter: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
html:not(.theme-light) body .bf-hero__search::before { display: none; }
html body .bf-hero__search:focus-within { transform: none; box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16), 0 24px 60px rgba(0, 0, 0, 0.45); }
html body .bf-section-heading h2 { font-weight: 600; letter-spacing: -0.035em !important; }
html body .bf-eyebrow,
html body .bf-section-label { color: var(--px-cyan) !important; }

/* ---------- 11. Red de conocimiento del hero (SVG propio, sin librerías) ----- */
.bf-hero__field {
  position: absolute;
  top: 6px;
  right: clamp(22px, 5vw, 70px);
  z-index: 1;
  width: min(34vw, 490px);
  pointer-events: none;
}
.bf-hero__field svg { display: block; width: 100%; height: auto; overflow: visible; }
.bf-net__ring { fill: none; stroke: var(--px-edge); stroke-width: 1; stroke-dasharray: 2 7; }
.bf-net__edge {
  fill: none;
  stroke: var(--px-edge-strong);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: px-draw 0.9s var(--px-ease) 0.35s forwards;
}
.bf-net__node { opacity: 0; animation: px-node 0.45s var(--px-ease) forwards; animation-delay: calc(0.2s + var(--n, 0) * 70ms); }
.bf-net__node circle { fill: var(--px-bg); stroke: var(--bf-accent, var(--px-cyan)); stroke-width: 1; }
.bf-net__node text {
  fill: var(--bf-accent, var(--px-cyan));
  font-family: var(--bf-font-mono);
  font-size: 13px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
}
html.theme-light .bf-net__ring { stroke: rgba(37, 65, 120, 0.18); }
html.theme-light .bf-net__edge { stroke: rgba(37, 65, 120, 0.28); }
html.theme-light .bf-net__node circle { fill: #ffffff; }
@keyframes px-draw { to { stroke-dashoffset: 0; } }
@keyframes px-node { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) { .bf-hero__field { display: none; } }

/* ---------- 12. Móvil ------------------------------------------------------- */
@media (max-width: 960px) {
}
@media (max-width: 560px) {
  html body .bf-hero__copy h1 { font-size: clamp(2.4rem, 12vw, 3.3rem) !important; max-width: none; }
}

/* Áreas táctiles de 44 px en el menú móvil y de 40 px en las búsquedas rápidas */
@media (max-width: 960px) {
  html body .bf-nav.is-open a,
  html body .bf-nav.is-open button { min-height: 44px; display: flex; align-items: center; }
}
@media (pointer: coarse) {
  html body .bf-quick-search button,
  html body .bf-popular-search button { min-height: 40px; }
}

/* Texto ampliado (200 %) o pantallas de 320 px: las palabras largas se parten y las filas de botones pasan a otra línea
   en vez de ensanchar la página (reflow, WCAG 1.4.10). Los hijos de rejilla/flex pueden encogerse. */
html body :where(h1, h2, h3, h4, p, li, cite, dt, dd, label) { overflow-wrap: anywhere; }   /* «anywhere» (no «break-word») también reduce el ancho mínimo en rejillas y flex */
html body .ap-account__btn,
html body .cookie-banner__link,
html body .legal-nav a,
html body .bf-button,
html body .btn-neon { white-space: normal; }
html body .bf-section-label span,
html body .bf-eyebrow { overflow-wrap: anywhere; }
html body :where(.legal-nav) { min-width: 0; }
html body :where(.legal-content, .legal-section) { min-width: 0; max-width: 100%; }
html body :where(.library-hero__content, .cuenta-card, .bf-hero__copy, .subject-hero > div, .history-hero__content) { min-width: 0; }
html body :where(.ap-account__actions, .cuenta-actions, .bf-hero__actions) { flex-wrap: wrap; }

/* Solo para lectores de pantalla (títulos de estado sin duplicar lo visible) */
.bf-sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* El atributo hidden manda sobre cualquier display de componente (p. ej. la llamada a la acción vacía de pau-estructura) */
[hidden] { display: none !important; }

/* ---------- 13. Movimiento reducido ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  /* red de seguridad global: ninguna animación se repite ni dura y las transiciones son instantáneas (los eventos animationend siguen disparándose) */
  *, *::before, *::after {
    animation-iteration-count: 1 !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .bf-net__edge { animation: none; stroke-dashoffset: 0; }
  .bf-net__node { animation: none; opacity: 1; }
}

/* ---------- 13. Texto mínimo de 12 px y áreas táctiles de 44 px --------------------------------------------------------
   Medido en las 18 aplicaciones: etiquetas de 10-11,8 px y pestañas, chips, casillas y enlaces de menos de 44 px en móvil. */
html body :is(.bt-stat__label, .bt-eyebrow, .bt-badge, .nc-tag, .nc-score-label, .sx-eyebrow, .ef-eyebrow, .lm-eyebrow, .sx-chips-label, .pr-params dt, .mm-statusbar span) { font-size: max(0.75rem, 12px) !important; }
html body main :is(small, cite, .bt-block > h3, .bt-week__day h3, .pom-profile-btn small) { font-size: max(0.75rem, 12px) !important; }
/* fórmulas: los exponentes y subíndices de KaTeX (0,7 × tamaño base) bajaban de 11 px en Probabilidad y Óptica */
html:has(.pr-tabs) .katex, html:has(#tab-banco) .katex { font-size: 1.4em; }
@media (pointer: coarse) {
  html body :is(main, .bt-page) :is(button, summary, select, input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"])) { min-height: 44px; }
  html body :is(main, .bt-page) input[type="range"] { min-height: 44px; }
  html body :is([role="tab"], .sx-tab, .mf-tab, .nc-chip, .bt-chip, .sx-chip, .mf-chip, .ar-example-btn, .pom-sound-btn, .bt-btn, .btn-neon, .ef-scope-toggle, .sx-scope-toggle) { min-height: 44px; }
  html body main summary { padding-block: 11px; }
  /* casillas y botones de opción: la etiqueta entera es el área pulsable */
  html body :is(label.bt-check, label.bt-studied, label.bt-sem, .pom-check, label:has(> input[type="checkbox"]), label:has(> input[type="radio"])) { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
  html body input[type="checkbox"], html body input[type="radio"] { width: 22px; height: 22px; flex: 0 0 auto; }
  html body .bt-link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; }
}
/* ---------- 14. Aviso de cookies: compacto y no modal; el botón «Cookies» vive en el pie ---------------------------------
   Antes el aviso ocupaba ~760 × 200 px, dejaba toda la página inerte y el botón flotante tapaba contenido en cada pantalla. */
html body .cookie-banner { right: 16px; bottom: 16px; width: min(720px, calc(100% - 32px)); grid-template-columns: 1fr; padding: 14px 18px; gap: 10px; border-radius: 16px; }
html body .cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
html body .cookie-banner__actions .cookie-button { flex: 1 1 140px; }
html body .cookie-banner__eyebrow { display: none; }
html body .cookie-banner h2 { margin: 0 0 4px; font-size: 1rem; }
html body .cookie-banner__description { margin: 0; font-size: 0.84rem; line-height: 1.5; }
html body .cookie-button { min-height: 40px; padding: 8px 14px; font-size: 0.85rem; }
html body .cookie-settings-button--inline {
  position: static; display: inline-flex; align-items: center; width: auto; margin: 0 0 0 14px; padding: 6px 2px;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; color: inherit;
  font-size: 0.82rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
html body .cookie-settings-button--inline:hover, html body .cookie-settings-button--inline:focus-visible { background: transparent; color: var(--px-cyan, #22d3ee); }
@media (pointer: coarse) { html body .cookie-settings-button--inline { min-height: 44px; } html body .cookie-button { min-height: 44px; } }
@media (max-width: 700px) {
  html body .cookie-banner { right: 8px; bottom: 8px; width: calc(100% - 16px); max-height: 56dvh; padding: 14px; gap: 12px; }
  html body .cookie-banner__actions .cookie-button { flex: 1 1 0; padding-inline: 6px; font-size: 0.8rem; }
}
/* ---------- 15. Animaciones y coste de pintado ---------------------------------------------------------------------------
   · La insignia BETA del menú latía sin parar en las 18 aplicaciones: ahora late 4 veces y se queda quieta.
   · El símbolo del velo de transición flotaba sin fin aunque el velo estuviera oculto: solo anima mientras se ve.
   · .bt-card llevaba backdrop-filter (hasta 20 desenfoques a la vez en Tests): sobre un fondo uniforme no aporta nada y cuesta GPU. */
html body .bf-nav-wip-badge::before { animation-iteration-count: 4; }
html body .bf-transition:not(.is-active) .bf-transition__symbol { animation: none; }
html body .bt-card, html body main .btn-neon { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
/* ---------- 16. Tests: respiración y barra de salida ----------------------------------------------------------------------
   La pregunta pegaba con la barra de progreso y, en móvil, «Salir del test» caía a una fila propia. */
html body .bt-progress { margin-bottom: 22px; }
html body .bt-question { margin-top: 0; }
html body #quiz-play .bt-toolbar { flex-wrap: nowrap; align-items: flex-start; }
html body #quiz-play .bt-toolbar > div { min-width: 0; }
html body #quiz-play .bt-toolbar .bt-btn { flex: 0 0 auto; white-space: nowrap; }

/* ---------- Mejoras de diseño (octubre 2026) ---------- */
/* «Cómo funciona» de la portada */
.bf-how { margin: 56px auto 0; max-width: 1200px; padding: 0 20px; }
.bf-how__steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bf-how__step { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 20px; border-radius: 20px; border: 1px solid var(--bf-border, rgba(150,160,200,.25)); background: var(--bf-surface, rgba(14,21,40,.5)); }
.bf-how__step figure { margin: 0 0 6px; border-radius: 12px; overflow: hidden; border: 1px solid var(--bf-border, rgba(150,160,200,.25)); }
.bf-how__step img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.bf-how__step h3 { display: flex; gap: 10px; align-items: center; margin: 4px 0 0; font-size: 1.1rem; line-height: 1.25; }
.bf-how__step h3 span { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bf-brand, #7c5cff); color: #fff; font: 800 .9rem/1 var(--bf-font-mono, monospace); }
.bf-how__step p { margin: 0; color: var(--bf-muted); line-height: 1.55; font-size: .95rem; }
.bf-how__note { margin: 16px 2px 0; color: var(--bf-muted); font-size: .88rem; line-height: 1.5; }
@media (max-width: 900px) { .bf-how__steps { grid-template-columns: minmax(0, 1fr); } .bf-how { margin-top: 36px; } }
/* iconos de los bloques de asignatura: los emoji pasan a monocromo para que casen entre sí y con el tema */
.subject-block-card__icon { filter: grayscale(1) brightness(1.25) contrast(1.05); }
html[data-theme="light"] .subject-block-card__icon, html.theme-light .subject-block-card__icon { filter: grayscale(1) brightness(.62) contrast(1.15); }
.bt-note--ok { border-color: var(--bt-ok, #1f7a4d); background: color-mix(in srgb, var(--bt-ok, #1f7a4d) 12%, transparent); }

/* ---------- 17. Auditoría móvil (octubre 2026): áreas táctiles, 16 px en campos y banner de cookies ---------------------
   Medido a 390x844: marca 152x28, botón de menú 55x38, chips 44 px, selects de búsqueda con 11,2 px y campo de búsqueda con 15,7 px
   (iOS amplía la página al enfocar un campo con menos de 16 px). Solo cambia el tamaño de lo pulsable: no el diseño. */
html body :is(a, button, summary, label, select, input, [role="button"], [role="tab"]) { touch-action: manipulation; }
@media (max-width: 700px), (pointer: coarse) {
  html body .bf-brand { min-height: 48px; display: inline-flex; align-items: center; }
  html body .bf-menu-toggle { min-height: 48px; min-width: 48px; font-size: 1rem; }
  html body .bf-quick-search button,
  html body .bf-search-controls :is(select, input, button),
  html body .bf-hero__search :is(select, input, button) { min-height: 48px; font-size: 1rem; }
  html body .bf-quick-search { gap: 10px; }
  html body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea) { font-size: max(1rem, 16px); }
  html body .cookie-banner__link { display: inline-flex; align-items: center; min-height: 48px; }
  html body .cookie-banner__actions .cookie-button { min-height: 48px; }
  html body .cookie-banner__actions { gap: 10px; }
}
@media (max-width: 700px) {
  /* Aviso de cookies: mismas opciones, menos alto (texto y relleno más ajustados) para tapar menos pantalla en la primera visita. */
  html body .cookie-banner { padding: 12px 14px; gap: 8px; max-height: 46dvh; overflow-y: auto; overscroll-behavior: contain; }
  html body .cookie-banner p { margin: 0; line-height: 1.4; }
  html body .cookie-banner h2 { margin: 0; font-size: 1.05rem; }
}@media (max-width: 700px), (pointer: coarse) {
  /* La regla general de la sección 13 (main + button/select/input) pesa más: se repite con main para que 48 px y 16 px ganen en la portada. */
  html body main :is(.bf-quick-search button, .bf-search-controls :is(select, input, button), .bf-hero__search :is(select, input, button), #search-input) { min-height: 48px; font-size: 1rem; }
  html body main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]), select, textarea) { font-size: max(1rem, 16px); }
  html body .bf-search-controls label, html body .cookie-banner__description, html body .cookie-banner__link { font-size: 0.875rem; }
}html body .bf-search input { font-size: 1rem !important; }

/* ═══ 18. Aviso de cookies compacto, con áreas seguras y sin tapar contenido ═══
   Primera capa corta (título + una frase + «Más información»); el detalle se despliega a petición. En móvil los tres botones van
   en una sola fila. cookie-consent.js publica --bf-cookie-h (alto del aviso visible) y la clase has-cookie-banner en <html>:
   el pie de página gana ese margen, y los avisos flotantes (invitado, subir) se colocan por encima. */
html body .cookie-banner__toggle { display: inline; margin: -14px 0; padding: 14px 4px; min-height: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
html body .cookie-banner__toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
html body .cookie-banner__more { margin-top: 6px; }
html body .cookie-banner__more[hidden] { display: none; }
html body .cookie-banner__more p { margin: 0 0 4px; font-size: 0.82rem; line-height: 1.45; }
html.has-cookie-banner body { padding-bottom: calc(var(--bf-cookie-h, 0px) + 12px); }
html body #bf-guest-note { bottom: calc(12px + var(--bf-cookie-h, 0px) + env(safe-area-inset-bottom, 0px)) !important; }
@media (max-width: 700px) {
  html body .cookie-banner { left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; max-height: 40dvh; padding: 10px 12px; gap: 6px; }
  html body .cookie-banner h2 { font-size: 0.98rem; line-height: 1.25; }
  html body .cookie-banner__description { font-size: 0.8rem; line-height: 1.4; }
  html body .cookie-banner__actions, html body .cookie-banner__actions--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; min-width: 0; }
  html body .cookie-banner__actions .cookie-button { min-height: 44px; padding: 0 4px; font-size: 0.78rem; line-height: 1.1; flex: none; }
  html body .cookie-banner .cookie-options { margin: 8px 0 0; padding: 8px 10px; gap: 8px; }
}