/* ==========================================================
   TAURO SOLUTIONS — Sistema de diseño
   ========================================================== */

:root {
  /* paleta base — negro violáceo + VIOLETA TAURO (#a78bfa).
     IDENTIDAD OFICIAL: violeta, NUNCA magenta. Debe coincidir con
     TWEAK_DEFAULTS en components/05-app.jsx y con static/css/tauro.css. */
  --bg: #0a0e12;
  --bg-elev: #11161c;
  --bg-elev-2: #181f27;
  --line: #232c36;
  --line-soft: #1a2129;
  --fg: #f4f5f7;
  --fg-2: #b9bfc7;
  --fg-3: #7a828c;
  --fg-4: #4a525c;
  --accent: #a78bfa;       /* violeta TAURO */
  --accent-soft: #c9b4ff;  /* lavanda */
  --accent-deep: #7c5cf6;  /* violeta profundo */
  --accent-glow: rgba(167, 139, 250, 0.18);
  --warn: #f5b800;
  --ok: #2ec27e;

  /* tipografía */
  --font-display: "Space Grotesk", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "Inter", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

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

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --container: 1280px;
  --section-y: 120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 14, 18, 0.65);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(10, 14, 18, 0.88);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 15px;
}
.logo-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 14px;
  color: var(--fg-2);
}
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--fg); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-soft); }
.btn-primary.btn-loading,
.btn-primary.btn-loading:hover {
  min-height: 84px;
  background: #0d1117;
  border-color: rgba(167, 139, 250, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 18px 46px rgba(124, 92, 246, 0.14);
  cursor: wait;
}
.btn-ghost {
  color: var(--fg);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--fg-3); }
.btn-link {
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--fg);
  border-bottom: 1px solid var(--fg-3);
  padding-bottom: 2px;
}
.btn-link:hover { color: var(--accent); border-color: var(--accent); }
.btn-lg {
  padding: 16px 28px;
  font-size: 15px;
}

.tweb-txt-corto { display: none; }
.tweb-txt-largo { display: inline; }

/* ---------- chips / tags ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--fg-2);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-family: var(--font-mono);
}
.chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
}

/* ---------- card base ---------- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* ---------- sections common ---------- */
section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  position: relative;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin-bottom: 64px;
}
.section-head h2 {
  font-size: clamp(36px, 4.5vw, 56px);
}
.section-head p {
  color: var(--fg-2);
  font-size: 18px;
  margin: 0;
}

/* densidad compacta (tweak) */
body.density-compact { --section-y: 80px; }
body.density-compact .section-head { margin-bottom: 40px; }
body.density-compact .card { padding: 20px; }
body.density-spacious { --section-y: 160px; }
body.density-spacious .section-head { margin-bottom: 88px; }
body.density-spacious .card { padding: 36px; }

/* ---------- hero ---------- */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(48px, 7vw, 92px);
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.hero h1 .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.hero h1 .strike {
  position: relative;
  display: inline-block;
}
.hero p.lead {
  font-size: 18px;
  color: var(--fg-2);
  max-width: 520px;
  margin: 10px 0 36px;
  line-height: 1.6;
}
.hero p.hero-promise {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hero-manual-note {
  display: block;
  margin-top: 8px;
  color: var(--fg-3);
  font-size: 15px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}
.hero-meta-item .num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero-meta-item .lbl {
  font-size: 12px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* hero ambient */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.hero-bg .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
}
.hero-bg .glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  top: -100px; right: -100px;
  filter: blur(40px);
}

/* ---------- footer ---------- */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line-soft);
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
  color: var(--fg-2);
}
.footer ul a:hover { color: var(--fg); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

/* ---------- animations ---------- */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* Default visible state — animation is progressive enhancement only */
.fade-up { opacity: 1; transform: none; }
.js-anim .fade-up { animation: fadeUp .7s cubic-bezier(.2,.7,.3,1) both; }
.js-anim .fade-up.d1 { animation-delay: .08s; }
.js-anim .fade-up.d2 { animation-delay: .16s; }
.js-anim .fade-up.d3 { animation-delay: .24s; }
.js-anim .fade-up.d4 { animation-delay: .32s; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.pulse { animation: pulse 2s ease-in-out infinite; }

/* ---------- Loader "Ultracode": matriz de puntos violeta ---------- */
.tauro-quote-loader {
  width: min(100%, 280px);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Pastilla oscura (el track del slider de Claude) */
.tauro-loader-track {
  position: relative;
  width: 100%;
  height: 34px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.01)),
    #0b0916;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 8px 18px rgba(0, 0, 0, 0.55);
}

/* Capa 1: todos los puntitos apagados */
.tauro-loader-track::before {
  content: "";
  position: absolute;
  inset: 7px 12px;
  background-image: radial-gradient(circle, #292142 0 1.9px, transparent 2.3px);
  background-size: 8px 7.5px;
  background-position: left center;
}

/* Capa 2: los puntitos violeta que se van cargando (degradé animado
   detrás de la misma grilla de puntos, enmascarada) */
.tauro-loader-flame {
  position: absolute;
  inset: 7px 12px;
  background: linear-gradient(90deg,
    #362a5e 0%, #58449e 26%, #7c5cf6 48%,
    #a78bfa 68%, #c4b0fc 84%, #e4dbff 100%);
  background-size: 230% 100%;
  animation: tauroMatrixCharge 1.55s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.45));
  -webkit-mask-image: radial-gradient(circle at 4px 3.75px, #000 1.9px, transparent 2.3px);
          mask-image: radial-gradient(circle at 4px 3.75px, #000 1.9px, transparent 2.3px);
  -webkit-mask-size: 8px 7.5px;
          mask-size: 8px 7.5px;
}

.tauro-loader-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 16px;
  color: #f8f8fb;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

@keyframes tauroMatrixCharge {
  0%   { background-position: 115% 0; }
  100% { background-position: -115% 0; }
}

@media (max-width: 520px) {
  .tauro-quote-loader { width: min(100%, 240px); }
}

@keyframes truckMove {
  0% { transform: translateX(-10%); }
  100% { transform: translateX(110%); }
}

/* utility */
.muted { color: var(--fg-3); }
.mono { font-family: var(--font-mono); }
.divider { height: 1px; background: var(--line-soft); margin: 0; border: 0; }

/* Sin flechitas nativas en los inputs numéricos (cotizador) */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* Desplegable propio del cotizador público */
.tweb-select-btn { transition: border-color .15s, box-shadow .15s, transform .12s; }
.tweb-select-btn:hover { border-color: var(--fg-3) !important; }
.tweb-select-opt { transition: background .12s, color .12s; }
.tweb-select-opt:hover { background: var(--bg-elev) !important; color: var(--fg) !important; }

/* Feedback de click sin ondas que desborden: press + destello */
button, .btn, a[class*="btn"], [role="button"], .tweb-select-btn {
  transition: transform .12s ease, box-shadow .15s ease, filter .12s ease;
}
button:active, .btn:active, a[class*="btn"]:active, [role="button"]:active,
.tweb-select-btn:active { transform: scale(.97); }
.btn-primary:active { box-shadow: 0 0 0 3px var(--accent-glow), 0 6px 22px var(--accent-glow); filter: brightness(1.06); }

/* Precio violeta metálico con brillo en movimiento (comparador de couriers).
   El gradiente mide 200% del ancho del número y el barrido de background-position
   hace viajar el destello DENTRO de los dígitos (background-clip: text lo recorta).
   Arranca y termina en el mismo violeta para que el loop sea invisible. */
.tweb-price-metal {
  background: linear-gradient(105deg,
    #8b6bf7 0%, #a78bfa 34%, #e9ddff 47%, #f6f0ff 50%, #e9ddff 53%, #a78bfa 66%, #8b6bf7 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(124, 92, 246, .45));
  animation: tweb-metal-sweep 2.6s linear infinite;
}
@keyframes tweb-metal-sweep {
  to { background-position-x: -200%; }
}
@media (prefers-reduced-motion: reduce) {
  .tweb-price-metal { animation: none; }
}

/* Neón violeta — marco de la opción recomendada y botones primarios.
   Mismo tempo (2.6s) que el barrido del precio: todo respira en sincronía.
   El halo vive en un ::before y se anima SU OPACIDAD (composita en GPU);
   animar box-shadow directo repinta la página entera en cada frame. */
.tweb-neon-ring,
.btn-primary:not(.btn-loading) { position: relative; }
.tweb-neon-ring::before,
.tweb-brand-tag::before,
.btn-primary:not(.btn-loading)::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(201, 180, 255, .45),
              0 0 22px rgba(124, 92, 246, .55),
              0 0 58px rgba(124, 92, 246, .28);
  opacity: .45;
  pointer-events: none;
  animation: tweb-neon-pulse 2.6s ease-in-out infinite;
}
@keyframes tweb-neon-pulse { 50% { opacity: 1; } }

/* Logo del nav: la T levanta un glow violeta suave al pasar el mouse
   (eco del lenguaje neón, sin recargar el header) */
.logo img { transition: filter .25s ease; }
.logo:hover img { filter: drop-shadow(0 0 10px rgba(167, 139, 250, .55)); }

/* Chip de marca "Tauro Solutions" — botón 3D flotando sobre el borde superior
   derecho del cotizador: relieve (luz arriba, sombra abajo), texto metálico
   (.tweb-price-metal adentro) y halo neón (comparte el ::before de arriba). */
.tweb-brand-tag {
  position: absolute;
  top: -15px;
  right: 20px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2a1a4a 0%, #1a0f30 55%, #120a20 100%);
  border: 1px solid rgba(167, 139, 250, .55);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, .55),
    0 2px 10px rgba(124, 92, 246, .35),
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -3px 8px rgba(0, 0, 0, .55);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Botones primarios: mismo lenguaje que el chip Tauro Solutions pero un tono
   más oscuro — vidrio púrpura 3D (luz arriba, sombra abajo), borde violeta,
   texto lavanda y destello que barre la superficie (capa 1 del background;
   la capa 2 es el gradiente oscuro, que queda quieto en el keyframe).
   :not(.btn-loading) porque la pastilla del loader tiene su propio estilo.
   El :hover va incluido porque su "background" shorthand pisaría todo. */
.btn-primary:not(.btn-loading),
.btn-primary:not(.btn-loading):hover {
  /* Vidrio, no bloque: los violetas van en rgba y el fondo se ve a través
     (sobre una foto se nota el paisaje; sobre negro simplemente se afina). */
  background-color: rgba(41, 25, 82, .34);
  background-image:
    linear-gradient(105deg,
      rgba(255, 255, 255, 0) 42%, rgba(233, 221, 255, .22) 50%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, rgba(83, 52, 160, .50) 0%, rgba(41, 25, 82, .38) 55%, rgba(24, 12, 51, .42) 100%);
  background-size: 200% 100%, 100% 100%;
  background-position: 0 0, 0 0;
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  border: 1px solid rgba(167, 139, 250, .45);
  color: #efe9ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -3px 8px rgba(0, 0, 0, .35);
  animation: tweb-metal-sweep-dark 2.6s linear infinite;
}
.btn-primary:not(.btn-loading):hover { filter: brightness(1.14); background-color: rgba(41, 25, 82, .48); }
@keyframes tweb-metal-sweep-dark {
  to { background-position: -200% 0, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tweb-neon-ring::before,
  .btn-primary:not(.btn-loading)::before { animation: none; opacity: .6; }
  .btn-primary:not(.btn-loading),
  .btn-primary:not(.btn-loading):hover { animation: none; }
}

/* ==========================================================
   CELULAR — la web tiene que entrar en la pantalla, sin barra
   horizontal y sin nada cortado.

   La causa real del desborde no era el ancho de los bloques sino
   `grid-template-columns: 1fr`: en CSS Grid, `1fr` equivale a
   minmax(AUTO, 1fr), así que si el contenido tiene un mínimo ancho
   (una fila de tabs, una tabla) la columna se estira más que la
   pantalla. `minmax(0, 1fr)` le da permiso de achicarse; el
   `min-width: 0` en los hijos hace lo propio con flex.
   ========================================================== */
@media (max-width: 880px) {
  .hero-grid, .services-grid, .tracking-grid, .why-grid, .process-grid, .footer-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .hero-grid > *, .services-grid > *, .tracking-grid > *,
  .why-grid > *, .process-grid > *, .footer-grid > * { min-width: 0; }
}

@media (max-width: 760px) {
  :root { --section-y: 68px; }
  .container { padding: 0 18px; }

  /* Nav: entra completo achicando marca y botones (no escondemos
     "Iniciar sesión": desde el celular es como entra el cliente).
     El max-width es clave: la barra es `position: fixed`, así que se
     dimensiona contra el ancho del documento y no contra el de la pantalla;
     sin este tope se estiraba y dejaba "Cotizar envío" cortado afuera. */
  .nav { padding: 12px 0; max-width: 100vw; }
  .nav-inner { gap: 10px; }
  .logo { font-size: 12.5px; gap: 8px; }
  .logo-mark { width: 26px; height: 26px; }
  .logo-mark img { height: 22px !important; }
  .nav-cta { gap: 8px; flex-shrink: 0; }
  .nav-cta .btn { padding: 8px 13px !important; font-size: 12px !important; }
  /* La marca NUNCA se recorta: lo que se acorta son las etiquetas de los
     botones ("Iniciar sesión" → "Ingresar", "Cotizar envío" → "Cotizar"). */
  .tweb-txt-largo { display: none; }
  .tweb-txt-corto { display: inline; }

  /* Hero: alto natural (100vh en celular deja el CTA fuera de vista) */
  .hero { min-height: 0; padding-top: 96px; padding-bottom: 56px; }
  .hero h1 { font-size: clamp(34px, 9.5vw, 52px); }
  .hero p.lead { font-size: 16px; margin: 20px 0 30px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-meta { gap: 22px; margin-top: 38px; padding-top: 24px; flex-wrap: wrap; }

  .section-head { margin-bottom: 36px; gap: 12px; }
  .section-head h2 { font-size: clamp(27px, 7.5vw, 38px); }
  .section-head p { font-size: 16px; }
  .card { padding: 20px; }
}

@media (max-width: 420px) {
  .container { padding: 0 15px; }
  .logo { font-size: 11.5px; }
  .nav-cta .btn { padding: 7px 11px !important; font-size: 11.5px !important; }
  .nav-cta .btn svg { display: none; }        /* la flechita no entra */
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 16px; }
}

/* Pantallas muy chicas (iPhone SE y similares): sin este ajuste el botón
   "Cotizar envío" quedaba cortado contra el borde derecho. */
@media (max-width: 400px) {
  .container { padding: 0 12px; }
  .nav-inner { gap: 8px; }
  .logo { font-size: 10.5px; gap: 6px; }
  .logo-mark { width: 22px; height: 22px; }
  .logo-mark img { height: 19px !important; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn { padding: 6px 9px !important; font-size: 10.5px !important; }
}

/* --- Botones flotantes de contacto (mail / WhatsApp / Instagram) --- */
.tweb-fab-grupo {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 40;
  display: flex;
  flex-direction: column-reverse;   /* el mail queda abajo, el resto sube */
  gap: 12px;
}
.tweb-fab {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px var(--accent-glow), 0 4px 14px rgba(0, 0, 0, .3);
  transition: transform .2s, box-shadow .2s;
}
.tweb-fab:hover { transform: scale(1.08); box-shadow: 0 12px 34px var(--accent-glow), 0 6px 18px rgba(0,0,0,.35); }

/* --- Cotizador y botón flotante en celular --- */
@media (max-width: 560px) {
  /* "Peso" y "Valor declarado" en una columna: la etiqueta larga partía en
     dos líneas y dejaba los dos campos desalineados. */
  .tweb-campos-2 { grid-template-columns: minmax(0, 1fr) !important; }
  /* El chip de marca no debe sobresalir del borde en pantallas chicas */
  .tweb-brand-tag { right: 12px; font-size: 11px; padding: 7px 13px; }
}

@media (max-width: 760px) {
  /* Los botones de contacto pasan a la derecha (donde hay menos texto) y se
     achican, para que dejen de taparle las palabras al contenido. */
  .tweb-fab-grupo { left: auto; right: 14px; bottom: 14px; gap: 10px; }
  .tweb-fab { width: 46px; height: 46px; }
  .tweb-fab svg { width: 21px; height: 21px; }
}

/* --- Tarjetas de courier en celular ---
   En una fila sola (logo + nombre + precio) el precio se salía de la pantalla,
   justo el dato que el cliente vino a ver. Pasa a su propia línea, alineado
   con el nombre y bien grande. */
@media (max-width: 560px) {
  .tweb-carrier { flex-wrap: wrap; row-gap: 2px; }
  .tweb-carrier-precio {
    flex: 1 0 100% !important;
    text-align: left !important;
    padding-left: 88px;                 /* alinea con el nombre, salteando el logo */
    margin-top: 0;
  }
}

/* ── Selector de sentido del cotizador (exportar / importar) ────
   TAURO opera los dos lados. Va arriba de todo el formulario porque
   cambia qué significan los campos de abajo. Los botones son los
   .btn/.btn-primary/.btn-ghost del resto de la web: acá sólo va la
   grilla, para que los dos ocupen lo mismo. */
.tweb-sentido {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.tweb-sentido .btn { width: 100%; }

/* Nombres de los partners en el hero: son varios, no un número. */
.hero-meta-item .num.tweb-partners {
  font-size: clamp(15px, 2.4vw, 19px);
  letter-spacing: -.01em;
  white-space: nowrap;
}

/* ── Movidas desde el <style> inline del HTML (03/08/2026) ──
   El head quedó sin CSS inline para poder servir la página con una
   Content-Security-Policy estricta. Si editás esto, bumpeá ?v= en el HTML. */
@keyframes spin { to { transform: rotate(360deg); } }
html { scroll-behavior: smooth; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-4); }
