/* ==========================================================================
   BULL ERA × MARLU LOGISTIC — Hoja de estilos
   Estética inspirada en apple.com: tipografía -apple-system, mucho espacio
   en blanco, navegación translúcida, secciones grandes y animaciones suaves.
   ========================================================================== */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --bg-white: #ffffff;
  --bg-light: #f5f5f7;
  --bg-dark: #000000;
  --bg-dark-2: #1d1d1f;

  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-onlight-muted: #86868b;
  --text-white: #f5f5f7;
  --text-white-muted: rgba(245, 245, 247, 0.68);

  --accent: #0071e3;
  --accent-hover: #0058b9;
  --accent-soft: rgba(0, 113, 227, 0.1);

  --divider-light: rgba(0, 0, 0, 0.08);
  --divider-dark: rgba(255, 255, 255, 0.16);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 980px;

  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --nav-h: 44px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

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

ul { list-style: none; }

button { font-family: inherit; border: none; background: none; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 22px;
}

.container--wide { max-width: 1320px; }

/* ----------------------------- Tipografía ------------------------------ */

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.07; }

.eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 10px;
}

.display-1 {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.display-2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.45;
}

.section-intro {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-intro .lede { margin-top: 14px; }

.eyebrow-center { text-align: center; }

p { color: var(--text-secondary); line-height: 1.6; font-size: 17px; }

.on-dark, .on-dark p, .on-dark .lede { color: var(--text-white-muted); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--text-white); }
.on-dark .eyebrow { color: #2997ff; }

/* ------------------------------- Botones -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 400;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost-dark {
  background: rgba(255,255,255,0.12);
  color: #fff;
  backdrop-filter: blur(10px);
}
.btn--ghost-dark:hover { background: rgba(255,255,255,0.2); }

.btn-row { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }

.link-chevron {
  color: var(--accent);
  font-size: 19px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.link-chevron:hover { text-decoration: underline; }
.link-chevron .chev { transition: transform 0.2s var(--ease); }
.link-chevron:hover .chev { transform: translateX(3px); }

/* -------------------------------- Navbar -------------------------------- */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.navbar.is-scrolled {
  border-bottom-color: var(--divider-light);
}

.navbar.is-dark-page {
  background: rgba(0,0,0,0.6);
}
.navbar.is-dark-page.is-scrolled { border-bottom-color: var(--divider-dark); }

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.navbar.is-dark-page .nav-logo { color: #fff; }
.nav-logo .dot { color: var(--accent); }
.nav-logo-mark {
  height: 28px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-primary);
  opacity: 0.85;
  transition: opacity 0.2s;
}
.navbar.is-dark-page .nav-links a { color: #fff; }
.nav-links a:hover { opacity: 1; }
.nav-links a.is-active { opacity: 1; font-weight: 600; }

.nav-cta {
  font-size: 12px;
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 28px; height: 28px;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 4px; right: 4px; height: 1.5px; background: currentColor;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 9px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 21px; }
.navbar.is-dark-page .nav-toggle { color: #fff; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile-panel {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--divider-light);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
  z-index: 999;
}
.nav-mobile-panel.is-open { max-height: 480px; }
.nav-mobile-panel ul { padding: 12px 22px 24px; }
.nav-mobile-panel li { border-bottom: 1px solid var(--divider-light); }
.nav-mobile-panel a { display: block; padding: 16px 4px; font-size: 19px; }

/* -------------------------------- Hero ----------------------------------- */

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 120px);
  padding-bottom: 100px;
  text-align: center;
  overflow: hidden;
  background: var(--bg-white);
}

.hero--compact { padding-top: calc(var(--nav-h) + 90px); padding-bottom: 70px; }

.hero-glow {
  position: absolute;
  top: -260px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(closest-side, rgba(0,113,227,0.22), transparent 70%),
              radial-gradient(closest-side at 30% 60%, rgba(255,94,87,0.15), transparent 65%),
              radial-gradient(closest-side at 70% 70%, rgba(189,107,255,0.16), transparent 65%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-logo { width: 220px; height: auto; display: block; margin: 0 auto 12px; }

.hero-slogan {
  text-align: center;
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .02em;
  color: var(--accent);
  margin: 0 0 22px;
}

.hero p.lede { max-width: 620px; margin: 22px auto 0; }

.hero .btn-row { justify-content: center; margin-top: 34px; }

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.hero-badge {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-light);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

/* ------------------------------- Secciones -------------------------------- */

.section { padding: 100px 0; }
.section--light { background: var(--bg-light); }
.section--white { background: var(--bg-white); }
.section--dark { background: var(--bg-dark); }
.section--dark2 { background: var(--bg-dark-2); }
.section--tight { padding: 70px 0; }

.divider { border-top: 1px solid var(--divider-light); }

/* ------------------------------- Tarjetas -------------------------------- */

.grid {
  display: grid;
  gap: 20px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  border: 1px solid var(--divider-light);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,0.08); }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 22px;
}

.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 15px; }

.card--on-light {
  background: var(--bg-light);
  border: none;
}

.tile {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  text-align: center;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.tile:hover { transform: translateY(-4px); background: #ececef; }
.tile .card-icon { margin: 0 auto 18px; }
.tile h3 { font-size: 17px; margin-bottom: 6px; }
.tile p { font-size: 13.5px; }

/* ---------------------------- Proceso (Nuestro modelo) --------------------- */

.process-step {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.process-step:hover { transform: translateY(-6px); background: rgba(255,255,255,.09); }
.process-step .step-num {
  font-size: 13px;
  font-weight: 700;
  color: #2997ff;
  letter-spacing: .04em;
  margin-bottom: 16px;
}
.process-step .card-icon { background: rgba(41,151,255,.16); color: #2997ff; }
.process-step h3 { font-size: 18px; margin-bottom: 0; }
.process-step ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }
.process-step ul li {
  font-size: 13px;
  color: var(--text-white-muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.4;
}
.process-step ul li i { color: #2997ff; font-size: 10px; margin-top: 4px; }

/* -------------------------- Bloque dos-empresas --------------------------- */

.companies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.company-card {
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.company-card.bullera { background: linear-gradient(160deg, #0a0a0a 0%, #1d1d1f 55%, #2c1500 130%); }
.company-card.marlu { background: linear-gradient(160deg, #001b3a 0%, #042c5c 55%, #0071e3 140%); }

.company-card .tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}
.company-card h3 { font-size: 28px; margin-bottom: 12px; color: #fff; }
.company-card p { color: rgba(255,255,255,0.72); font-size: 15.5px; }
.company-card h3.marlu-logo { margin-bottom: 16px; line-height: 0; }
.company-card h3.bull-logo { margin-bottom: 16px; line-height: 0; }
.bull-logo-mark { height: 50px; width: auto; display: block; }
.marlu-logo-mark {
  width: 240px;
  max-width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: screen;
}

/* ------------------------------ Estadísticas ------------------------------ */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.stats .on-dark .stat-number { color: #fff; }
.stat-label { font-size: 14px; color: var(--text-secondary); margin-top: 6px; }

/* -------------------------------- Pasos ----------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  background: var(--bg-white);
  border: 1px solid var(--divider-light);
  border-radius: var(--radius-md);
  padding: 26px 18px;
}
.step .num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.step h4 { font-size: 15.5px; margin-bottom: 6px; }
.step p { font-size: 13px; }

/* ------------------------------- Banner CTA -------------------------------- */

.cta-banner {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0071e3, #00c6ff 120%);
  padding: 70px 50px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 16px auto 0; }
.cta-banner .btn-row { justify-content: center; margin-top: 30px; }
.cta-banner .btn--primary { background: #fff; color: var(--accent); }
.cta-banner .btn--primary:hover { background: #f0f0f0; }
.cta-banner .link-chevron { color: #fff; }

/* -------------------------------- Footer ----------------------------------- */

.site-footer {
  background: var(--bg-light);
  padding: 50px 0 26px;
  font-size: 12px;
  color: var(--text-onlight-muted);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--divider-light);
  flex-wrap: wrap;
}
.footer-col h5 {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { text-decoration: underline; }
.footer-brand { max-width: 280px; }
.footer-brand .nav-logo { color: var(--text-primary); margin-bottom: 10px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { margin-right: 16px; }

/* ----------------------------- Animaciones --------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ------------------------------- Utilidades --------------------------------- */

.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.muted { color: var(--text-secondary); }
.kicker-row { display:flex; justify-content:center; gap: 10px; margin-bottom: 18px; }
.pill-tag {
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split img, .split .visual { width: 100%; }

.visual-block {
  border-radius: var(--radius-lg);
  min-height: 360px;
  background: linear-gradient(150deg,#101820,#1d1d1f 60%, #07233f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 70px;
  position: relative;
  overflow: hidden;
}
.visual-block.alt { background: linear-gradient(150deg,#001b3a,#0071e3 110%); }
.visual-block.warm { background: linear-gradient(150deg,#1d1500,#7a3b00 60%, #ff8a00); }

.visual-photo {
  border-radius: var(--radius-lg);
  min-height: 360px;
  overflow: hidden;
  position: relative;
}
.visual-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 340px;
  margin: 0 auto;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  background: #000;
}
.video-frame video {
  width: 100%;
  display: block;
}

.map-frame {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: var(--radius-md);
  filter: grayscale(0.15);
}

.form {
  display: grid;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.form input, .form select, .form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--divider-light);
  background: var(--bg-light);
  color: var(--text-primary);
  transition: border-color .2s, background .2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.form-msg {
  display: none;
  margin-top: 10px;
  font-size: 14px;
  color: #1c8a4a;
  font-weight: 600;
}
.form-msg.is-visible { display: block; }

.contact-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 30px;
}
.contact-card h4 { font-size: 18px; margin-bottom: 14px; }
.contact-line { display: flex; gap: 12px; margin-bottom: 12px; font-size: 15px; color: var(--text-secondary); }
.contact-line .ic { color: var(--accent); width: 18px; text-align: center; }

.back-to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(29,29,31,0.85);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  z-index: 900;
  backdrop-filter: blur(10px);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* --------------------------------- Responsive ------------------------------- */

@media (max-width: 992px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .companies { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { gap: 28px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: calc(var(--nav-h) + 80px); }
  .cta-banner { padding: 50px 24px; }
}
