/* Biblioteca v1 · Wilson Vásquez, Propitae, Clickia y Vida y Fe.
   Generado desde matriz/biblioteca/fuente. No se edita a mano. */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root, [data-theme="claro"], .tema-claro {
  --fondo: #ffffff;
  --fondo-2: #f5f5f7;
  --superficie: #ffffff;
  --tinta: #1d1d1f;
  --tinta-2: #6e6e73;
  --tinta-3: #86868b;
  --linea: #d2d2d7;
  --azul: #0071e3;
  --azul-hover: #0077ed;
  --enlace: #0066cc;
  --blanco: #ffffff;
  --barra: rgba(245,245,247,0.8);
  --ok: #1d7f36;
  --aviso: #b25000;
  --error: #e30000;
  --firma: #ff375f;
  --grad-1: #0a84ff;
  --grad-2: #5e5ce6;
  --grad-3: #bf5af2;
  --grad-4: #ff375f;
  --grad-5: #ff9f0a;
  --sombra-tarjeta: 0 4px 24px rgba(0,0,0,0.08);
}
[data-theme="oscuro"], .tema-oscuro {
  --fondo: #000000;
  --fondo-2: #161617;
  --superficie: #1d1d1f;
  --tinta: #f5f5f7;
  --tinta-2: #86868b;
  --tinta-3: #6e6e73;
  --linea: #424245;
  --azul: #0071e3;
  --azul-hover: #0077ed;
  --enlace: #2997ff;
  --blanco: #ffffff;
  --barra: rgba(22,22,23,0.8);
  --ok: #30d158;
  --aviso: #ff9f0a;
  --error: #ff6961;
  --firma: #ff375f;
  --grad-1: #0a84ff;
  --grad-2: #5e5ce6;
  --grad-3: #bf5af2;
  --grad-4: #ff375f;
  --grad-5: #ff9f0a;
  --sombra-tarjeta: none;
  color-scheme: dark;
}
:root {
  --esp-1: 4px;
  --esp-2: 8px;
  --esp-3: 12px;
  --esp-4: 16px;
  --esp-5: 24px;
  --esp-6: 40px;
  --esp-7: 64px;
  --esp-8: 120px;
  --esp-9: 200px;
  --radio-s: 8px;
  --radio-m: 12px;
  --radio-l: 18px;
  --radio-xl: 28px;
  --radio-pildora: 980px;
  --ancho-texto: 692px;
  --ancho-contenido: 980px;
  --ancho-amplio: 1260px;
  --alto-barra: 44px;
  --alto-barra-producto: 52px;
  --dur-rapida: 200ms;
  --dur-media: 600ms;
  --dur-lenta: 1200ms;
  --curva: cubic-bezier(0.28, 0.11, 0.32, 1);
  --font-sans: Inter, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* Biblioteca · piezas comunes de Wilson Vásquez, Propitae, Clickia y Vida y Fe.
   Solo usa las variables de tokens.css. Ningún color, tamaño ni letra se escribe aquí a mano. */

/* Base */
.b, .b * { box-sizing: border-box; }
.b { font-family: var(--font-sans); font-optical-sizing: auto; color: var(--tinta); background: var(--fondo);
  font-size: 17px; line-height: 25px; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
.b-oscuro { color-scheme: dark; }

/* Textos */
.b-portada { font-size: 80px; line-height: 84px; font-weight: 600; letter-spacing: -0.03em; margin: 0; }
.b-frase { font-size: 64px; line-height: 68px; font-weight: 600; letter-spacing: -0.03em; margin: 0; }
.b-titular { font-size: 48px; line-height: 52px; font-weight: 600; letter-spacing: -0.025em; margin: 0; }
.b-subtitulo { font-size: 28px; line-height: 34px; font-weight: 400; letter-spacing: -0.015em; margin: 0; }
.b-etiqueta-seccion { font-size: 21px; line-height: 25px; font-weight: 600; color: var(--tinta-2); margin: 0; }
.b-destacado { font-size: 21px; line-height: 29px; font-weight: 600; letter-spacing: -0.01em; color: var(--tinta-2); margin: 0; }
.b-destacado strong, .b-destacado b { color: var(--tinta); font-weight: 600; }
.b-pequeno { font-size: 14px; line-height: 20px; color: var(--tinta-2); }
@media (max-width: 734px) {
  .b-portada { font-size: 48px; line-height: 52px; }
  .b-frase { font-size: 40px; line-height: 44px; }
  .b-titular { font-size: 32px; line-height: 36px; }
  .b-subtitulo { font-size: 21px; line-height: 27px; }
}

/* La puerta y el nombre: el símbolo une, el nombre distingue */
.b-nombre { display: inline-flex; align-items: center; gap: 0.22em; color: var(--tinta); text-decoration: none;
  font-weight: 600; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.b-nombre svg { height: 1.05em; width: auto; flex: none; fill: currentColor; transform: translateY(-0.04em); }

/* Botones: píldora, como mucho dos por bloque */
.b-boton { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 21px;
  border-radius: var(--radio-pildora); border: 1px solid transparent; font: inherit; font-size: 17px; line-height: 21px;
  letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: background var(--dur-rapida) var(--curva), color var(--dur-rapida) var(--curva); }
.b-boton--principal { background: var(--azul); color: var(--blanco); }
.b-boton--principal:hover { background: var(--azul-hover); }
.b-boton--borde { background: transparent; color: var(--enlace); border-color: var(--enlace); }
.b-boton--borde:hover { background: var(--enlace); color: var(--fondo); }
.b-boton--pequeno { min-height: 28px; padding: 4px 11px; font-size: 12px; line-height: 16px; }
.b-boton:focus-visible, .b-enlace:focus-visible, .b-campo:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
.b-botones { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* Enlaces */
.b-enlace { color: var(--enlace); text-decoration: none; }
.b-enlace:hover { text-decoration: underline; }
.b-enlace--mas::after { content: " ›"; }

/* Campos de formulario */
.b-etiqueta { display: block; font-size: 14px; line-height: 20px; color: var(--tinta-2); margin-bottom: 4px; }
.b-campo { width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid var(--linea); border-radius: var(--radio-m);
  background: var(--superficie); color: var(--tinta); font: inherit; font-size: 17px; }
.b-campo::placeholder { color: var(--tinta-2); }
.b-campo:focus { border-color: var(--azul); outline: none; box-shadow: 0 0 0 3px rgba(0,113,227,0.25); }
.b-campo--error { border-color: var(--error); }
.b-ayuda { font-size: 14px; line-height: 20px; color: var(--tinta-2); margin-top: 4px; }
.b-ayuda--error { color: var(--error); }
.b-casilla { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--tinta-2); }
.b-casilla input { width: 20px; height: 20px; margin: 0; accent-color: var(--azul); flex: none; }

/* Mosaicos y tarjetas */
.b-mosaicos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.b-mosaico { background: var(--fondo-2); border-radius: var(--radio-xl); padding: 48px 32px 0; text-align: center; overflow: hidden; }
.b-mosaico .b-nombre { font-size: 40px; }
.b-tarjeta { background: var(--superficie); border-radius: var(--radio-l); padding: 40px; color: var(--tinta);
  text-decoration: none; display: block; transition: box-shadow var(--dur-media) var(--curva), transform var(--dur-media) var(--curva); }
a.b-tarjeta:hover { box-shadow: var(--sombra-tarjeta); transform: scale(1.01); }
.b-tarjeta h3 { font-size: 24px; line-height: 28px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 8px; }
.b-tarjeta p { margin: 0; color: var(--tinta-2); }
@media (max-width: 734px) { .b-mosaicos { grid-template-columns: 1fr; } .b-tarjeta { padding: 24px; } }

/* Tablas */
.b-tabla { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.b-tabla th { text-align: left; font-weight: 600; color: var(--tinta-2); padding: 10px 16px; border-bottom: 1px solid var(--linea); }
.b-tabla td { padding: 16px; border-bottom: 1px solid var(--linea); color: var(--tinta); }
.b-tabla td.num, .b-tabla th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Estados (herramientas) */
.b-estado { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; color: var(--tinta); }
.b-estado::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tinta-2); }
.b-estado--ok::before { background: var(--ok); }
.b-estado--aviso::before { background: var(--aviso); }
.b-estado--error::before { background: var(--error); }

/* Aviso */
.b-aviso { background: var(--fondo-2); border-radius: var(--radio-l); padding: 16px 20px; font-size: 14px; line-height: 20px; color: var(--tinta); }
.b-aviso strong { font-weight: 600; }

/* Barra de arriba: propia de cada web, sin enlaces a las demás */
.b-barra { position: sticky; top: 0; z-index: 10; height: var(--alto-barra); background: var(--barra);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.b-barra__dentro { max-width: var(--ancho-contenido); height: 100%; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; }
.b-barra .b-nombre { font-size: 15px; }
.b-barra__menu { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.b-barra__menu a { font-size: 12px; line-height: 16px; color: var(--tinta); opacity: 0.8; text-decoration: none; }
.b-barra__menu a:hover { opacity: 1; }

/* Barra fija con el nombre, al bajar */
.b-barra-producto { position: sticky; top: 0; z-index: 9; height: var(--alto-barra-producto); background: var(--barra);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--linea); }
.b-barra-producto__dentro { max-width: var(--ancho-contenido); height: 100%; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; }
.b-barra-producto__nombre { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.b-barra-producto__lado { display: flex; align-items: center; gap: 24px; }
.b-barra-producto__lado a:not(.b-boton) { font-size: 12px; color: var(--tinta); text-decoration: none; opacity: 0.8; }

/* Pie común: mapa del sitio, legales y firma */
.b-pie { background: var(--fondo-2); color: var(--tinta-2); font-size: 12px; line-height: 16px; }
.b-pie__dentro { max-width: var(--ancho-contenido); margin: 0 auto; padding: 24px 22px 22px; }
.b-pie__nota { padding-bottom: 12px; border-bottom: 1px solid var(--linea); }
.b-pie__mapa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--linea); }
.b-pie__mapa h4 { font-size: 12px; font-weight: 600; color: var(--tinta); margin: 0 0 8px; }
.b-pie__mapa ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.b-pie__mapa a, .b-pie__legal a { color: var(--tinta-2); text-decoration: none; }
.b-pie__mapa a:hover, .b-pie__legal a:hover { color: var(--tinta); text-decoration: underline; }
.b-pie__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 16px; }
.b-pie__legal ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.b-pie__legal li + li::before { content: "|"; margin: 0 8px; color: var(--linea); }
.b-pie__firma { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; }
.b-pie__firma .b-nombre { font-size: 12px; color: var(--tinta-2); }
@media (max-width: 734px) { .b-pie__mapa { grid-template-columns: 1fr 1fr; } }

/* Sello de las webs que hace Clickia */
.b-sello { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tinta-2); text-decoration: none; }
.b-sello svg { height: 12px; width: auto; fill: currentColor; }

/* Efectos al desplazar. Se activan con la clase .es-visible (la pone un observador) y respetan «reducir movimiento». */
.b-aparece { opacity: 0; transform: translateY(32px); transition: opacity var(--dur-media) var(--curva), transform var(--dur-media) var(--curva); }
.b-aparece.es-visible { opacity: 1; transform: none; }
.b-enciende span { color: var(--tinta-2); transition: color var(--dur-rapida) var(--curva); }
.b-enciende span.es-visible { color: var(--tinta); }
.b-flota { animation: b-flota 6s ease-in-out infinite; }
@keyframes b-flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.b-degradado { background: linear-gradient(90deg, var(--grad-1), var(--grad-2), var(--grad-3), var(--grad-4), var(--grad-5));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: reduce) {
  .b-aparece { opacity: 1; transform: none; transition: none; }
  .b-enciende span { color: var(--tinta); transition: none; }
  .b-flota { animation: none; }
}
