/* ==========================================================================
   Portada 3D — Faro de Red Pericial (Three.js)
   Sección a pantalla completa justo debajo del navbar. La escena es siempre
   nocturna, por eso sus tokens son propios y no cambian con el tema del sitio.
   Todas las clases van con prefijo .faro__ para no chocar con el sistema.
   ========================================================================== */

.faro {
  --faro-bg: #060a12;
  --faro-glass: rgba(14, 20, 32, 0.55);
  --faro-glass-strong: rgba(14, 20, 32, 0.84);
  --faro-stroke: rgba(255, 255, 255, 0.12);
  --faro-stroke-hi: rgba(255, 255, 255, 0.2);
  --faro-text: #eef2f8;
  --faro-muted: #a3adbf;
  --faro-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --faro-ease: var(--ease-out);
  /* Acento del sistema (azul en claro, dorado en oscuro). La escena siempre es
     nocturna: --faro-ink es la versión legible del acento sobre vidrio oscuro. */
  --faro-ink: #0071e3;
  /* Liquid Glass del navbar (valores de fondo oscuro), compartido por
     píldoras, tarjetas, selector de perfil y botón de vidrio */
  --lg-edge-hi: rgba(255, 255, 255, 0.42);
  --lg-edge-lo: rgba(255, 255, 255, 0.05);
  --lg-edge-tint: rgba(var(--rgb-accent), 0.32);
  --lg-inner: rgba(255, 255, 255, 0.14);
  --lg-ring: linear-gradient(135deg, var(--lg-edge-hi) 0%, var(--lg-edge-lo) 28%, var(--lg-edge-tint) 52%, var(--lg-edge-lo) 74%, var(--lg-edge-hi) 100%);
  --lg-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.7), 0 2px 8px -2px rgba(0, 0, 0, 0.4);
  --faro-card-w: min(272px, 82vw);

  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  background: var(--faro-bg);
  color: var(--faro-text);
  overflow: hidden;
  isolation: isolate; /* las etiquetas nunca pasan por encima del navbar */
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="dark"] .faro { --faro-ink: var(--color-accent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .faro { --faro-ink: var(--color-accent); }
}

/* Anillo Liquid Glass reutilizable (mismo borde refractivo del navbar cápsula) */
.faro__pill::after,
.faro__card::before,
.faro__idcard::before,
.faro .btn--glass::before,
.who__menu::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: var(--lg-ring);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity var(--transition-fast);
}

/* Canvas WebGL */
.faro__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y; /* arrastre horizontal gira la cámara; vertical desplaza la página */
  cursor: grab;
  outline: none;
}
.faro__canvas.is-dragging { cursor: grabbing; }
.faro__canvas.is-pointer { cursor: pointer; }

/* Degradado que da lectura al titular sin apagar la escena */
.faro__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 8, 16, 0.55) 0%, rgba(4, 8, 16, 0) 22%),
    linear-gradient(0deg, rgba(4, 8, 16, 0.9) 0%, rgba(4, 8, 16, 0.72) 34%, rgba(4, 8, 16, 0.2) 56%, rgba(4, 8, 16, 0) 68%);
}
@media (min-width: 1024px) {
  .faro__shade {
    background:
      linear-gradient(180deg, rgba(4, 8, 16, 0.5) 0%, rgba(4, 8, 16, 0) 20%),
      linear-gradient(90deg, rgba(4, 8, 16, 0.78) 0%, rgba(4, 8, 16, 0.45) 32%, rgba(4, 8, 16, 0) 58%);
  }
}

/* Capa de aplicaciones ancladas a las boyas */
.faro__apps {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.faro__app {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  will-change: transform;
  transition: opacity 0.5s var(--faro-ease);
}
.faro__app.is-hidden { opacity: 0; pointer-events: none; }

.faro__pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 5px 16px 5px 5px;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 55%),
    var(--faro-glass);
  color: var(--faro-text);
  -webkit-backdrop-filter: saturate(190%) blur(22px);
  backdrop-filter: saturate(190%) blur(22px);
  box-shadow:
    inset 0 1px 0.5px var(--lg-inner),
    inset 0 0 18px -6px var(--lg-edge-tint),
    var(--lg-shadow);
  font-family: inherit;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  letter-spacing: -0.005em;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-fast);
}
.faro__app:hover .faro__pill,
.faro__app.is-open .faro__pill,
.faro__app:focus-within .faro__pill {
  --lg-edge-tint: rgba(var(--rgb-accent), 0.75);
  --lg-edge-hi: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0.5px var(--lg-inner),
    inset 0 0 18px -4px rgba(var(--rgb-accent), 0.45),
    0 14px 36px -10px rgba(var(--rgb-accent), 0.45),
    var(--lg-shadow);
}
.faro__pill:active { transform: translateY(-1px) scale(0.98); }

/* Ícono: círculo de acento, como un botón primario en miniatura */
.faro__ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--color-on-accent);
  background:
    radial-gradient(120% 120% at 30% 15%, rgba(255, 255, 255, 0.35), transparent 50%),
    var(--color-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 8px rgba(var(--rgb-accent), 0.35);
}
.faro__ico svg,
.faro__head-ico svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.faro__stem { width: 1px; height: 30px; background: linear-gradient(var(--faro-ink), transparent); opacity: 0.7; }

/* Tarjeta de la boya: misma superficie Liquid Glass del selector "¿Quién eres?" */
.faro__card {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  width: var(--faro-card-w);
  padding: 8px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 45%),
    var(--faro-glass-strong);
  color: var(--faro-text);
  text-align: left;
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.16),
    0 24px 60px -18px rgba(0, 0, 0, 0.75);
  opacity: 0;
  visibility: hidden;
  transform: translate(calc(-50% + var(--dx, 0px)), calc(var(--dy, 0px) + 10px)) scale(0.96);
  transform-origin: 50% 100%;
  z-index: 2; /* por encima de la píldora si hay que desplazarla sobre ella */
  transition: opacity 260ms var(--faro-ease), transform var(--transition-normal), visibility 0s linear 420ms;
  /* Alto limitado por js/faro.js (--card-max) cuando no cabe en pantalla */
  display: flex;
  flex-direction: column;
  max-height: var(--card-max, none);
}
.faro__head { flex: none; }
/* Descripción y lista: se desplazan por dentro si la tarjeta está limitada */
.faro__card-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  -webkit-overflow-scrolling: touch;
}
.faro__card-body::-webkit-scrollbar { width: 6px; }
.faro__card-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.22); border-radius: 3px; }
/* Desvanecido inferior que indica que hay más productos */
/* Con poco alto, la lista de productos tiene prioridad sobre la descripción */
.faro__card.is-clamped.has-list .faro__desc { display: none; }
.faro__card.is-clamped:not(.at-end) .faro__card-body {
  -webkit-mask: linear-gradient(#000 calc(100% - 22px), transparent);
  mask: linear-gradient(#000 calc(100% - 22px), transparent);
}
.faro__card::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }
/* Sin espacio arriba (cerca del navbar): la tarjeta se abre debajo de la boya */
.faro__app.is-below .faro__card {
  bottom: auto;
  top: calc(100% + 8px);
  transform-origin: 50% 0;
  transform: translate(calc(-50% + var(--dx, 0px)), calc(var(--dy, 0px) - 10px)) scale(0.96);
}
.faro__app.is-below .faro__card::after { top: auto; bottom: 100%; height: 56px; }
.faro__app:hover .faro__card,
.faro__app:focus-within .faro__card,
.faro__app.is-open .faro__card,
.faro__app.is-below:hover .faro__card,
.faro__app.is-below:focus-within .faro__card,
.faro__app.is-below.is-open .faro__card {
  opacity: 1;
  visibility: visible;
  transform: translate(calc(-50% + var(--dx, 0px)), var(--dy, 0px)) scale(1);
  transition-delay: 0s;
}

/* Encabezado: ícono en baldosa de acento (como el menú móvil) + antetítulo + título */
.faro__head {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 4px;
}
.faro__head-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--faro-ink);
  background: linear-gradient(160deg, rgba(var(--rgb-accent), 0.24), rgba(var(--rgb-accent), 0.07));
  box-shadow: inset 0 0 0 1px rgba(var(--rgb-accent), 0.32);
}
.faro__head-ico svg { width: 20px; height: 20px; }
.faro__head-txt { display: grid; gap: 3px; min-width: 0; }
.faro__label {
  margin: 0;
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--faro-muted);
}
.faro__card h3 { margin: 0; font-size: 15px; font-weight: var(--fw-semibold); letter-spacing: -0.015em; line-height: 1.25; color: inherit; }
.faro__desc { margin: 6px 8px 0; font-size: 13px; line-height: 1.5; color: var(--faro-muted); }

/* Productos de la boya: filas como las opciones de "¿Quién eres?" */
.faro__products { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.faro__products a {
  display: grid;
  grid-template-columns: 1fr 16px;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  color: var(--faro-text);
  font-size: 13.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.005em;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
}
.faro__products a svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--faro-muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 260ms var(--faro-ease), stroke var(--transition-fast);
}
.faro__products a:hover,
.faro__products a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(var(--rgb-accent), 0.45);
  color: #fff;
  outline: none;
}
.faro__products a:hover svg,
.faro__products a:focus-visible svg { transform: translateX(3px); stroke: var(--faro-ink); }

/* Título de la tarjeta = enlace a Productos (sustituye al botón "Ver en Productos").
   Toda la cabecera (ícono + antetítulo + título) es zona de clic. */
.faro__head { position: relative; border-radius: var(--radius-sm); transition: background-color var(--transition-fast); }
.faro__head:hover,
.faro__head:focus-within { background: rgba(255, 255, 255, 0.06); }
.faro__title-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  outline: none;
}
.faro__title-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.faro__title-link svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: var(--faro-ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 260ms var(--faro-ease);
}
.faro__head:hover .faro__title-link,
.faro__title-link:focus-visible { color: #fff; }
.faro__head:hover .faro__title-link svg,
.faro__title-link:focus-visible svg { transform: translateX(3px); }
.faro__title-link:focus-visible::after { box-shadow: inset 0 0 0 2px var(--faro-ink); }
/* Sin botón al pie: un poco de aire bajo la descripción de las tarjetas de un solo producto */
.faro__card:not(.has-list) .faro__card-body { padding-bottom: 8px; }

.faro :focus-visible { outline: 2px solid var(--faro-ink); outline-offset: 3px; }

/* Con una tarjeta abierta, la capa de boyas pasa sobre el titular (en celular
   la tarjeta quedaba detrás de los botones) */
.faro:has(.faro__app.is-open, .faro__app:hover, .faro__app:focus-within) .faro__apps { z-index: 4; }
.faro:has(.who.is-open) .faro__apps { z-index: 2; }

/* ---- Letrero: misión y visión (js/faro.js → placeSign) ----
   El contenedor se posiciona en px desde JS (esquina superior izquierda de la
   tarjeta). La tarjeta usa la misma superficie Liquid Glass de las boyas. */
.faro__sign {
  --faro-id-w: min(560px, calc(100vw - 24px));
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: var(--faro-id-w);
  pointer-events: none;
  will-change: transform;
}
.faro.has-sign-open .faro__sign { z-index: 4; } /* por encima del titular */
.faro__sign-trigger {
  /* Solo para teclado y lectores de pantalla: al recibir foco abre la tarjeta */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.faro__idcard {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: var(--card-max, none);
  padding: 8px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 45%),
    var(--faro-glass-strong);
  color: var(--faro-text);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.16),
    0 24px 60px -18px rgba(0, 0, 0, 0.75),
    0 0 80px -30px rgba(var(--rgb-accent), 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.96);
  transform-origin: 50% 100%;
  transition: opacity 280ms var(--faro-ease), transform 460ms var(--faro-ease), visibility 0s linear 460ms;
}
.faro__sign.is-below .faro__idcard { transform-origin: 50% 0; transform: translateY(-10px) scale(0.96); }
/* Puente invisible hacia el letrero: el cursor pasa a la tarjeta sin cerrarla */
.faro__idcard::after { content: ""; position: absolute; left: 15%; right: 15%; top: 100%; height: 18px; }
.faro__sign.is-below .faro__idcard::after { top: auto; bottom: 100%; }
.faro__sign.is-open:not(.is-hidden) .faro__idcard {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition-delay: 0s;
}
.faro__sign:focus-within .faro__idcard { --lg-edge-tint: rgba(var(--rgb-accent), 0.85); --lg-edge-hi: rgba(255, 255, 255, 0.65); }

.faro__idcard h3 { margin: 0; font-size: 15px; font-weight: var(--fw-semibold); letter-spacing: -0.015em; line-height: 1.25; color: inherit; }
.faro__idcard-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
.faro__id {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 360ms var(--faro-ease), transform 460ms var(--faro-ease);
}
.faro__sign.is-open .faro__id { opacity: 1; transform: none; }
.faro__sign.is-open .faro__id:nth-child(1) { transition-delay: 70ms; }
.faro__sign.is-open .faro__id:nth-child(2) { transition-delay: 140ms; }
.faro__id-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--color-on-accent);
  background:
    radial-gradient(120% 120% at 30% 15%, rgba(255, 255, 255, 0.35), transparent 50%),
    var(--color-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 8px rgba(var(--rgb-accent), 0.35);
}
.faro__id-ico svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.faro__id-txt { display: grid; gap: 6px; }
.faro__id h4 {
  margin: 0;
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--faro-ink);
}
.faro__id p { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(235, 240, 248, 0.86); text-wrap: pretty; }
.faro__head-ico svg { stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.faro__id-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  gap: 6px;
  margin: 8px 6px 4px;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--faro-ink);
  text-decoration: none;
}
.faro__id-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 260ms var(--faro-ease); }
.faro__id-link:hover svg,
.faro__id-link:focus-visible svg { transform: translateX(3px); }
@media (max-width: 560px) {
  .faro__idcard-body { grid-template-columns: 1fr; }
  .faro__id { grid-template-columns: 32px 1fr; align-items: start; gap: 12px; padding: 12px; }
  .faro__id p { font-size: 13px; }
}

/* ---- Titular del hero ---- */
.faro__copy {
  position: absolute;
  inset: auto 0 clamp(2.5rem, 8vh, 6.5rem) 0;
  z-index: 3;
  pointer-events: none; /* el puntero sigue moviendo el haz sobre el texto */
}
@media (min-width: 1024px) {
  .faro__copy { inset: 0; display: flex; align-items: flex-end; padding: var(--header-h) 0 clamp(3.5rem, 11vh, 7.5rem); }
  .faro__copy > .container { width: 100%; }
}
/* Tablet y escritorio: botones del hero pegados al borde inferior.
   En celular se conserva la posición: los botones ocupan todo el ancho y deben
   quedar por encima del botón flotante de WhatsApp. */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Ocupa todo el hero (como en escritorio) para poder ubicar el titular en el horizonte */
  .faro__copy { inset: 0; display: flex; align-items: flex-end; padding: 0 0 clamp(1rem, 2.5vh, 1.75rem); }
  .faro__copy > .container { width: 100%; }
}
@media (min-width: 1024px) {
  .faro__copy { padding-bottom: clamp(1rem, 2.5vh, 1.75rem); }
}
.faro__copy-inner { max-width: 36rem; }
.faro__eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faro-ink);
}
.faro__title {
  margin: 0;
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #f5f5f7;
  text-wrap: balance;
}
.faro__title span { display: block; }
.faro__title span:last-child { color: rgba(245, 245, 247, 0.58); }

/* Tablet y PC: el titular se posa sobre la línea del horizonte, siempre a la
   izquierda (alineado con los botones) y en dos líneas: "Luz sobre" arriba y
   "los hechos" abajo. js/faro.js publica en .faro:
   --horizon-y    → altura del horizonte en px (borde del océano en la vista)
   --horizon-fs   → tamaño de letra (según alto y ancho del hero)
   --horizon-left → borde izquierdo del contenido (mismo de los botones)
   Si no cabe entre el navbar y el horizonte, baja lo justo para no taparse. */
@media (min-width: 768px) {
  .faro__title {
    position: absolute;
    left: var(--horizon-left, var(--gutter, 24px));
    bottom: calc(100% - var(--horizon-y, 15%));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: var(--horizon-fs, 3rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 0 28px rgba(150, 185, 235, 0.22), 0 2px 18px rgba(4, 8, 16, 0.55);
    transition: opacity 0.6s var(--faro-ease);
  }
  .faro__title span { display: block; }
}

/* Celular: el titular se oculta a la vista (se conserva para lectores y SEO) */
@media (max-width: 767px) {
  .faro__title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
.faro__lead {
  margin: 1.25rem 0 0;
  max-width: 32ch;
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.1875rem);
  line-height: 1.5;
  color: rgba(235, 240, 248, 0.8);
}
.faro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  pointer-events: auto;
}

/* Botón de vidrio para fondos oscuros */
.btn--glass {
  --btn-bg: rgba(255, 255, 255, 0.1);
  --btn-fg: #f5f5f7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
}
.btn--glass:hover { --btn-bg: rgba(255, 255, 255, 0.18); }
/* En la portada: misma cápsula Liquid Glass del navbar */
.faro .btn--glass {
  position: relative;
  isolation: isolate;
  --btn-bg: rgba(14, 20, 32, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 55%),
    var(--btn-bg);
  box-shadow:
    inset 0 1px 0.5px var(--lg-inner),
    inset 0 0 18px -6px var(--lg-edge-tint),
    var(--lg-shadow);
  -webkit-backdrop-filter: saturate(190%) blur(22px);
  backdrop-filter: saturate(190%) blur(22px);
}
.faro .btn--glass:hover {
  --btn-bg: rgba(255, 255, 255, 0.12);
  --lg-edge-tint: rgba(var(--rgb-accent), 0.6);
}

/* Entrada: el titular aparece cuando la escena está lista */
.motion-ok .faro__copy-inner > * { opacity: 0; transform: translateY(18px); }
.motion-ok .faro.is-ready .faro__copy-inner > *,
.motion-ok .faro.is-failed .faro__copy-inner > * {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--faro-ease), transform 1.1s var(--faro-ease);
}
.motion-ok .faro.is-ready .faro__copy-inner > :nth-child(2) { transition-delay: 0.08s; }
.motion-ok .faro.is-ready .faro__copy-inner > :nth-child(3) { transition-delay: 0.22s; }
.motion-ok .faro.is-ready .faro__copy-inner > :nth-child(4) { transition-delay: 0.34s; }

/* ---- Navbar sobre la escena: vidrio oscuro y texto claro ---- */
.site-header.is-on-dark:not(.menu-open) {
  --color-text: #f5f5f7;
  --color-text-soft: rgba(245, 245, 247, 0.8);
  --rgb-text: 245, 245, 247;
  --glass-bg: rgba(8, 12, 20, 0.42);
  --glass-line: rgba(255, 255, 255, 0.08);
}

/* Cargador */
.faro__loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: var(--faro-bg);
  transition: opacity 1.1s var(--faro-ease);
}
.faro__loader.is-done { opacity: 0; pointer-events: none; }
.faro__loader > div { display: grid; place-items: center; gap: 18px; }
.faro__loader p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9d2e0;
}
/* Logo del faro (dorado: el fondo de la escena es oscuro en ambos temas)
   rodeado por el anillo de carga; la lámpara "respira" con un halo suave. */
.faro__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
}
.faro__logo {
  width: auto;
  height: 58px;
  filter: drop-shadow(0 0 14px rgba(224, 159, 0, 0.35));
  animation: faro-glow 2.4s ease-in-out infinite;
}
.faro__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #e09f00;
  animation: faro-spin 1.1s linear infinite;
}
@keyframes faro-spin { to { transform: rotate(360deg); } }
@keyframes faro-glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(224, 159, 0, 0.2)); }
  50% { filter: drop-shadow(0 0 20px rgba(224, 159, 0, 0.5)); }
}
@media (prefers-reduced-motion: reduce) {
  .faro__logo { animation: none; }
  .faro__ring { animation-duration: 2.4s; }
}

@media (max-width: 680px) {
  .faro__actions .btn { flex: 1 1 auto; }
  .faro__pill { font-size: 12px; padding: 4px 12px 4px 4px; }
  .faro__pill { min-height: 36px; }
  .faro__ico { width: 26px; height: 26px; }
  .faro__ico svg { width: 14px; height: 14px; }
  .faro__stem { height: 22px; }
  /* Celular: tarjeta compacta (la lista de productos ya dice lo esencial) */
  .faro__card.has-list .faro__desc { display: none; }
  .faro__products a { min-height: 40px; padding-block: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .faro *, .faro *::before, .faro *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .faro { display: none !important; }
}

/* ---- "¿Quién eres?": selector de perfil (vidrio oscuro) ----
   Se abre hacia arriba para no quedar recortado por el borde del hero. */
.who { position: relative; display: inline-flex; flex: 0 1 auto; }
/* Botones del hero: tamaño compacto (sobrescribe .btn--lg) */
.faro__actions .btn--lg { min-height: 44px; padding: 0.7rem 1.35rem; font-size: 0.875rem; }
.faro__actions .btn--lg .btn__icon { width: 14px; height: 14px; }
.who__toggle { cursor: pointer; }
.who__chev { transition: transform 420ms var(--faro-ease); }
.who__toggle[aria-expanded="true"] .who__chev { transform: rotate(180deg); }

.who__menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  z-index: 6;
  width: min(360px, calc(100vw - 2 * var(--gutter)));
  padding: 8px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 45%),
    var(--faro-glass-strong);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.16),
    0 24px 60px -18px rgba(0, 0, 0, 0.75);
  color: var(--faro-text);
  transform-origin: 18% 100%;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: opacity 260ms var(--faro-ease), transform 420ms var(--faro-ease);
}
/* Borde Liquid Glass: anillo compartido (ver arriba) */
.who__menu[hidden] { display: none; }
.who.is-open .who__menu { opacity: 1; transform: none; }

.who__label {
  margin: 6px 12px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--faro-muted);
}
.who__opt {
  display: grid;
  grid-template-columns: 40px 1fr 18px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  color: var(--faro-text);
  text-decoration: none;
  opacity: 0;
  transform: translateY(6px);
  transition: background-color 180ms ease, opacity 360ms var(--faro-ease), transform 420ms var(--faro-ease);
}
.who.is-open .who__opt { opacity: 1; transform: none; }
.who.is-open .who__opt:nth-of-type(1) { transition-delay: 0ms, 60ms, 60ms; }
.who.is-open .who__opt:nth-of-type(2) { transition-delay: 0ms, 110ms, 110ms; }
.who.is-open .who__opt:nth-of-type(3) { transition-delay: 0ms, 160ms, 160ms; }
.who.is-open .who__opt:nth-of-type(4) { transition-delay: 0ms, 210ms, 210ms; }
.who.is-open .who__opt:nth-of-type(5) { transition-delay: 0ms, 260ms, 260ms; }
.who__opt:hover,
.who__opt:focus-visible { background: rgba(255, 255, 255, 0.08); outline: none; }
.who__opt:focus-visible { box-shadow: inset 0 0 0 1.5px var(--faro-ink); }
.who__ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--faro-ink);
  background: linear-gradient(160deg, rgba(var(--rgb-accent), 0.24), rgba(var(--rgb-accent), 0.07));
  box-shadow: inset 0 0 0 1px rgba(var(--rgb-accent), 0.32);
}
.who__ico svg { width: 20px; height: 20px; }
.who__txt { display: grid; gap: 2px; min-width: 0; }
.who__txt strong { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.who__txt small { font-size: 12.5px; color: var(--faro-muted); }
.who__opt > svg { width: 16px; height: 16px; color: var(--faro-muted); transition: transform 260ms var(--faro-ease), color 180ms ease; }
.who__opt:hover > svg,
.who__opt:focus-visible > svg { transform: translateX(3px); color: var(--faro-ink); }

@media (max-width: 767px) {
  .who { flex: 1 1 auto; }
  .who__toggle { width: 100%; justify-content: center; }
}
