/* =============================================
   KV CAR AUDIO - Estilos Globales
   ============================================= */

:root {
  --primary: #ff2d95;
  --primary-dark: #c4127a;
  --secondary: #0b1330;
  --dark: #08080c;
  --dark-card: #121218;
  --dark-lighter: #191922;
  --gray: #26262f;
  --gray-light: #9494a3;
  --white: #f5f5fa;
  --accent: #00c2ff;
  --gold: #f4a261;
  --gradient: linear-gradient(135deg, var(--primary), var(--accent));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 45, 149, 0.3);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(255, 45, 149, 0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-full {
  display: block;
  height: 54px;
  width: auto;
}

.logo-compact {
  display: none;
  height: 46px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--gradient);
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-weight: 600 !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 45, 149, 0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: all 0.3s;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/bg-hero.jpg') center/cover no-repeat;
  opacity: 0.35;
  filter: hue-rotate(300deg) saturate(1.3);
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

@keyframes float-particle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.2; }
  50% { transform: translateY(-100px) translateX(30px); opacity: 0.5; }
}

.hero-content {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}

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

.hero-text p {
  font-size: 1.1rem;
  color: var(--gray-light);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 45, 149, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 45, 149, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin-top: 1.8rem;
}

.hero-trust span {
  font-size: 0.85rem;
  color: var(--gray-light);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 45, 149, 0.15);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  perspective: 1200px;
  min-height: 380px;
}

.hero-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  max-width: 90%;
  max-height: 90%;
  background: radial-gradient(circle, rgba(255, 45, 149, 0.35), rgba(0, 194, 255, 0.22) 45%, transparent 72%);
  filter: blur(50px);
  border-radius: 50%;
  animation: glow-pulse 4s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}

.hero-car-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  z-index: 2;
}

.hero-car {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 35px rgba(255, 45, 149, 0.25));
  transition: transform 0.2s ease-out, filter 0.4s ease;
  animation: car-float 5s ease-in-out infinite;
  will-change: transform;
}

.hero-car:hover {
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 50px rgba(0, 194, 255, 0.35));
}

@keyframes car-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ========== SERVICIOS ========== */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-title h2 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  color: var(--gray-light);
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 45, 149, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 45, 149, 0.3);
  box-shadow: 0 10px 30px rgba(255, 45, 149, 0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 45, 149, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--white);
}

.service-card p {
  color: var(--gray-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========== CATÁLOGO / TIENDA ========== */
.catalog-note {
  text-align: center;
  color: var(--gray-light);
  font-size: 0.9rem;
  margin-top: 2.5rem;
}

/* --- Grid de productos --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.8rem;
}

.product-card {
  background: var(--dark-card);
  border: 1px solid rgba(255, 45, 149, 0.15);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 194, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 194, 255, 0.15);
}

.product-card.featured {
  border-color: rgba(255, 45, 149, 0.5);
  box-shadow: 0 0 25px rgba(255, 45, 149, 0.15);
}

/* Bloque a reemplazar por <img>. Bórralo y pon tu <img src="img/productos/tu-foto.jpg"> */
.product-image-placeholder {
  aspect-ratio: 1 / 1;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 10px,
    rgba(255, 255, 255, 0.06) 10px,
    rgba(255, 255, 255, 0.06) 20px
  );
  border-bottom: 2px dashed rgba(0, 194, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.product-image-placeholder span {
  color: var(--gray-light);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.6;
}

.product-image-placeholder small {
  color: var(--gray-light);
  font-weight: 400;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Cuando pongas una <img> real dentro de la tarjeta, esto la hace ver bien: */
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.product-body {
  padding: 1.3rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-tag {
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.product-name {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.product-price {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
}

.product-btn {
  width: 100%;
  justify-content: center;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  margin-top: auto;
}

/* --- Nuestras Marcas --- */
.brands-block {
  margin-top: 4rem;
  text-align: center;
}

.brands-title {
  font-size: 1.5rem;
  margin-bottom: 1.8rem;
  color: var(--white);
}

.brands-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brands-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.brand-badge {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-light);
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.brand-badge:hover {
  border-color: rgba(0, 194, 255, 0.4);
  color: var(--white);
}

/* ========== ANIMACIÓN PARLANTE ========== */
.speaker-section {
  padding: 6rem 2rem;
  background: var(--dark-card);
  position: relative;
  overflow: hidden;
}

.speaker-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/bg-services.jpg') center/cover no-repeat;
  filter: hue-rotate(300deg) saturate(0.7) brightness(0.55);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

.speaker-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 45, 149, 0.08) 0%, transparent 50%);
  animation: rotate-bg 20s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes rotate-bg {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.speaker-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.speaker-interactive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.speaker-svg-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.speaker-svg-wrapper svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(255, 45, 149, 0.2));
}

.speaker-part {
  cursor: pointer;
  transition: all 0.3s ease;
}

.speaker-part:hover {
  filter: brightness(1.3) drop-shadow(0 0 10px rgba(255, 45, 149, 0.5));
}

.speaker-part.active {
  filter: brightness(1.4) drop-shadow(0 0 15px rgba(255, 45, 149, 0.7));
  animation: part-highlight 1s ease-in-out;
}

@keyframes part-highlight {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.speaker-info {
  padding: 2rem;
}

.speaker-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.speaker-info p {
  color: var(--gray-light);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.speaker-info-box {
  background: var(--dark-lighter);
  border: 1px solid rgba(255, 45, 149, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
  display: none;
  animation: fadeIn 0.4s ease;
}

.speaker-info-box.active {
  display: block;
}

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

.speaker-info-box h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.speaker-info-box p {
  font-size: 0.95rem;
  color: var(--gray-light);
}

.part-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.part-btn {
  padding: 0.6rem 1.2rem;
  background: var(--gray);
  border: 1px solid rgba(255, 45, 149, 0.2);
  border-radius: 20px;
  color: var(--white);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

.part-btn:hover, .part-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ========== DIAGNÓSTICO INTERACTIVO: BOBINA QUEMADA ========== */
.diagnostic-widget {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: start;
  background: var(--dark-card);
  border: 1px solid rgba(255, 45, 149, 0.15);
  border-radius: 20px;
  padding: 2.5rem;
}

.diagnostic-visual {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

/* Gauge de temperatura */
.diag-gauge {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.diag-gauge-label {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-light);
}

.diag-gauge-bar {
  height: 10px;
  border-radius: 6px;
  background: var(--gray);
  overflow: hidden;
}

.diag-gauge-fill {
  height: 100%;
  width: 12%;
  border-radius: 6px;
  background: linear-gradient(90deg, #4dd68a, #f4a261, #ff2d95);
  transition: width 1.1s ease;
}

.diag-gauge-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}

/* SVG del parlante */
.diag-svg-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.diag-svg-wrap svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(255, 45, 149, 0.15));
}

.diag-basket { fill: #2a2a2a; stroke: #444; stroke-width: 2; }
.diag-magnet { fill: #3a3a4a; stroke: #5a5a70; stroke-width: 1; }
.diag-cone { fill: rgba(200, 200, 200, 0.22); stroke: #999; stroke-width: 1; }
.diag-dustcap { fill: rgba(255, 45, 149, 0.25); stroke: #ff2d95; stroke-width: 1.5; }
.diag-lead { fill: none; stroke: #d4a761; stroke-width: 2; }
.diag-former { fill: rgba(230, 230, 230, 0.22); stroke: #aaa; stroke-width: 1; transition: fill 0.6s ease, stroke 0.6s ease; }

.diag-spider {
  fill: none;
  stroke: var(--primary);
  stroke-width: 4;
  opacity: 0.85;
  transition: stroke 0.6s ease, opacity 0.6s ease;
}

.winding-turn {
  fill: #d4a761;
  stroke: #c49551;
  stroke-width: 1;
  transition: fill 0.5s ease, stroke 0.5s ease, filter 0.5s ease;
}

/* Estado: sobrecalentando */
.diagnostic-widget[data-state="overheat"] .winding-turn {
  fill: #ff8c42;
  stroke: #e56a1f;
  filter: drop-shadow(0 0 5px rgba(255, 140, 66, 0.7));
}
.diagnostic-widget[data-state="overheat"] .diag-spider { stroke: #00c2ff; }
.diagnostic-widget[data-state="overheat"] .diag-svg-wrap svg { animation: diag-shake 0.4s ease-in-out infinite; }

/* Estado: quemada */
.diagnostic-widget[data-state="burnt"] .winding-turn {
  fill: #17100f;
  stroke: #000;
  filter: drop-shadow(0 0 9px rgba(255, 45, 149, 0.55));
}
.diagnostic-widget[data-state="burnt"] .diag-spider { stroke: #5a1c1c; opacity: 0.6; }
.diagnostic-widget[data-state="burnt"] .diag-former { fill: rgba(60, 40, 30, 0.35); stroke: #3a2a20; }
.diagnostic-widget[data-state="burnt"] .diag-svg-wrap svg { filter: drop-shadow(0 0 25px rgba(255, 45, 149, 0.35)); }

/* Estado: reparada */
.diagnostic-widget[data-state="repaired"] .winding-turn {
  fill: #f0c987;
  stroke: #d4a761;
  filter: drop-shadow(0 0 8px rgba(240, 201, 135, 0.55));
}
.diagnostic-widget[data-state="repaired"] .diag-spider { stroke: var(--primary); opacity: 0.9; }
.diagnostic-widget[data-state="repaired"] .diag-former { fill: rgba(230, 230, 230, 0.3); stroke: #ccc; }

@keyframes diag-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1.5px); }
  75% { transform: translateX(1.5px); }
}

/* Humo */
.diag-smoke-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.diag-smoke-puff {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 180, 180, 0.8), rgba(160, 160, 160, 0));
  filter: blur(1.5px);
  animation: smoke-rise 2.2s ease-out forwards;
}

@keyframes smoke-rise {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0.7; }
  100% { transform: translate(var(--drift, 10px), -160px) scale(1.9); opacity: 0; }
}

/* Onda de sonido */
.diag-wave svg {
  width: 100%;
  height: 50px;
  display: block;
}

.diag-wave path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
}

.diag-wave-label {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-light);
  margin-top: 0.3rem;
}

/* Panel de texto y controles */
.diagnostic-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.diag-status h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.diag-status p {
  color: var(--gray-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.diag-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.diag-controls .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.diag-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.diag-steps li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  background: var(--dark-lighter);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--gray-light);
  font-size: 0.9rem;
  opacity: 0.4;
  transform: translateX(-8px);
  transition: all 0.4s ease;
}

.diag-steps li.done {
  opacity: 1;
  transform: translateX(0);
  color: var(--white);
  border-color: rgba(255, 45, 149, 0.3);
}

.diag-step-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.4s ease;
}

.diag-steps li.done .diag-step-icon {
  background: var(--gradient);
}

.diag-cta {
  align-self: flex-start;
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  transition: opacity 0.4s ease;
}

.diag-cta.visible {
  opacity: 1;
  visibility: visible;
  height: auto;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  margin-top: 0.3rem;
}

@media (max-width: 900px) {
  .diagnostic-widget {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 2rem;
  }
}

/* ========== POR QUÉ ELEGIRNOS ========== */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.why-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--dark-card);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s;
}

.why-card:hover {
  border-color: rgba(255, 45, 149, 0.3);
  transform: translateY(-5px);
}

.why-number {
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.why-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.why-card p {
  color: var(--gray-light);
  font-size: 0.9rem;
}

/* ========== PREGUNTAS FRECUENTES ========== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--dark-card);
  border: 1px solid rgba(255, 45, 149, 0.15);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item.open {
  border-color: rgba(255, 45, 149, 0.4);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 1.3rem 1.6rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.6rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.6rem 1.5rem;
}

.faq-answer p {
  color: var(--gray-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ========== CONTACTO ========== */
.contact-section {
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-card) 100%);
  padding: 6rem 2rem;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.whatsapp-btn-large {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: #25D366;
  color: white;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  margin: 2rem 0;
}

.whatsapp-btn-large:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
  width: 35px;
  height: 35px;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-item {
  padding: 1.5rem;
}

.contact-item .icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--primary);
}

.contact-item p {
  color: var(--gray-light);
  font-size: 0.9rem;
}

.contact-item-link {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.contact-item-link:hover {
  color: var(--primary);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark-card);
  border-top: 1px solid rgba(255, 45, 149, 0.1);
  padding: 3rem 2rem 1.5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-brand h3 {
  font-size: 1.3rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--gray-light);
  font-size: 0.85rem;
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-links a {
  display: block;
  color: var(--gray-light);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray);
  text-align: center;
  color: var(--gray-light);
  font-size: 0.8rem;
}

/* ========== WHATSAPP FLOTANTE ========== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s;
  text-decoration: none;
  animation: whatsapp-bounce 2s infinite;
}

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

@keyframes whatsapp-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}


/* ========== AJUSTES RESPONSIVE PROFESIONALES ========== */

/* Imágenes de marca: nunca se salen de su contenedor */
.nav-logo img {
  display: block;
  max-width: 100%;
  height: auto;
}

.logo-full {
  width: min(210px, 42vw);
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.logo-compact {
  width: auto;
  height: 50px;
  max-width: 52px;
  object-fit: contain;
}

/* Los botones respetan el ancho disponible */
.btn,
.nav-cta,
.whatsapp-btn-large,
.product-btn {
  max-width: 100%;
}

.hero-buttons {
  align-items: center;
}

.whatsapp-btn-large {
  justify-content: center;
  text-align: center;
}

.whatsapp-icon {
  flex: 0 0 auto;
}

/* Evita desbordamientos horizontales en tarjetas, textos y SVG */
.section,
.speaker-section,
.contact-section,
.footer {
  max-width: 100%;
}

.section img,
.speaker-section img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .nav-container {
    padding: 0.7rem 1.25rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .hero {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-content {
    gap: 2.5rem;
  }

  .section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    min-height: 66px;
  }

  .logo-full {
    display: none;
  }

  .logo-compact {
    display: block;
    height: 52px;
    max-width: 42px;
  }

  .hamburger {
    display: flex;
    z-index: 1201;
    position: relative;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: rgba(8, 8, 12, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 45, 149, 0.2);
    padding: 1.25rem;
    gap: 1.15rem;
    max-height: calc(100vh - 66px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1rem;
  }

  .nav-cta {
    width: min(100%, 280px);
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: 3.5rem;
  }

  .hero-content {
    width: 100%;
  }

  .hero-text h1 {
    font-size: clamp(2.15rem, 8vw, 2.7rem);
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-car-wrap {
    width: min(100%, 360px);
  }

  .hero-glow {
    width: min(90vw, 340px);
    height: min(90vw, 340px);
  }

  .speaker-svg-wrapper {
    width: 100%;
    overflow: hidden;
  }

  .speaker-svg-wrapper svg {
    width: min(100%, 420px);
    height: auto;
  }

  .whatsapp-btn-large {
    width: 100%;
    max-width: 520px;
    padding: 1rem 1.25rem;
    gap: 0.65rem;
    font-size: clamp(1rem, 4vw, 1.15rem);
    line-height: 1.3;
  }

  .whatsapp-icon {
    width: 30px;
    height: 30px;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .whatsapp-float svg {
    width: 29px;
    height: 29px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .logo-compact {
    height: 48px;
    max-width: 40px;
  }

  .hero {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .hero-text h1 {
    font-size: clamp(1.9rem, 9vw, 2.25rem);
  }

  .hero-buttons .btn {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .section,
  .speaker-section {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .section-title h2 {
    font-size: clamp(1.65rem, 7vw, 2rem);
  }

  .service-card {
    padding: 1.35rem;
  }

  .product-body {
    padding: 1.1rem;
  }

  .whatsapp-btn-large {
    border-radius: 18px;
    padding: 0.95rem 1rem;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 27px;
    height: 27px;
  }
}

@media (max-width: 360px) {
  .logo-compact {
    height: 44px;
    max-width: 37px;
  }

  .hamburger span {
    width: 25px;
  }

  .whatsapp-btn-large {
    font-size: 0.95rem;
  }
}

/* ========== ANIMACIÓN DE ENTRADA ========== */
/* Por defecto SIEMPRE visible: si JavaScript falla o tarda en cargar,
   el contenido nunca desaparece. La animación es una mejora progresiva
   que el propio script activa (ver clase .pre-anim en main.js). */
.animate-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.pre-anim {
  opacity: 0;
  transform: translateY(30px);
}

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

/* ========== VIBRACIÓN PARLANTE ========== */
.speaker-vibrate {
  animation: vibrate 0.5s ease-in-out;
}

@keyframes vibrate {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px) rotate(-0.5deg); }
  75% { transform: translateX(2px) rotate(0.5deg); }
}

/* Seguridad final contra scroll horizontal accidental */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Bloquea el scroll de fondo mientras el menú móvil está abierto */
body.menu-open {
  overflow: hidden;
}

*, *::before, *::after {
  min-width: 0;
}
