/* =========================================
   AGENTIKO.TECH — Hoja común (rediseño 10-2026)
   Base de todas las páginas: fuentes, tokens, barra, pie, botones,
   formularios y chat. Cada tipo de página suma su propia hoja:
   home.css (index), producto.css, notas.css, legal.css, formularios.css.
   style.css es la hoja vieja (tema oscuro): ya no la carga ninguna página
   migrada; se borra cuando no quede ninguna.
   ========================================= */

/* --- Fuentes (autohospedadas; mismo criterio que style.css: optional, sin CLS) --- */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: optional;
  src: url('/assets/fonts/schibsted-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: optional;
  src: url('/assets/fonts/schibsted-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: optional;
  src: url('/assets/fonts/ibm-plex-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: optional;
  src: url('/assets/fonts/ibm-plex-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens ---
   Papel frío y tinta índigo; el violeta y el naranja salen del logo. El
   naranja solo marca «en producción»: si aparece en otro sitio deja de
   significar algo. */
:root {
  --papel:        #F4F4F8;
  --papel-2:      #EAE9F2;
  --tinta:        #18143A;
  --tinta-2:      #4E4A6A;
  --linea:        #D6D4E4;
  --violeta:      #4F2FD6;
  --violeta-osc:  #3A1FB0;
  --naranja:      #E2600B;
  --noche:        #18143A;   /* banda invertida */
  --noche-texto:  #E7E5F5;
  --noche-2:      #A9A4CC;

  --f-display: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --f-texto:   'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;

  --ancho: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --r: 6px;

}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--violeta); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 2000;
  background: var(--tinta); color: var(--papel); padding: .6rem 1rem; border-radius: var(--r);
}
.skip-link:focus { top: 1rem; }

.envoltorio { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }

/* --- Botones --- */
.boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 1.25rem;
  font: 600 1rem/1 var(--f-texto);
  text-decoration: none; border-radius: var(--r); border: 1.5px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.boton--lleno { background: var(--violeta); color: #fff; }
.boton--lleno:hover { background: var(--violeta-osc); }
.boton--borde { border-color: var(--tinta); color: var(--tinta); background: transparent; }
.boton--borde:hover { background: var(--tinta); color: var(--papel); }

/* =========================================
   NAV
   ========================================= */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: color-mix(in srgb, var(--papel) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--linea); }
.nav__barra { display: flex; align-items: center; gap: 2rem; min-height: 68px; }
.nav__marca { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
/* el SVG del logo trae mucho aire alrededor del glifo: se amplía sin mover la caja */
.nav__marca img { width: 34px; height: 34px; transform: scale(1.45); }
.nav__marca span { font: 800 1.15rem/1 var(--f-display); letter-spacing: -.01em; }

.nav-links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: .95rem; color: var(--tinta-2); font-weight: 500; }
.nav-links a:hover { color: var(--tinta); }
.nav__cta { min-height: 40px; font-size: .92rem; }

.hamburger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.hamburger span { display: block; height: 2px; background: var(--tinta); margin: 5px 0; transition: transform .2s, opacity .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu { display: none; }
.nav-mobile-menu.open {
  display: flex; flex-direction: column; gap: .25rem;
  padding: .5rem var(--gutter) 1.25rem; border-top: 1px solid var(--linea);
}
.nav-mobile-menu a { padding: .7rem 0; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--linea); }
.nav-mobile-menu a.boton { margin-top: .75rem; border-bottom: 0; }

@media (max-width: 860px) {
  .nav-links, .nav__cta { display: none; }
  .hamburger { display: block; }
}

/* =========================================
   PIE
   ========================================= */
.pie { border-top: 2px solid var(--tinta); padding: 3rem 0 2.5rem; font-size: .95rem; }
.pie__cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.pie__cols h2 { font: 700 .95rem/1.3 var(--f-display); margin-bottom: .75rem; }
.pie__cols li { margin-bottom: .45rem; }
.pie__cols a { text-decoration: none; color: var(--tinta-2); }
.pie__cols a:hover { color: var(--violeta); text-decoration: underline; }
.pie__legal { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--tinta-2); font-size: .88rem; }
.pie__legal a { color: var(--tinta-2); margin-left: 1.25rem; }
.pie__legal a:first-child { margin-left: 0; }
@media (max-width: 760px) { .pie__cols { grid-template-columns: 1fr 1fr; } .pie__cols > :first-child { grid-column: 1 / -1; } }

/* =========================================
   Live chat (copiado de style.css con la paleta de la home)
   ========================================= */
.lc-root {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900;
  display: flex; flex-direction: column; align-items: flex-end; gap: .75rem;
}
.lc-bubble {
  width: 56px; height: 56px; border: none; border-radius: 50%;
  background: var(--violeta); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(40, 20, 120, .28);
  transition: transform .15s, background-color .15s;
}
.lc-bubble:hover { background: var(--violeta-osc); transform: translateY(-2px); }
.lc-bubble__icon { width: 26px; height: 26px; fill: currentColor; }
.lc-bubble__icon--close { display: none; }
.lc-root.is-open .lc-bubble__icon--chat { display: none; }
.lc-root.is-open .lc-bubble__icon--close { display: block; }
.lc-panel {
  width: min(380px, calc(100vw - 2.5rem)); height: min(560px, calc(100vh - 7.5rem));
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--linea); border-radius: 10px;
  box-shadow: 0 24px 60px rgba(24, 20, 58, .25);
}
.lc-panel[hidden] { display: none; }
.lc-panel__head { display: flex; align-items: center; gap: .5rem; padding: .75rem .75rem .75rem 1rem; background: var(--tinta); color: #fff; flex-shrink: 0; }
.lc-panel__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--naranja); flex-shrink: 0; }
.lc-panel__title { font: 600 .95rem/1.2 var(--f-display); flex: 1; }
.lc-panel__close { background: none; border: none; color: #fff; font-size: 1.5rem; line-height: 1; padding: 0 .35rem; cursor: pointer; }
.lc-panel__body { flex: 1; background: #fff; }
.lc-panel__body iframe { width: 100%; height: 100%; border: none; display: block; }
@media (max-width: 480px) {
  .lc-root { right: 1rem; bottom: 1rem; left: 1rem; align-items: stretch; }
  .lc-panel { width: 100%; height: min(70vh, calc(100vh - 6.5rem)); }
  .lc-bubble { align-self: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .lc-bubble:hover { transform: none; }
}

/* =========================================
   COMPATIBILIDAD con el marcado de las páginas viejas
   Las páginas interiores conservan sus clases de style.css (container,
   section, btn…); acá se les da el aspecto nuevo para no reescribir cada
   página entera. Lo nuevo se escribe con las clases nuevas de arriba.
   ========================================= */
.container { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--papel-2); }
.section-title {
  font: 800 clamp(1.75rem, 3.6vw, 2.7rem)/1.1 var(--f-display);
  letter-spacing: -.03em; text-wrap: balance; margin: 0;
}
.section-subtitle { margin-top: .9rem; color: var(--tinta-2); font-size: 1.08rem; max-width: 62ch; text-wrap: pretty; }
/* Antes pintaban una palabra del título en cian/naranja: ahora no se distingue. */
.text-cyan, .text-orange, .highlight { color: inherit; }
.text-muted { color: var(--tinta-2); }

/* Las etiquetas encima de cada título pasan a ser una línea discreta en
   minúscula; no hacen de adorno. */
.about-badge, .page-eyebrow, .prod-eyebrow {
  display: inline-block; margin-bottom: .75rem;
  font: 600 .95rem/1.3 var(--f-texto); color: var(--violeta);
  letter-spacing: 0; text-transform: none; background: none; border: 0; padding: 0;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 46px; padding: 0 1.25rem;
  font: 600 1rem/1 var(--f-texto); text-decoration: none;
  border-radius: var(--r); border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lg { min-height: 52px; padding: 0 1.5rem; font-size: 1.05rem; }
.btn-primary { background: var(--violeta); color: #fff; }
.btn-primary:hover { background: var(--violeta-osc); }
.btn-secondary, .btn-outline { border-color: var(--tinta); color: var(--tinta); background: transparent; }
.btn-secondary:hover, .btn-outline:hover { background: var(--tinta); color: var(--papel); }
.btn:disabled { opacity: .65; cursor: wait; }

.icon-check { color: var(--violeta); font-weight: 700; }
.feature-list li, .about-features li { display: flex; gap: .6rem; margin-top: .55rem; }

/* main.js añade .visible al entrar en pantalla; sin animación de entrada. */
.animate-on-scroll { opacity: 1; transform: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.prod-back { display: block; width: fit-content; margin-bottom: 1.5rem; color: var(--tinta-2); text-decoration: none; font-weight: 500; }
.prod-back:hover { color: var(--violeta); }

/* --- Formularios (soporte, calculadora, cuestionario, alta de WhatsApp) --- */
.contact-form-card {
  background: #fff; border: 1px solid var(--linea); border-radius: 10px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.form-title { font: 700 1.2rem/1.3 var(--f-display); margin: 0 0 1.25rem; letter-spacing: 0; text-transform: none; color: var(--tinta); }
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--tinta);
  background: var(--papel); border: 1.5px solid var(--linea); border-radius: var(--r);
  padding: .7rem .85rem; min-height: 46px;
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--violeta);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--violeta) 20%, transparent);
}
.form-submit { width: 100%; margin-top: .5rem; }

/* main.js pinta los avisos de los formularios con colores en línea de la web
   oscura; se fuerzan los de la paleta clara según data-tipo. */
[data-tipo="success"] { background: #EAF6EE !important; border: 1px solid #9FD3AF !important; color: #145A2A !important; border-radius: var(--r) !important; }
[data-tipo="error"]   { background: #FDEEE4 !important; border: 1px solid #F0B48C !important; color: #8A3300 !important; border-radius: var(--r) !important; }

/* Cabecera común de página interior: migas o volver + título + entradilla. */
.pagina-cabecera { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.pagina-cabecera h1 {
  font: 800 clamp(2.1rem, 5vw, 3.8rem)/1.04 var(--f-display);
  letter-spacing: -.035em; max-width: 20ch; text-wrap: balance;
}
.pagina-cabecera .entradilla { margin-top: 1.1rem; max-width: 60ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--tinta-2); text-wrap: pretty; }
