/* =============================================
   JORTIZ FURGONETAS — Stylesheet
   Paleta: naranja #FF8C00 | cyan #00BFFF | dark #0D2035
   ============================================= */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; }

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

ul { list-style: none; }

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

/* ===== VARIABLES ===== */
:root {
  --orange: #FF8C00;
  --cyan: #00BFFF;
  --dark: #0D2035;
  --dark2: #162840;
  --white: #ffffff;
  --gray: #f5f7fa;
  --text: #333;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --transition: 0.3s ease;
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: #e07a00;
  border-color: #e07a00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,140,0,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}

.btn-nav {
  background: var(--orange);
  color: var(--white);
  padding: 10px 22px;
  font-size: 0.88rem;
}
.btn-nav:hover { background: #e07a00; }

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  color: #666;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.section-tag {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.highlight { color: var(--orange); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 1px;
}
.logo-text span { color: var(--orange); }

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--orange); }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px 24px 20px;
  background: var(--dark2);
}
.mobile-menu a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu.open { display: flex; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark) 0%, #1a3a5c 60%, #0a4a6e 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(0,191,255,0.12) 0%, transparent 65%),
              radial-gradient(ellipse at 20% 80%, rgba(255,140,0,0.15) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
  max-width: 750px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  color: var(--orange);
}
.stat span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

/* ===== WHY ===== */
.why {
  padding: 80px 0;
  background: var(--gray);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.why-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.why-icon { font-size: 2.2rem; margin-bottom: 14px; }
.why-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--dark); }
.why-card p { font-size: 0.9rem; color: #666; }

/* ===== FLOTA — NUEVO DISEÑO CON GALERÍA ===== */
.flota {
  padding: 80px 0;
  background: var(--white);
}

/* Tabs */
.flota-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 0 40px;
  flex-wrap: wrap;
}
.flota-tab {
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid #e0e0e0;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  color: #555;
  transition: all 0.3s ease;
}
.flota-tab:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.flota-tab.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255,140,0,0.35);
}

/* Panels */
.flota-panels { position: relative; }

.flota-panel {
  display: none;
  animation: panelFadeIn 0.45s cubic-bezier(0.22,1,0.36,1);
}
.flota-panel.active { display: block; }

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.flota-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  background: #fff;
  border: 2px solid #f0f0f0;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.07);
}

/* Galería */
.flota-gallery { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.gallery-main {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f0f0f0;
}
.gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.gallery-img.active { opacity: 1; }

.gallery-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  color: var(--dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.gallery-arrow:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}
.gallery-arrow.left  { left: 10px; }
.gallery-arrow.right { right: 10px; }

.gallery-thumbs {
  display: flex;
  gap: 8px;
  width: 100%;
}
.thumb {
  flex: 1;
  min-width: 0;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  opacity: 0.65;
}
.thumb:hover { opacity: 0.9; }
.thumb.active {
  border-color: var(--orange);
  opacity: 1;
  box-shadow: 0 2px 10px rgba(255,140,0,0.3);
}

/* Badge del vehículo */
.flota-badge {
  display: inline-block;
  background: #f0f0f0;
  color: #555;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 50px;
  width: fit-content;
  letter-spacing: 0.2px;
}

/* Info del vehículo */
.flota-info { display: flex; flex-direction: column; gap: 16px; }

.flota-model-name {
  font-size: 1.55rem;
  color: var(--dark);
  line-height: 1.2;
}
.model-year {
  font-size: 1rem;
  color: #999;
  font-weight: 500;
}

.flota-desc {
  color: #666;
  font-size: 0.92rem;
  line-height: 1.65;
}

.featured-label-inline {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  width: fit-content;
  margin-bottom: -6px;
}

/* Grid de especificaciones */
.flota-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.spec-item {
  background: var(--gray);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.25s ease;
}
.spec-item:hover {
  background: #fff3e0;
  transform: translateY(-2px);
}
.spec-icon { font-size: 1.1rem; }
.spec-label { font-size: 0.7rem; color: #999; text-transform: uppercase; letter-spacing: 0.3px; }
.spec-item strong { font-size: 0.85rem; color: var(--dark); font-family: 'Montserrat', sans-serif; }

/* Tags de lo que incluye */
.flota-includes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.include-tag {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 50px;
  font-weight: 500;
}

/* Precio y CTA */
.flota-price-block {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 2px solid #f0f0f0;
  margin-top: 4px;
}
.price-main {
  font-size: 1.1rem;
  color: var(--dark);
}
.price-main strong {
  color: var(--orange);
  font-size: 2rem;
  font-family: 'Montserrat', sans-serif;
}
.price-main span { color: #999; font-size: 0.9rem; }

/* ===== TARIFAS ===== */
.tarifas {
  padding: 80px 0;
  background: var(--dark);
}
.tarifas .section-title { color: var(--white); }
.tarifas .section-sub { color: rgba(255,255,255,0.65); }

.tarifas-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
}
.tarifas-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--dark2);
  border-radius: var(--radius);
  overflow: hidden;
}
.tarifas-table th {
  background: var(--orange);
  color: var(--white);
  padding: 16px 20px;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
}
.tarifas-table td {
  padding: 16px 20px;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.95rem;
}
.tarifas-table tr:last-child td { border-bottom: none; }
.tarifas-table .row-highlight td {
  background: rgba(0,191,255,0.08);
  color: var(--white);
  font-weight: 500;
}
.tarifas-note {
  margin-top: 16px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* ===== EMPRESAS ===== */
.empresas {
  padding: 80px 0;
  background: var(--gray);
}
.empresas-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.empresas-text h2 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 16px;
}
.empresas-text p {
  color: #555;
  margin-bottom: 20px;
}
.empresas-list { margin-bottom: 32px; }
.empresas-list li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: #444;
  border-bottom: 1px solid #e0e0e0;
}
.empresas-box {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--white);
}
.emp-icon { font-size: 3rem; margin-bottom: 16px; }
.empresas-box h4 { font-size: 1.2rem; margin-bottom: 8px; color: var(--orange); }
.empresas-box p { color: rgba(255,255,255,0.7); font-size: 0.95rem; }

/* ===== TESTIMONIOS ===== */
.testimonios {
  padding: 80px 0;
  background: var(--white);
}
.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.test-card {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 4px solid var(--orange);
}
.stars { font-size: 1rem; margin-bottom: 12px; }
.test-card p { color: #555; font-style: italic; margin-bottom: 12px; font-size: 0.95rem; }
.test-card strong { color: var(--dark); font-size: 0.85rem; }

/* ===== NOSOTROS ===== */
.nosotros {
  padding: 80px 0;
  background: var(--dark);
}
.nosotros-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.nosotros-text .section-tag { background: var(--cyan); }
.nosotros-text h2 { font-size: 2rem; color: var(--white); margin-bottom: 16px; }
.nosotros-text p { color: rgba(255,255,255,0.75); margin-bottom: 14px; }
.nosotros-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.nstat {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}
.nstat strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  color: var(--orange);
}
.nstat span { color: rgba(255,255,255,0.6); font-size: 0.85rem; }

/* ===== CONTACTO ===== */
.contacto {
  padding: 80px 0;
  background: var(--gray);
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}
.cinfo-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid #e0e0e0;
}
.cinfo-icon { font-size: 1.4rem; min-width: 36px; }
.cinfo-item div { display: flex; flex-direction: column; gap: 2px; }
.cinfo-item strong { color: var(--dark); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.cinfo-item a, .cinfo-item span { color: #555; font-size: 0.95rem; }
.cinfo-item a:hover { color: var(--orange); }
.mapa-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-text { font-size: 1.1rem; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.5); }
.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links strong, .footer-contact strong {
  color: var(--white);
  margin-bottom: 4px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-links a, .footer-contact a, .footer-contact span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--orange); }
.footer-bottom {
  text-align: center;
  padding: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ===== BOTÓN FLOTANTE ===== */
.float-call {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 24px rgba(255,140,0,0.45);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2s infinite;
}
.float-call:hover {
  background: #e07a00;
  transform: scale(1.1);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(255,140,0,0.45); }
  50% { box-shadow: 0 6px 40px rgba(255,140,0,0.7); }
}

/* ===== ANIMACIONES MODERNAS ===== */

/* --- Partículas de fondo en el hero --- */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}

/* --- Texto hero con animación de entrada --- */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-badge   { animation: fadeIn 0.6s ease both; animation-delay: 0.2s; opacity: 0; }
.hero-content h1 { animation: slideUp 0.8s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.4s; opacity: 0; }
.hero-sub     { animation: slideUp 0.8s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.6s; opacity: 0; }
.hero-btns    { animation: slideUp 0.8s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.8s; opacity: 0; }
.hero-stats   { animation: slideUp 0.8s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 1.0s; opacity: 0; }

/* --- Contador numérico animado --- */
.count-up {
  display: inline-block;
  transition: color 0.3s;
}

/* --- Scroll reveal genérico --- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays para grids */
.stagger-1 { transition-delay: 0.05s !important; }
.stagger-2 { transition-delay: 0.15s !important; }
.stagger-3 { transition-delay: 0.25s !important; }
.stagger-4 { transition-delay: 0.35s !important; }

/* --- Navbar logo shimmer al cargar --- */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.logo-text {
  background: linear-gradient(90deg, #fff 30%, var(--orange) 50%, #fff 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear 1s 1 forwards;
}
.logo-text span {
  background: var(--orange);
  -webkit-background-clip: text;
  background-clip: text;
}

/* --- Tarjetas de flota: efecto brillo en hover --- */
.flota-card {
  overflow: hidden;
}
.flota-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.flota-card:hover::after {
  left: 130%;
}

/* --- Botones: ripple effect --- */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.18);
  border-radius: inherit;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
  transform-origin: center;
}
.btn:active::before {
  transform: scale(2);
  opacity: 0;
  transition: transform 0.4s, opacity 0.4s;
}

/* --- Línea animada bajo el título de sección --- */
.section-title {
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  border-radius: 2px;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.section-title.visible::after {
  transform: translateX(-50%) scaleX(1);
}

/* --- Stat cards hover tilt --- */
.nstat, .why-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.nstat:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 12px 32px rgba(0,191,255,0.15);
}

/* --- Testimonial card: slide in con delay --- */
.test-card {
  position: relative;
  overflow: hidden;
}
.test-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  right: 16px;
  font-size: 5rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--orange);
  opacity: 0.1;
  line-height: 1;
  pointer-events: none;
}

/* --- Hero: línea decorativa animada --- */
.hero-deco-line {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--orange), var(--cyan), transparent);
  opacity: 0.4;
  animation: scanLine 4s ease-in-out infinite;
}
@keyframes scanLine {
  0%, 100% { opacity: 0.2; transform: scaleY(0.7); }
  50%       { opacity: 0.5; transform: scaleY(1); }
}

/* --- Número contador: glow cuando termina --- */
@keyframes glowNumber {
  0%   { text-shadow: none; }
  50%  { text-shadow: 0 0 16px var(--orange); }
  100% { text-shadow: none; }
}
.count-done {
  animation: glowNumber 0.8s ease;
}

/* --- Empresas box: borde animado --- */
.empresas-box {
  position: relative;
  overflow: hidden;
}
.empresas-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 2px;
  background: linear-gradient(135deg, var(--orange), var(--cyan), var(--orange));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: borderRotate 4s linear infinite;
  pointer-events: none;
}
@keyframes borderRotate {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Progress bar en tarifas --- */
.tarifas-table tr {
  transition: background 0.3s;
}
.tarifas-table tbody tr:hover td {
  background: rgba(255,140,0,0.08);
  color: var(--white);
}

/* --- Icono flotante del why-card --- */
.why-icon {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.why-card:hover .why-icon {
  transform: scale(1.3) rotate(-8deg);
}

/* --- Cursor personalizado --- */
.custom-cursor {
  width: 18px;
  height: 18px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, opacity 0.3s;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.custom-cursor.hovered {
  transform: translate(-50%, -50%) scale(2.5);
  background: rgba(255,140,0,0.15);
}

/* --- Loader de entrada --- */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--white);
  letter-spacing: 2px;
  animation: fadeIn 0.4s ease;
}
.loader-logo span { color: var(--orange); }
.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  border-radius: 2px;
  animation: loadFill 0.9s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes loadFill {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: block; }

  .hero-content { padding: 60px 24px; }
  .hero-btns { flex-direction: column; }
  .hero-stats { gap: 24px; }

  .empresas-inner,
  .nosotros-inner,
  .contacto-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  .section-title { font-size: 1.6rem; }

  .nosotros-stats { grid-template-columns: 1fr 1fr; }

  /* Flota responsive */
  .flota-panel-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
  }
  .flota-specs-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  border-top: 3px solid var(--orange);
  padding: 20px 24px;
  z-index: 10001;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.5);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  min-width: 200px;
  color: rgba(255,255,255,0.7);
}
.cookie-text strong {
  color: var(--white);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 5px;
  font-family: 'Montserrat', sans-serif;
}
.cookie-text p { font-size: 0.83rem; line-height: 1.55; }
.cookie-link {
  background: none;
  border: none;
  color: var(--orange);
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
  font-family: inherit;
}
.cookie-link:hover { color: var(--cyan); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

.btn-cookie-accept {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  transition: opacity 0.2s, transform 0.2s;
  letter-spacing: 0.3px;
}
.btn-cookie-accept:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-cookie-reject {
  background: transparent;
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-cookie-reject:hover {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
  transform: translateY(-1px);
}

/* ===== COOKIE MODAL ===== */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(3px);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-box {
  background: #0f2840;
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 3px solid var(--orange);
  border-radius: 12px;
  padding: 32px;
  max-width: 500px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.cookie-modal-box h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
}
.cookie-modal-box > p {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cookie-option:last-of-type { border-bottom: none; }
.cookie-option-info strong {
  color: var(--white);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 4px;
}
.cookie-option-info p {
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  line-height: 1.45;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.25s;
}
.toggle-track::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.cookie-toggle input:checked + .toggle-track { background: var(--orange); }
.cookie-toggle input:checked + .toggle-track::before { transform: translateX(20px); }
.cookie-toggle input:disabled + .toggle-track {
  background: #1a6b2a;
  cursor: not-allowed;
  opacity: 0.7;
}

@media (max-width: 600px) {
  .cookie-content { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
  .cookie-modal-actions { justify-content: stretch; }
  .cookie-modal-actions .btn-cookie-accept,
  .cookie-modal-actions .btn-cookie-reject { flex: 1; text-align: center; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.9rem; }
  .flota-grid { grid-template-columns: 1fr; }
  .nosotros-stats { grid-template-columns: 1fr; }
}
