/* checkly.css — Sistema de diseño de la web (basado en el DESIGN.md de Checkly, con el cian de grootitech.es como acento).
   Se carga en todas las páginas después de css/estilos.css (Tailwind) y traduce sus clases a los tokens del sistema:
   fondo Void Navy, tarjetas Orbit con borde Steel, Inter ligera y cian como único acento. La portada añade css/portada.css. */

/* Inter, servida desde la propia web (la copia el build desde @fontsource/inter) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fuentes/inter-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fuentes/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fuentes/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fuentes/inter-latin-600-normal.woff2") format("woff2"); }

:root {
    --void: #041734; --orbit: #0f172a; --deck: #1a1f36; --hull: #1f2937; --steel: #374151;
    --console: #8a9bb0; --texto: #9fb2c8; --mist: #a7babe; --blanco: #ffffff;
    --azul: #22d3ee; --azul-claro: #22d3ee; --azul-hover: #67e8f9; --verde: #4ade80;
    --inter: "Inter", ui-sans-serif, system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
    --sombra-producto: rgba(0, 0, 0, .45) 0 25px 50px -12px;
}

/* Base */
html body { background: var(--void); color: var(--texto); font-family: var(--inter); font-feature-settings: "ss01", "cv11"; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: 520px; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(34, 211, 238, .08), transparent 70%); }
.fondo-velo { background: radial-gradient(ellipse 55% 50% at 50% 50%, #041734 35%, rgba(4, 23, 52, 0) 100%); }
.ruta { stroke: #1d3354; }
.font-display, .font-sans, h1, h2, h3, h4 { font-family: var(--inter) !important; }
::selection { background: rgba(34, 211, 238, .35); }

/* Colores de Tailwind → tokens de Checkly */
.bg-slate-950 { background-color: var(--void); }
.bg-slate-950\/85 { background-color: rgba(4, 23, 52, .82); }
.bg-slate-900, .bg-slate-900\/80, .bg-slate-900\/70, .bg-slate-900\/60 { background-color: var(--orbit); }
.text-slate-50, .text-white { color: var(--blanco); }
.text-slate-200, .text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: var(--texto); }
.text-slate-500 { color: #64748b; }
.text-cyan-400, .text-cyan-300 { color: var(--azul-claro); }
.hover\:text-cyan-400:hover, .hover\:text-cyan-300:hover { color: var(--azul-hover); }
.border-slate-800 { border-color: var(--hull); }
.border-slate-700 { border-color: var(--steel); }
.border-cyan-400, .border-cyan-400\/30 { border-color: var(--steel); }

/* Cabecera y pie */
#navbar { background: rgba(4, 23, 52, .78); border-color: var(--hull); }
#navbar .font-display { font-weight: 600 !important; letter-spacing: -.01em; }
.nav-link { color: #cbd5e1; font-weight: 500; font-size: 14px; }
.nav-link:hover { color: var(--blanco); }
footer#contact { background: transparent; border-color: var(--hull); }
footer#contact a:hover { color: var(--blanco); }

/* Botones: principal blanco ("interruptor encendido"), secundario con borde; radio de 8 px */
.btn-acento { background: var(--blanco) !important; color: var(--void) !important; border-radius: 8px !important; font-weight: 500 !important; }
.btn-acento:hover { background: #cffafe !important; color: var(--void) !important; }
.btn-borde { background: transparent !important; color: var(--blanco) !important; border: 1px solid rgba(207, 223, 236, .35) !important; border-radius: 8px !important; font-weight: 500 !important; }
.btn-borde:hover { border-color: var(--blanco) !important; color: var(--blanco) !important; }
.btn-icono { border-radius: 8px; border-color: var(--steel); }
.articulo a.btn-acento { color: var(--void) !important; }

/* Etiquetas y pastillas */
.etiqueta-seccion { font-family: var(--inter); font-weight: 500; letter-spacing: .05em; color: var(--mist); background: var(--orbit); border-color: var(--steel); border-radius: 9999px; }
.etiqueta-tec, .chip { font-family: var(--inter); border-radius: 9999px; background: var(--deck); color: var(--mist); border: 1px solid var(--hull); }

/* Tarjetas: Orbit con borde Steel y radio de 12 px */
.tarjeta { background: var(--orbit); border-color: var(--steel); border-radius: 12px !important; }
.tarjeta-viva:hover { border-color: #4b5563; }
.icono-caja { background: var(--deck); border-color: var(--hull); color: var(--azul-claro); border-radius: 10px; }
.rounded-2xl, .rounded-3xl, .rounded-\[28px\], .rounded-\[20px\] { border-radius: 12px !important; }

/* Titulares en peso 300: la firma del sistema */
.titulo-servicio { font-weight: 300 !important; letter-spacing: -.04em !important; line-height: 1.05 !important; }
.titulo-bloque, .titulo-seccion { font-weight: 300 !important; letter-spacing: -.025em !important; }
.articulo h1, main h1 { font-weight: 300 !important; letter-spacing: -.035em; color: var(--blanco); }
.articulo h2 { font-weight: 400; letter-spacing: -.02em; color: var(--blanco); }
.articulo h3 { font-weight: 500; color: var(--blanco); }
.articulo p, .articulo li { color: var(--texto); }
.articulo strong { color: #e2e8f0; }
.articulo a { color: var(--azul-claro); text-decoration-color: rgba(34, 211, 238, .4); }
.articulo a:hover { color: var(--azul-hover); }
.articulo code { font-family: var(--mono); color: #bfdbfe; }
.articulo pre { background: var(--orbit); border-color: var(--steel); border-radius: 12px; font-family: var(--mono); }
.articulo pre code { color: #f8fafc; }
.articulo figure img { border-radius: 12px; border-color: var(--steel); box-shadow: var(--sombra-producto); }
.articulo th { color: var(--blanco); border-color: var(--steel); }
.articulo td { border-color: var(--hull); }

/* Páginas de servicio */
.migas { color: var(--texto); }
.migas a:hover { color: var(--blanco); }
.migas [aria-current] { color: var(--blanco); }
.consola { background: var(--orbit); border-color: var(--steel); border-radius: 12px; box-shadow: rgba(0, 0, 0, .25) 0 4px 12px, rgba(255, 255, 255, .04) 0 1px 0 inset; }
.consola-barra { background: var(--orbit); border-color: var(--hull); }
.consola-barra span { background: var(--steel); }
.consola-cuerpo { color: #f8fafc; }
.consola-cursor { background: var(--azul-claro); }
.consola .text-cyan-400 { color: #d8b4fe; }
.respuesta p { font-weight: 300; color: #dbe5f1; }
.para-quien { background: var(--orbit); border-color: var(--steel); border-radius: 12px; }
.enlace-flecha { color: var(--azul-claro); }
.enlace-flecha:hover { color: var(--azul-hover); }
.lista-incluye, .lista-incluye li { border-color: var(--hull); }
.lista-incluye li { color: #e2e8f0; }
.lista-incluye .text-cyan-400 { color: var(--verde); }
.tipo-web { background: var(--orbit); border-color: var(--steel); border-radius: 12px; }
.tipo-web h3 { font-weight: 500; }
.seo-explicado { background: var(--orbit); border-color: var(--azul-claro); border-radius: 16px; }
.seo-etiqueta { color: var(--azul-claro); border-color: var(--azul-claro); background: transparent; }
.seo-google { border-radius: 12px; }
.seo-puntos li { background: var(--void); border-color: var(--steel); border-radius: 12px; }
.seo-puntos h3 { font-weight: 500; }
.seo-nota svg { color: var(--verde); }

/* Tarjetas destacadas de las páginas de servicio: índice, paneles de ejemplo y diseño alterno */
.dest-indice { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.dest-indice a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--steel); border-radius: 9999px; background: var(--orbit); color: #e2e8f0; font-size: 15px; font-weight: 500; transition: border-color .15s, color .15s; }
.dest-indice a span { font-family: var(--mono); font-size: 12px; color: var(--azul-claro); }
.dest-indice a:hover { border-color: var(--azul-claro); color: var(--blanco); }
@media (min-width: 1024px) {
    .dest-invertido .seo-cabeza { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
    .dest-invertido .seo-cabeza > figure { order: -1; }
}
.dest-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.dest-panel { min-width: 0; margin: 0; background: var(--void); border: 1px solid var(--steel); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--sombra-producto); }
.dest-panel figcaption { font-size: 12px; color: var(--texto); border-top: 1px solid var(--hull); padding-top: 12px; }
.dest-panel-cabecera { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; color: #cbd5e1; min-width: 0; overflow-wrap: anywhere; }
.dest-puntos { display: inline-flex; gap: 5px; flex-shrink: 0; }
.dest-puntos i { width: 9px; height: 9px; border-radius: 50%; background: var(--steel); }
.dest-filas li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--hull); font-size: 15px; color: #e2e8f0; }
.dest-filas li:last-child { border-bottom: 0; }
.dest-filas b { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-weight: 500; font-size: 13px; color: var(--verde); }
.dest-aviso { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--hull); border-radius: 10px; background: var(--orbit); }
.dest-aviso .icono-caja { width: 38px; height: 38px; flex-shrink: 0; border-radius: 9999px; display: flex; align-items: center; justify-content: center; }
.dest-aviso > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dest-aviso b { font-weight: 500; font-size: 15px; color: var(--blanco); }
.dest-aviso small { font-size: 13px; color: var(--texto); }
.dest-aviso .dest-hora { font-size: 12px; color: var(--texto); flex-shrink: 0; align-self: flex-start; }
.dest-cookies-web { display: grid; gap: 8px; padding: 6px 2px 2px; }
.dest-cookies-web i { height: 10px; border-radius: 4px; background: var(--hull); }
.dest-cookies-web i:first-child { width: 55%; height: 16px; }
.dest-cookies-web i:last-child { width: 80%; }
.dest-cookies-aviso { background: #ffffff; color: #1e293b; border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.dest-cookies-aviso b { font-weight: 600; font-size: 16px; color: #0f172a; }
.dest-cookies-aviso p { font-size: 14px; line-height: 1.55; color: #334155; }
.dest-cookies-botones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.dest-cookies-botones span { flex: 1 1 auto; text-align: center; padding: 9px 14px; border-radius: 9999px; border: 1px solid #0f172a; font-size: 14px; font-weight: 500; color: #0f172a; }
.dest-cookies-botones .principal { background: #0f172a; color: #ffffff; }
.dest-filas b.dest-pendiente { color: #fbbf24; }
.dest-filas b.dest-no { color: #f87171; }
.dest-chat { gap: 10px; }
.dest-burbuja { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.dest-cliente { align-self: flex-end; background: var(--azul); color: #04111a; border-bottom-right-radius: 4px; }
.dest-asistente { align-self: flex-start; background: var(--orbit); border: 1px solid var(--hull); color: #e2e8f0; border-bottom-left-radius: 4px; }
@media (max-width: 520px) {
    .seo-explicado { padding: 18px; }
    .dest-panel { padding: 14px; box-shadow: none; }
    .dest-aviso { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 4px 12px; padding: 12px; }
    .dest-aviso .icono-caja { grid-row: span 2; }
    .dest-aviso .dest-hora { grid-column: 2; align-self: start; }
    .dest-filas li { font-size: 14px; }
}
.galeria-disenos img { border-radius: 12px; border-color: var(--steel); box-shadow: var(--sombra-producto); }
.galeria-disenos img:hover { border-color: #4b5563; }
.pista-numero { border-color: var(--steel); background: var(--orbit); color: var(--azul-claro); font-family: var(--mono); font-size: 14px; border-radius: 9999px; }
.pista li::before { background: linear-gradient(90deg, var(--steel), transparent); }
.pista h3 { font-weight: 500; }
.aviso-presupuesto { background: var(--orbit); border-color: var(--steel); border-radius: 12px; }
.aviso-presupuesto .font-display { font-weight: 300 !important; }
.relacionados, .relacionados a { border-color: var(--hull); }
.relacionados b { font-weight: 500; }
.relacionados a:hover { color: var(--blanco); }
.relacionados a:hover > svg { color: var(--azul-claro); }

/* Preguntas */
.faq { background: transparent; border: 0; border-bottom: 1px solid var(--hull); border-radius: 0; padding: 0; }
.faq-pregunta, .faq-pregunta h3 { font-family: var(--inter) !important; font-weight: 500 !important; color: var(--blanco); }
.faq-flecha { color: var(--azul-claro); }
.faq-respuesta { color: var(--texto); }

/* Formularios y comprobador de cabeceras */
.campo { background: var(--void); border-color: var(--steel); border-radius: 8px; font-family: var(--inter); }
.campo:focus { border-color: var(--azul-claro); --tw-ring-color: rgba(34, 211, 238, .35); }
.aviso { border-radius: 12px; }
.resumen-nota { background: var(--orbit); border-color: var(--steel); border-radius: 12px; }
.valor-cabecera, .correccion { font-family: var(--mono); }
.correccion { background: var(--orbit); border-color: var(--steel); color: #bfdbfe; }

/* Todos los títulos de sección en peso ligero (los de las tarjetas, en 500) */
main h2 { font-weight: 300 !important; letter-spacing: -.025em; }
main aside h2, .para-quien h2 { font-weight: 500 !important; letter-spacing: 0; }

/* Chat: burbuja en Signal Blue con su brillo, como en Checkly */
:root {
    --chat--color--primary: #22d3ee; --chat--color--primary-shade-50: #67e8f9; --chat--color--secondary: #22d3ee;
    --chat--toggle--background: #22d3ee; --chat--toggle--hover--background: #67e8f9; --chat--toggle--color: #04111a;
    --chat--header--background: #041734; --chat--message--user--background: #22d3ee; --chat--message--user--color: #04111a;
    --chat--body--background: #0f172a; --chat--footer--background: #041734; --chat--input--send--button--color: #22d3ee;
}
.chat-lanzador { background: #22d3ee; color: #04111a; box-shadow: rgba(34, 211, 238, .5) 0 25px 50px -12px; }
.chat-lanzador:hover, .chat-lanzador:focus-visible { background: #67e8f9; }

/* Foco de teclado bien visible en toda la web (cabecera incluida) */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--azul-claro) !important; outline-offset: 3px; border-radius: 6px;
}
/* Enlaces del pie con altura de dedo (44 px) */
footer#contact a { display: inline-flex; align-items: center; min-height: 44px; }
footer#contact nav { row-gap: 0 !important; }
/* Campo trampa antispam: fuera de la vista sin salirse de la página */
.trampa { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
