/* PubliTaxi — base compartida (tokens, reset, header, footer, botones)
   La importan landing, simulador, guías y admin. */

:root {
  --ink: #090b0f;
  --ink-2: #292b31;
  --muted: #60656f;
  --muted-2: #9a9da5;
  --line: #e5e7eb;
  --line-strong: #d7d9de;
  --paper: #ffffff;
  --soft: #f5f6f7;
  --canvas: #f6f6f7;
  --yellow: #ffc400;
  --yellow-2: #ffd83d;
  --yellow-strong: #e8b400;
  --yellow-soft: #fff6d1;
  --yellow-ink: #7a5d00;
  --success: #198754;
  --success-bg: #eaf7f0;
  --danger: #d53d45;
  --danger-bg: #fff0f1;
  --info: #2f6fde;
  --info-bg: #eef4ff;
  --warning: #9c6d00;
  --warning-bg: #fff7db;
  --wa: #25d366;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px rgba(9, 11, 15, .12);
  --shadow-soft: 0 10px 30px rgba(9, 11, 15, .05);
  --container: min(1180px, calc(100% - 40px));
  --header-h: 76px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 6px); color-scheme: light; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: var(--font); font-size: 16px; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p { margin-top: 0; }

.container { width: var(--container); margin-inline: auto; }
.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 { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 14px; background: var(--yellow); color: var(--ink); border-radius: 10px; font-weight: 800; transform: translateY(-140%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid rgba(255,196,0,.6); outline-offset: 3px; }

.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: .74rem; font-weight: 900; text-transform: uppercase; letter-spacing: .28em; }
.eyebrow-light { color: rgba(255,255,255,.72); }

/* Botones */
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 22px; border: 1px solid transparent; border-radius: var(--radius-sm); font-weight: 800; line-height: 1.2; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:disabled { opacity: .6; cursor: progress; transform: none; }
.button-primary { background: linear-gradient(135deg, var(--yellow-2), var(--yellow)); color: #080a0d; box-shadow: 0 9px 24px rgba(255,196,0,.22); }
.button-outline { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(9,11,15,.18); }
.button-ghost { border-color: rgba(9,11,15,.22); color: var(--ink); background: #fff; }
.button-ghost:hover { border-color: var(--yellow); background: #fffdf3; }
.button-wa { background: var(--wa); color: #06210f; box-shadow: 0 9px 24px rgba(37,211,102,.25); }
.button-wa svg { width: 20px; height: 20px; fill: currentColor; }
.button-sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }

/* Header público (landing, simulador, guías) */
.site-header { position: sticky; top: 0; z-index: 100; color: #fff; background: rgba(7,9,13,.96); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.1); }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: block; flex: 0 0 112px; width: 112px; line-height: 0; }
.brand img { width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 26px; margin-left: auto; font-size: .93rem; font-weight: 650; }
.site-nav a { padding: 10px 0; position: relative; white-space: nowrap; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 2px; background: var(--yellow); transition: right .2s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current="page"]::after { right: 0; }
.site-nav .nav-cta { display: none; }
.header-cta { min-height: 46px; padding-inline: 19px; font-size: .9rem; }
.menu-button { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); padding: 10px; cursor: pointer; }
.menu-button span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* Footer público */
.site-footer { padding: 34px 0; color: rgba(255,255,255,.72); background: #07090d; border-top: 1px solid rgba(255,255,255,.1); }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto minmax(150px, .35fr); align-items: center; gap: 28px; }
.footer-brand { display: block; width: 154px; line-height: 0; }
.footer-brand img { width: 100%; height: auto; }
.footer-grid p { margin: 0; font-size: .82rem; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: .82rem; }
.footer-grid nav a:hover { color: var(--yellow); }
.footer-tag { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.24); }
.footer-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.45); font-size: .76rem; }
.footer-meta a { color: rgba(255,255,255,.45); }
.footer-meta a:hover { color: var(--yellow); }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--wa); color: #06210f; font-weight: 800; font-size: .9rem; box-shadow: 0 14px 34px rgba(37,211,102,.35); transition: transform .2s ease; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 24px; height: 24px; fill: currentColor; }

@media (max-width: 1050px) {
  .site-nav { gap: 15px; font-size: .87rem; }
  .header-inner { gap: 18px; }
  .header-cta { display: none; }
}

@media (max-width: 780px) {
  :root { --container: min(100% - 30px, 680px); --header-h: 62px; }
  .header-inner { min-height: 62px; }
  .brand { flex-basis: 104px; width: 104px; }
  .menu-button { display: block; }
  .site-nav { position: fixed; inset: 62px 0 auto 0; display: grid; justify-content: stretch; gap: 0; margin: 0; padding: 10px 0 14px; background: rgba(7,9,13,.98); border-bottom: 1px solid rgba(255,255,255,.1); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .2s ease, opacity .2s ease; }
  .site-nav[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 14px 22px; font-size: 1rem; }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta { display: inline-flex; margin: 10px 22px 0; }
  .footer-grid { grid-template-columns: 1fr; justify-items: start; gap: 14px; }
  .footer-tag { display: none; }
  .wa-float { right: 14px; bottom: 14px; padding: 0 16px 0 12px; }
  .wa-float span { display: none; }
  .wa-float { padding: 0; width: 52px; justify-content: center; }
}

@media (max-width: 520px) {
  :root { --container: calc(100% - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
