/* ==========================================================================
   Automate.ai · Design tokens (tema claro)
   Fuente única de valores. components.css solo usa estas variables.
   Breakpoints (no se pueden usar como variable en @media):
     móvil  < 720px · tablet 720–1023px · escritorio >= 1024px
   ========================================================================== */

/* ---- Fuentes alojadas en el proyecto (assets/fonts, licencia OFL) -------
   Newsreader: variable, peso 400–500 y tamaño óptico 6–72 (recta) y 500
   con tamaño óptico (cursiva). Inter: variable, peso 400–600. JetBrains
   Mono: 500. Dos archivos por estilo: latin y latin-ext (este solo se
   descarga si la página usa esos caracteres). */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/newsreader-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/newsreader-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: "Newsreader";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/newsreader-italic-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/newsreader-italic-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: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-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: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-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;
}

:root {
  /* ---- Marca ------------------------------------------------------------ */
  --am-green: #007854;          /* botón principal, enlaces, acentos, ".ai" */
  --am-green-hover: #00603F;    /* hover del botón principal */
  --am-green-soft: #DCEDE5;     /* fondos suaves de marca */
  --am-on-green: #FFFFFF;       /* texto sobre verde */
  --am-mint: #00E5A0;           /* menta: SOLO la palabra destacada en cursiva sobre --am-ink (11,99:1) */

  /* ---- Productos (cada color solo identifica a su producto) ------------- */
  --am-leo: #FCB444;            /* relleno de Leo. Texto encima: --am-on-leo */
  --am-on-leo: #101010;
  --am-leo-text: #8F5400;       /* ámbar oscuro para texto (5,61:1 sobre --am-bg) */
  --am-leo-soft: #FFE6BD;       /* fondo suave de Leo (cita del dossier) */
  --am-lola: #0868A8;           /* relleno y texto de Lola */
  --am-on-lola: #FFFFFF;
  --am-lola-soft: #E1EDF6;
  --am-vera: #7A3B69;           /* relleno y texto de Vera */
  --am-on-vera: #FFFFFF;
  --am-vera-soft: #EFE3EC;

  /* ---- Neutros ---------------------------------------------------------- */
  --am-bg: #F7F5F0;             /* fondo de página (dossier de Leo) */
  --am-bg-alt: #EFECE5;         /* franjas alternas (dossier de Leo) */
  --am-surface: #FFFFFF;        /* tickets, chats, formularios */
  --am-surface-2: #EAEAE4;      /* superficies secundarias, burbuja entrante */
  --am-text: #101010;           /* texto principal */
  --am-text-muted: #5C5A55;     /* texto secundario */
  --am-line: #DDD8CE;           /* líneas finas de 1px */
  --am-line-strong: #8A857A;    /* bordes de campo, botón secundario, números grandes */
  --am-ink: #0A0A0A;            /* bloques oscuros (cierre, CTA final) */
  --am-on-ink: #F7F5F0;         /* texto sobre bloques oscuros */
  --am-on-ink-muted: #A8A49A;   /* texto secundario sobre bloques oscuros */
  --am-line-on-ink: #3A3936;    /* líneas sobre bloques oscuros */
  --am-error: #B42318;          /* solo errores de formulario */
  --am-bubble-in: #EAEAE4;      /* burbuja entrante (cliente) */
  --am-bubble-out: #DCEDE5;     /* burbuja saliente (asistente) */

  /* ---- Estados de la conciliación de Vera (solo en esa tabla) ----------- */
  --am-status-ok-bg: #DCEDE5;
  --am-status-ok-text: #007854;
  --am-status-suggest-bg: #EFE3EC;
  --am-status-suggest-text: #7A3B69;
  --am-status-warn-bg: #FBEBCB;
  --am-status-warn-text: #8F5400;
  --am-status-pending-bg: #EAEAE4;
  --am-status-pending-text: #5C5A55;

  /* ---- Tipografía: familias -------------------------------------------- */
  --am-font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --am-font-sans: "Inter", Calibri, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --am-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --am-weight-regular: 400;
  --am-weight-medium: 500;
  --am-weight-semibold: 600;

  /* ---- Tipografía: escala (escritorio; móvil abajo) --------------------- */
  --am-fs-display: 64px;  --am-lh-display: 66px;
  --am-fs-h1: 44px;       --am-lh-h1: 50px;
  --am-fs-h2: 30px;       --am-lh-h2: 36px;
  --am-fs-h3: 20px;       --am-lh-h3: 28px;
  --am-fs-lead: 19px;     --am-lh-lead: 30px;
  --am-fs-body: 16px;     --am-lh-body: 26px;
  --am-fs-small: 14px;    --am-lh-small: 22px;
  --am-fs-label: 12px;    --am-lh-label: 16px;
  --am-fs-numeral: 80px;  --am-lh-numeral: 80px;

  --am-tracking-tight: -0.02em;   /* titulares serif grandes */
  --am-tracking-label: 0.08em;    /* etiquetas mono en mayúsculas */

  /* ---- Espaciado -------------------------------------------------------- */
  --am-space-1: 4px;
  --am-space-2: 8px;
  --am-space-3: 12px;
  --am-space-4: 16px;
  --am-space-5: 24px;
  --am-space-6: 32px;
  --am-space-7: 48px;
  --am-space-8: 64px;
  --am-space-9: 96px;
  --am-space-10: 120px;

  /* ---- Forma ------------------------------------------------------------ */
  --am-radius-sm: 6px;       /* badges y campos */
  --am-radius-md: 12px;      /* botones, burbujas de chat */
  --am-radius-lg: 16px;      /* chats, llamadas, tabla */
  --am-radius-pill: 999px;   /* pastillas */

  --am-border: 1px;          /* línea fina estándar */
  --am-border-strong: 2px;   /* cierre de bloque grande */

  --am-border-dashed: 1px dashed;  /* separadores del ticket */

  /* Única sombra decorativa: el ticket (filter, sigue el borde dentado). Y el anillo de foco. */
  --am-shadow-ticket: drop-shadow(0 1px 1px rgba(16, 16, 16, 0.08)) drop-shadow(0 10px 14px rgba(16, 16, 16, 0.08));
  --am-focus-ring: 0 0 0 3px rgba(0, 120, 84, 0.4);
  --am-focus-ring-on-ink: 0 0 0 3px rgba(0, 229, 160, 0.6);  /* foco sobre bloque negro */
  --am-ticket-tilt: -2deg;
  --am-ticket-tooth: 8px;    /* alto del dentado del ticket */

  /* ---- Layout ----------------------------------------------------------- */
  --am-max-width: 1120px;    /* ancho máximo de contenido */
  --am-text-width: 680px;    /* texto corrido */
  --am-gutter: 24px;         /* margen lateral */
  --am-section-gap: 120px;   /* separación entre secciones */
  --am-tap: 44px;            /* zona táctil mínima */
  --am-btn-height: 48px;
  --am-btn-height-sm: 38px;
  --am-logo-min-width: 120px;
  --am-avatar-sm: 40px;
  --am-avatar-md: 64px;
  --am-avatar-lg: 96px;
  --am-logo-nav: 160px;      /* logo-horizontal-color en la barra */
  --am-logo-footer: 132px;   /* logo-texto-color en el pie */
  --am-nav-height: 72px;
  --am-dot: 8px;             /* punto de color de badges y pies de ejemplo */
  --am-bar-height: 8px;      /* barras del panel de Vera */
  --am-ticket-width: 320px;
  --am-chat-width: 440px;
  --am-speaker-width: 88px;  /* columna Leo/Cliente de la llamada */
  --am-textarea-height: 120px;
  --am-check-size: 20px;      /* casilla de verificación */
  --am-page-min-height: 100vh; /* .am-page: el pie siempre abajo en páginas cortas */
  --am-chevron: 8px;         /* flecha del select y del acordeón */
  --am-bubble-max: 82%;      /* ancho máximo de una burbuja de chat */
  --am-underline-offset: 0.25em;
  --am-faq-question: 40%;    /* ancho de la columna de pregunta en escritorio */

  /* ---- Movimiento ------------------------------------------------------- */
  --am-duration: 160ms;
  --am-ease: cubic-bezier(0.2, 0, 0, 1);
}

/* Móvil: < 720px */
@media (max-width: 719.98px) {
  :root {
    --am-fs-display: 40px;  --am-lh-display: 44px;
    --am-fs-h1: 32px;       --am-lh-h1: 38px;
    --am-fs-h2: 26px;       --am-lh-h2: 32px;
    --am-fs-h3: 19px;       --am-lh-h3: 26px;
    --am-fs-lead: 17px;     --am-lh-lead: 27px;
    --am-fs-numeral: 56px;  --am-lh-numeral: 56px;

    --am-gutter: 16px;
    --am-section-gap: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --am-duration: 0ms; }
}
