/* ════════════════════════════════════════
   BASE — Variables, Reset, Tipografía
   Adonis Landing · Octubre 2026
   Paleta unificada con el app (Documentacion/ux/PALETA_REAL.md del ERP)
   ════════════════════════════════════════ */

/* ── Variables ── */
:root {
  /* Marca (app + logo) */
  --mint: #14b8a6;
  --mint-dark: #0d9488;
  --mint-light: #5eead4;
  --mint-50: #f0fdfa;
  --navy: #0f1d2b;
  --navy-light: #1a2f42;
  --navy-50: #e8eef4;
  --amber: #f59e0b;
  --amber-50: #fffbeb;
  --amber-800: #92400e;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-50: #ecfdf5;
  --whatsapp: #25d366;

  /* Texto y superficies */
  --carbon: #1e293b;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --offwhite: #f4f7fa;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --divider: #cbd5e1;

  /* Alias heredados (páginas legales y clases existentes) */
  --slate: var(--navy-light);
  --slate-dark: var(--navy);
  --slate-50: var(--navy-50);

  --font-display: "Sora", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;

  --shadow-card: 0 4px 24px rgba(15, 29, 43, 0.07);
  --shadow-card-hover: 0 8px 32px rgba(15, 29, 43, 0.12);
  --shadow-panel: 0 18px 50px rgba(15, 29, 43, 0.16);

  --navbar-h: 64px;

  /* Movimiento: micro (botones), ui (menús, diálogos), escena (cine) */
  --dur-micro: 160ms;
  --dur-ui: 320ms;
  --dur-escena: 1200ms;
  --ease-salida: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-estandar: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reinicio ──
   Basado en Preflight de Tailwind CSS v3.4.17 (MIT, https://tailwindcss.com).
   El sitio lo recibía del CDN de Tailwind, que se quitó en octubre de 2026:
   era un script síncrono que bloqueaba el render en las 6 páginas para usar
   2 clases. Se copió tal cual para que no cambie nada visible (los grises
   #e5e7eb y #9ca3af son los suyos). */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: var(--font-body);
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

abbr:where([title]) {
  text-decoration: underline dotted;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
pre,
samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-feature-settings: normal;
  font-variation-settings: normal;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

button,
select {
  text-transform: none;
}

button,
input:where([type="button"]),
input:where([type="reset"]),
input:where([type="submit"]) {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}

:-moz-focusring {
  outline: auto;
}

:-moz-ui-invalid {
  box-shadow: none;
}

progress {
  vertical-align: baseline;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

summary {
  display: list-item;
}

menu,
ol,
ul {
  list-style: none;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  color: #9ca3af;
}

button,
[role="button"] {
  cursor: pointer;
}

:disabled {
  cursor: default;
}

audio,
canvas,
embed,
iframe,
img,
object,
svg,
video {
  display: block;
  vertical-align: middle;
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* El atributo hidden siempre gana a las clases con display */
[hidden] {
  display: none !important;
}

/* ── Scroll suave + offset para navbar fijo ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-h) + 8px);
}

/* ── Body ── */
body {
  font-family: var(--font-body);
  background: #fff;
  color: var(--carbon);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 1.5 es lo que siempre se vio: el 1.6 que había aquí lo pisaba Tailwind. */
  line-height: 1.5;
}

/* ── Solo para lectores de pantalla ── */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Skip link (accesibilidad teclado) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--navy);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

/* ── Focus visible global ── */
:focus-visible {
  outline: 2px solid var(--mint-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Utilidades tipográficas ── */
.font-display {
  font-family: var(--font-display);
}

/* ── Reveal on scroll (solo con JS: sin JS todo queda visible) ── */
.js .rv {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.js .rv.d1 {
  transition-delay: 0.08s;
}

.js .rv.d2 {
  transition-delay: 0.16s;
}

.js .rv.d3 {
  transition-delay: 0.24s;
}

.js .rv.d4 {
  transition-delay: 0.32s;
}

.js .rv.d5 {
  transition-delay: 0.4s;
}

.js .rv.d6 {
  transition-delay: 0.48s;
}

.js .rv.d7 {
  transition-delay: 0.56s;
}

.js .rv.on {
  opacity: 1;
  transform: translateY(0);
}

/* ── Sección label (eyebrow) ── */
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-dark);
  margin-bottom: 12px;
}

/* ── Movimiento reducido ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
