/* =========================================================
   DH Cargo Express - estilos
   Radios: tarjetas 24px, inputs 12px, botones/controles pill.
   Acento único: rojo de marca. Neutros fríos (slate).
   Capas z-index: contenido 1 | nav 1030 | preloader 2000
   ========================================================= */

:root {
  --brand: #D1002F;
  --brand-hover: #AE0027;
  --brand-ink: #FFFFFF;
  --brand-soft: rgba(209, 0, 47, 0.08);
  --brand-text: #C4002C;

  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --surface-2: #ECEFF3;
  --text: #121620;
  --muted: #535D6B;
  --border: #DFE3E9;
  --shadow: 0 1px 2px rgba(18, 24, 36, 0.05), 0 12px 32px -12px rgba(18, 24, 36, 0.14);

  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-hi: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 10px 36px -10px rgba(18, 24, 36, 0.28);

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius: 24px;
  --radius-sm: 12px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* Muelle 'tidal' de plasma-ui (rigidez 170, amortiguación 16) */
  --spring: linear(0, 0.047, 0.162, 0.311, 0.471, 0.625, 0.76, 0.871, 0.957, 1.018, 1.058, 1.079, 1.086, 1.084, 1.075, 1.062, 1.048, 1.035, 1.023, 1.013, 1.005, 0.999, 0.996, 0.993, 0.993, 0.993, 0.993, 0.994, 0.996, 0.997, 0.998, 0.999, 0.999, 1, 1, 1.001, 1);
  --plasma-hi: rgba(209, 0, 47, 0.07);

  --bs-body-font-family: var(--font-body);
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-border-color: var(--border);
  --bs-link-color-rgb: 196, 0, 44;
  --bs-link-hover-color-rgb: 174, 0, 39;
  --bs-focus-ring-color: rgba(209, 0, 47, 0.3);
}

[data-bs-theme="dark"] {
  --brand: #E1103F;
  --brand-hover: #F0335D;
  --brand-soft: rgba(255, 77, 109, 0.12);
  --brand-text: #FF6B86;

  --bg: #0E1117;
  --surface: #161B23;
  --surface-2: #1C222C;
  --text: #EDF0F4;
  --muted: #A4AEBC;
  --border: #2A313C;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.6);

  --glass-bg: rgba(22, 27, 35, 0.55);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-hi: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.7);
  --plasma-hi: rgba(255, 255, 255, 0.06);

  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-border-color: var(--border);
  --bs-link-color-rgb: 255, 107, 134;
  --bs-link-hover-color-rgb: 255, 140, 160;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; color: inherit; }
img { max-width: 100%; height: auto; }
.container { --bs-gutter-x: 2rem; }
body { overflow-x: clip; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: #fff; }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 2100;
  background: var(--brand); color: #fff; padding: 0.6rem 1rem; border-radius: 999px;
  text-decoration: none; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.logo-for-dark { display: none !important; }
[data-bs-theme="dark"] .logo-for-light { display: none !important; }
[data-bs-theme="dark"] .logo-for-dark { display: inline-block !important; }
.theme-icon-dark { display: none; }
[data-bs-theme="dark"] .theme-icon-light { display: none; }
[data-bs-theme="dark"] .theme-icon-dark { display: inline; }

.text-white-75 { color: rgba(255, 255, 255, 0.8); }

/* ---------- Botones ---------- */
.btn {
  --bs-btn-font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.18s var(--ease-out), background-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn-lg { padding: 0.85rem 1.7rem; font-size: 1rem; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-brand {
  background: var(--brand); color: var(--brand-ink); border: 0;
  box-shadow: 0 8px 20px -8px rgba(209, 0, 47, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-brand:hover, .btn-brand:focus-visible { background: var(--brand-hover); color: var(--brand-ink); }
.btn-glass, .btn-light-glass {
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-glass:hover, .btn-light-glass:hover { background: rgba(255, 255, 255, 0.22); color: #fff; border-color: rgba(255, 255, 255, 0.5); }

/* ---------- Liquid glass (capa de navegación/controles) ---------- */
.glass-nav, .glass-card, .glass-btn {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}
/* Reflejo especular */
.glass-nav::before, .glass-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 38%),
              radial-gradient(120% 80% at 100% 120%, rgba(255, 255, 255, 0.12), transparent 60%);
  opacity: 0.7;
}
[data-bs-theme="dark"] .glass-nav::before, [data-bs-theme="dark"] .glass-card::before { opacity: 0.25; }

@media (prefers-reduced-transparency: reduce) {
  .glass-nav, .glass-card, .glass-btn, .btn-glass, .btn-light-glass {
    -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface);
  }
  .glass-card.on-dark, .btn-glass, .btn-light-glass { background: #1C222C; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 12px; left: 0; right: 0; z-index: 1030;
  padding: 0 12px; pointer-events: none;
}
.glass-nav {
  pointer-events: auto;
  max-width: 1200px; margin: 0 auto;
  border-radius: 999px;
  padding: 0.45rem 0.5rem;
  min-height: 64px;
  transition: box-shadow 0.3s, background-color 0.3s;
}
.site-header.is-scrolled .glass-nav { --glass-bg: rgba(255, 255, 255, 0.78); }
[data-bs-theme="dark"] .site-header.is-scrolled .glass-nav { --glass-bg: rgba(22, 27, 35, 0.82); }
.brand-logo { height: 34px; width: auto; display: block; }
.navbar-brand { padding: 0 0 0 0.4rem; }
.glass-nav .nav-link {
  color: var(--text); font-weight: 600; font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important; border-radius: 999px;
  transition: background-color 0.2s, color 0.2s;
}
.glass-nav .nav-link:hover { background: var(--brand-soft); color: var(--brand-text); }
.glass-nav .nav-link.active { color: var(--brand-text); }

.glass-btn {
  height: 44px; min-width: 44px; padding: 0 0.85rem;
  border-radius: 999px; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-weight: 700; font-size: 0.85rem; cursor: pointer;
  transition: transform 0.18s var(--ease-out), background-color 0.2s;
}
.glass-btn.icon-only { padding: 0; width: 44px; }
.glass-btn:hover { background: var(--brand-soft); color: var(--brand-text); }
.glass-btn:active { transform: scale(0.95); }
.glass-btn i { font-size: 1rem; }
.lang-code { letter-spacing: 0.04em; }

/* Sin logo en la barra: la píldora se ajusta a su contenido */
.glass-nav { width: fit-content; max-width: 100%; }
.glass-nav > .container-fluid { width: auto; }
@media (min-width: 992px) {
  .glass-nav .navbar-collapse { flex-grow: 0; }
  .glass-nav .navbar-nav { margin-right: 1.25rem; }
}

@media (max-width: 991.98px) {
  .glass-nav { border-radius: 28px; margin-right: 0; }
  .glass-nav:has(.navbar-collapse.show, .navbar-collapse.collapsing) { width: 100%; }
  .navbar-collapse { padding: 0.5rem 0.25rem 0.75rem; }
  .glass-nav .nav-link { padding: 0.75rem 1rem !important; }
}
@media (max-width: 400px) {
  .brand-logo { height: 28px; }
  .lang-toggle .bi { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100dvh;
  display: flex; align-items: flex-end;
  padding: 7rem 0 4.5rem;
  color: #fff; overflow: hidden;
}
.hero-bg, .hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero-bg img { object-position: 62% 50%; transform: scale(1.06); animation: heroZoom 18s ease-out forwards; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 22% 62%, rgba(8, 10, 15, 0.6) 0%, rgba(8, 10, 15, 0) 100%),
    linear-gradient(180deg, rgba(8, 10, 15, 0.55) 0%, rgba(8, 10, 15, 0.2) 35%, rgba(8, 10, 15, 0.85) 100%),
    linear-gradient(90deg, rgba(8, 10, 15, 0.78) 0%, rgba(8, 10, 15, 0.35) 45%, rgba(8, 10, 15, 0) 72%);
}
@media (max-width: 991.98px) {
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(8, 10, 15, 0.5) 0%, rgba(8, 10, 15, 0.72) 30%, rgba(8, 10, 15, 0.9) 100%);
  }
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero-logo {
  display: block; width: auto;
  height: clamp(64px, 8vw, 108px);
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.5));
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85); margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand); border-radius: 2px; }
.hero-title {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.03em;
  margin-bottom: 1.2rem; max-width: 18ch;
}
.hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, 0.82); max-width: 44ch; margin-bottom: 2rem; }

.hero-card {
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-hi: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius); padding: 1.6rem; color: #fff;
}
.hero-card-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; font-size: 0.95rem; }
.hero-card-list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.hero-card-list i { color: #FF8FA3; font-size: 1.1rem; line-height: 1.4; }

.icon-bubble {
  width: 48px; height: 48px; flex: 0 0 48px;
  display: inline-grid; place-items: center; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand-text); font-size: 1.2rem;
}
.icon-bubble.light, .hero-card .icon-bubble { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ---------- Capacidades ---------- */
.capabilities { background: var(--surface); border-bottom: 1px solid var(--border); }
.caps-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cap {
  display: flex; gap: 1rem; align-items: center; padding: 1.75rem 1.25rem;
}
.cap + .cap { border-left: 1px solid var(--border); }
.cap i { font-size: 1.6rem; color: var(--brand-text); width: 32px; text-align: center; }
.cap strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.cap span { display: block; color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
@media (max-width: 991.98px) {
  .caps-grid { grid-template-columns: repeat(2, 1fr); }
  .cap:nth-child(3) { border-left: 0; }
  .cap:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 575.98px) {
  .caps-grid { grid-template-columns: 1fr; }
  .cap + .cap { border-left: 0; border-top: 1px solid var(--border); }
  .cap { padding: 1.2rem 0.25rem; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 700; line-height: 1.1; margin-bottom: 1rem;
}
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
p { max-width: 68ch; }

/* ---------- Bento de servicios ---------- */
.bento {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(0, auto);
}
.bento-cell {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.bento-cell:hover { transform: translateY(-4px); }
.bento-cell h3 { font-size: 1.4rem; font-weight: 700; margin: 1rem 0 0.6rem; }
.bento-body { padding: 1.75rem; position: relative; }
.bento-body p { color: var(--muted); }

.bento-main { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; }
.bento-main .bento-media { aspect-ratio: 16 / 7; overflow: hidden; }
.bento-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.bento-cell:hover .bento-media img { transform: scale(1.04); }

.bento-dark { grid-column: span 2; color: #fff; border-color: transparent; background: #10141B; }
.bento-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bento-dark::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.55), rgba(10, 12, 18, 0.92) 70%);
}
.bento-brand {
  grid-column: span 2; color: #fff; border-color: transparent;
  background: linear-gradient(150deg, #E3123F 0%, #B8002A 100%);
}
.bento-watermark {
  position: absolute; right: -18px; bottom: -22px; font-size: 8.5rem;
  color: rgba(255, 255, 255, 0.1); z-index: -1; pointer-events: none;
}
.bento-wide { grid-column: span 6; display: grid; grid-template-columns: 5fr 7fr; }
.bento-wide .bento-media { min-height: 240px; }
.bento-wide .bento-body { align-self: center; padding: 2.25rem; }

.check-list { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.55rem; }
.check-list.two-col { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
.check-list li { position: relative; padding-left: 1.7rem; line-height: 1.45; }
.check-list li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: 0.1rem; font-size: 0.8rem;
  width: 1.15rem; height: 1.15rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand-text);
}
.bento-dark .check-list li::before, .bento-brand .check-list li::before { background: rgba(255, 255, 255, 0.16); color: #fff; }
.bento-dark .check-list li, .bento-brand .check-list li { color: rgba(255, 255, 255, 0.9); }

@media (max-width: 991.98px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-main, .bento-wide { grid-column: span 2; grid-row: auto; }
  .bento-dark, .bento-brand { grid-column: span 1; }
}
@media (max-width: 767.98px) {
  .bento { grid-template-columns: 1fr; }
  .bento-main, .bento-wide, .bento-dark, .bento-brand { grid-column: auto; }
  .bento-wide { grid-template-columns: 1fr; }
  .bento-wide .bento-media { min-height: 0; aspect-ratio: 16 / 9; }
  .check-list.two-col { grid-template-columns: 1fr; }
}

/* ---------- Proceso ---------- */
.flow {
  list-style: none; padding: 0; margin: 0; position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.flow::before {
  content: ""; position: absolute; top: 32px; left: 32px; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 10px, transparent 10px 18px);
}
.flow::after {
  content: ""; position: absolute; top: 31px; left: 32px; height: 4px; width: 60px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--brand));
  animation: flowRun 4.5s var(--ease-out) infinite;
}
@keyframes flowRun {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(min(78vw, 1000px)); opacity: 0; }
}
.flow-step { position: relative; }
.flow-icon {
  width: 64px; height: 64px; border-radius: 20px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: var(--surface); color: var(--brand-text);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  position: relative; z-index: 1; margin-bottom: 1.25rem;
}
.flow-step h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.flow-step p { color: var(--muted); margin: 0; }
@media (max-width: 991.98px) {
  .flow { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .flow::before, .flow::after { display: none; }
}
@media (max-width: 575.98px) {
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow-step { display: grid; grid-template-columns: 64px 1fr; column-gap: 1.1rem; padding-bottom: 2rem; }
  .flow-step .flow-icon { grid-row: span 2; margin: 0; }
  .flow-step:not(:last-child)::before {
    content: ""; position: absolute; left: 31px; top: 64px; bottom: 0; width: 2px;
    background: repeating-linear-gradient(180deg, var(--border) 0 8px, transparent 8px 14px);
  }
}

/* ---------- Nosotros ---------- */
.about-media { position: relative; padding: 0 12% 14% 0; }
.about-img-main { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.about-img-float {
  position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); border: 6px solid var(--bg); box-shadow: var(--shadow);
}
.values { display: grid; gap: 1.25rem; margin-top: 2rem; }
.value {
  display: flex; gap: 1rem; padding: 1.25rem 1.4rem;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
}
.value > i {
  font-size: 1.2rem; color: var(--brand-text); width: 44px; height: 44px; flex: 0 0 44px;
  display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft);
}
.value h3 { font-size: 1.1rem; margin: 0 0 0.25rem; font-weight: 700; }
.value p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Cobertura / portal ---------- */
.coverage { position: relative; isolation: isolate; padding: clamp(5rem, 10vw, 8rem) 0; overflow: hidden; }
.coverage-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.coverage-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8, 10, 15, 0.92) 0%, rgba(8, 10, 15, 0.7) 55%, rgba(8, 10, 15, 0.45) 100%);
}
.glass-card.on-dark {
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-hi: rgba(255, 255, 255, 0.28);
  border-radius: var(--radius); padding: 2rem;
}
.glass-card.on-dark .icon-bubble { display: inline-grid; }

/* ---------- Contacto ---------- */
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list .label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.contact-list .ci-value { display: block; font-weight: 600; color: var(--text); text-decoration: none; }
.contact-list a.ci-value:hover { color: var(--brand-text); text-decoration: underline; }

.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow);
}
.form-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.form-control, .form-select {
  border-radius: var(--radius-sm); padding: 0.75rem 1rem;
  background-color: var(--bg); border-color: var(--border); color: var(--text);
}
.form-control:focus, .form-select:focus {
  background-color: var(--surface); border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft); color: var(--text);
}
.form-text { color: var(--muted); }
.form-status { font-weight: 600; font-size: 0.95rem; }
.form-status.is-ok { color: #1F8A4C; }
[data-bs-theme="dark"] .form-status.is-ok { color: #4ADE80; }
.form-status.is-error { color: var(--brand-text); }

/* ---------- Footer (siempre oscuro) ---------- */
.site-footer { background: #0A0D12; color: rgba(255, 255, 255, 0.72); padding: 4rem 0 1.5rem; }
.footer-logo { height: 40px; width: auto; }
.footer-h { color: #fff; font-family: var(--font-display); font-weight: 600; margin-bottom: 0.9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-links a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.social {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.social:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem;
}
.to-top {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none;
}
.to-top:hover { background: var(--brand); color: #fff; }

/* ---------- Aparición al scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

/* =========================================================
   PLASMA (lenguaje de CruxGarden/plasma-ui portado a CSS/JS)
   lean -> propiedad `translate` (main.js) | highlight -> --mx/--my
   rim iridiscente | form-in con muelle | pulse al pulsar
   ========================================================= */
@property --rim-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

[data-plasma] { will-change: translate; }

/* Brillo que mira al puntero */
.bento-cell::before, .value::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--plasma-hi), transparent 60%);
  opacity: 0; transition: opacity 0.4s ease;
}
.bento-dark::before, .bento-brand::before {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.14), transparent 60%);
}
.value { position: relative; transition: border-color 0.3s; }
.bento-cell:hover::before, .value:hover::before { opacity: 1; }
.value:hover { border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); }

.glass-card[data-plasma]::before {
  background:
    radial-gradient(360px circle at var(--mx, 18%) var(--my, 0%), rgba(255, 255, 255, 0.32), transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 38%);
  transition: background 0.2s;
}
.btn-brand[data-plasma]:hover {
  background-image: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.28), transparent 70%);
}

/* Borde iridiscente que gira lento (rim + shimmer) */
.plasma-rim::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--rim-angle),
    rgba(255, 255, 255, 0) 0deg, rgba(255, 110, 140, 0.85) 60deg, rgba(255, 255, 255, 0.9) 110deg,
    rgba(150, 215, 255, 0.55) 160deg, rgba(255, 255, 255, 0) 220deg, rgba(255, 255, 255, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: rimSpin 10s linear infinite;
  opacity: 0.75;
}
.glass-nav.plasma-rim::after { opacity: 0.45; }
[data-bs-theme="light"] .glass-nav.plasma-rim::after { opacity: 0.6; }
@keyframes rimSpin { to { --rim-angle: 360deg; } }

/* Form-in: la barra "se forma" tras el preloader */
.glass-nav { transition: box-shadow 0.3s, background-color 0.3s, opacity 0.35s ease, scale 0.8s var(--spring); }
body:not(.is-loaded) .glass-nav { opacity: 0; scale: 0.92; }

/* Pulse al pulsar */
.is-pulsing { animation: plasmaPulse 0.6s var(--spring); }
@keyframes plasmaPulse { 0% { scale: 1; } 20% { scale: 0.95; } 100% { scale: 1; } }

/* ---------- Formulario: honeypot y estado de envío ---------- */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-sending, .btn-spin { display: none; }
#formSubmit.is-sending { pointer-events: none; opacity: 0.85; }
#formSubmit.is-sending .btn-label, #formSubmit.is-sending .btn-icon { display: none; }
#formSubmit.is-sending .btn-sending { display: inline; }
#formSubmit.is-sending .btn-spin { display: inline-block; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 1020;
  width: 58px !important; height: 58px; padding: 0; border-radius: 50%;
  font-size: 1.75rem; color: #1FAF55; text-decoration: none;
  transition: opacity 0.4s ease, scale 0.8s var(--spring), background-color 0.2s;
}
.wa-fab:hover { color: #1FAF55; background: rgba(31, 175, 85, 0.12); }
.glass-btn.wa-fab i { font-size: inherit; }
body:not(.is-loaded) .wa-fab { opacity: 0; scale: 0.6; }
@media (max-width: 767.98px) {
  .wa-fab { right: 14px; bottom: 14px; width: 52px !important; height: 52px; font-size: 1.55rem; }
  .footer-bottom { padding-right: 64px; }
}

/* =========================================================
   PRELOADER: el isotipo cae como un paquete, rebota,
   se revela el logotipo y el camión recorre la barra.
   ========================================================= */
#preloader {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center;
  background: var(--bg);
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.5s ease 0.2s;
}
#preloader.is-done { transform: translateY(-100%); opacity: 0.6; pointer-events: none; }
body:not(.is-loaded) { overflow: hidden; }

.loader-stage { display: grid; justify-items: center; gap: 2.2rem; }
.loader-logo { display: flex; align-items: flex-start; gap: clamp(8px, 1.4vw, 14px); }
.loader-mark-wrap { position: relative; }
.loader-mark {
  height: clamp(64px, 12vw, 96px); width: auto; display: block;
  transform-origin: 50% 100%;
  animation: markDrop 0.95s cubic-bezier(0.34, 1.3, 0.64, 1) both, markBob 2.4s ease-in-out 1.2s infinite;
}
.loader-shadow {
  position: absolute; left: 12%; right: 12%; bottom: -14px; height: 10px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(18, 22, 32, 0.28), transparent);
  animation: shadowIn 0.95s cubic-bezier(0.34, 1.3, 0.64, 1) both, shadowBob 2.4s ease-in-out 1.2s infinite;
}
[data-bs-theme="dark"] .loader-shadow { background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), transparent); }
.loader-word img {
  height: clamp(78px, 14.6vw, 117px); width: auto; display: block;
  clip-path: inset(0 100% 0 0);
  animation: wordReveal 0.75s var(--ease-out) 0.75s forwards;
}
.loader-road {
  position: relative; width: min(280px, 70vw); height: 4px; border-radius: 4px;
  background: var(--surface-2); overflow: visible;
}
.loader-progress {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--brand);
  animation: roadFill 1.7s cubic-bezier(0.65, 0, 0.35, 1) 0.2s infinite;
}
.loader-truck {
  position: absolute; top: -26px; left: 0; font-size: 1.3rem; color: var(--brand);
  animation: truckDrive 1.7s cubic-bezier(0.65, 0, 0.35, 1) 0.2s infinite;
}

@keyframes markDrop {
  0%   { transform: translateY(-140px) rotate(-10deg); opacity: 0; }
  45%  { opacity: 1; }
  62%  { transform: translateY(0) rotate(0) scale(1.12, 0.84); }
  78%  { transform: translateY(-14px) scale(0.96, 1.05); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes markBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes shadowIn {
  0% { transform: scaleX(0.2); opacity: 0; }
  62% { transform: scaleX(1.15); opacity: 1; }
  100% { transform: scaleX(1); opacity: 1; }
}
@keyframes shadowBob {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.86); opacity: 0.7; }
}
@keyframes wordReveal {
  from { clip-path: inset(0 100% 0 0); transform: translateX(-10px); }
  to   { clip-path: inset(0 0 0 0); transform: none; }
}
@keyframes roadFill {
  0% { width: 0; left: 0; }
  60% { width: 100%; left: 0; }
  100% { width: 0; left: 100%; }
}
@keyframes truckDrive {
  0% { left: -6px; opacity: 0; }
  10% { opacity: 1; }
  60% { left: calc(100% - 22px); opacity: 1; }
  75%, 100% { left: calc(100% + 10px); opacity: 0; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .loader-word img { clip-path: none; }
  .flow::after { display: none; }
  .plasma-rim::after { animation: none; }
  [data-plasma] { translate: none !important; }
}
