/* ==========================================================================
   LoWater Xpress — estilos exclusivos del Home. Requiere main.css cargado
   antes (usa sus tokens, .btn, .header base, .section-*, .form-*, etc.)
   ========================================================================== */

/* El home es la única página con hero a pantalla completa: el header nace
   transparente sobre la imagen y se vuelve sólido al hacer scroll (clase
   .scrolled añadida por assets/js/main.js). main.css deja el header sólido
   por defecto para las otras 5 páginas; aquí lo sobreescribimos. */
.header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header.scrolled {
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(10, 10, 11, 0.95) 0%, rgba(10, 10, 11, 0.7) 50%, rgba(10, 10, 11, 0.85) 100%);
}

.hero-particles {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.5;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50px;
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-badge svg { width: 16px; height: 16px; }

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--gray-light);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat { text-align: left; }

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 13px;
  color: var(--gray);
  margin-top: 4px;
}

/* Booking Widget */
.booking-widget {
  background: rgba(17, 17, 19, 0.9);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.booking-header { text-align: center; margin-bottom: 28px; }
.booking-header h3 { font-size: 22px; margin-bottom: 8px; }
.booking-header p { color: var(--gray); font-size: 14px; }

.booking-steps { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; }
.step-indicator { display: flex; align-items: center; gap: 8px; }

.step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--dark-4);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  transition: all 0.3s ease;
}

.step-dot.active { background: var(--gradient-primary); border-color: var(--primary); color: var(--dark); }
.step-dot.completed { background: var(--success); border-color: var(--success); color: var(--dark); }
.step-line { width: 40px; height: 2px; background: var(--dark-4); }

.booking-form { display: flex; flex-direction: column; gap: 16px; }

.price-display {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(14, 246, 204, 0.1) 100%);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin-top: 8px;
}

.price-label { font-size: 13px; color: var(--gray); margin-bottom: 4px; }
.price-value { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; color: var(--primary); }
.price-note { font-size: 12px; color: var(--gray); margin-top: 4px; }

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-badge { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray); }
.trust-badge svg { width: 18px; height: 18px; color: var(--success); }

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--dark-3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.service-card.featured {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(14, 246, 204, 0.08) 100%);
  border-color: rgba(0, 212, 255, 0.4);
  grid-column: span 2;
}

.service-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.featured-badge {
  position: absolute;
  top: 24px; right: 24px;
  background: var(--gradient-primary);
  color: var(--dark);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.05) 100%);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg { width: 28px; height: 28px; color: var(--primary); }
.service-card h3 { font-size: 20px; margin-bottom: 12px; }
.service-card p { color: var(--gray); font-size: 14px; margin-bottom: 20px; line-height: 1.6; }

.service-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.service-feature {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--gray-light);
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 20px;
}

.service-feature svg { width: 14px; height: 14px; color: var(--success); }

.service-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.service-price .from { font-size: 13px; color: var(--gray); }
.service-price .amount { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; color: var(--primary); }

/* Calculator Section */
.calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
}

.calculator-options { display: flex; flex-direction: column; gap: 32px; }
.calc-category h3 { font-size: 16px; margin-bottom: 16px; color: var(--gray-light); }

.vehicle-options, .extra-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.option-card {
  background: var(--dark-3);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option-card:hover { border-color: rgba(0, 212, 255, 0.3); background: var(--dark-4); }
.option-card.selected { border-color: var(--primary); background: rgba(0, 212, 255, 0.1); }
.option-card .icon { font-size: 32px; margin-bottom: 8px; }
.option-card .name { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.option-card .price { font-size: 13px; color: var(--primary); }

.calculator-summary {
  background: var(--dark-3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  position: sticky;
  top: 100px;
}

.summary-title { font-size: 18px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.summary-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.summary-item { display: flex; justify-content: space-between; font-size: 14px; color: var(--gray-light); }

.summary-total {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.summary-total .label { font-size: 16px; color: var(--gray-light); }
.summary-total .value { font-family: 'Space Grotesk', sans-serif; font-size: 36px; font-weight: 700; color: var(--primary); }

/* Before/After Section */
.before-after-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.before-after-slider { position: relative; width: 100%; aspect-ratio: 3/2; cursor: ew-resize; touch-action: none; }
.before-after-slider img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
/* Placeholder temporal: usamos la misma foto en ambas capas con filtros
   opuestos para que el slider se vea funcional mientras llegan fotos
   reales de antes/después (ver aviso a LoWater). Al reemplazar las
   imágenes por fotos reales, quitar estos dos filter: y usar cada foto
   tal cual. */
.after-image { filter: saturate(1.2) brightness(1.08) contrast(1.05); }
.before-image { filter: grayscale(0.75) brightness(0.55) contrast(0.9) sepia(0.2); clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); }

.slider-handle {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 4px;
  background: var(--white);
  transform: translateX(-50%);
  z-index: 10;
}

.slider-handle::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.slider-handle::after {
  content: '↔';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  color: var(--dark);
  z-index: 1;
}

.before-label, .after-label {
  position: absolute;
  bottom: 24px;
  padding: 8px 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.before-label { left: 24px; color: var(--gray-light); }
.after-label { right: 24px; color: var(--primary); }

/* Cities Section */
.cities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }

.city-card {
  background: var(--dark-3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.city-card:hover { border-color: var(--primary); background: rgba(0, 212, 255, 0.1); transform: translateY(-4px); }

.city-card.main {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.05) 100%);
  border-color: rgba(0, 212, 255, 0.3);
}

.city-card svg { width: 24px; height: 24px; color: var(--primary); margin-bottom: 8px; }
.city-card .name { font-size: 14px; font-weight: 500; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.testimonial-card {
  background: var(--dark-3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
}

.testimonial-card:hover { transform: translateY(-4px); border-color: rgba(0, 212, 255, 0.2); }
.testimonial-stars { display: flex; gap: 4px; margin-bottom: 16px; }
.testimonial-stars svg { width: 18px; height: 18px; color: #FFD700; fill: #FFD700; }
.testimonial-text { font-size: 15px; color: var(--gray-light); line-height: 1.7; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }

.author-avatar {
  width: 48px; height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600; color: var(--dark);
}

.author-info .name { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.author-info .location { font-size: 13px; color: var(--gray); }

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(14, 246, 204, 0.1) 100%);
  border-top: 1px solid rgba(0, 212, 255, 0.3);
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.cta-content { text-align: center; max-width: 700px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 20px; }
.cta-content p { font-size: 18px; color: var(--gray-light); margin-bottom: 32px; }
.cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

.results-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.results-gallery img { border-radius: 16px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Mobile Responsive (solo lo exclusivo del home) */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .booking-widget { max-width: 480px; margin: 40px auto 0; }
  .calculator-wrapper { grid-template-columns: 1fr; }
  .calculator-summary { position: static; }
  .service-card.featured { grid-column: span 1; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero h1 { font-size: 36px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .stat { flex: 1; min-width: 80px; text-align: center; }
  .trust-badges { flex-wrap: wrap; gap: 16px; }
  .cities-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Empresas y Flotas */
.fleet-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}

.fleet-intro {
  font-size: 17px;
  color: var(--gray-light);
  line-height: 1.7;
  margin: 20px 0 40px;
  max-width: 560px;
}

.fleet-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}

.fleet-benefit {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.fleet-benefit-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.05) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.fleet-benefit h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.fleet-benefit p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

.fleet-audience {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  font-size: 13px;
  color: var(--gray);
}

.fleet-tag {
  background: var(--dark-3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 6px 14px;
  color: var(--gray-light);
}

.fleet-stat-card {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12) 0%, rgba(14, 246, 204, 0.06) 100%);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  position: sticky;
  top: 120px;
}

.fleet-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.fleet-stat-label {
  font-size: 14px;
  color: var(--gray-light);
  margin-top: 8px;
}

.fleet-stat-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 28px 0;
}

.fleet-stat-quote {
  font-size: 15px;
  font-style: italic;
  color: var(--gray-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.fleet-stat-author {
  font-size: 13px;
  color: var(--gray);
}

@media (max-width: 1024px) {
  .fleet-grid { grid-template-columns: 1fr; }
  .fleet-stat-card { position: static; }
}

@media (max-width: 640px) {
  .fleet-benefits { grid-template-columns: 1fr; }
  .section-title[style] { text-align: center !important; }
}
