/* ══════════════════════════════════════════════════════════════
   FAST CAR AUDIO & SYSTEMS — Landing Pages Shared CSS
   Colores: Negro #0a0a0a, Rojo #c0392b, Plata #b0b0b0, Blanco #f5f5f5
   Tipografía: Outfit (display) + DM Sans (body)
   ══════════════════════════════════════════════════════════════ */

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

:root {
  --negro: #0a0a0a;
  --negro-suave: #111111;
  --negro-card: #161616;
  --negro-borde: #1f1f1f;
  --rojo: #c0392b;
  --rojo-hover: #e74c3c;
  --rojo-oscuro: #8b1a1a;
  --plata: #b0b0b0;
  --plata-clara: #d4d4d4;
  --blanco: #f5f5f5;
  --dorado-suave: #c9a84c;
  --gradiente-hero: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 50%, #0a0a0a 100%);
  --gradiente-rojo: linear-gradient(135deg, #c0392b 0%, #8b1a1a 100%);
  --sombra-card: 0 4px 24px rgba(0,0,0,0.4);
  --sombra-elevada: 0 8px 40px rgba(0,0,0,0.6);
  --radio: 8px;
  --radio-lg: 16px;
  --transicion: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--negro);
  color: var(--plata);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transicion);
}

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── TIPOGRAFÍA ─── */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--blanco);
  font-weight: 700;
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; }

.subtitulo {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--plata);
  max-width: 600px;
}

.acento { color: var(--rojo); }
.acento-plata { color: var(--plata-clara); }

/* ─── BOTONES ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radio);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transicion);
  border: none;
  text-align: center;
  justify-content: center;
}

.btn-rojo {
  background: var(--gradiente-rojo);
  color: #fff;
  box-shadow: 0 4px 20px rgba(192, 57, 43, 0.3);
}

.btn-rojo:hover {
  background: var(--rojo-hover);
  box-shadow: 0 6px 28px rgba(231, 76, 60, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--blanco);
  border: 1.5px solid var(--plata);
}

.btn-outline:hover {
  border-color: var(--rojo);
  color: var(--rojo);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.3);
}

.btn-telefono {
  background: var(--negro-card);
  color: var(--blanco);
  border: 1.5px solid var(--negro-borde);
}

.btn-telefono:hover {
  border-color: var(--plata);
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--negro-borde);
  transition: var(--transicion);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--plata);
  border-radius: 6px;
  letter-spacing: 0.01em;
  transition: var(--transicion);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.activo {
  color: var(--blanco);
  background: rgba(192, 57, 43, 0.12);
}

.nav-links a.activo {
  color: var(--rojo);
}

.nav-cta {
  padding: 8px 20px !important;
  background: var(--gradiente-rojo) !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
}

.nav-cta:hover {
  opacity: 0.9;
}

/* Hamburguesa mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  transition: var(--transicion);
}

.nav-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.nav-mobile-overlay.open {
  display: flex;
}

.nav-mobile-overlay a {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  color: var(--plata);
  padding: 12px 24px;
  transition: var(--transicion);
}

.nav-mobile-overlay a:hover {
  color: var(--rojo);
}

.nav-mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--blanco);
  font-size: 2rem;
  cursor: pointer;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,0.7) 0%,
    rgba(10,10,10,0.4) 40%,
    rgba(10,10,10,0.85) 80%,
    var(--negro) 100%
  );
}

/* Línea decorativa roja */
.hero-bg::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradiente-rojo);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(192, 57, 43, 0.12);
  border: 1px solid rgba(192, 57, 43, 0.25);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rojo);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--rojo);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 span {
  display: block;
}

.hero .subtitulo {
  margin-bottom: 36px;
}

.hero-botones {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Stats en hero */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--negro-borde);
}

.hero-stat-numero {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blanco);
}

.hero-stat-numero .acento {
  color: var(--rojo);
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--plata);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ─── SECCIÓN SERVICIOS / PRODUCTOS ─── */
.seccion {
  padding: 100px 0;
  position: relative;
}

.seccion-oscura {
  background: var(--negro-suave);
}

.seccion-header {
  text-align: center;
  margin-bottom: 60px;
}

.seccion-header .etiqueta {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rojo);
  margin-bottom: 16px;
}

.seccion-header p {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--plata);
}

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

.card {
  background: var(--negro-card);
  border: 1px solid var(--negro-borde);
  border-radius: var(--radio-lg);
  overflow: hidden;
  transition: var(--transicion);
}

.card:hover {
  border-color: rgba(192, 57, 43, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--sombra-card);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  margin-bottom: 8px;
}

.card-body p {
  font-size: 0.88rem;
  color: var(--plata);
  margin-bottom: 20px;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rojo);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link:hover {
  color: var(--rojo-hover);
  gap: 10px;
}

/* ─── POR QUÉ ELEGIRNOS ─── */
.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.ventaja-item {
  padding: 32px;
  background: var(--negro-card);
  border: 1px solid var(--negro-borde);
  border-radius: var(--radio-lg);
  text-align: center;
  transition: var(--transicion);
}

.ventaja-item:hover {
  border-color: rgba(192, 57, 43, 0.2);
}

.ventaja-icono {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(192, 57, 43, 0.1);
  border-radius: 12px;
  color: var(--rojo);
  font-size: 1.5rem;
}

.ventaja-item h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.ventaja-item p {
  font-size: 0.85rem;
}

/* ─── TESTIMONIOS ─── */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonio {
  padding: 32px;
  background: var(--negro-card);
  border: 1px solid var(--negro-borde);
  border-radius: var(--radio-lg);
  position: relative;
}

.testimonio::before {
  content: '"';
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  color: var(--rojo);
  opacity: 0.2;
  position: absolute;
  top: 12px;
  left: 24px;
  line-height: 1;
}

.testimonio-estrellas {
  color: var(--dorado-suave);
  font-size: 0.85rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonio p {
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 20px;
  color: var(--plata-clara);
}

.testimonio-autor {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blanco);
}

.testimonio-fuente {
  font-size: 0.72rem;
  color: var(--plata);
}

/* ─── MARCAS ─── */
.marcas-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.5;
}

.marcas-grid span {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--plata);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── CTA / CONTACTO ─── */
.cta-seccion {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-seccion::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradiente-rojo);
  opacity: 0.06;
}

.cta-seccion .container {
  position: relative;
  z-index: 1;
}

.cta-seccion h2 {
  margin-bottom: 16px;
}

.cta-seccion p {
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-botones {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── MAPA ─── */
.mapa-seccion {
  padding: 80px 0;
  background: var(--negro-suave);
}

.mapa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.mapa-info h2 {
  margin-bottom: 20px;
}

.mapa-dato {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.mapa-dato-icono {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(192, 57, 43, 0.1);
  border-radius: 10px;
  color: var(--rojo);
  font-size: 1.1rem;
}

.mapa-dato-texto h4 {
  color: var(--blanco);
  margin-bottom: 2px;
}

.mapa-dato-texto p {
  font-size: 0.85rem;
}

.mapa-embed {
  border-radius: var(--radio-lg);
  overflow: hidden;
  border: 1px solid var(--negro-borde);
}

.mapa-embed iframe {
  width: 100%;
  height: 380px;
  border: 0;
}

/* ─── PROCESO / PASOS ─── */
.pasos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: paso;
}

.paso {
  text-align: center;
  padding: 40px 24px;
  position: relative;
  counter-increment: paso;
}

.paso::before {
  content: counter(paso, decimal-leading-zero);
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--rojo);
  opacity: 0.15;
  display: block;
  margin-bottom: 16px;
}

.paso h3 {
  margin-bottom: 10px;
}

.paso p {
  font-size: 0.88rem;
}

/* Línea conectora entre pasos */
.paso:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50px;
  right: -16px;
  width: 32px;
  height: 2px;
  background: var(--negro-borde);
}

/* ─── WHATSAPP FLOTANTE ─── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: var(--transicion);
  border: none;
  cursor: pointer;
}

.whatsapp-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float-btn svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.whatsapp-float-tooltip {
  background: var(--negro-card);
  color: var(--blanco);
  padding: 10px 16px;
  border-radius: var(--radio);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: var(--sombra-card);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transicion);
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ─── ANIMACIONES DE ENTRADA ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .mapa-grid {
    grid-template-columns: 1fr;
  }

  .pasos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .paso:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 60px;
  }

  .hero-botones {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .seccion {
    padding: 64px 0;
  }

  .grid-cards {
    grid-template-columns: 1fr;
  }

  .testimonios-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float-tooltip {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
}
