/* ═══════════════════════════════════════════════════════
   PO BOX EXPRESS — Shared styles
   ═══════════════════════════════════════════════════════ */

:root {
  --orange: #F77F00;
  --orange-dark: #D86F00;
  --orange-light: #FF9530;
  --orange-rgb: 247, 127, 0;
  --blue: #033048;
  --blue-dark: #022335;
  --blue-light: #08486B;
  --dark: #1A1A1A;
  --dark-2: #242424;
  --dark-3: #2E2E2E;
  --mid: #666666;
  --light: #F5F3F0;
  --cream: #FAF7F2;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: 'Roboto', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 900;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--orange);
  transition: box-shadow .3s;
}
header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.18); }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 52px; width: auto; display: block; border-radius: 4px; }
.logo-img-footer { height: 140px; }

nav { display: flex; align-items: center; gap: 1.75rem; }
nav a {
  color: rgba(255,255,255,.95); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: color .2s; white-space: nowrap;
  position: relative;
}
nav a:hover { color: var(--dark); }
nav a.active { color: var(--dark); }
nav a.active::after {
  content: ''; position: absolute; bottom: -8px; left: 0; right: 0;
  height: 3px; background: var(--dark); border-radius: 2px;
}

.header-right { display: flex; align-items: center; gap: 1rem; }
.lang-toggle {
  display: flex; gap: 2px;
  background: rgba(0,0,0,.18); border-radius: 4px; padding: 2px;
}
.lang-toggle button {
  background: none; border: none; color: rgba(255,255,255,.75);
  font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 3px;
  cursor: pointer; transition: all .2s; font-family: 'Roboto', sans-serif;
}
.lang-toggle button.active { background: var(--blue); color: white; }

header .btn-primary { background: var(--blue); color: white; }
header .btn-primary:hover { background: var(--blue-dark); }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--orange); color: white; border: none;
  padding: 10px 20px; border-radius: 6px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: background .2s, transform .15s;
  font-family: 'Roboto', sans-serif; white-space: nowrap;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.nav-cta-mobile { display: none; }

.btn-primary-lg {
  padding: 16px 30px; font-size: 16px;
  box-shadow: 0 8px 24px rgba(247,127,0,.3);
}

.btn-outline {
  background: transparent; color: white;
  border: 2px solid rgba(255,255,255,.4);
  padding: 10px 20px; border-radius: 6px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: all .2s; font-family: 'Roboto', sans-serif;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,.08); }

.btn-ghost {
  background: transparent; border: none; color: var(--dark);
  font-size: 15px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 8px; text-decoration: none;
  transition: color .2s, gap .2s;
  font-family: 'Roboto', sans-serif;
}
.btn-ghost:hover { color: var(--orange); gap: 12px; }

.mobile-menu-btn {
  display: none; background: none; border: none;
  color: white; cursor: pointer; padding: 4px;
}

/* ── HERO HOME ── */
#inicio {
  min-height: calc(100vh - 0px);
  background: var(--cream);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 140px 2rem 80px;
}
.hero-bg-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 70% 60% at 25% 50%, transparent, black 80%);
  pointer-events: none;
}
.hero-content {
  max-width: 1280px; margin: 0 auto; width: 100%;
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 4rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 1px solid rgba(0,0,0,.08);
  color: var(--dark); padding: 8px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 600; margin-bottom: 1.75rem; letter-spacing: .02em;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.hero-badge .pulse {
  width: 8px; height: 8px; background: var(--orange); border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(247,127,0,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(247,127,0,.5); }
  70% { box-shadow: 0 0 0 8px rgba(247,127,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(247,127,0,0); }
}
.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 900; color: var(--dark); margin-bottom: 1.5rem; line-height: 1.05;
  letter-spacing: -0.025em;
}
.hero-title .highlight { color: var(--orange); display: block; position: relative; }
.hero-title .highlight::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 80px; height: 5px; background: var(--orange); border-radius: 2px;
}
.hero-subtitle {
  font-size: 18px; color: var(--mid);
  margin-bottom: 2.5rem; max-width: 480px; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid rgba(0,0,0,.08);
}
.hero-stat-value {
  font-size: 2.4rem; font-weight: 900; color: var(--dark); line-height: 1;
  display: block; letter-spacing: -0.02em;
}
.hero-stat-value .accent { color: var(--orange); }
.hero-stat-label {
  font-size: 12px; color: var(--mid);
  text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; font-weight: 600;
}

.hero-visual {
  position: relative; aspect-ratio: 4/5; border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.05);
}
.hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}

.tracking-card {
  position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 14px; padding: 1.25rem;
  box-shadow: 0 12px 36px rgba(0,0,0,.18);
}
.tracking-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem;
}
.tracking-id {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--mid); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
}
.tracking-id .dot-live {
  width: 8px; height: 8px; background: #22c55e; border-radius: 50%;
  animation: pulse-green 1.5s infinite;
}
@keyframes pulse-green { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.tracking-status {
  background: rgba(247,127,0,.12); color: var(--orange);
  padding: 4px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.tracking-route {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 14px; align-items: center; margin-bottom: 1rem;
}
.route-point { text-align: center; }
.route-point .iata {
  font-size: 1.4rem; font-weight: 900; color: var(--dark); line-height: 1; letter-spacing: -0.02em;
}
.route-point .city {
  font-size: 11px; color: var(--mid); margin-top: 4px;
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
.route-line {
  position: relative; height: 2px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange) 60%, rgba(0,0,0,.1) 60%, rgba(0,0,0,.1) 100%);
  border-radius: 2px;
}
.route-line::before {
  content: ''; position: absolute; left: 60%; top: 50%;
  transform: translate(-50%, -50%);
  width: 24px; height: 24px; background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.route-line svg {
  position: absolute; left: 60%; top: 50%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px; color: var(--orange); z-index: 1;
}
.tracking-progress {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--mid); font-weight: 500;
}
.tracking-progress strong { color: var(--dark); font-weight: 700; }

.floating-card {
  position: absolute; z-index: 2;
  background: white; border-radius: 12px;
  padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.15);
  animation: float 3.5s ease-in-out infinite;
}
.floating-card.tl { top: -20px; left: -20px; animation-delay: 0s; }
.floating-card.br { bottom: 30%; right: -28px; animation-delay: 1.7s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.floating-card-icon {
  width: 32px; height: 32px;
  background: var(--orange); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.floating-card-icon svg { width: 16px; height: 16px; color: white; }
.floating-card-label {
  font-size: 11px; color: var(--mid); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
}
.floating-card-value { font-size: 13px; color: var(--dark); font-weight: 700; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--blue);
  padding: 160px 2rem 80px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(247,127,0,.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(247,127,0,.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-content {
  max-width: 1200px; margin: 0 auto; position: relative;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.6);
  margin-bottom: 1.5rem; font-weight: 500;
}
.breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { color: rgba(255,255,255,.3); }
.breadcrumb .current { color: white; }

.page-hero-title {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 900; color: white;
  margin-bottom: 1rem; line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 800px;
}
.page-hero-title .highlight { color: var(--orange); }
.page-hero-subtitle {
  font-size: 18px; color: rgba(255,255,255,.7);
  max-width: 640px; line-height: 1.7;
}

/* ── COMMON SECTION ── */
section { padding: 100px 2rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 12px; font-weight: 700; color: var(--orange);
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--orange); }
.section-label.center { justify-content: center; }
.section-label.center::before { display: none; }

.section-title {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 800; color: var(--dark); margin-bottom: 1.5rem;
}
.section-title.light { color: white; }
.section-subtitle { font-size: 17px; color: var(--mid); max-width: 560px; line-height: 1.75; }

/* ── BENEFITS ── */
#porque { background: var(--light); }
.benefits-header { text-align: center; margin-bottom: 4rem; }
.benefits-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.benefit-card {
  background: white; border-radius: 16px; padding: 2rem;
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.benefit-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,.1); border-color: rgba(247,127,0,.2); }
.benefit-card:hover::before { transform: scaleX(1); }
.benefit-icon {
  width: 52px; height: 52px; background: rgba(247,127,0,.1);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; transition: background .25s;
}
.benefit-card:hover .benefit-icon { background: var(--orange); }
.benefit-icon svg { width: 24px; height: 24px; color: var(--orange); transition: color .25s; }
.benefit-card:hover .benefit-icon svg { color: white; }
.benefit-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.35rem; font-weight: 700; margin-bottom: .5rem;
}
.benefit-desc { font-size: 14px; color: var(--mid); line-height: 1.65; }

/* ── HOW IT WORKS ── */
#como-funciona { background: var(--blue); position: relative; overflow: hidden; }
#como-funciona::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 0% 50%, rgba(247,127,0,.08) 0%, transparent 50%),
    radial-gradient(ellipse 30% 40% at 100% 20%, rgba(247,127,0,.05) 0%, transparent 50%);
}
.how-header { text-align: center; margin-bottom: 5rem; position: relative; }
.how-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; position: relative; }
.how-steps::before {
  content: ''; position: absolute; top: 28px;
  left: calc(16.66% + 28px); right: calc(16.66% + 28px); height: 1px;
  background: linear-gradient(90deg, var(--orange), rgba(247,127,0,.3), var(--orange));
}
.how-step { text-align: center; position: relative; }
.how-step-num {
  width: 56px; height: 56px; background: var(--orange); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Roboto', sans-serif; font-size: 1.5rem; font-weight: 800;
  margin: 0 auto 1.5rem; position: relative; z-index: 1;
}
.how-step-title { font-size: 1.4rem; font-weight: 700; color: white; margin-bottom: .75rem; }
.how-step-desc { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.7; max-width: 240px; margin: 0 auto; }

/* ── SERVICES ── */
#servicios-section { background: white; }
.services-intro { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; gap: 2rem; }
.services-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 1.25rem; }
.service-card {
  background: var(--blue); border-radius: 16px; padding: 2rem 1.5rem; color: white;
  transition: transform .25s, background .25s;
  position: relative; overflow: hidden; cursor: pointer;
}
.service-card::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at top right, rgba(247,127,0,.18), transparent);
}
.service-card:hover { transform: translateY(-6px); background: var(--blue-light); }
.service-card.highlight { background: var(--orange); }
.service-card.highlight:hover { background: var(--orange-dark); }
.service-card-icon {
  width: 44px; height: 44px; background: rgba(255,255,255,.15);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.service-card-icon svg { width: 22px; height: 22px; color: white; }
.service-card-title { font-family: 'Roboto', sans-serif; font-size: 1.3rem; font-weight: 700; margin-bottom: .6rem; }
.service-card-desc { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.6; }
.service-card-detail {
  margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 12px; color: rgba(255,255,255,.6);
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}

/* Detailed services list (servicios.html) */
.service-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.service-detail:last-child { border-bottom: none; }
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }
.service-detail-img {
  background: var(--light); border-radius: 20px;
  aspect-ratio: 4/3; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.service-detail-img svg { width: 80px; height: 80px; color: var(--orange); }
.service-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.service-detail-icon {
  width: 56px; height: 56px; background: rgba(247,127,0,.1);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.service-detail-icon svg { width: 28px; height: 28px; color: var(--orange); }
.service-detail h3 {
  font-size: 2rem; font-weight: 800; margin-bottom: 1rem;
  color: var(--dark);
}
.service-detail p {
  font-size: 16px; color: var(--mid); line-height: 1.75;
  margin-bottom: 1.5rem;
}
.service-detail-features { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.service-detail-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 15px; color: var(--dark);
}
.service-detail-features svg { width: 18px; height: 18px; color: var(--orange); flex-shrink: 0; }

/* ── PRICING ── */
#tarifas { background: var(--light); }
.pricing-header { text-align: center; margin-bottom: 4rem; }
.pricing-note {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(247,127,0,.1); color: var(--orange);
  padding: 8px 16px; border-radius: 100px;
  font-size: 14px; font-weight: 600; margin-top: .75rem;
}
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; max-width: 820px; margin: 0 auto 3rem;
}
.pricing-card {
  background: white; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.pricing-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  background: var(--blue);
  box-shadow: 0 12px 48px rgba(3,48,72,.25);
}
.pricing-card-header { padding: 2rem; border-bottom: 1px solid rgba(0,0,0,.06); }
.pricing-card.featured .pricing-card-header { border-bottom-color: rgba(255,255,255,.08); }
.pricing-type { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.pricing-type-icon {
  width: 40px; height: 40px; background: var(--orange);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.pricing-type-icon svg { width: 20px; height: 20px; color: white; }
.pricing-type-name {
  font-family: 'Roboto', sans-serif;
  font-size: 1.4rem; font-weight: 700; color: var(--dark);
}
.pricing-card.featured .pricing-type-name { color: white; }
.pricing-route { font-size: 13px; color: var(--mid); }
.pricing-card.featured .pricing-route { color: rgba(255,255,255,.5); }
.pricing-amount {
  font-family: 'Roboto', sans-serif;
  font-size: 3.5rem; font-weight: 900; color: var(--orange); line-height: 1;
}
.pricing-unit { font-size: 15px; font-weight: 500; color: var(--mid); margin-left: 4px; }
.pricing-card.featured .pricing-unit { color: rgba(255,255,255,.5); }
.pricing-tag {
  display: inline-block; background: rgba(247,127,0,.1); color: var(--orange);
  padding: 4px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; margin-top: 8px;
}
.pricing-features { padding: 1.75rem 2rem; }
.pricing-feature {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; font-size: 14px; color: var(--dark);
}
.pricing-card.featured .pricing-feature { color: rgba(255,255,255,.8); }
.pricing-check {
  width: 20px; height: 20px; background: rgba(247,127,0,.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pricing-check svg { width: 12px; height: 12px; color: var(--orange); }
.pricing-footer {
  text-align: center; font-size: 15px; color: var(--mid);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pricing-footer strong { color: var(--dark); }

/* ── STORES ── */
#tiendas { background: white; padding: 80px 2rem; }
.stores-title {
  text-align: center; font-size: 13px; color: var(--mid); font-weight: 600;
  margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .12em;
}
.stores-subtitle {
  text-align: center; font-size: 1.6rem; font-weight: 700; color: var(--dark);
  margin-bottom: 3rem; letter-spacing: -0.01em;
}
.stores-grid {
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 1rem;
  max-width: 1100px; margin: 0 auto; align-items: center;
}
.store-card {
  background: white; border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px; aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  cursor: default;
}
.store-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}
.store-card img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
  filter: grayscale(100%); opacity: .75;
  transition: filter .25s, opacity .25s;
}
.store-card:hover img { filter: grayscale(0); opacity: 1; }
.stores-more { text-align: center; margin-top: 2rem; font-size: 14px; color: var(--mid); }
.stores-more strong { color: var(--orange); font-weight: 700; }
@media (max-width: 1000px) { .stores-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 600px) { .stores-grid { grid-template-columns: repeat(3, 1fr); gap: .75rem; } }

/* ── FAQ ── */
#faq { background: var(--blue); }
.faq-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4rem; gap: 2rem; }
.faq-container { display: grid; grid-template-columns: 220px 1fr; gap: 4rem; }
.faq-categories { display: flex; flex-direction: column; gap: 4px; }
.faq-cat-btn {
  background: none; border: none; color: rgba(255,255,255,.5);
  font-size: 14px; font-weight: 500; padding: 10px 14px; border-radius: 8px;
  cursor: pointer; text-align: left; transition: all .2s; font-family: 'Roboto', sans-serif;
}
.faq-cat-btn:hover, .faq-cat-btn.active { background: rgba(247,127,0,.1); color: var(--orange); }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.06); }
.faq-question {
  width: 100%; background: none; border: none; color: white;
  font-size: 16px; font-weight: 500; padding: 1.25rem 0;
  text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: 'Roboto', sans-serif; transition: color .2s;
}
.faq-question:hover { color: var(--orange); }
.faq-icon {
  width: 24px; height: 24px; background: rgba(255,255,255,.06);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .2s, transform .3s;
}
.faq-item.open .faq-icon { background: var(--orange); transform: rotate(45deg); }
.faq-icon svg { width: 12px; height: 12px; color: white; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-answer.open { max-height: 400px; }
.faq-answer p { padding-bottom: 1.25rem; font-size: 15px; color: rgba(255,255,255,.5); line-height: 1.75; }
.faq-panel { display: none; }
.faq-panel.active { display: block; }

/* ── ABOUT ── */
.about-section { background: white; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.about-text p { font-size: 16px; color: var(--mid); line-height: 1.8; margin-bottom: 1rem; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2rem; }
.about-tag {
  background: rgba(247,127,0,.08); color: var(--orange);
  padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 600;
}
.about-quote {
  background: var(--light); border-left: 4px solid var(--orange);
  border-radius: 0 12px 12px 0; padding: 1.5rem; margin-top: 2rem;
}
.about-quote p { font-style: italic; color: var(--dark); font-size: 15px; margin: 0; }
.about-stats { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.about-stat {
  background: var(--blue); border-radius: 16px; padding: 3rem 1.5rem; text-align: center;
}
.about-stat-value {
  font-family: 'Roboto', sans-serif;
  font-size: 3.5rem; font-weight: 900; color: var(--orange); display: block; line-height: 1;
}
.about-stat-label { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 8px; line-height: 1.4; }

/* Mission/Vision cards */
.mv-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  margin-top: 4rem;
}
.mv-card {
  background: white; border: 1px solid rgba(0,0,0,.08);
  border-radius: 20px; padding: 2.5rem;
  position: relative; overflow: hidden;
}
.mv-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--orange);
}
.mv-icon {
  width: 56px; height: 56px;
  background: rgba(247,127,0,.1);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.mv-icon svg { width: 28px; height: 28px; color: var(--orange); }
.mv-card h3 {
  font-size: 1.6rem; font-weight: 800;
  margin-bottom: 1rem; color: var(--dark);
}
.mv-card p { color: var(--mid); line-height: 1.75; font-size: 15px; }

/* ── CONTACT ── */
#contactenos { background: var(--light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 700; color: var(--dark); text-transform: uppercase; letter-spacing: .06em; }
.form-group input,
.form-group textarea,
.form-group select {
  background: white; border: 1.5px solid rgba(0,0,0,.1);
  border-radius: 8px; padding: 12px 16px;
  font-size: 15px; color: var(--dark); font-family: 'Roboto', sans-serif;
  transition: border-color .2s; outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--orange); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.contact-info { padding-top: 1rem; }
.contact-title { font-family: 'Roboto', sans-serif; font-size: 2rem; font-weight: 700; margin-bottom: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item-icon {
  width: 44px; height: 44px; background: var(--orange);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item-icon svg { width: 20px; height: 20px; color: white; }
.contact-item-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mid); margin-bottom: 4px; }
.contact-item-value { font-size: 15px; font-weight: 500; color: var(--dark); }
.contact-socials { display: flex; gap: 12px; margin-top: 2.5rem; }
.social-btn {
  width: 44px; height: 44px; background: var(--blue); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: background .2s, transform .15s;
}
.social-btn:hover { background: var(--orange); transform: translateY(-2px); }
.social-btn svg { width: 18px; height: 18px; color: white; }

/* ── REGISTRO PAGE ── */
.register-section { background: var(--light); padding: 80px 2rem; }
.register-grid {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 4rem; max-width: 1100px; margin: 0 auto;
  align-items: start;
}
.register-form-card {
  background: white; border-radius: 20px;
  padding: 3rem; box-shadow: var(--shadow);
}
.register-progress {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 2rem;
}
.register-step {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--mid); font-weight: 600;
}
.register-step-num {
  width: 28px; height: 28px;
  background: rgba(247,127,0,.12); color: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}
.register-step.active .register-step-num { background: var(--orange); color: white; }
.register-step.active { color: var(--dark); }
.register-step-line { flex: 1; height: 2px; background: rgba(0,0,0,.06); }

.register-form { display: flex; flex-direction: column; gap: 1.25rem; }
.register-form h3 {
  font-size: 1.4rem; font-weight: 800;
  margin-bottom: .5rem; color: var(--dark);
}
.register-form-section {
  display: flex; flex-direction: column; gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
  margin-bottom: 1rem;
}
.register-form-section h3 { margin-bottom: -.5rem; }
.register-form-section:last-of-type { border-bottom: none; }
.register-checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--mid);
}
.register-checkbox input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--orange); flex-shrink: 0; margin-top: 2px;
}
.register-checkbox a { color: var(--orange); text-decoration: none; font-weight: 600; }
.register-submit {
  background: var(--orange); color: white; border: none;
  padding: 16px 24px; border-radius: 8px;
  font-weight: 700; font-size: 16px; cursor: pointer;
  font-family: 'Roboto', sans-serif;
  transition: background .2s, transform .15s;
  box-shadow: 0 8px 24px rgba(247,127,0,.3);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 1rem;
}
.register-submit:hover { background: var(--orange-dark); transform: translateY(-1px); }

.register-aside {
  position: sticky; top: 100px;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.register-perks-card {
  background: var(--blue); color: white;
  border-radius: 20px; padding: 2.5rem;
  position: relative; overflow: hidden;
}
.register-perks-card::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(247,127,0,.25), transparent 70%);
  border-radius: 50%;
}
.register-perks-card h3 {
  font-size: 1.5rem; font-weight: 800;
  margin-bottom: 1.25rem;
  position: relative;
}
.register-perks { list-style: none; padding: 0; margin: 0; position: relative; }
.register-perks li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0;
  font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.6;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.register-perks li:last-child { border-bottom: none; }
.register-perks svg {
  width: 18px; height: 18px; color: var(--orange);
  flex-shrink: 0; margin-top: 2px;
}
.register-help {
  background: white; border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px; padding: 1.5rem;
  text-align: center;
}
.register-help h4 { font-size: 1rem; font-weight: 800; margin-bottom: .5rem; }
.register-help p { font-size: 13px; color: var(--mid); margin-bottom: 1rem; }
.register-help-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--orange); text-decoration: none; font-weight: 600; font-size: 14px;
}

/* ── CTA STRIP ── */
.cta-strip {
  background: var(--orange); color: white;
  padding: 4rem 2rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255,255,255,.12), transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(0,0,0,.15), transparent 60%);
}
.cta-strip-content { position: relative; max-width: 800px; margin: 0 auto; }
.cta-strip h2 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.cta-strip p { font-size: 17px; opacity: .9; margin-bottom: 2rem; }
.cta-strip .btn-primary {
  background: var(--blue); color: white;
  padding: 16px 30px; font-size: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.cta-strip .btn-primary:hover { background: var(--blue-dark); }

/* ── FOOTER ── */
footer { background: var(--orange); padding: 4rem 2rem 2rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.75; max-width: 260px; margin-top: 1rem; }
.footer-col h4 {
  font-family: 'Roboto', sans-serif; font-size: 1rem; font-weight: 700;
  color: white; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.8); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,.7); }
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 36px; height: 36px; background: rgba(255,255,255,.18);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: background .2s;
}
.footer-social:hover { background: var(--blue); }
.footer-social svg { width: 16px; height: 16px; color: white; }

/* ── RASTREO PAGE ── */
.track-section { background: var(--light); padding: 80px 2rem; }
.track-card {
  max-width: 760px; margin: 0 auto 2rem; background: white;
  border-radius: 20px; padding: 3rem; box-shadow: var(--shadow); text-align: center;
}
.track-card p { color: var(--mid); font-size: 15px; margin-bottom: 2rem; line-height: 1.7; }
.track-card p strong { color: var(--dark); }
.track-search { display: flex; gap: 12px; margin-bottom: 2.5rem; }
.track-search input {
  flex: 1; background: var(--light); border: 1.5px solid rgba(0,0,0,.1);
  border-radius: 8px; padding: 14px 18px; font-size: 15px; color: var(--dark);
  font-family: 'Roboto', sans-serif; outline: none; transition: border-color .2s;
}
.track-search input:focus { border-color: var(--orange); }
.track-search button { white-space: nowrap; border: none; cursor: pointer; }
#YQContainer {
  min-height: 160px; border: 1.5px dashed rgba(0,0,0,.14);
  border-radius: 12px; text-align: left; overflow: hidden;
}
#YQContainer:empty { display: flex; align-items: center; justify-content: center; }
#YQContainer:empty::before {
  content: 'Ingresa tu número de guía para ver el estado de tu paquete.';
  color: var(--mid); font-size: 14px; padding: 2rem; text-align: center;
}
#YQContainer iframe { width: 100%; border: none; display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 900px) {
  nav { display: none; }
  nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--blue); padding: 1rem 2rem 2rem;
    gap: 1rem; z-index: 99; border-top: 1px solid rgba(255,255,255,.12);
  }
  .mobile-menu-btn { display: block; }
  .nav-cta-mobile { display: inline-block; margin-top: .5rem; text-align: center; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .benefits-grid { grid-template-columns: repeat(2,1fr); }
  .how-steps { grid-template-columns: 1fr; }
  .how-steps::before { display: none; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .faq-container { grid-template-columns: 1fr; }
  .faq-categories { flex-direction: row; flex-wrap: wrap; }
  .service-detail { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0; }
  .mv-grid { grid-template-columns: 1fr; }
  .register-grid { grid-template-columns: 1fr; }
  .register-aside { position: static; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  section { padding: 60px 1.25rem; }
  .benefits-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { grid-template-columns: 1fr; }
  .register-form-card { padding: 2rem 1.5rem; }
  .track-card { padding: 2rem 1.5rem; }
  .track-search { flex-direction: column; }
  .header-right .lang-toggle { display: none; }
  header > .header-right > .btn-primary { display: none; }
}

/* ── CHAT BOT WIDGET (prueba n8n) ── */
.bot-toggle {
  position: fixed; right: 24px; bottom: 24px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%; border: none;
  background: var(--orange); color: var(--white); cursor: pointer;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.bot-toggle:hover { background: var(--orange-dark); transform: translateY(-2px); }
.bot-toggle svg { width: 26px; height: 26px; position: absolute; transition: opacity .15s, transform .15s; }
.bot-toggle .bot-toggle-icon-close { opacity: 0; transform: scale(.5); }
.bot-toggle.open .bot-toggle-icon-chat { opacity: 0; transform: scale(.5); }
.bot-toggle.open .bot-toggle-icon-close { opacity: 1; transform: scale(1); }

.bot-panel {
  position: fixed; right: 24px; bottom: 96px; z-index: 200;
  width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100vh - 140px);
  background: var(--white); border-radius: 16px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.bot-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.bot-header {
  background: var(--blue); color: var(--white); padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.bot-header-info { display: flex; align-items: center; gap: 10px; }
.bot-header-dot { width: 9px; height: 9px; border-radius: 50%; background: #4ADE80; flex-shrink: 0; }
.bot-header-title { font-weight: 700; font-size: 14px; }
.bot-header-sub { font-size: 12px; color: rgba(255,255,255,.7); }
.bot-close {
  background: none; border: none; color: var(--white); font-size: 22px;
  line-height: 1; cursor: pointer; opacity: .8;
}
.bot-close:hover { opacity: 1; }

.bot-messages {
  flex: 1; overflow-y: auto; padding: 1rem; background: var(--cream);
  display: flex; flex-direction: column; gap: 8px;
}
.bot-msg {
  max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 14px;
  line-height: 1.5; white-space: pre-line;
}
.bot-msg-bot {
  align-self: flex-start; background: var(--white); color: var(--dark);
  border-bottom-left-radius: 4px; box-shadow: var(--shadow);
}
.bot-msg-user {
  align-self: flex-end; background: var(--orange); color: var(--white);
  border-bottom-right-radius: 4px;
}
.bot-typing { color: var(--mid); font-weight: 700; letter-spacing: 2px; }

.bot-form {
  display: flex; gap: 8px; padding: .75rem; border-top: 1px solid var(--light);
  background: var(--white); flex-shrink: 0;
}
.bot-input {
  flex: 1; border: 1px solid var(--light); border-radius: 10px; padding: 10px 12px;
  font-family: inherit; font-size: 14px; outline: none;
}
.bot-input:focus { border-color: var(--orange); }
.bot-send {
  width: 40px; height: 40px; border-radius: 10px; border: none;
  background: var(--orange); color: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .2s;
}
.bot-send:hover { background: var(--orange-dark); }
.bot-send svg { width: 18px; height: 18px; }

.bot-teaser {
  position: fixed; right: 24px; bottom: 96px; z-index: 199;
  max-width: 240px; background: var(--white); color: var(--dark);
  padding: 12px 32px 12px 16px; border-radius: 14px; border-bottom-right-radius: 4px;
  box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.4;
  opacity: 0; transform: translateY(10px) scale(.96); pointer-events: none;
  transition: opacity .25s, transform .25s; cursor: pointer;
}
.bot-teaser.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.bot-teaser-close {
  position: absolute; top: 6px; right: 8px; background: none; border: none;
  color: var(--mid); font-size: 16px; line-height: 1; cursor: pointer; padding: 4px;
}

@media (max-width: 600px) {
  .bot-panel { right: 16px; left: 16px; width: auto; bottom: 88px; height: 420px; }
  .bot-toggle { right: 16px; bottom: 16px; }
  .bot-teaser { right: 16px; bottom: 88px; }
}
