@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== VARIABLES ===== */
:root {
  --negro:      #0d0d0d;
  --negro-2:    #181818;
  --negro-3:    #222222;
  --negro-4:    #2a2a2a;
  --amarillo:   #f5c518;
  --amarillo-2: #ffd700;
  --blanco:     #ffffff;
  --gris-texto: #aaaaaa;
  --gris-claro: #f5f5f5;
  --sombra:     0 8px 32px rgba(0,0,0,0.35);
  --radio:      12px;
  --max-w:      1200px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--blanco); color: var(--negro); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; }
ul { list-style: none; }

/* ===== ANIMACIONES ===== */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-35px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: var(--negro); padding: 0.85rem 0;
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.85); }

.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}

/* Logo imagen */
.logo img { height: 52px; width: auto; object-fit: contain; }

.nav-links {
  display: flex; gap: 2rem; align-items: center;
}
.nav-links a {
  color: var(--blanco); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s; position: relative; padding-bottom: 3px;
}
.nav-links a:hover { color: var(--amarillo); }
.nav-links a.active {
  color: var(--amarillo);
  border-bottom: 2px solid var(--amarillo);
}

.btn-cta-nav {
  background: var(--amarillo); color: var(--negro);
  font-weight: 700; font-size: 0.88rem;
  padding: 0.55rem 1.4rem; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-cta-nav:hover { background: var(--amarillo-2); transform: scale(1.04); }
.btn-cta-nav svg { width: 14px; height: 14px; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--blanco); border-radius: 2px; transition: all 0.3s;
}

/* Nav mobile overlay */
.nav-mobile {
  display: none; position: fixed; inset: 0; background: var(--negro);
  z-index: 999; flex-direction: column; align-items: center;
  justify-content: center; gap: 2rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--blanco); font-size: 1.5rem; font-weight: 600;
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--amarillo); }
.nav-mobile .btn-cta-nav { font-size: 1rem; padding: 0.8rem 2.5rem; margin-top: 1rem; }
.nav-mobile-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; color: var(--blanco);
  font-size: 2rem; cursor: pointer; line-height: 1;
}

/* ===== HERO ===== */
.hero {
  position: relative; height: 100vh; min-height: 620px;
  background: url('../img/hero.webp') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.85) 38%, rgba(0,0,0,0.3) 100%);
}
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  padding-top: 68px;
}
.hero-eyebrow {
  color: var(--amarillo); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 1rem;
  animation: fadeInLeft 0.7s ease 0.2s both;
}
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.2rem, 6.5vw, 6rem);
  color: var(--blanco); line-height: 0.95; margin-bottom: 1.3rem;
  animation: fadeInLeft 0.7s ease 0.4s both;
}
.hero h1 span { color: var(--amarillo); }
.hero-sub {
  color: #ddd; font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  max-width: 500px; line-height: 1.65; margin-bottom: 2.2rem;
  animation: fadeInLeft 0.7s ease 0.6s both;
}
.hero-btns {
  display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap;
  animation: fadeInLeft 0.7s ease 0.8s both;
}
.btn-primario {
  background: var(--amarillo); color: var(--negro);
  font-weight: 700; font-size: 0.95rem;
  padding: 0.85rem 2rem; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-primario:hover { background: var(--amarillo-2); transform: translateY(-2px); }
.btn-primario svg { width: 15px; height: 15px; }

.btn-secundario {
  display: inline-flex; align-items: center; gap: 0.8rem;
  color: var(--blanco); font-size: 0.92rem; transition: color 0.2s;
}
.btn-secundario:hover { color: var(--amarillo); }
.btn-play {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.65);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.btn-secundario:hover .btn-play { border-color: var(--amarillo); }
.btn-play svg { width: 14px; height: 14px; margin-left: 2px; }
.btn-sec-texto { display: flex; flex-direction: column; line-height: 1.3; }

/* ===== FEATURES BAR ===== */
.features-bar {
  background: var(--negro-2); border-radius: 16px;
  max-width: 1100px; margin: -44px auto 0;
  position: relative; z-index: 10;
  display: grid; grid-template-columns: repeat(4, 1fr);
  box-shadow: var(--sombra);
}
.feature-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  padding: 1.8rem 1rem; text-align: center;
  border-right: 1px solid #2e2e2e;
}
.feature-item:last-child { border-right: none; }
.feature-item svg { color: var(--amarillo); width: 30px; height: 30px; flex-shrink: 0; }
.feature-item p { color: var(--blanco); font-size: 0.82rem; font-weight: 500; line-height: 1.45; }

/* ===== SERVICIOS ===== */
.servicios { padding: 7rem 0 5rem; background: var(--blanco); }
.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

.eyebrow {
  color: var(--amarillo); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  display: block; margin-bottom: 0.9rem;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.1; color: var(--negro);
}
.section-title span { color: var(--amarillo); }
.section-title.centrado { text-align: center; }
.eyebrow.centrado { text-align: center; }

.servicios-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1rem; margin-top: 3rem;
}
.servicio-card {
  position: relative; border-radius: var(--radio); overflow: hidden;
  aspect-ratio: 4/5; cursor: pointer;
}
.servicio-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s ease;
}
.servicio-card:hover img { transform: scale(1.07); }
.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 30%, rgba(0,0,0,0.0) 75%);
  display: flex; align-items: flex-end; padding: 1.1rem;
}
.card-overlay h3 {
  color: var(--blanco); font-size: 0.93rem;
  font-weight: 600; line-height: 1.3;
}

/* ===== RUTAS ===== */
.rutas { background: var(--negro); padding: 6rem 0; }
.rutas-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.rutas .eyebrow { color: var(--amarillo); }
.rutas .section-title { color: var(--blanco); }
.rutas-desc { color: var(--gris-texto); font-size: 0.95rem; margin: 1rem 0 1.5rem; line-height: 1.6; }
.ruta-item {
  display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.75rem;
}
.ruta-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--amarillo); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.ruta-check svg { width: 12px; height: 12px; color: var(--negro); }
.ruta-item span { color: var(--blanco); font-size: 0.95rem; font-weight: 500; }

.rutas-mapa-wrap { position: relative; }
.rutas-mapa-wrap img {
  width: 100%; border-radius: 16px; object-fit: cover; display: block;
  max-height: 420px;
}
.rutas-card-flotante {
  position: absolute; bottom: -1.2rem; right: -1.2rem;
  background: var(--negro-3); border-radius: var(--radio);
  padding: 1.3rem 1.6rem; min-width: 210px;
  border: 1px solid #333;
  box-shadow: var(--sombra);
}
.rutas-card-flotante .card-icon { color: var(--amarillo); margin-bottom: 0.6rem; }
.rutas-card-flotante .card-icon svg { width: 28px; height: 28px; }
.rutas-card-flotante h4 { color: var(--blanco); font-weight: 700; font-size: 1rem; margin-bottom: 0.4rem; }
.rutas-card-flotante p { color: var(--gris-texto); font-size: 0.82rem; line-height: 1.5; }

/* ===== FLOTA ===== */
.flota { background: var(--gris-claro); padding: 6rem 0; overflow: hidden; }
.flota-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.flota .eyebrow { color: var(--amarillo); }
.flota .section-title { color: var(--negro); }
.flota-features { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.flota-feature {
  background: var(--negro-2); border-radius: 8px;
  padding: 0.75rem 1.1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.flota-feature svg { color: var(--amarillo); width: 20px; height: 20px; flex-shrink: 0; }
.flota-feature span { color: var(--blanco); font-size: 0.82rem; font-weight: 500; line-height: 1.3; }
.flota-img { display: flex; align-items: center; justify-content: center; }
.flota-img img {
  width: 100%; max-height: 460px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
}

/* ===== CTA BAND ===== */
.cta-band { background: var(--amarillo); padding: 2.6rem 0; }
.cta-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.cta-icon {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--negro); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.cta-icon svg { color: var(--blanco); width: 26px; height: 26px; }
.cta-texto h3 {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 1.25rem; color: var(--negro); margin-bottom: 0.2rem;
}
.cta-texto p { color: #333; font-size: 0.88rem; }
.btn-negro {
  background: var(--negro); color: var(--blanco);
  font-weight: 700; font-size: 0.95rem;
  padding: 0.85rem 2rem; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: background 0.2s; white-space: nowrap;
}
.btn-negro:hover { background: #333; }
.btn-negro svg { width: 14px; height: 14px; }

/* ===== FOOTER ===== */
.footer { background: var(--negro); padding: 4.5rem 0 0; }
.footer-grid {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem 3.5rem;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 3rem;
}
.footer-logo img { height: 50px; width: auto; object-fit: contain; }
.footer-desc {
  color: var(--gris-texto); font-size: 0.84rem; line-height: 1.7;
  margin: 1rem 0 1.4rem;
}
.footer-sociales { display: flex; gap: 0.7rem; }
.footer-sociales a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid #333; display: flex; align-items: center;
  justify-content: center; color: var(--gris-texto);
  transition: border-color 0.2s, color 0.2s;
}
.footer-sociales a:hover { border-color: var(--amarillo); color: var(--amarillo); }
.footer-sociales a svg { width: 16px; height: 16px; }
.footer-col h4 {
  color: var(--blanco); font-weight: 700; font-size: 0.92rem;
  margin-bottom: 1.2rem; letter-spacing: 0.04em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { color: var(--gris-texto); font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--amarillo); }
.footer-contacto-item {
  display: flex; align-items: flex-start; gap: 0.7rem;
  margin-bottom: 0.75rem; color: var(--gris-texto); font-size: 0.85rem; line-height: 1.5;
}
.footer-contacto-item svg { color: var(--amarillo); width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid #222; padding: 1.5rem 2rem;
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-copy { color: #555; font-size: 0.8rem; }
.footer-copy a { color: #555; transition: color 0.2s; }
.footer-copy a:hover { color: var(--amarillo); }
.footer-bottom-sociales { display: flex; gap: 0.7rem; }
.footer-bottom-sociales a { color: #555; font-size: 0.85rem; transition: color 0.2s; }
.footer-bottom-sociales a:hover { color: var(--amarillo); }
.footer-bottom-sociales svg { width: 18px; height: 18px; }

/* ===== WHATSAPP FLOTANTE ===== */
.wa-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 990;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }
.wa-float svg { width: 28px; height: 28px; color: white; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .servicios-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 860px) {
  .nav-links, .btn-cta-nav { display: none; }
  .hamburger { display: flex; }
  .features-bar { grid-template-columns: 1fr; border-radius: 12px; margin: -32px 1.5rem 0; }
  .feature-item { padding: 1.3rem 1.2rem; border-right: none !important; border-top: 1px solid #2e2e2e; }
  .feature-item:first-child { border-top: none; }
  .rutas-grid, .flota-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .rutas-card-flotante { position: static; margin-top: 1.5rem; }
  .cta-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .servicios-grid .servicio-card:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16/7; }
  .features-bar { grid-template-columns: 1fr; margin: -28px 1rem 0; border-radius: 10px; }
  .flota-features { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.8rem, 10vw, 4rem); }
}
