/* ===================================
   BASE
   =================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #111; background: #fff; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

:root {
  --red:       #8B1C1C;
  --red-dark:  #6b1414;
  --red-mid:   #b91c1c;
  --red-light: #fef2f2;
  --red-ring:  rgba(139,28,28,.12);

  --dark:   #0f0f0f;
  --gray-700:#374151;
  --gray-600:#4b5563;
  --gray-500:#6b7280;
  --gray-400:#9ca3af;
  --gray-300:#d1d5db;
  --gray-200:#e5e7eb;
  --gray-100:#f3f4f6;
  --gray-50: #f9fafb;

  --r-sm: .375rem;
  --r:    .75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-2xl:2rem;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.07);
  --shadow:    0 4px 12px rgba(0,0,0,.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.13);
  --shadow-xl: 0 24px 56px rgba(0,0,0,.16);
  --shadow-red:0 8px 28px rgba(139,28,28,.3);
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

/* ===================================
   HEADER — WHITE / CLEAN
   =================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow .2s;
}
.header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: 76px; }

.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo-img { display: block; height: 72px; width: auto; }
.logo-img--footer { height: 48px; filter: brightness(0) invert(1); opacity: .9; }

.nav { display: flex; align-items: center; gap: .125rem; margin-left: auto; }
.nav-link {
  padding: .4rem .85rem; color: var(--gray-600); font-weight: 500; font-size: .9rem;
  border-radius: var(--r-sm); transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--dark); background: var(--gray-100); }

.header-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }

.btn-outline-sm {
  display: inline-flex; align-items: center; padding: .5rem 1.1rem;
  border: 1.5px solid var(--gray-200); color: var(--gray-700);
  border-radius: var(--r-sm); font-weight: 500; font-size: .85rem;
  transition: border-color .2s, color .2s;
}
.btn-outline-sm:hover { border-color: var(--red); color: var(--red); }

.btn-primary-sm {
  display: inline-flex; align-items: center; padding: .5rem 1.1rem;
  background: var(--red); color: #fff;
  border-radius: var(--r-sm); font-weight: 600; font-size: .85rem;
  transition: background .2s;
}
.btn-primary-sm:hover { background: var(--red-dark); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: .5rem; margin-left: auto; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: all .28s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===================================
   HERO — SPLIT LAYOUT
   =================================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 76px;
}

/* Left: white */
.hero-left {
  padding: 5rem 4rem 5rem 0;
  display: flex; flex-direction: column; justify-content: center;
  padding-left: calc((100vw - 1180px) / 2 + 1.5rem);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .9rem;
  background: var(--red-light); border: 1px solid rgba(139,28,28,.2);
  border-radius: 100px; color: var(--red); font-size: .8rem; font-weight: 600;
  margin-bottom: 2rem; width: fit-content;
}
.badge-dot {
  width: 6px; height: 6px; background: var(--red); border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero-left h1 {
  font-size: 3.5rem; font-weight: 900; line-height: 1.1;
  letter-spacing: -.04em; color: var(--dark); margin-bottom: 1.25rem;
}
.hero-left h1 em { font-style: normal; color: var(--red); }

.hero-left p {
  font-size: 1.05rem; color: var(--gray-500); line-height: 1.75;
  margin-bottom: 2.25rem; max-width: 440px;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }

.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .875rem 1.875rem; background: var(--red); color: #fff;
  border-radius: var(--r); font-weight: 700; font-size: 1rem;
  transition: background .2s, transform .15s;
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .875rem 1.875rem; color: var(--gray-700);
  border: 1.5px solid var(--gray-200); border-radius: var(--r);
  font-weight: 600; font-size: 1rem; transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

.hero-trust { display: flex; flex-direction: column; gap: .6rem; }
.hero-trust li {
  font-size: .85rem; color: var(--gray-500);
  display: flex; align-items: center; gap: .5rem;
}
.hero-trust li::before { content: '✓'; color: var(--red); font-weight: 800; font-size: .9rem; }

/* Right: dark red */
.hero-right {
  background: var(--red);
  background-image: radial-gradient(ellipse 70% 60% at 80% 40%, rgba(255,255,255,.06) 0%, transparent 65%),
                    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(0,0,0,.2) 0%, transparent 60%);
  display: flex; align-items: center; justify-content: center;
  padding: 4rem 3.5rem;
  position: relative; overflow: hidden;
}
.hero-right::before {
  content: '';
  position: absolute; top: -40%; right: -20%;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(255,255,255,.04); pointer-events: none;
}

/* RATE CARD */
.rate-card {
  background: #fff; border-radius: var(--r-xl);
  box-shadow: 0 32px 64px rgba(0,0,0,.3);
  overflow: hidden; width: 100%; max-width: 420px;
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

.rate-card-header { padding: .875rem 1.125rem; background: var(--gray-50); border-bottom: 1px solid var(--gray-100); }
.rate-card-title { display: flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 600; color: var(--gray-500); margin-bottom: .4rem; }
.rate-card-route { display: flex; align-items: center; gap: .5rem; font-size: .92rem; font-weight: 700; color: var(--dark); }
.rate-weight { margin-left: auto; padding: .15rem .5rem; background: var(--gray-100); color: var(--gray-500); border-radius: 100px; font-size: .72rem; font-weight: 500; }

.rate-list { padding: .5rem .625rem; }
.rate-row {
  display: grid; grid-template-columns: 58px 1fr auto auto;
  align-items: center; gap: .625rem; padding: .625rem .75rem;
  border-radius: var(--r); border: 1.5px solid transparent;
  margin-bottom: .3rem; position: relative; transition: background .15s;
}
.rate-row:hover { background: var(--gray-50); }
.rate-row--best  { border-color: var(--red);   background: rgba(139,28,28,.04); padding-top: 1.1rem; }
.rate-row--cheap { border-color: #f59e0b; background: rgba(245,158,11,.04); padding-top: 1.1rem; }
.rate-row-label { position: absolute; top: -.55rem; left: .625rem; font-size: .62rem; font-weight: 700; padding: .1rem .45rem; border-radius: 100px; }
.rate-row-label--best  { background: var(--red);  color: #fff; }
.rate-row-label--cheap { background: #f59e0b; color: #fff; }

.carrier-badge { padding: .25rem .4rem; border-radius: var(--r-sm); font-size: .72rem; font-weight: 800; text-align: center; white-space: nowrap; }
.carrier-dhl      { background: #FFCC00; color: #cc0000; }
.carrier-fedex    { background: #4D148C; color: #fff; }
.carrier-imile    { background: #00B14F; color: #fff; }
.carrier-estafeta { background: #003DA6; color: #fff; }
.carrier-ups      { background: #351C15; color: #FFB500; }
.carrier-redpack  { background: #E31837; color: #fff; }

.rate-details { display: flex; flex-direction: column; gap: .05rem; }
.rate-service { font-size: .82rem; font-weight: 600; color: var(--dark); }
.rate-eta     { font-size: .72rem; color: var(--gray-400); }
.rate-price   { font-size: 1rem; font-weight: 800; color: var(--dark); white-space: nowrap; }
.rate-price span { font-size: .7rem; color: var(--gray-400); }

.rate-btn { padding: .3rem .65rem; background: var(--gray-100); color: var(--gray-600); border-radius: var(--r-sm); font-size: .75rem; font-weight: 600; transition: background .15s, color .15s; white-space: nowrap; }
.rate-btn:hover   { background: var(--red); color: #fff; }
.rate-btn--active { background: var(--red); color: #fff; }
.rate-card-footer { padding: .5rem 1.125rem; background: var(--gray-50); border-top: 1px solid var(--gray-100); font-size: .68rem; color: var(--gray-400); }

/* ===================================
   STATS BAR
   =================================== */
.stats-bar { background: var(--dark); padding: 3.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.75rem; font-weight: 900; color: #fff; letter-spacing: -.04em; line-height: 1.1; }
.stat-pct::after { content: '%'; }
.stat-label { font-size: .82rem; color: rgba(255,255,255,.4); margin-top: .25rem; font-weight: 500; }

/* ===================================
   SECTION HEADER
   =================================== */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-badge {
  display: inline-block; padding: .3rem .875rem;
  background: var(--red-light); border: 1px solid rgba(139,28,28,.2);
  border-radius: 100px; color: var(--red); font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem;
}
.section-header h2 { font-size: 2.25rem; font-weight: 800; color: var(--dark); letter-spacing: -.035em; margin-bottom: .875rem; }
.section-header p  { font-size: 1.05rem; color: var(--gray-500); max-width: 540px; margin: 0 auto; line-height: 1.7; }

/* ===================================
   SERVICES — HORIZONTAL CARDS 2-COL
   =================================== */
.services-section { padding: 5.5rem 0; background: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }

.service-card {
  display: flex; align-items: flex-start; gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--gray-100); background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service-card:hover { border-color: var(--red); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: var(--red-light); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--red); transition: stroke .2s; }
.service-card:hover .service-icon { background: var(--red); }
.service-card:hover .service-icon svg { stroke: #fff; }
.service-text h3 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: .3rem; }
.service-text p  { font-size: .84rem; color: var(--gray-500); line-height: 1.65; }

/* ===================================
   CARRIERS — dark bg
   =================================== */
.carriers-section { padding: 3rem 0; background: var(--dark); }
.carriers-title { text-align: center; font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2rem; }
.carriers-grid { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.carrier-logo {
  padding: .55rem 1.25rem; background: rgba(255,255,255,.06); color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.08); border-radius: var(--r); font-size: .875rem; font-weight: 700;
  transition: background .2s, color .2s, border-color .2s;
}
.carrier-logo:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ===================================
   HOW IT WORKS — 3 card grid
   =================================== */
.how-section { padding: 5.5rem 0; background: var(--gray-50); }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.step-card {
  background: #fff; border-radius: var(--r-xl); padding: 2.25rem 2rem;
  border: 1.5px solid var(--gray-100); position: relative; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.step-card:hover { border-color: var(--red); box-shadow: var(--shadow-md); }
.step-num {
  font-size: 5rem; font-weight: 900; color: rgba(139,28,28,.05);
  line-height: 1; letter-spacing: -.04em;
  position: absolute; top: .5rem; right: 1.25rem;
  pointer-events: none; user-select: none;
}
.step-icon { width: 52px; height: 52px; background: var(--red-light); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; transition: background .2s; }
.step-icon svg { width: 26px; height: 26px; stroke: var(--red); transition: stroke .2s; }
.step-card:hover .step-icon { background: var(--red); }
.step-card:hover .step-icon svg { stroke: #fff; }
.step-label { font-size: .72rem; font-weight: 700; color: var(--red); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem; }
.step-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--dark); margin-bottom: .5rem; }
.step-card p  { font-size: .875rem; color: var(--gray-500); line-height: 1.65; }

/* ===================================
   CTA SECTION
   =================================== */
.cta-section { padding: 5.5rem 0; background: #fff; }
.cta-card {
  background: var(--red);
  background-image: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(255,255,255,.08) 0%, transparent 65%),
                    radial-gradient(ellipse 40% 50% at 5% 50%, rgba(0,0,0,.15) 0%, transparent 60%);
  border-radius: var(--r-2xl); padding: 4rem 4.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 3rem;
}
.cta-content { flex: 1; }
.cta-content h2 { font-size: 2.25rem; font-weight: 900; color: #fff; letter-spacing: -.04em; margin-bottom: .75rem; line-height: 1.15; }
.cta-content p  { font-size: 1rem; color: rgba(255,255,255,.7); margin-bottom: 2rem; }
.cta-actions    { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-white {
  display: inline-flex; align-items: center; padding: .875rem 2rem;
  background: #fff; color: var(--red); border-radius: var(--r); font-weight: 700; font-size: 1rem;
  transition: background .2s; box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.btn-white:hover { background: var(--red-light); }
.btn-outline-white {
  display: inline-flex; align-items: center; padding: .875rem 2rem;
  border: 2px solid rgba(255,255,255,.4); color: #fff;
  border-radius: var(--r); font-weight: 600; font-size: 1rem;
  transition: border-color .2s, background .2s;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.cta-graphic { flex: 0 0 auto; text-align: center; background: rgba(255,255,255,.12); padding: 2rem 2.5rem; border-radius: var(--r-xl); border: 1px solid rgba(255,255,255,.2); }
.cta-big-num   { display: block; font-size: 3.5rem; font-weight: 900; color: #fff; letter-spacing: -.05em; line-height: 1.05; margin-bottom: .4rem; }
.cta-big-label { display: block; font-size: .82rem; color: rgba(255,255,255,.7); max-width: 140px; line-height: 1.45; }

/* ===================================
   FOOTER
   =================================== */
.footer { background: var(--dark); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: .875rem; color: rgba(255,255,255,.35); line-height: 1.75; margin-top: 1rem; max-width: 240px; }
.footer-social { display: flex; gap: .75rem; margin-top: 1.5rem; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,.07); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--red); color: #fff; }
.footer-col h4 { font-size: .75rem; font-weight: 700; color: #fff; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .65rem; }
.footer-col ul li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: rgba(255,255,255,.35); }
.footer-col ul li svg { flex-shrink: 0; opacity: .5; }
.footer-col ul li a { color: rgba(255,255,255,.35); transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .8rem; color: rgba(255,255,255,.25); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,.25); transition: color .15s; }
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ===================================
   WHATSAPP FLOAT
   =================================== */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90;
  display: flex; align-items: center; gap: .5rem; padding: .75rem 1.25rem;
  background: #25D366; color: #fff; border-radius: 100px; font-weight: 600; font-size: .875rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.4); transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.05); box-shadow: 0 6px 28px rgba(37,211,102,.5); }

/* ===================================
   ANIMATIONS
   =================================== */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 3rem 1.5rem; }
  .hero-right { padding: 3rem 1.5rem; }
  .hero-left h1 { font-size: 2.75rem; }
  .services-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .cta-card { flex-direction: column; padding: 3rem 2rem; text-align: center; }
  .cta-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav { display: none; } .header-actions { display: none; } .hamburger { display: flex; }
  .nav.open { display: flex; flex-direction: column; position: fixed; top: 76px; left: 0; right: 0; background: #fff; padding: .75rem 1rem; border-bottom: 1px solid var(--gray-100); box-shadow: var(--shadow-md); gap: .125rem; z-index: 99; }
  .nav.open .nav-link { padding: .875rem 1rem; border-radius: var(--r-sm); }
  .hero-left h1 { font-size: 2.1rem; }
  .hero-left p { font-size: .95rem; }
  .hero-ctas { flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 2rem 1.5rem; }
  .stat-number { font-size: 2rem; }
  .carriers-grid { gap: .5rem; } .carrier-logo { font-size: .8rem; padding: .45rem .9rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }
  .wa-float span { display: none; } .wa-float { padding: .875rem; border-radius: 50%; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-left h1 { font-size: 1.9rem; }
  .section-header h2 { font-size: 1.75rem; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
