/* ============================================================
   ProfeAcademī — Landing (index.html)
   ------------------------------------------------------------
   Mismo lenguaje que el launcher (profeacademi.html, tema claro):
   - Fondo: como el del launcher (degradado radial y olas abajo,
     animated-backgrounds.css), con los colores del logo: celeste y
     franjas amarillo · rosa · azul marino. Las olas se hunden al
     bajar y el pie de página es el mar.
   - Header en islas de vidrio (bloque «HEADER EN ISLAS»): marca,
     pestañas con glider y cuenta.
   - Pestañas y filtros con el glider de colores del launcher
     (Libro rojo, Apps azul, Mi Clase verde, rosa).
   - El índice de libro abierto del Libro de Clases
     (pa-libro-clases.css, «3b · EL ÍNDICE») y las baldosas de apps
     con íconos 3D (launcher-cards-experiment.css).
   Sin Tailwind: CSS propio, sin build step.
   ============================================================ */

/* ── 1. Tokens ── */
:root {
  color-scheme: light;

  --tinta:   #1a202c;
  --tinta-2: rgba(30, 30, 30, 0.66);
  --tinta-3: rgba(30, 30, 30, 0.48);

  --fuente:          -apple-system, BlinkMacSystemFont, 'SF Pro Text', Inter, 'Segoe UI', system-ui, sans-serif;
  --fuente-titulo:   'Sora', 'Poppins', system-ui, -apple-system, sans-serif;
  --fuente-etiqueta: 'Poppins', -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Colores del logo (assets/icons/PALOGO.png): fondo amarillo, «a» rosa y
     el templo en tres azules. El fondo y el mar salen de aquí. */
  --logo-amarillo: #f4bd02;
  --logo-rosa:     #f04476;
  --logo-azul:     #26699f;
  --logo-azul-2:   #244e83;
  --logo-azul-3:   #223a6f;
  --crema: #fffaea;
  --mar:   var(--logo-azul-3);

  /* Vidrio de las islas del header (Liquid Glass del launcher) */
  --vidrio-borde: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.4) 30%, rgba(255, 255, 255, 0.14) 62%, rgba(255, 255, 255, 0.65)) border-box;
  --vidrio:       linear-gradient(rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.16)) padding-box, var(--vidrio-borde);
  --vidrio-denso: linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.58)) padding-box, var(--vidrio-borde);
  --vidrio-sombra:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2),
    0 1px 1px rgba(15, 23, 42, 0.04),
    0 16px 40px -16px rgba(15, 23, 42, 0.32);
  --vidrio-filtro: blur(30px) saturate(1.9);

  /* Gliders: los colores de las pestañas del launcher */
  --g-verde:   linear-gradient(135deg, #22c55e, #15803d);
  --g-verde-s: 0 0 18px rgba(34, 197, 94, 0.5), inset 0 0 10px rgba(187, 247, 208, 0.35);
  --g-rojo:    linear-gradient(135deg, #ef4444, #b91c1c);
  --g-rojo-s:  0 0 18px rgba(239, 68, 68, 0.5), inset 0 0 10px rgba(254, 202, 202, 0.35);
  --g-azul:    linear-gradient(135deg, #3b82f6, #4f46e5);
  --g-azul-s:  0 0 18px rgba(79, 70, 229, 0.4), inset 0 0 10px rgba(147, 197, 253, 0.3);
  --g-rosa:    linear-gradient(135deg, #f472b6, #ec4899);
  --g-rosa-s:  0 0 18px rgba(244, 114, 182, 0.55), inset 0 0 10px rgba(255, 200, 240, 0.4);

  --rebote: cubic-bezier(0.37, 1.95, 0.66, 0.56);   /* el del glider del launcher */
  --suave:  cubic-bezier(0.22, 0.61, 0.36, 1);

  --cab-alto: 52px;
  --cab-arriba: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--fuente);
  font-size: 16px;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--crema);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #4f46e5; outline-offset: 3px; }

.material-symbols-outlined { font-size: 20px; line-height: 1; }

/* Wordmark: "Profe" en Abril Fatface, "academi" en Pacifico */
.pa-wordmark { display: inline-flex; align-items: baseline; white-space: nowrap; letter-spacing: -0.01em; }
.wm-profe   { font-family: 'Abril Fatface', Georgia, serif; font-weight: 400; color: #000; }
.wm-academi { font-family: 'Pacifico', cursive; font-weight: 400; color: #f33678; }

/* ── 2. Fondo y olas: «Cielo del templo» (elegido el 10-10-2026) ──
   Celeste sacado de los azules del logo con un sol amarillo arriba, y olas
   en franjas opacas amarillo · rosa · azul marino (los colores del logo).
   Cada franja es una capa con la máscara assets/landing/ola.svg; las capas
   van desfasadas para que el rosa y el amarillo se crucen. */
:root {
  --fondo:
    radial-gradient(circle at 10% 6%, rgba(244, 189, 2, 0.22), transparent 30%),
    radial-gradient(ellipse at 50% 35%, #ffffff 0%, #f1f7fd 42%, #c6dbf0 100%);
  --ola-svg: url(assets/landing/ola.svg);
  --ola-1: var(--logo-amarillo);
  --ola-2: var(--logo-rosa);
  --ola-3: var(--logo-azul-3);
  --ola-dy2: 0.085;
  --ola-dy3: 0.17;
  --ola-x2: -160px;
  --ola-x3: -340px;
}
.pa-fondo {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--fondo);
}
.pa-olas {
  --ola-alto: 198px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--ola-alto) + 5vh);
  z-index: -1;
  pointer-events: none;
  transform: translateY(calc(var(--hundir, 0) * 100%));
  will-change: transform;
}
.pa-ola {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--ola-alto);
  background: var(--ola-1);
  -webkit-mask: var(--ola-svg) repeat-x 0 0 / 1600px 100%;
          mask: var(--ola-svg) repeat-x 0 0 / 1600px 100%;
}
.pa-ola:nth-child(2) {
  top: calc(var(--ola-alto) * var(--ola-dy2));
  background: var(--ola-2);
  -webkit-mask-position: var(--ola-x2) 0;
          mask-position: var(--ola-x2) 0;
}
.pa-ola:nth-child(3) {
  top: calc(var(--ola-alto) * var(--ola-dy3));
  background: var(--ola-3);
  -webkit-mask-position: var(--ola-x3) 0;
          mask-position: var(--ola-x3) 0;
}
.pa-mar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5vh;
  background: var(--mar);
}

/* ── 3. Vidrio y botones ── */
.pa-isla {
  background: var(--vidrio);
  border: 1px solid transparent;
  border-radius: 100px;
  box-shadow: var(--vidrio-sombra);
  -webkit-backdrop-filter: var(--vidrio-filtro);
          backdrop-filter: var(--vidrio-filtro);
}
.pa-panel {
  background: var(--vidrio-denso);
  border: 1px solid transparent;
  border-radius: 28px;
  box-shadow: var(--vidrio-sombra);
  -webkit-backdrop-filter: var(--vidrio-filtro);
          backdrop-filter: var(--vidrio-filtro);
}
/* Modo liviano (sin backdrop-filter): el vidrio se vuelve casi opaco */
html.lite-mode .pa-isla  { background: linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.74)) padding-box, var(--vidrio-borde); }
html.lite-mode .pa-panel { background: linear-gradient(#fff, rgba(255, 255, 255, 0.92)) padding-box, var(--vidrio-borde); }

.pa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 100px;
  font-family: var(--fuente);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--suave), box-shadow 0.25s ease, background 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.pa-btn:active { transform: scale(0.97); }
.pa-btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.pa-btn-grande { height: 52px; padding: 0 28px; font-size: 16px; }
.pa-btn-ico { width: 22px; height: 22px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.18)); }
.pa-btn-grande .pa-btn-ico { width: 26px; height: 26px; }

/* Tinta: el glider azul del launcher hecho botón */
.pa-btn-tinta {
  color: #fff;
  background: var(--g-azul);
  box-shadow: var(--g-azul-s);
}
.pa-btn-tinta:hover { transform: translateY(-1px); box-shadow: 0 0 26px rgba(79, 70, 229, 0.55), inset 0 0 10px rgba(147, 197, 253, 0.35); }

/* Amarillo del logo: el mismo brillo de los gliders, con texto azul marino */
.pa-btn-amarillo {
  color: var(--logo-azul-3);
  background: linear-gradient(135deg, #ffd94d, var(--logo-amarillo));
  box-shadow: 0 0 18px rgba(244, 189, 2, 0.45), inset 0 0 10px rgba(255, 246, 205, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.pa-btn-amarillo:hover { transform: translateY(-1px); box-shadow: 0 0 26px rgba(244, 189, 2, 0.6), inset 0 0 10px rgba(255, 246, 205, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6); }

/* Vidrio: una isla más */
.pa-btn-vidrio {
  color: var(--tinta);
  background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.45)) padding-box, var(--vidrio-borde);
  border: 1px solid transparent;
  box-shadow: var(--vidrio-sombra);
  -webkit-backdrop-filter: var(--vidrio-filtro);
          backdrop-filter: var(--vidrio-filtro);
}
.pa-btn-vidrio:hover { transform: translateY(-1px); background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.65)) padding-box, var(--vidrio-borde); }

/* Etiqueta de vidrio sobre cada título */
.pa-etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  font-family: var(--fuente-etiqueta);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tinta-2);
}
.pa-etiqueta .material-symbols-outlined { font-size: 18px; color: #f6bd00; font-variation-settings: 'FILL' 1; }
.pa-etiqueta-ico { width: 20px; height: 20px; object-fit: contain; }

/* Insignia «Alpha» naranja (la de la pestaña Libro del launcher) */
.pa-alpha {
  padding: 0.05em 0.55em;
  border-radius: 999px;
  font-family: var(--fuente);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.5;
  color: #fff;
  background: #ff9500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Ícono de categoría (PNG de Icons8 usado como máscara, como los chips) */
.pa-cat-ico {
  flex: none;
  width: 16px;
  height: 16px;
  background-color: var(--c, #4f46e5);
  -webkit-mask: var(--img) center / contain no-repeat;
          mask: var(--img) center / contain no-repeat;
}

/* ── 4. Header en islas ── */
.pa-cab {
  position: fixed;
  top: calc(var(--cab-arriba) + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  pointer-events: none;          /* solo las islas se tocan */
}
.pa-cab > * { pointer-events: auto; }

.pa-marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: var(--cab-alto);
  padding: 0 18px 0 8px;
  text-decoration: none;
}
.pa-marca-logo { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; }
.pa-marca .pa-wordmark { font-size: 21px; }

.pa-cuenta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--cab-alto);
  padding: 0 6px;
}

/* Grupo con glider: el indicador se mueve al elemento activo
   (index-vista.js fija --gx y --gw midiendo el elemento). */
.pa-grupo { position: relative; }
.pa-glider {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: var(--gw, 0px);
  transform: translateX(var(--gx, 0px));
  border-radius: 100px;
  background: var(--g-azul);
  box-shadow: var(--g-azul-s);
  opacity: 0;
  z-index: 0;
  transition: transform 0.5s var(--rebote), width 0.35s var(--suave), background 0.4s ease, box-shadow 0.4s ease, opacity 0.2s ease;
}
.pa-grupo.pa-glider-listo .pa-glider { opacity: 1; }
.pa-grupo.pa-sin-transicion .pa-glider { transition: none; }

.pa-pestanas {
  display: flex;
  align-items: stretch;
  height: var(--cab-alto);
  padding: 5px;
}
.pa-pestana {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 0 18px;
  border-radius: 100px;
  font-family: var(--fuente);
  font-size: 13px;
  font-weight: 600;
  color: rgba(30, 30, 30, 0.55);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.pa-pestana:hover { color: #111; }
.pa-pestana[aria-current] { color: #fff; }
.pa-pestana .pa-alpha {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
}
.pa-corto { display: none; }

/* Color del glider por pestaña, como en el launcher */
.pa-pestanas[data-activa="inicio"]    .pa-glider { background: var(--g-verde); box-shadow: var(--g-verde-s); }
.pa-pestanas[data-activa="libro"]     .pa-glider { background: var(--g-rojo);  box-shadow: var(--g-rojo-s); }
.pa-pestanas[data-activa="apps"]      .pa-glider { background: var(--g-azul);  box-shadow: var(--g-azul-s); }
.pa-pestanas[data-activa="comunidad"] .pa-glider { background: var(--g-rosa);  box-shadow: var(--g-rosa-s); }

/* Escritorio ancho: pestañas al centro del header. Más angosto bajan a
   una barra flotante sobre el borde inferior. */
@media (min-width: 1100px) {
  .pa-pestanas { position: absolute; left: 50%; top: 0; transform: translateX(-50%); }
}
@media (max-width: 1099.98px) {
  .pa-pestanas {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    height: 54px;
  }
}
@media (max-width: 760px) {
  .pa-nav-cotizar { display: none; }
}
@media (max-width: 520px) {
  :root { --cab-alto: 48px; --cab-arriba: 10px; }
  .pa-cab { padding: 0 10px; }
  .pa-marca { padding: 0 14px 0 6px; gap: 8px; }
  .pa-marca-logo { width: 32px; height: 32px; }
  .pa-marca .pa-wordmark { font-size: 19px; }
  .pa-pestana { min-width: 0; padding: 0 14px; font-size: 12.5px; }
  .pa-pestana .pa-largo { display: none; }
  .pa-pestana .pa-corto { display: inline; }
}

/* ── 5. Estructura ── */
.pa-main {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
[data-seccion] { scroll-margin-top: calc(var(--cab-alto) + var(--cab-arriba) + 18px); }
.pa-ancla-vieja { position: relative; top: -100px; display: block; }

.pa-seccion { padding: 72px 0 24px; }
.pa-seccion-cab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 680px;
  margin: 0 auto 34px;
  text-align: center;
}
.pa-h2 {
  text-wrap: balance;
  font-family: var(--fuente-titulo);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--tinta);
}
.pa-h3 {
  font-family: var(--fuente-titulo);
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.pa-seccion-p { font-size: 17px; color: var(--tinta-2); max-width: 600px; }

/* ── 6. Inicio ── */
.pa-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  min-height: min(760px, 100svh);
  padding: calc(var(--cab-alto) + var(--cab-arriba) + 44px) 0 calc(198px + 5vh - 40px);
}
.pa-hero-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.pa-hero-h1 {
  font-family: var(--fuente-titulo);
  font-size: clamp(38px, 5.2vw, 60px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--tinta);
}
.pa-wordmark-xl { font-size: 1.08em; letter-spacing: -0.01em; padding-top: 0.08em; }
.pa-hero-p { font-size: 18px; color: var(--tinta-2); max-width: 540px; }
.pa-hero-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* Repisa: una fila de íconos de apps, como un dock */
.pa-repisa {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 24px;
  text-decoration: none;
  transition: transform 0.3s var(--suave);
}
.pa-repisa img {
  width: 42px;
  height: 42px;
  padding: 3px;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
  transition: transform 0.35s var(--rebote);
}
.pa-repisa:hover img { transform: translateY(-3px); }
.pa-repisa:hover img:nth-child(2n) { transition-delay: 40ms; }
.pa-repisa-mas {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 34px;
  margin-left: 4px;
  padding: 0 10px;
  border-radius: 100px;
  font-family: var(--fuente-etiqueta);
  font-size: 13px;
  font-weight: 600;
  color: var(--tinta-2);
  background: rgba(0, 0, 0, 0.06);
}

/* Tarjeta de acceso: una credencial del colegio. Cabecera en los azules del
   templo (con la ranura de la cinta), el logo y el wordmark; la cabecera
   termina en las olas cruzadas del fondo «Cielo del templo» (amarillo · rosa)
   y el cuerpo blanco sube como la última ola. */
.pa-hero-acceso { display: flex; justify-content: center; }
.pa-credencial {
  --cred-sombra: 0 0 0 1px rgba(34, 58, 111, 0.07), 0 2px 4px rgba(34, 58, 111, 0.06), 0 34px 60px -30px rgba(34, 58, 111, 0.6);
  position: relative;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--cred-sombra);
}
.pa-cred-cab {
  position: relative;
  padding: 34px 28px 74px;
  color: #fff;
  background:
    radial-gradient(circle at 88% -10%, rgba(255, 255, 255, 0.22), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(244, 189, 2, 0.16), transparent 45%),
    linear-gradient(155deg, var(--logo-azul) 0%, var(--logo-azul-2) 48%, var(--logo-azul-3) 100%);
}
.pa-cred-ranura {               /* por donde pasa la cinta de la credencial */
  position: absolute;
  top: 13px;
  left: 50%;
  width: 56px;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 9px;
  background: rgba(10, 20, 45, 0.45);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.2);
}
.pa-cred-marca { display: flex; align-items: center; gap: 14px; }
.pa-cred-logo {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  box-shadow: 0 0 0 2.5px rgba(255, 255, 255, 0.9), 0 10px 22px rgba(0, 0, 0, 0.3);
}
.pa-cred-nombre { display: grid; gap: 2px; text-align: left; }
.pa-cred-nombre .pa-wordmark { font-size: 28px; line-height: 1.15; }
.pa-cred-nombre .wm-profe { color: #fff; }
.pa-cred-nombre .wm-academi { color: #ff6f98; }
.pa-cred-tipo {
  font-family: var(--fuente-etiqueta);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.pa-cred-olas { position: absolute; left: 0; right: 0; bottom: 0; height: 58px; }
.pa-cred-olas i {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: var(--logo-amarillo);
  -webkit-mask: url(assets/landing/ola.svg) repeat-x 0 0 / 640px 58px;
          mask: url(assets/landing/ola.svg) repeat-x 0 0 / 640px 58px;
}
.pa-cred-olas i:nth-child(2) { top: 7px; background: var(--logo-rosa); -webkit-mask-position: -70px 0; mask-position: -70px 0; }
.pa-cred-olas i:nth-child(3) { top: 14px; background: #fff; -webkit-mask-position: -150px 0; mask-position: -150px 0; }
.pa-cred-cuerpo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 6px 30px 26px;
  text-align: center;
}
.pa-login-cab { display: grid; gap: 6px; }
.pa-login-h { font-family: var(--fuente-titulo); font-size: 25px; font-weight: 700; letter-spacing: -0.02em; color: var(--logo-azul-3); }
.pa-login-p { font-size: 15px; color: var(--tinta-2); }

/* «Continuar con Google»: variante oscura oficial de Google (fondo #131314,
   borde #8E918F, Roboto Medium), en píldora */
.pa-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 52px;
  padding: 0 22px;
  border: 1px solid #8e918f;
  border-radius: 100px;
  background: #131314;
  font-family: 'Roboto', var(--fuente);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #e3e3e3;
  cursor: pointer;
  box-shadow: 0 12px 24px -14px rgba(19, 19, 20, 0.7);
  transition: transform 0.25s var(--suave), box-shadow 0.25s ease, background 0.2s ease;
}
.pa-google-btn:hover { transform: translateY(-2px); background: #1f1f21; box-shadow: 0 16px 28px -14px rgba(19, 19, 20, 0.75); }
.pa-google-btn:active { transform: scale(0.98); }
.pa-google-btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.pa-google-icon { width: 22px; height: 22px; flex-shrink: 0; }

/* Tipo de credencial: funcionario (Google) o estudiante (RUT). Una pista con
   el glider de las islas del launcher. */
.pa-cred-tipos {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  padding: 4px;
  border-radius: 100px;
  background: rgba(34, 58, 111, 0.08);
}
.pa-cred-tipos button {
  position: relative;
  z-index: 1;
  height: 38px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  font-family: var(--fuente-etiqueta);
  font-size: 14px;
  font-weight: 600;
  color: var(--tinta-2);
  cursor: pointer;
  transition: color 0.2s ease;
}
.pa-cred-tipos button[aria-selected="true"] { color: #fff; }
.pa-cred-tipos button:focus-visible { outline: 2px solid var(--logo-azul-2); outline-offset: 2px; }
.pa-cred-tipos-glider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 100px;
  background: linear-gradient(155deg, var(--logo-azul-2), var(--logo-azul-3));
  box-shadow: 0 6px 14px -8px rgba(34, 58, 111, 0.8);
  transition: transform 0.3s var(--suave);
}
.pa-cred-tipos[data-tipo="estudiante"] .pa-cred-tipos-glider { transform: translateX(100%); }
.pa-cred-panel { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.pa-cred-panel[hidden] { display: none; }

.pa-campo { display: grid; gap: 6px; width: 100%; text-align: left; }
.pa-campo > span:first-child {
  font-family: var(--fuente-etiqueta);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tinta-2);
}
.pa-campo input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid rgba(34, 58, 111, 0.18);
  border-radius: 16px;
  background: #fff;
  font: 500 17px/1 var(--fuente);
  letter-spacing: 0.02em;
  color: var(--logo-azul-3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pa-campo input:focus { outline: none; border-color: var(--logo-azul-2); box-shadow: 0 0 0 4px rgba(34, 58, 111, 0.12); }
.pa-campo input[aria-invalid="true"] { border-color: #ba1a1a; }
.pa-campo-clave { position: relative; display: block; }
.pa-campo-clave input { padding-right: 52px; }
.pa-ver-clave {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--tinta-2);
  cursor: pointer;
}
.pa-ver-clave:hover { background: rgba(34, 58, 111, 0.07); }
.pa-rut-btn {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 100px;
  background: linear-gradient(155deg, var(--logo-azul-2), var(--logo-azul-3));
  font-family: var(--fuente-etiqueta);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 24px -14px rgba(34, 58, 111, 0.85);
  transition: transform 0.25s var(--suave), box-shadow 0.25s ease;
}
.pa-rut-btn:hover { transform: translateY(-2px); }
.pa-rut-btn:active { transform: scale(0.98); }
.pa-rut-btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.pa-auth-error {
  display: none;
  width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  background: #ffdad6;
  color: #93000a;
  font-size: 13px;
  line-height: 1.45;
}
.pa-auth-error.visible { display: block; }
.pa-letra-chica { font-size: 11.5px; line-height: 1.5; color: var(--tinta-3); }
.pa-legal a { text-decoration: underline; }
.pa-legal a:hover { color: #4f46e5; }

/* Resalte breve de la tarjeta cuando se llega con ?reason=auth_required */
@keyframes pa-card-pulse {
  0%   { box-shadow: var(--cred-sombra), 0 0 0 0 rgba(244, 189, 2, 0.6); }
  100% { box-shadow: var(--cred-sombra), 0 0 0 18px rgba(244, 189, 2, 0); }
}
.pa-login-card.pa-pulse { animation: pa-card-pulse 1.1s ease-out 2; }

/* ── 8. Libro de Clases: sus funciones a lo largo del año escolar ──
   Una línea del año (marzo → diciembre) con lo que se registra en cada
   momento. La cinta que une los hitos son las tres franjas del logo, con la
   misma ondulación que las olas del fondo. */
.pa-anio-marco {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 30px 24px;
}
.pa-anio-cinta {
  position: absolute;
  top: 49px;
  left: 62px;
  right: 30px;
  width: calc(100% - 92px);
  height: 24px;
  overflow: visible;
  pointer-events: none;
}
.pa-anio-cinta path { fill: none; stroke-width: 4.5px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pa-anio {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pa-hito { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pa-hito-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px var(--c), 0 0 0 7px rgba(255, 255, 255, 0.85), 0 12px 24px -10px color-mix(in srgb, var(--c) 70%, transparent);
}
.pa-hito-ico img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.18)); }
.pa-hito-txt { display: grid; gap: 4px; }
.pa-hito-cuando {
  font-family: var(--fuente-etiqueta);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c);
}
.pa-hito-titulo {
  font-family: var(--fuente-titulo);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--tinta);
}
.pa-hito-lista { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.pa-hito-lista li {
  position: relative;
  padding-left: 15px;
  font-size: 13.5px;
  line-height: 1.42;
  color: var(--tinta-2);
}
.pa-hito-lista li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
}
.pa-anio-notas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: 1px dashed rgba(34, 58, 111, 0.18);
  list-style: none;
}
.pa-anio-notas li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--tinta-2); }
.pa-anio-notas .material-symbols-outlined { font-size: 19px; color: var(--logo-azul-2); }
/* Entrada en cascada cuando la línea asoma (visible por defecto si el
   observador no corre) */
.pa-anio.pa-visible .pa-hito { animation: pa-hito-entra 0.5s var(--suave) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
@keyframes pa-hito-entra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Más angosto: la línea del año se vuelve vertical */
@media (max-width: 999.98px) {
  .pa-anio-marco { padding: 26px 22px 20px; }
  .pa-anio-cinta { display: none; }
  .pa-anio { grid-template-columns: 1fr; gap: 26px; }
  .pa-anio::before {          /* la cinta, vertical: las tres franjas del logo */
    content: '';
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 25px;
    width: 9px;
    border-radius: 9px;
    background: linear-gradient(90deg, var(--logo-amarillo) 0 33%, var(--logo-rosa) 33% 66%, var(--logo-azul-3) 66%);
  }
  .pa-hito { flex-direction: row; align-items: flex-start; gap: 18px; }
  .pa-hito-ico { flex: none; width: 58px; height: 58px; }
  .pa-hito-ico img { width: 34px; height: 34px; }
  .pa-hito-txt { padding-top: 4px; }
  .pa-anio-notas { justify-content: flex-start; }
}

/* ── 9. Apps: solo el anuncio ──
   Un mosaico de baldosas como las del launcher, pero sin íconos ni nombres
   (en los colores de las categorías), y al centro cuántas son, las áreas que
   cubren y la invitación a cotizar. El catálogo va con la cotización. */
.pa-caja {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  overflow: hidden;
  padding: 64px 24px;
}
.pa-caja-mosaico {
  position: absolute;
  inset: -20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, 78px);
  grid-auto-rows: 78px;
  gap: 20px;
  justify-content: center;
  align-content: center;
  /* se desvanece al centro, donde va la tarjeta */
  -webkit-mask-image: radial-gradient(ellipse 46% 56% at 50% 50%, transparent 55%, #000 100%);
          mask-image: radial-gradient(ellipse 46% 56% at 50% 50%, transparent 55%, #000 100%);
  pointer-events: none;
}
.pa-caja-mosaico i {
  position: relative;
  border-radius: 21px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 16%, #fff), color-mix(in srgb, var(--c) 34%, #fff));
  box-shadow: 0 8px 26px rgba(31, 38, 135, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.pa-caja-mosaico i::after {        /* un ícono que no se alcanza a ver */
  content: '';
  position: absolute;
  inset: 27%;
  border-radius: 38%;
  background: color-mix(in srgb, var(--c) 62%, #fff);
  filter: blur(6px);
  opacity: 0.85;
}
.pa-caja-tarjeta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
  padding: 34px 34px 28px;
  border-radius: 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(34, 58, 111, 0.06), 0 30px 60px -30px rgba(34, 58, 111, 0.45);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}
.pa-caja-cifra {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--fuente-titulo);
  font-size: 22px;
  font-weight: 700;
  color: var(--tinta-2);
}
.pa-caja-cifra span {
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--logo-azul-3);
}
.pa-caja-p { max-width: 440px; font-size: 16.5px; color: var(--tinta-2); }
.pa-caja-areas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.pa-caja-areas li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 10px;
  border-radius: 100px;
  font-family: var(--fuente-etiqueta);
  font-size: 12.5px;
  font-weight: 600;
  color: color-mix(in srgb, var(--c) 70%, #1a202c);
  background: color-mix(in srgb, var(--c) 10%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent);
}
.pa-caja-nota { max-width: 420px; font-size: 13.5px; color: var(--tinta-3); }
.pa-caja-acciones { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 2px; }
.pa-caja-cliente {
  border: 0;
  background: none;
  font-family: var(--fuente);
  font-size: 13.5px;
  color: var(--tinta-2);
  cursor: pointer;
}
.pa-caja-cliente strong { color: #4f46e5; }
.pa-caja-cliente:hover strong { text-decoration: underline; }

/* ── 10. Comunidad: selector de perfiles + panel ── */
.pa-perfiles-sel {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 26px;
  padding: 5px;
  height: 52px;
}
.pa-perfil-tab {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 118px;
  padding: 0 18px;
  border: 0;
  border-radius: 100px;
  background: none;
  font-family: var(--fuente);
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(30, 30, 30, 0.55);
  cursor: pointer;
  transition: color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.pa-perfil-tab:hover { color: #111; }
.pa-perfil-tab[aria-selected="true"] { color: #fff; }
.pa-perfiles-sel[data-activa="docentes"]       .pa-glider { background: var(--g-azul); box-shadow: var(--g-azul-s); }
.pa-perfiles-sel[data-activa="estudiantes"]    .pa-glider { background: linear-gradient(135deg, #fb923c, #ea580c); box-shadow: 0 0 18px rgba(249, 115, 22, 0.5), inset 0 0 10px rgba(254, 215, 170, 0.35); }
.pa-perfiles-sel[data-activa="administracion"] .pa-glider { background: linear-gradient(135deg, #a78bfa, #7c3aed); box-shadow: 0 0 18px rgba(139, 92, 246, 0.5), inset 0 0 10px rgba(221, 214, 254, 0.35); }
.pa-perfiles-sel[data-activa="padres"]         .pa-glider { background: var(--g-rosa); box-shadow: var(--g-rosa-s); }

.pa-perfiles { max-width: 1120px; margin: 0 auto; }
.pa-perfil {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding: 24px 40px 24px 24px;
  animation: pa-perfil-entra 0.45s var(--suave) both;
}
@keyframes pa-perfil-entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Vitrina: capturas reales de la plataforma (datos ficticios), una vista a la vez */
.pa-vitrina { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }

/* Ventana de navegador para las apps web */
.pa-ventana {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.06), 0 26px 50px -26px rgba(15, 23, 42, 0.5);
}
.pa-ventana-barra {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding: 0 6px 0 14px;
  background: linear-gradient(#f9fafb, #eef1f5);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.pa-ventana-luces { display: flex; gap: 6px; flex: none; width: 60px; }
.pa-ventana-luces i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12); }
.pa-ventana-luces i:nth-child(2) { background: #febc2e; }
.pa-ventana-luces i:nth-child(3) { background: #28c840; }
.pa-ventana-url {
  flex: 0 1 260px;
  margin: 0 auto;
  padding: 3px 12px;
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.05);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  color: var(--tinta-3);
}
.pa-ventana-lupa {
  flex: none;
  display: grid;
  place-items: center end;
  width: 60px;
  height: 26px;
  padding: 0 6px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--tinta-3);
  cursor: zoom-in;
}
.pa-ventana-lupa .material-symbols-outlined { font-size: 16px; }
.pa-ventana-lupa:hover { color: var(--tinta); }
.pa-ventana-pantalla { position: relative; aspect-ratio: 16 / 10; background: #eef2f6; cursor: zoom-in; }
.pa-pantalla-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.012);
  transition: opacity 0.45s ease, transform 0.7s var(--suave);
}
.pa-pantalla-img.is-activa { opacity: 1; transform: none; }

/* Teléfonos en abanico para la app de familias */
.pa-telefonos { position: relative; width: 100%; height: 530px; }
.pa-telefono {
  --w: 236px;
  --x: 0;
  --s: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: var(--w);
  margin: 0;
  padding: 8px;
  border-radius: 40px;
  background: linear-gradient(145deg, #334155, #0b1220 60%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 8px 18px -8px rgba(15, 23, 42, 0.35), 0 34px 50px -26px rgba(15, 23, 42, 0.6);
  transform: translate(-50%, -50%) translateX(calc(var(--x) * 1%)) scale(var(--s));
  transition: transform 0.6s var(--suave), opacity 0.45s ease, filter 0.45s ease;
  cursor: pointer;
}
.pa-telefono img { display: block; width: 100%; height: auto; aspect-ratio: 600 / 1298; border-radius: 32px; background: #f1f7fd; }
.pa-telefono[data-pos="0"]  { cursor: default; }
.pa-telefono[data-pos="1"],
.pa-telefono[data-pos="-1"] { --s: 0.8; z-index: 2; filter: brightness(0.96) saturate(0.9); }
.pa-telefono[data-pos="1"]  { --x: 64; }
.pa-telefono[data-pos="-1"] { --x: -64; }
.pa-telefono[data-pos="2"],
.pa-telefono[data-pos="-2"] { --s: 0.62; z-index: 1; opacity: 0; pointer-events: none; }
.pa-telefono[data-pos="2"]  { --x: 110; }
.pa-telefono[data-pos="-2"] { --x: -110; }
.pa-telefono:not([data-pos="0"]):hover { filter: none; }

/* Chips de vistas (como la barra de categorías) y su nota */
.pa-vistas {
  display: flex;
  gap: 2px;
  max-width: 100%;
  padding: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  box-shadow: inset 1px 1px 4px rgba(255, 255, 255, 0.6), inset -1px -1px 6px rgba(0, 0, 0, 0.08);
}
.pa-vistas::-webkit-scrollbar { display: none; }
.pa-vistas .pa-glider {
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 72%, #fff), var(--c));
  box-shadow: 0 0 16px color-mix(in srgb, var(--c) 45%, transparent), inset 0 0 10px rgba(255, 255, 255, 0.25);
}
.pa-vista {
  position: relative;
  z-index: 1;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px 5px 7px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-family: var(--fuente-etiqueta);
  font-size: 13px;
  font-weight: 600;
  color: rgba(30, 30, 30, 0.62);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.pa-vista img { width: 22px; height: 22px; object-fit: contain; border-radius: 6px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2)); }
.pa-vista:hover { color: #111; }
.pa-vista[aria-pressed="true"] { color: #fff; }
.pa-vista-nota { min-height: 2.9em; max-width: 520px; font-size: 14.5px; line-height: 1.45; text-align: center; color: var(--tinta-2); }

/* Captura en grande */
.pa-lupa {
  overflow: visible;
  width: min(1440px, calc(100vw - 48px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
}
.pa-lupa::backdrop { background: rgba(34, 58, 111, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pa-lupa-img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 48px); object-fit: contain; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.pa-lupa-cerrar {
  position: absolute;
  top: -14px;
  right: -14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 100px;
  background: #fff;
  color: var(--tinta);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.pa-perfil-txt { display: grid; gap: 14px; padding: 10px 0; }
.pa-perfil-txt > p { font-size: 16.5px; color: var(--tinta-2); }
.pa-lista { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.pa-lista li {
  position: relative;
  padding-left: 34px;
  font-size: 15.5px;
  line-height: 1.45;
}
.pa-lista li::before {        /* check con el color del perfil */
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat,
    linear-gradient(135deg, color-mix(in srgb, var(--c) 72%, #fff), var(--c));
  box-shadow: 0 3px 8px color-mix(in srgb, var(--c) 35%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ── 11. Pie: el mar ── */
.pa-pie {
  position: relative;
  margin-top: 220px;
  background: var(--mar);
  color: rgba(255, 255, 255, 0.86);
}
.pa-pie-olas { --ola-alto: 198px; position: absolute; left: 0; right: 0; top: calc(-1 * var(--ola-alto)); height: var(--ola-alto); pointer-events: none; }
.pa-pie-in {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 20px 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.pa-pie-marca { display: flex; align-items: center; gap: 10px; }
.pa-pie-marca img { width: 34px; height: 34px; border-radius: 9px; }
.pa-pie-marca .pa-wordmark { font-size: 24px; }
.pa-pie-marca .wm-profe { color: #fff; }
.pa-pie-marca .wm-academi { color: #ff6f98; }
.pa-pie-copy { font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.pa-pie-copy a { color: #fff; }
.pa-pie-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.pa-pie-links a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease;
}
.pa-pie-links a:hover { background: rgba(255, 255, 255, 0.2); }

/* ── 12. Diálogo «Solicitar cotización» ── */
.pa-cotizar {
  border: 0;
  padding: 0;
  margin: auto;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  border-radius: 28px;
  color: var(--tinta);
  background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.84)) padding-box, var(--vidrio-borde);
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 30px 80px -20px rgba(34, 58, 111, 0.45);
  -webkit-backdrop-filter: var(--vidrio-filtro);
          backdrop-filter: var(--vidrio-filtro);
  overflow: hidden;
}
.pa-cotizar::backdrop { background: rgba(34, 58, 111, 0.3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pa-cotizar-in { position: relative; padding: 28px 30px 26px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.pa-cotizar-cerrar {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 100px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--tinta-2);
  background: rgba(0, 0, 0, 0.06);
}
.pa-cotizar-cerrar:hover { background: rgba(0, 0, 0, 0.1); color: var(--tinta); }
.pa-cotizar-cab { display: flex; align-items: center; gap: 16px; padding-right: 40px; margin-bottom: 22px; }
.pa-cotizar-logo { flex: none; width: 58px; height: 58px; border-radius: 16px; box-shadow: 0 0 0 2px #fff, 0 8px 18px rgba(34, 58, 111, 0.25); }
.pa-cotizar-h2 { font-family: var(--fuente-titulo); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 4px; }
.pa-cotizar-sub { font-size: 15px; color: var(--tinta-2); }
.pa-cotizar-form { display: grid; gap: 14px; }
.pa-cotizar-campo { display: grid; gap: 6px; }
.pa-cotizar-campo > span { font-family: var(--fuente-etiqueta); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--tinta-2); }
.pa-cotizar-campo input, .pa-cotizar-campo textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--tinta);
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.pa-cotizar-campo textarea { resize: vertical; min-height: 96px; }
.pa-cotizar-campo input::placeholder, .pa-cotizar-campo textarea::placeholder { color: rgba(30, 30, 30, 0.4); }
.pa-cotizar-campo input:focus, .pa-cotizar-campo textarea:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.22); }
.pa-cotizar-campo input:user-invalid, .pa-cotizar-campo textarea:user-invalid { border-color: #ba1a1a; }
/* Widget ALTCHA (prueba de trabajo): mismos bordes y radio que los campos */
.pa-cotizar-form altcha-widget {
  --altcha-border-width: 1px;
  --altcha-border-radius: 14px;
  --altcha-color-border: rgba(15, 23, 42, 0.1);
  --altcha-color-base: rgba(255, 255, 255, 0.8);
  --altcha-color-text: #1a202c;
  --altcha-color-border-focus: #4f46e5;
  --altcha-max-width: 100%;
  font-size: 14px;
}
/* Campo trampa (honeypot): fuera de la vista, no display:none, para que los bots lo llenen */
.pa-cotizar-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pa-cotizar-aviso { margin: 2px 0 0; font-size: 12px; line-height: 1.45; color: var(--tinta-2); }
.pa-cotizar-aviso a { text-decoration: underline; }
.pa-cotizar-aviso a:hover { color: #4f46e5; }
.pa-cotizar-error { display: none; margin: 0; padding: 10px 14px; border-radius: 14px; background: #ffdad6; color: #93000a; font-size: 13px; line-height: 1.45; }
.pa-cotizar-error.visible { display: block; }
.pa-cotizar-acciones { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.pa-cotizar-acciones .pa-btn { height: 46px; padding: 0 24px; }
.pa-cotizar-ok { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 12px 0 4px; }
.pa-cotizar-form[hidden], .pa-cotizar-ok[hidden] { display: none; }
.pa-cotizar-ok > .material-symbols-outlined {
  width: 72px;
  height: 72px;
  border-radius: 100px;
  display: grid;
  place-items: center;
  font-size: 38px;
  color: #fff;
  background: var(--g-verde);
  box-shadow: var(--g-verde-s);
  margin-bottom: 6px;
}
.pa-cotizar-ok .pa-btn { margin-top: 10px; height: 46px; padding: 0 32px; }

/* ── 13. Pantallas medianas y celular ── */
@media (max-width: 1099.98px) {
  .pa-pie-in { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 1000px) {
  .pa-perfil { grid-template-columns: 1fr; gap: 18px; padding: 18px 18px 26px; }
  .pa-perfil-txt { padding: 4px 10px 0; }
}
@media (max-width: 900px) {
  .pa-hero {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: 0;
    padding-bottom: 40px;
  }
  .pa-hero-txt { align-items: center; text-align: center; }
  .pa-hero-acciones { justify-content: center; }

}
@media (max-width: 640px) {
  .pa-olas { --ola-alto: 120px; }
  .pa-main { padding: 0 16px; }
  .pa-hero { padding-top: calc(var(--cab-alto) + var(--cab-arriba) + 30px); }
  .pa-hero-p { font-size: 16.5px; }
  .pa-hero-acciones { width: 100%; flex-direction: column; }
  .pa-hero-acciones .pa-btn { width: 100%; }
  .pa-repisa img { width: 34px; height: 34px; padding: 2px; }
  .pa-cred-cab { padding: 30px 22px 68px; }
  .pa-cred-cuerpo { padding: 4px 20px 22px; }
  .pa-cred-nombre .pa-wordmark { font-size: 25px; }
  .pa-seccion { padding-top: 56px; }
  .pa-seccion-p { font-size: 16px; }
  .pa-anio-marco { padding: 22px 16px 18px; }
  .pa-anio::before { left: 22px; }
  .pa-hito { gap: 14px; }
  .pa-hito-ico { width: 52px; height: 52px; }
  .pa-hito-ico img { width: 30px; height: 30px; }
  .pa-caja { padding: 40px 14px; }
  .pa-caja-mosaico { grid-template-columns: repeat(auto-fill, 60px); grid-auto-rows: 60px; gap: 14px; }
  .pa-caja-mosaico i { border-radius: 16px; }
  .pa-caja-tarjeta { padding: 26px 18px 22px; }
  .pa-caja-cifra span { font-size: 54px; }
  .pa-perfil-tab { min-width: 0; padding: 0 12px; font-size: 12.5px; }
  .pa-perfil-tab .pa-largo { display: none; }
  .pa-perfil-tab .pa-corto { display: inline; }
  .pa-perfil { padding: 12px 12px 22px; }
  .pa-ventana { border-radius: 12px; }
  .pa-ventana-barra { height: 28px; }
  .pa-ventana-url { display: none; }
  .pa-telefonos { height: 430px; overflow: hidden; border-radius: 20px; }
  .pa-telefono { --w: 194px; padding: 7px; border-radius: 34px; }
  .pa-telefono img { border-radius: 27px; }
  .pa-telefono[data-pos="1"]  { --x: 58; }
  .pa-telefono[data-pos="-1"] { --x: -58; }
  .pa-vistas { align-self: stretch; }
  .pa-vista { font-size: 12.5px; }
  .pa-vista-nota { font-size: 14px; }
  .pa-pie { margin-top: 150px; }
  .pa-pie-olas { --ola-alto: 120px; }
  .pa-pie-in { flex-direction: column; text-align: center; }
  .pa-cotizar-in { padding: 22px 18px 18px; }
  .pa-cotizar-cab { gap: 12px; }
  .pa-cotizar-logo { width: 48px; height: 48px; border-radius: 13px; }
  .pa-cotizar-h2 { font-size: 21px; }
  .pa-cotizar-sub { font-size: 14px; }
  .pa-cotizar-acciones { flex-direction: column-reverse; }
  .pa-cotizar-acciones .pa-btn { width: 100%; }
}

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