/* Ajuste de márgenes y posición para la sección de FAQs */
.faq-section {
  margin-top: 3.5rem;
  margin-bottom: 2.5rem;
}
.faq-container {
  margin-left: 0.2rem;
  margin-right: 0.2rem;
  max-width: 140vw;
  /* Reduce el espacio superior entre el título y las filas */
  margin-top: 0.5rem;
}
/* FAQ Card Animations */
.faq-card {
  opacity: 0;
  transform: translateY(40px);
  animation: faqFadeIn 0.7s cubic-bezier(.23,1.01,.32,1) forwards;
  min-width: 420px;
  max-width: 500px;
  background: #f8fafc;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(30,64,175,0.09);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  flex: 0 0 auto;
  scroll-snap-align: start;
  transition: box-shadow 0.3s;
  position: relative;
}
.faq-card:nth-child(1) { animation-delay: 0.1s; }
.faq-card:nth-child(2) { animation-delay: 0.2s; }
.faq-card:nth-child(3) { animation-delay: 0.3s; }
.faq-card:nth-child(4) { animation-delay: 0.4s; }
.faq-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes faqFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Icono corporativo en cada tarjeta FAQ */
.faq-card-icon {
  width: 38px;
  height: 38px;
  background: #e0e7ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  box-shadow: 0 2px 8px rgba(30,64,175,0.09);
}
.faq-card-icon svg {
  width: 22px;
  height: 22px;
  fill: #1e40af;
}

/* Indicador de scroll horizontal */
.faq-scroll-indicator {
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, #e0e7ff 0%, #1e40af 100%);
  border-radius: 6px;
  margin: 0.5rem 0 1.5rem 0;
  opacity: 0.25;
}
/* FAQ Horizontal Card Scroll Styles */
.faq-scroll {
  display: flex;
  flex-direction: row;
  gap: 1.2rem; /* Reduce el espacio entre tarjetas */
  overflow-x: auto;
  padding-bottom: 1.5rem;
  scroll-snap-type: x mandatory;
  margin-top: 1.2rem; /* Añadido para separar más las tarjetas del título */
}

/* Responsive Design: Solo para móviles */
@media (max-width: 768px) {
  body {
    font-size: 14px;
    padding: 0 4px;
  }
  .faq-section {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }
  .faq-container {
    margin-left: 0;
    margin-right: 0;
    max-width: 100vw;
    padding: 0 4px;
  }
  
  /* MANTENER scroll horizontal en FAQs para móviles */
  .faq-scroll {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
  }
  
  .faq-card {
    min-width: 260px;
    max-width: 300px;
    margin: 0;
    box-sizing: border-box;
    padding: 1rem 0.8rem;
    flex: 0 0 auto;
  }
  
  .faq-card-title {
    font-size: 0.95rem !important;
    margin-bottom: 0.7rem !important;
  }
  
  .faq-card-answer {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }
  
  .faq-card-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 0.5rem;
  }
  
  .faq-card-icon svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 600px) {
  h1, h2, h3 {
    font-size: 1rem; /* Más pequeño */
    margin-bottom: 0.5rem; /* Menos espacio */
  }
  .faq-section {
    margin-top: 1rem; /* Menos margen superior */
    margin-bottom: 0.8rem;
  }
  .faq-card {
    padding: 0.7rem; /* Más compacto */
    font-size: 0.8rem; /* Texto más pequeño */
  }
  .faq-scroll-indicator {
    height: 4px; /* Más delgado */
    margin-bottom: 0.8rem;
  }
  
  /* Hacer todas las secciones más compactas */
  .services-section, .demo-section, .testimonials-section {
    padding: 1.5rem 0.5rem !important; /* Menos padding */
    margin: 1rem 0 !important; /* Menos margen */
  }
  
  /* Títulos de sección más pequeños */
  .section-title {
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
  }
  
  /* Subtítulos más pequeños */
  .section-subtitle {
    font-size: 0.8rem !important;
    margin-bottom: 0.8rem !important;
  }
}
.faq-card:hover {
  box-shadow: 0 8px 32px rgba(30,64,175,0.15);
}
.faq-card-title {
  color: #1e40af;
  font-family: 'Syne', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.faq-card-answer {
  color: #222;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.08rem;
  line-height: 1.6;
}
.faq-scroll::-webkit-scrollbar {
  height: 10px;
}
.faq-scroll::-webkit-scrollbar-thumb {
  background: #c7d2fe;
  border-radius: 6px;
}
.faq-scroll::-webkit-scrollbar-track {
  background: #e0e7ff;
  border-radius: 6px;
}
/* Espaciado extra para formulario tipo wizard */

.form-group {
  margin-bottom: 2.2rem !important;
}
.form-group label {
  margin-bottom: 1.1rem !important;
}
.form-group input,
.form-group select {
  margin-top: 0.7rem !important;
}
.radio-group.refined {
  margin-bottom: 1.2rem !important;
}
.radio-group.refined label {
  margin-bottom: 1.5rem !important;
}
/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Syne', sans-serif;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 25%, #93c5fd 50%, #dbeafe 75%, #f0f9ff 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: #1e293b;
  line-height: 1.5;
  min-height: 100vh;
}

/* Animación sutil del fondo */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Elementos decorativos sutiles */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(30, 64, 175, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(147, 197, 253, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 60% 20%, rgba(191, 219, 254, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 60px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  box-shadow: 0 4px 20px rgba(30, 64, 175, 0.1);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 8px 16px;
  border-radius: 6px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.nav-link:hover {
  color: #1e40af;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

/* Ajuste para que el hero no quede tapado por la navbar */
.hero-section {
  margin-top: 200px; /* altura aproximada de la navbar + padding */
}

.hero-section {
  display: flex;
  align-items: flex-start; /* permite que el logo quede arriba */
  justify-content: space-between;
  padding: 80px 60px; /* margen lateral reducido */
  max-width: 1400px;
  max-height: 1400px;
  margin: 0 auto;
  gap: 70px;
  position: relative;
}



.hero-content {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.logo {
  width: 220px;
  margin-bottom: 30px;
  margin-top:30px
}

.text-block {
  display: flex;
  flex-direction: column;
  align-self: center; /* alinea el bloque de texto con la imagen */
  text-align: left;
  width: 100%;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  font-family: 'Syne', sans-serif;
}

.highlight {
  color: #0f172a;
}

.subheading {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 40px;
  font-family: 'DM Sans', sans-serif; /* subtítulo en DM Sans */
  font-weight: 400;
}

.cta-button {
  display: block;
  background-color: #1e40af;
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background-color 0.3s ease;
  font-family: 'Syne', sans-serif;
  text-align: center;
  width: fit-content;
  max-width: 300px;
  margin: 0 auto; /* centrado con el subtítulo */
}

.cta-button:hover {
  background-color: #1d4ed8;
}

.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: flex-start;
  margin-top: 235px; /* ajustado para centrar entre título y subtítulo */
}

.car-image {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.badge {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1e40af;
  color: white;
  padding: 10px 25px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.5px;
}

/* Performance Badges */
.performance-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.5);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  animation: float 6s ease-in-out infinite;
  z-index: 10;
}

.performance-badge.top-left {
  top: 60px; /* Mover más abajo */
  left: 20px;
  animation-delay: 0s;
}

.performance-badge.top-right {
  top: 20px;
  right: 20px;
  animation-delay: 1.5s;
}

.performance-badge.bottom-left {
  bottom: 40px;
  left: 20px;
  animation-delay: 3s;
}

.performance-badge.bottom-right {
  bottom: -20px;
  right: 20px;
  animation-delay: 4.5s;
}

.metric-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.metric-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.metric-number {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1e40af;
  line-height: 1;
}

.metric-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1;
  margin-top: 1px;
}

/* Animación flotante sutil */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* SECCIÓN SERVICIOS */
.services-section {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.6) 25%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.6) 75%, rgba(255, 255, 255, 0.4) 100%);
  position: relative;
  margin-bottom: 80px;
}



.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem;
  color: #64748b;
  max-width: 1200px;
  margin: 0 auto;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  justify-items: center;
}

.service-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.5);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card.teaser-centered {
  grid-column: 1 / span 2;
  justify-self: center;
  margin-left: auto;
  margin-right: auto;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #1e40af);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
}

.service-icon {
  margin-bottom: 20px;
}

.icon-bg {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.service-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 15px;
  line-height: 1.3;
}

.service-card p {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li::before {
  content: '✓';
  color: #10b981;
  font-weight: bold;
  font-size: 1rem;
}

/* Badges de resultados */
.result-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-align: center;
  margin-top: 15px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Puntos de garantía */
.guarantee-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 25px 0;
}

.guarantee-point {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
}

.guarantee-icon {
  font-size: 1.1rem;
  min-width: 20px;
}

/* CTA de servicios */
.services-cta {
  text-align: center;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
  padding: 50px 40px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.services-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)');
  pointer-events: none;
  z-index: 1;
}

.services-cta h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.services-cta p {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: #e0f2fe;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.services-cta .cta-button {
  background-color: #10b981;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  position: relative;
  z-index: 2;
}

.services-cta .cta-button:hover {
  background-color: #059669;
}

/* SECCIÓN TESTIMONIOS */
.testimonials-section {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.6) 25%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.6) 75%, rgba(255, 255, 255, 0.4) 100%);
  position: relative;
}

.testimonial-card {
  /* background: rgba(255, 255, 255, 0.9); */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.5);
  border-radius: 20px;
  padding: 40px 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  /* border-color: rgba(59, 130, 246, 0.3); */
}

.testimonial-content {
  margin-bottom: 20px;
}

.testimonial-author {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 10px;
}

.testimonial-role {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: #64748b;
}

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}

.star-icon {
  color: #f59e0b;
  font-size: 1rem;
}

/* SECCIÓN PREGUNTAS FRECUENTES */
.faq-section {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.6) 25%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.6) 75%, rgba(255, 255, 255, 0.4) 100%);
  position: relative;
}

.accordion-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.5);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: max-height 0.3s ease, box-shadow 0.3s ease;
}

.accordion-item.active {
  max-height: 500px;
  box-shadow: 0 4px 24px rgba(16,185,129,0.07);
}

.accordion-header {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  color: #1e293b;
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #475569;
  padding: 0 1.5rem 1rem 1.5rem;
  display: none;
}

.accordion-item.active .accordion-body {
  display: block;
}

/* FORMULARIO DE CONTACTO */
.lead-content {
  background: linear-gradient(135deg, #f0fdfa 0%, #e0f7ef 100%);
  border-radius: 36px;
  box-shadow: 0 16px 64px rgba(16,185,129,0.18);
  padding: 4rem 4.5rem 3rem 4.5rem;
  max-width: 950px;
  margin: 4rem auto;
  border: 2.5px solid #10b98144;
  position: relative;
  animation: fadeInUp 0.7s cubic-bezier(.23,1.01,.32,1) both;
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
.lead-header h3 {
  font-size: 1.8rem;
  color: #10b981;
  font-family: 'Syne', sans-serif;
  margin-bottom: 0.7rem;
  text-align: center;
  letter-spacing: 0.01em;
}
.lead-header .lead-subtitle {
  font-size: 1.25rem;
  color: #444;
  margin-bottom: 2.2rem;
  text-align: center;
}
.lead-form {
  max-width: 750px !important; /* Aumentado de 600px a 750px con !important */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

/* Garantía de privacidad con mismo ancho que formulario en desktop */
.privacy-guarantee {
  max-width: 750px !important; /* Mismo ancho que el formulario */
}

/* ===============================
   CHATBOT DEMO INTERACTIVO
   =============================== */
.chatbot-demo {
  background: #ffffff !important;
  border: 1px solid #e5eaff !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

.msg {
  max-width: 85%;
  padding: 10px 12px;
  margin: 6px 0;
  border-radius: 12px;
  line-height: 1.4;
  font-size: 13px;
  word-wrap: anywhere;
}

.msg--bot {
  background: #ffffff;
  border: 1px solid #e8ecff;
  box-shadow: 0 2px 8px rgba(10,19,59,.04);
}

.msg--me {
  margin-left: auto;
  background: #dbe4ff;
  border: 1px solid #c9d6ff;
}

.chip:hover {
  box-shadow: 0 4px 12px rgba(10,19,59,.08);
  transform: translateY(-1px);
}

.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b6c4ff;
  animation: bounce 1.2s infinite ease-in-out;
}

.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }

@keyframes bounce {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-4px); }
}

/* ===============================
   WEBPAGE DEMO INTERACTIVA
   =============================== */
.webpage-demo {
  background: #ffffff !important;
  border: 1px solid #e5eaff !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

.nav-item {
  transition: all 0.2s ease;
}

.nav-item:hover {
  background: #e2e8f0 !important;
  color: #1e293b !important;
}

.nav-item.active {
  background: #2563eb !important;
  color: #fff !important;
}

.webpage-cta {
  transition: all 0.2s ease;
}

.webpage-cta:hover {
  background: #1d4ed8 !important;
  transform: translateY(-1px);
}

/* ===============================
   PANEL DEMO INTERACTIVO
   =============================== */
.panel-demo {
  background: #ffffff !important;
  border: 1px solid #e5eaff !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

.panel-nav-item {
  transition: all 0.2s ease;
}

.panel-nav-item:hover {
  background: rgba(255,255,255,0.15) !important;
}

.panel-nav-item.active {
  background: rgba(255,255,255,0.2) !important;
  color: #fff !important;
}

/* Estilos para el contenedor de teléfono */
.phone-container {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.phone-prefix {
  width: 100px !important; /* Aún más reducido para códigos de país */
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  font-size: 1.12rem;
  font-family: 'DM Sans', sans-serif;
  background: #f7fafc !important;
  color: #222 !important;
  transition: border 0.2s;
  box-shadow: 0 2px 8px rgba(16,185,129,0.04);
  flex-shrink: 0;
  font-weight: 600; /* Hacer el texto más bold */
}

.phone-prefix option {
  font-weight: 600;
  padding: 8px;
}

.phone-prefix:focus {
  border-color: #10b981;
  outline: none;
}

#telefono {
  flex: 1;
  min-width: 0;
}
.form-step {
  display: none;
}
.form-step.active {
  background: #fff !important;
  color: #222 !important;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(16,185,129,0.10);
  padding: 2.2rem 2.7rem 1.7rem 2.7rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s cubic-bezier(.23,1.01,.32,1) both;
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  font-size: 1.12rem;
  font-family: 'DM Sans', sans-serif;
  margin-top: 0.3rem;
  background: #f7fafc !important;
  color: #222 !important;
  transition: border 0.2s;
  box-shadow: 0 2px 8px rgba(16,185,129,0.04);
}
.form-group input:focus,
.form-group select:focus {
  border-color: #10b981;
  outline: none;
}
.radio-group.refined label {
  display: flex;
  align-items: center;
  background: #f7fafc !important;
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  color: #222 !important;
  cursor: pointer;
  transition: background 0.2s, border 0.2s, box-shadow 0.2s;
  border: 2px solid #e5e7eb;
  box-shadow: 0 2px 12px rgba(16,185,129,0.07);
  gap: 1.2rem;
}
.radio-group.refined label:hover {
  background: #e0f7ef;
  border-color: #10b981;
  box-shadow: 0 4px 16px rgba(16,185,129,0.13);
}
.radio-group.refined input[type="radio"] {
  accent-color: #10b981;
  margin-right: 0.7em;
  transform: scale(1.4);
  width: 22px;
  height: 22px;
}
.form-step h4 {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  color: #10b981;
  margin-bottom: 2.1rem;
  margin-top: 0.5rem;
  text-align: left;
}
.form-group label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: #222;
  margin-bottom: 0.7rem;
  display: block;
}
.form-actions.split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.2rem;
}
.form-actions.split .form-prev-btn {
  margin-left: 0;
  margin-right: auto;
}
.form-actions.split .form-next-btn,
.form-actions.split .form-submit-btn {
  margin-left: auto;
  margin-right: 0;
}
.form-next-btn, .form-prev-btn, .form-submit-btn {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 1rem 2.2rem;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  margin: 0.5rem 0.5rem 0 0;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(16,185,129,0.12);
}
.form-next-btn:hover, .form-prev-btn:hover, .form-submit-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  box-shadow: 0 4px 16px rgba(16,185,129,0.18);
}

/* Eliminar icono decorativo y asegurar visibilidad del formulario */
.lead-content::before {
  display: none !important;
  content: none !important;
}

/* Separación entre servicios y formulario */
.services-section .lead-magnet-section {
  margin-top: 64px;
}

/* Ajustes específicos para la sección de FAQs */
.faq-category-title {
  color: #222;
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  margin-top: 2.7rem;
  text-align: left;
  letter-spacing: 0.5px;
  padding-bottom: 0.7rem;
}

/* ========================================
   MEJORAS RESPONSIVE ADICIONALES PARA MÓVILES
   (Sin afectar el diseño de PC/portátil existente)
   ======================================== */

/* Smartphones pequeños (hasta 480px) */
@media (max-width: 480px) {
  body {
    font-size: 12px; /* Aún más pequeño */
    padding: 0;
    margin: 0;
  }
  
  /* Eliminar cualquier elemento que cause scroll horizontal */
  * {
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  .hero-section {
    padding: 1rem 0.5rem; /* Padding más compacto */
    margin-left: 0;
    margin-right: 0;
    margin-top: 70px !important; /* Ajustar para navbar fijo en móviles pequeños */
    width: 100%;
  }
  
  .logo {
    max-width: 120px !important; /* Logo más pequeño */
    height: auto;
    margin-bottom: 0.8rem !important;
  }
  
  .navbar {
    padding: 0.4rem 0.8rem; /* Navbar más compacto */
    width: 100%;
    box-sizing: border-box;
  }
  
  .nav-links {
    gap: 0.3rem;
  }
  
  .nav-link {
    font-size: 0.8rem; /* Enlaces más pequeños */
    padding: 0.25rem 0.5rem;
  }
  
  h1 {
    font-size: 1.2rem !important; /* Título principal más pequeño */
    line-height: 1.2;
    margin-bottom: 0.8rem !important;
  }
  
  h2 {
    font-size: 1rem !important;
  }
  
  h3 {
    font-size: 0.9rem !important;
  }
  
  p, .subheading {
    font-size: 0.75rem !important; /* Texto más pequeño */
    line-height: 1.3;
    margin-bottom: 0.6rem !important;
  }
  
  .cta-button, .btn {
    padding: 0.6rem 1rem !important; /* Botones más compactos */
    font-size: 0.75rem !important;
    margin: 0.6rem auto !important;
  }
  
  /* Imagen del hero aún más pequeña en móviles pequeños */
  .car-image {
    max-width: 70% !important;
    margin-top: 0.8rem !important;
  }
  
  /* Performance badges más compactos */
  .performance-badge {
    padding: 0.3rem 0.4rem !important;
    font-size: 0.6rem !important;
  }
  
  .metric-number {
    font-size: 0.7rem !important;
  }
  
  .metric-label {
    font-size: 0.5rem !important;
  }
  
  /* FAQs más compactas en móviles pequeños */
  .faq-container {
    max-width: 100vw;
    overflow-x: auto;
    padding: 0 1rem !important; /* Más padding para móviles pequeños */
  }
  
  .faq-section {
    padding-left: 1.5rem !important; /* Más margen en la sección completa */
    padding-right: 1.5rem !important;
  }
  
  .faq-card {
    min-width: 240px; /* Aún más pequeño */
    max-width: 280px;
    padding: 0.8rem 0.6rem !important; /* Más compacto */
  }
  
  .faq-card-title {
    font-size: 0.85rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .faq-card-answer {
    font-size: 0.7rem !important;
  }
  
  .faq-card-icon {
    width: 24px !important;
    height: 24px !important;
    margin-bottom: 0.4rem !important;
  }
  
  .faq-card-icon svg {
    width: 14px !important;
    height: 14px !important;
  }
  
  /* Botones del formulario súper pequeños para móviles pequeños */
  .form-next-btn, .form-prev-btn, .form-submit-btn {
    padding: 0.25rem 0.5rem !important; /* Un poquito más grandes que antes */
    font-size: 0.6rem !important; /* Fuente ligeramente más grande */
    margin: 0.1rem !important; /* Margen pequeño pero visible */
    border-radius: 5px !important; /* Bordes pequeños */
    font-weight: 500 !important; /* Menos bold */
  }
  
  /* Contenedores de botones más compactos */
  .form-section > div[style*="display:flex"],
  .form-section > div[style*="text-align:right"] {
    margin-top: 1rem !important; /* Menos margen superior */
  }
}

/* Tablets en orientación vertical (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .logo {
    max-width: 220px;
  }
  
  .navbar {
    padding: 0.75rem 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .btn {
    padding: 1rem 2rem;
  }
}

/* Optimizaciones para pantallas táctiles */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px; /* Tamaño mínimo recomendado para toques */
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Mejorar área de toque para enlaces */
  a {
    padding: 0.5rem;
  }
}

/* Orientación landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    padding: 1rem 0;
  }
  
  .navbar {
    padding: 0.5rem 1rem;
  }
  
  .logo {
    max-width: 150px;
  }
}

/* Mejoras específicas para iOS Safari */
@supports (-webkit-appearance: none) {
  input, button, select {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 8px;
  }
}

/* ========================================
   MENÚ HAMBURGUESA PARA MÓVILES
   (Solo visible en dispositivos móviles)
   ======================================== */

/* Ocultar menú hamburguesa en desktop */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #1e40af;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Animación del menú hamburguesa cuando está activo */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Estilos para móviles */
@media (max-width: 768px) {
  .navbar {
    position: fixed; /* Hacer navbar fijo */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002; /* Por encima del contenido */
    background: rgba(255, 255, 255, 0.95); /* Fondo semitransparente */
    backdrop-filter: blur(10px); /* Efecto blur */
    border-bottom: 1px solid rgba(226, 232, 240, 0.3); /* Borde sutil */
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem; /* Padding ajustado */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Sombra sutil */
    transition: all 0.3s ease; /* Transición suave */
  }
  
  /* Mostrar menú hamburguesa SOLO en móviles */
  .mobile-menu-toggle {
    display: flex;
    position: fixed; /* Hamburger fijo */
    top: 15px;
    left: 15px; /* Cambiar de right a left */
    z-index: 1003; /* Por encima de todo */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease; /* Transición suave */
  }
  
  .mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  /* Ocultar navegación por defecto en móviles */
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%; /* Cambiar de right a left */
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 80px;
    transition: left 0.3s ease; /* Cambiar transition de right a left */
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1); /* Cambiar sombra de izquierda */
  }
  
  /* Mostrar navegación cuando está activa */
  .nav-links.active {
    left: 0; /* Cambiar de right a left */
  }
  
  .nav-link {
    margin: 15px 0;
    font-size: 1.1rem;
    font-weight: 500;
    width: 80%;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
  }
  
  .nav-link:hover {
    background-color: rgba(30, 64, 175, 0.1);
  }
  
  /* Overlay para cerrar el menú */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Reducir animaciones para usuarios que lo prefieran */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mejoras para pantallas de alta resolución */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ========================================
   OPTIMIZACIONES ADICIONALES PARA MÓVILES
   ======================================== */

/* Mejorar legibilidad del texto en móviles */
@media (max-width: 768px) {
  /* IMPORTANTE: Solo sobrescribir estilos específicos para móvil */
  
  /* Ajustar line-height para mejor lectura en pantallas pequeñas */
  p:not(.existing-style), .subheading {
    line-height: 1.6 !important;
    font-size: 1rem !important;
  }
  
  /* Mejorar espaciado de botones en móviles */
  .cta-button:not(.hero-cta), .btn:not(.hero-btn) {
    width: 100%;
    max-width: 280px;
    margin: 1rem auto;
    display: block;
    text-align: center;
    box-sizing: border-box;
  }
  
  /* ELIMINAR sobrescritura genérica de img que afecta hero */
  /* img {
    max-width: 100%;
    height: auto;
  } */
  
  /* ELIMINAR sobrescritura de secciones principales */
  /* .hero-section, .services-section, .demo-section {
    padding: 2rem 1rem;
  } */
  
  /* ELIMINAR sobrescritura de contenedores principales */
  /* .container, .hero-content, .services-container {
    max-width: 100%;
    padding: 0 1rem;
  } */
}

/* Optimizaciones específicas para pantallas muy pequeñas */
@media (max-width: 360px) {
  body {
    font-size: 13px;
    padding: 0; /* Eliminar padding que causa columna lateral */
  }
  
  .hero-section {
    padding: 1.5rem 0.5rem;
    margin-left: 0; /* Asegurar que no hay márgenes laterales */
    margin-right: 0;
  }
  
  h1 {
    font-size: 1.3rem !important;
  }
  
  .cta-button {
    padding: 0.75rem 1.2rem;
    font-size: 0.85rem;
  }
  
  /* Eliminar cualquier overflow o width que cause columna lateral */
  * {
    max-width: 100vw;
    box-sizing: border-box;
  }
}

/* Mejoras para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Mostrar hamburger menu también en tablets */
  .mobile-menu-toggle {
    display: flex !important; /* Mostrar hamburger en tablets */
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1003;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 10px; /* Ligeramente más grande en tablets */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  /* Navbar fijo también en tablets */
  .navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  }
  
  /* Nav-links como menú lateral en tablets */
  .nav-links {
    position: fixed !important;
    top: 0;
    left: -100%;
    width: 60%; /* Más ancho en tablets */
    max-width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center;
    padding-top: 80px;
    transition: left 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-link {
    margin: 20px 0 !important;
    padding: 15px 20px !important;
    width: 80% !important;
    text-align: center !important;
    font-size: 1.1rem !important;
    border-radius: 8px;
    transition: background-color 0.3s ease;
  }
  
  .nav-link:hover {
    background-color: rgba(30, 64, 175, 0.1);
  }
  
  .hero-section {
    padding: 3rem 2rem;
    margin-top: 80px; /* Margen para navbar fijo */
    display: block !important; /* Cambiar a block para layout vertical */
    text-align: center;
  }
  
  .hero-content {
    max-width: 100% !important;
    margin-bottom: 2rem;
    text-align: center; /* Centrar contenido */
  }
  
  .hero-image {
    width: 100%;
    text-align: center;
    margin-top: 2rem; /* Espacio después del botón */
    order: 2; /* Asegurar que va después */
  }
  
  .logo {
    width: 200px;
    margin: 0 auto 1.5rem auto;
    display: block;
  }
  
  .text-block {
    text-align: center;
    margin: 0 auto;
  }
  
  /* Centrar botón de agendar llamada en tablets */
  .cta-button[href*="calendly"] {
    margin-left: 0 !important; /* Eliminar margin-left de 80px */
    margin: 0 auto !important; /* Centrar el botón */
  }
  
  /* Ajustar badges para que estén superpuestos sobre la imagen */
  .performance-badge.top-left {
    top: 10px !important; /* Más abajo para tocar la imagen */
    left: 5% !important; /* Más hacia afuera para sobresalir */
  }
  
  .performance-badge.top-right {
    top: 10px !important; /* Más abajo para tocar la imagen */
    right: 5% !important; /* Más hacia afuera para sobresalir */
  }
  
  .performance-badge.bottom-left {
    bottom: 80px !important; /* Más arriba para tocar la imagen */
    left: 5% !important; /* Más hacia afuera para sobresalir */
  }
  
  .performance-badge.bottom-right {
    bottom: 40px !important; /* Más arriba para estar sobre la imagen */
    right: 5% !important; /* Más hacia afuera para sobresalir */
  }

  /* Hacer imagen más pequeña en tablets */
  .car-image {
    max-width: 70% !important;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  
  /* Servicios en tablet: 2 columnas */
  .services-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* 2 columnas en tablet */
    gap: 2rem !important;
  }
  
  .service-card.teaser-centered {
    grid-column: 1 / span 2 !important; /* Ocupa 2 columnas */
    max-width: 80% !important;
    margin: 0 auto !important;
  }
  
  /* FAQs más grandes en tablets */
  .faq-card {
    min-width: 350px !important;
    max-width: 400px !important;
    padding: 1.8rem !important;
  }
  
  .faq-card-title {
    font-size: 1.1rem !important;
  }
  
  .faq-card-answer {
    font-size: 0.95rem !important;
  }
  
  /* Formulario más ancho en tablets */
  .lead-form {
    max-width: 700px !important;
    padding: 2rem 2.5rem !important;
  }
  
  /* Garantía de privacidad con mismo ancho que formulario */
  .privacy-guarantee {
    max-width: 700px !important;
  }
  
  .form-next-btn, .form-prev-btn, .form-submit-btn {
    padding: 0.7rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  /* Ajustar contenedor de teléfono en tablets */
  .phone-prefix {
    padding: 0.7rem 1.2rem !important;
    font-size: 1rem !important;
    width: 90px !important; /* Reducido para códigos de país */
  }
  
  /* Demo section mejor espaciada */
  .demo-section {
    padding: 3rem 2rem !important; /* Márgenes laterales */
  }
  
  .demo-section .container {
    max-width: 100%;
    padding: 0 1.5rem !important; /* Márgenes laterales adicionales */
  }
  
  .demo-gallery {
    display: flex;
    gap: 2.5rem !important;
    overflow-x: auto;
    padding: 1rem 0.5rem !important; /* Padding para scroll */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Smooth scroll en iOS */
  }
  
  .demo-card {
    min-width: 300px !important; /* Tamaño fijo para scroll */
    max-width: 320px !important;
    flex: 0 0 auto; /* No shrink para scroll horizontal */
    scroll-snap-align: start;
    padding: 1.5rem !important;
  }
  
  /* Chatbot demo en tablets */
  .chatbot-demo {
    min-width: 380px !important;
    max-width: 400px !important;
  }
  
  .webpage-demo {
    min-width: 380px !important;
    max-width: 400px !important;
  }
  
  .panel-demo {
    min-width: 380px !important;
    max-width: 400px !important;
  }
  
  .bot__body {
    height: 320px !important; /* Tamaño medio en tablets */
  }
  
  .webpage-content {
    height: 320px !important;
  }
  
  .panel-content {
    height: 320px !important;
  }
  
  /* Footer en tablet: layout mejorado */
  footer {
    padding: 0 2rem !important; /* Márgenes laterales */
  }
  
  footer > div {
    flex-direction: column !important; /* Columnas en tablets también */
    gap: 2.5rem !important;
    padding: 3rem 1.5rem !important;
    text-align: left !important; /* Todo alineado a la izquierda */
    max-width: 800px;
    margin: 0 auto;
  }
  
  footer > div > div {
    text-align: left !important;
    padding-left: 0 !important;
    min-width: auto !important;
  }
  
  /* Logo centrado pero el resto a la izquierda */
  footer > div > div:first-child {
    text-align: center !important;
    margin-bottom: 1rem;
  }
  
  footer > div > div:first-child div {
    text-align: center !important;
  }
  
  /* Servicios alineados a la izquierda */
  footer > div > div:nth-child(2) h3,
  footer > div > div:nth-child(3) h3 {
    text-align: left !important;
    margin-bottom: 1.5rem !important;
  }
  
  footer ul {
    text-align: left !important;
    padding-left: 0 !important;
  }
  
  footer li {
    text-align: left !important;
    padding: 0.3rem 0;
  }
  
  /* Información de contacto alineada a la izquierda */
  footer div[style*="display:flex"] {
    justify-content: flex-start !important;
    margin-bottom: 1rem !important;
  }
  
  footer img {
    height: 100px !important;
    margin: 0 auto 1.5rem auto !important;
  }
  
  /* Copyright centrado en tablets */
  footer div[style*="background:#2563eb"] {
    text-align: center !important;
    margin-left: -2rem !important; /* Compensar padding del footer */
    margin-right: -2rem !important; /* Compensar padding del footer */
    width: calc(100% + 4rem) !important; /* Ancho completo hasta los bordes */
  }
  
  .container {
    max-width: 95%;
    margin: 0 auto;
  }
}

/* ========================================
   CORRECCIONES ESPECÍFICAS PARA MÓVILES
   ======================================== */

@media (max-width: 768px) {
  /* Asegurar que no hay overflow horizontal */
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    font-size: 14px; /* Reducir tamaño base de fuente */
  }
  
  /* Corregir hero section específicamente para móviles */
  .hero-section {
    display: block !important;
    padding: 1.5rem 1rem !important; /* Reducir padding */
    margin-top: 80px !important; /* Aumentar para compensar navbar fijo */
    text-align: center;
  }
  
  .hero-content {
    max-width: 100% !important;
    margin-bottom: 1.5rem; /* Reducir espacio */
  }
  
  .hero-image {
    width: 100%;
    text-align: center;
    margin-top: 1rem; /* Menos espacio arriba */
  }
  
  .logo {
    width: 150px !important; /* Más pequeño */
    margin: 0 auto 1rem auto; /* Menos espacio */
    display: block;
  }
  
  .text-block {
    text-align: center;
    margin: 0 auto;
    padding: 0 0.5rem; /* Menos padding lateral */
  }
  
  /* Hacer la imagen del hero más pequeña y elegante */
  .car-image {
    max-width: 75% !important; /* Más pequeña */
    height: auto !important;
    border-radius: 12px; /* Añadir bordes redondeados */
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); /* Sombra sutil */
  }
  
  /* OPCIÓN 1: Imagen después del texto (por defecto) */
  .hero-image {
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
    order: 2; /* Después del contenido */
  }
  
  /* OPCIÓN 2: Imagen como fondo sutil (descomenta para probar) */
  /*
  .hero-section {
    background-image: url('images/autoescuela.png');
    background-size: 30%;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-opacity: 0.1;
  }
  
  .hero-image {
    display: none; // Ocultar imagen original
  }
  */
  
  /* OPCIÓN 3: Imagen flotante al lado derecho (descomenta para probar) */
  /*
  .hero-image {
    position: absolute;
    right: -20px;
    top: 20%;
    width: 40%;
    opacity: 0.8;
    z-index: -1;
  }
  
  .car-image {
    max-width: 100% !important;
    transform: rotate(-5deg);
  }
  */
  
  /* Reducir tamaños de títulos */
  h1 {
    font-size: 1.4rem !important; /* Más pequeño */
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }
  
  h2 {
    font-size: 1.2rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  h3 {
    font-size: 1.1rem !important;
    margin-bottom: 0.6rem !important;
  }
  
  p, .subheading {
    font-size: 0.85rem !important; /* Más pequeño */
    line-height: 1.4 !important;
    margin-bottom: 0.8rem !important;
  }
  
  /* Hacer botones más compactos */
  .cta-button {
    padding: 0.7rem 1.2rem !important; /* Más compacto */
    font-size: 0.85rem !important;
    margin: 0.8rem auto !important;
    max-width: 250px !important;
  }
  
  /* Arreglar servicios para móviles - más compactos y una columna */
  .services-container {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .services-section {
    margin-top: 3rem !important; /* Más espacio desde hero */
    padding-top: 2rem !important;
  }
  
  /* Reducir espacios en la sección de servicios */
  .section-header {
    margin-bottom: 1.5rem !important; /* Menos espacio después del título */
  }
  
  .section-header h2 {
    margin-bottom: 0.8rem !important; /* Menos espacio entre título y subtítulo */
  }
  
  .section-header .section-subtitle {
    margin-bottom: 1rem !important; /* Menos espacio entre subtítulo y tarjetas */
  }
  
  .services-grid {
    display: grid !important;
    grid-template-columns: 1fr !important; /* Una sola columna */
    gap: 1rem !important; /* Menos espacio entre tarjetas */
  }

  .service-card {
    margin: 0 !important; /* Sin márgenes adicionales */
    max-width: 100% !important;
    padding: 1.2rem !important; /* Más compacto */
    box-sizing: border-box !important;
  }
  
  .service-card.teaser-centered {
    grid-column: 1 !important; /* Solo ocupa una columna */
    max-width: 100% !important;
  }  .service-card h3 {
    font-size: 1rem !important;
  }
  
  .service-card p {
    font-size: 0.8rem !important;
  }
  
  /* Arreglar sección de contacto - más compacta */
  .contact-section, .footer-section {
    text-align: center !important;
    padding: 1.5rem 1rem !important; /* Menos padding */
  }
  
  /* Performance badges más pequeños */
  .performance-badge {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.7rem !important;
  }
  
  .metric-number {
    font-size: 0.9rem !important;
  }
  
  .metric-label {
    font-size: 0.6rem !important;
  }
  
  /* Asegurar que todo el contenido se mantiene dentro de la pantalla */
  .container, .section, .hero-content, .services-section, .demo-section, .contact-section {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  
  /* Añadir márgenes laterales a demo y FAQs */
  .demo-section .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .faq-section .container {
    padding-left: 1.5rem !important; /* Más margen lateral */
    padding-right: 1.5rem !important;
  }
  
  .faq-container {
    max-width: 100vw;
    overflow-x: auto;
    padding: 0 0.5rem !important; /* Más padding interno */
  }
  
  /* Demo cards para móviles */
  .demo-gallery {
    gap: 1rem !important;
    padding: 0 0.5rem !important;
  }
  
  .demo-card {
    min-width: 280px !important;
    max-width: 300px !important;
    padding: 1rem !important;
  }
  
  /* Chatbot demo responsive */
  .chatbot-demo {
    min-width: 300px !important;
    max-width: 320px !important;
  }
  
  .webpage-demo {
    min-width: 300px !important;
    max-width: 320px !important;
  }
  
  .panel-demo {
    min-width: 300px !important;
    max-width: 320px !important;
  }
  
  .bot__body {
    height: 250px !important; /* Más pequeño en móviles */
  }
  
  .webpage-content {
    height: 250px !important;
  }
  
  .panel-content {
    height: 250px !important;
  }
  
  .msg {
    font-size: 12px !important;
    padding: 8px 10px !important;
  }
  
  .chip {
    padding: 4px 8px !important;
    font-size: 10px !important;
  }
  
  /* Títulos de demo más pequeños */
  .demo-section h2 {
    font-size: 1.3rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  .demo-section p {
    font-size: 0.85rem !important;
  }
  
  /* Testimonios más compactos con más márgenes */
  .testimonials-section .container {
    padding-left: 2rem !important; /* Más margen lateral */
    padding-right: 2rem !important;
  }
  
  .testimonios-section .container {
    padding-left: 2rem !important; /* Más margen lateral */
    padding-right: 2rem !important;
  }

  .testimonios-section h2 {
    font-size: 1.3rem !important;
  }
  
  /* Formulario y garantía de privacidad más anchos en móviles */
  .lead-form {
    max-width: 98% !important; /* Aumentado de 95% a 98% */
    padding: 1.5rem 2rem !important; /* Ajustar padding */
  }
  
  .privacy-guarantee {
    max-width: 98% !important; /* Mismo ancho que el formulario */
    margin-bottom: 6rem !important; /* Más espacio hacia la siguiente sección */
  }
  
  /* Cajas de respuesta del formulario más pequeñas */
  .form-group input,
  .form-group select {
    padding: 0.6rem 0.9rem !important; /* Reducido de 0.85rem 1.1rem */
    font-size: 1rem !important; /* Reducido de 1.12rem */
  }
  
  /* Ajustar contenedor de teléfono en móviles - MANTENER EN LÍNEA */
  .phone-container {
    flex-direction: row !important; /* Cambiar de column a row */
    gap: 0.5rem !important; /* Reducir gap */
  }
  
  .phone-prefix {
    width: 80px !important; /* Más compacto en móviles */
    padding: 0.6rem 0.5rem !important; /* Menos padding */
    font-size: 0.9rem !important; /* Fuente más pequeña */
  }
  
  /* Reducir fuente del texto de garantía de privacidad */
  .privacy-guarantee {
    font-size: 0.9rem !important; /* Reducido de 1.08rem */
    padding: 1rem 1.5rem !important; /* También reducir padding */
  }
  
  /* Footer más compacto */
  footer {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Reorganizar footer para móviles */
  footer > div {
    flex-direction: column !important;
    gap: 2rem !important;
    padding: 2rem 1rem !important;
    text-align: left !important; /* Cambiar de center a left */
  }
  
  footer > div > div {
    min-width: auto !important;
    padding-left: 0 !important; /* Eliminar padding izquierdo excesivo */
    max-width: 100% !important;
    text-align: left !important; /* Añadir alineación izquierda */
  }
  
  /* Sección de servicios en footer */
  footer > div > div:nth-child(2) {
    padding-left: 0 !important; /* Eliminar el padding-left: 22.5rem */
  }
  
  /* Sección de contacto en footer */
  footer > div > div:nth-child(3) {
    padding-left: 0 !important; /* Eliminar el padding-left: 1.5rem */
  }
  
  footer h3 {
    font-size: 1rem !important;
    text-align: left !important; /* Cambiar de center a left */
  }
  
  footer img {
    height: 80px !important; /* Logo del footer más pequeño */
    margin: 0 0 1rem 0 !important; /* Alinear a la izquierda */
    display: block !important;
  }
  
  /* Copyright centrado en móviles */
  footer div[style*="background:#2563eb"] {
    text-align: center !important;
    margin-left: -1rem !important; /* Compensar padding del footer */
    margin-right: -1rem !important; /* Compensar padding del footer */
    width: calc(100% + 2rem) !important; /* Ancho completo hasta los bordes */
  }
  
  /* Alinear elementos del footer a la izquierda */
  footer ul {
    text-align: left !important; /* Cambiar de center a left */
    padding: 0 !important;
  }
  
  footer li {
    text-align: left !important; /* Cambiar de center a left */
  }
  
  /* Mantener información de contacto alineada a la izquierda */
  footer div[style*="display:flex"] {
    justify-content: flex-start !important; /* Cambiar de center a flex-start */
  }
  
  /* Alinear el primer bloque (logo) al centro pero el resto a la izquierda */
  footer > div > div:first-child {
    text-align: center !important; /* Solo el logo centrado */
  }
  
  footer > div > div:first-child div {
    text-align: center !important; /* Descripción del logo centrada */
  }
}

/* ===============================
   SISTEMA DE PESTAÑAS DEMOS
   =============================== */

.demo-tabs {
  margin-bottom: 2rem;
}

.tab-buttons {
  display: flex;
  background: #f8fafc;
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
}

.tab-btn {
  background: transparent;
  color: #64748b;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  white-space: nowrap;
}

.tab-btn.active {
  background: #2563eb !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.tab-btn:hover:not(.active) {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  transform: translateY(-1px);
}

.demo-content {
  display: flex;
  justify-content: center;
}

.demo-wrapper {
  width: 100%;
  max-width: 800px;
  position: relative;
  height: 650px;
}

.demo-panel {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.demo-panel.active {
  opacity: 1;
  pointer-events: auto;
}

/* Asegurar dimensiones uniformes para todas las tarjetas */
.demo-card {
  width: 700px !important;
  height: 650px !important;
  margin: 0 auto;
  max-width: 95vw;
}

/* Selector desplegable para móvil */
.mobile-tab-selector {
  margin: 0 auto;
}

#mobile-tab-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff;
  transition: all 0.3s ease;
}

#mobile-tab-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#mobile-tab-select:hover {
  border-color: #cbd5e1;
}

.mobile-tab-selector div {
  position: relative;
}

/* Estilos para scroll personalizado */
.webpage-content::-webkit-scrollbar,
.panel-content > div:last-child::-webkit-scrollbar {
  width: 6px;
}

.webpage-content::-webkit-scrollbar-track,
.panel-content > div:last-child::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.webpage-content::-webkit-scrollbar-thumb,
.panel-content > div:last-child::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.webpage-content::-webkit-scrollbar-thumb:hover,
.panel-content > div:last-child::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Hover effects para elementos interactivos */
.nav-item:hover {
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

.panel-nav-item:hover {
  transform: scale(1.05);
  transition: all 0.2s ease;
}

/* Mejoras para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
  /* Desactivar hover effects en dispositivos táctiles */
  .nav-item:hover,
  .panel-nav-item:hover {
    transform: none;
  }
  
  /* Mejorar área de toque para elementos interactivos */
  #mobile-tab-select {
    min-height: 50px;
    touch-action: manipulation;
    font-size: 16px; /* Evita zoom en iOS */
    padding: 16px 50px 16px 16px;
  }
  
  .panel-nav-item {
    min-height: 40px;
    touch-action: manipulation;
  }
  
  /* Evitar zoom accidental en doble toque */
  .demo-card {
    touch-action: pan-y;
  }
  
  /* Mejorar scrolling en táctil */
  .webpage-content,
  .panel-content > div:last-child {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  
  /* Indicador visual mejorado para selector móvil */
  .mobile-tab-selector div span {
    font-weight: 500;
    opacity: 0.8;
  }
}

/* Estilo adicional para el indicador del selector */
@media (max-width: 768px) {
  .mobile-tab-selector div {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 10px;
  }
  
  .mobile-tab-selector div:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  }
}

/* Corrección para textos cortados */
@media (max-width: 768px) {
  /* Asegurar que los títulos y descripciones sean visibles */
  .demo-card p,
  .demo-card div[style*="color:#64748b"],
  .demo-card div[style*="color:#374151"] {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 0.8rem !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: initial !important;
    display: block !important;
    visibility: visible !important;
  }
  
  /* Títulos principales siempre visibles */
  .demo-card div[style*="font-weight:600"][style*="color:#2563eb"] {
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 2 !important;
    font-size: 1.2rem !important;
  }
  
  /* Sección inferior de títulos y descripciones */
  .demo-card div[style*="padding:2rem"] {
    padding: 1.5rem 1rem !important;
    min-height: 80px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  /* Espacio adicional para el contenido descriptivo */
  .demo-card {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Ajustar altura del contenido interno para dar más espacio al texto */
  .bot__body, .webpage-content, .panel-content {
    flex: 1 !important;
    min-height: 300px !important;
  }
}

@media (max-width: 480px) {
  .demo-card p,
  .demo-card div[style*="color:#64748b"],
  .demo-card div[style*="color:#374151"] {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin-bottom: 0.7rem !important;
  }
  
  .demo-card div[style*="font-weight:600"][style*="color:#2563eb"] {
    font-size: 1.1rem !important;
  }
  
  .demo-card div[style*="padding:2rem"] {
    padding: 1.2rem 0.8rem !important;
    min-height: 70px !important;
  }
  
  .bot__body, .webpage-content, .panel-content {
    min-height: 280px !important;
  }
}

@media (max-width: 360px) {
  .demo-card p,
  .demo-card div[style*="color:#64748b"],
  .demo-card div[style*="color:#374151"] {
    font-size: 12px !important;
    line-height: 1.3 !important;
    margin-bottom: 0.6rem !important;
  }
  
  .demo-card div[style*="font-weight:600"][style*="color:#2563eb"] {
    font-size: 1rem !important;
  }
  
  .demo-card div[style*="padding:2rem"] {
    padding: 1rem 0.6rem !important;
    min-height: 60px !important;
  }
  
  .bot__body, .webpage-content, .panel-content {
    min-height: 260px !important;
  }
}

/* Responsive para pestañas */
@media (max-width: 1024px) {
  .demo-card {
    width: 85% !important;
    max-width: 650px !important;
    height: 600px !important;
  }
}

/* Tablets en modo vertical */
@media (max-width: 768px) {
  .demo-tabs {
    margin-bottom: 1.5rem !important;
    padding: 0 16px;
  }
  
  .tab-buttons {
    display: none !important;
  }
  
  .mobile-tab-selector {
    display: block !important;
    max-width: calc(100vw - 32px) !important;
    margin: 0 16px !important;
  }
  
  .demo-wrapper {
    height: auto;
    min-height: 550px;
    max-width: calc(100vw - 32px);
    padding: 0;
    margin: 0 16px;
  }
  
  .demo-panel {
    position: relative;
    height: auto;
    min-height: 550px;
  }
  
  .demo-panel:not(.active) {
    display: none;
  }
  
  /* Tarjetas que ocupan todo el ancho disponible */
  .demo-card {
    width: 100% !important;
    height: 550px !important;
    max-width: none !important;
    margin: 0;
    border-radius: 12px;
    box-sizing: border-box;
  }
  
  /* Ajustar contenido interno en tablet */
  .bot__body, .webpage-content, .panel-content {
    height: 350px !important;
    overflow-y: auto;
    font-size: 14px;
  }
  
  /* Navegación del panel adaptada */
  .panel-nav {
    padding: 6px;
    gap: 4px;
  }
  
  .panel-nav-item {
    padding: 8px 10px;
    font-size: 11px;
  }
  
  /* Títulos más pequeños pero visibles */
  .demo-card div[style*="font-size:1.3rem"] {
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.8rem !important;
    color: #2563eb !important;
    font-weight: 600 !important;
  }
  
  /* Descripción visible */
  .demo-card > div:last-child {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #64748b !important;
    margin-bottom: 1rem !important;
  }
}

/* Móviles grandes */
@media (max-width: 480px) {
  .demo-tabs {
    margin-bottom: 1rem !important;
    padding: 0 12px;
  }
  
  .mobile-tab-selector {
    max-width: calc(100vw - 24px) !important;
    margin: 0 12px !important;
  }
  
  .demo-wrapper {
    min-height: 500px;
    max-width: calc(100vw - 24px);
    margin: 0 12px;
  }
  
  .demo-card {
    height: 500px !important;
    border-radius: 10px;
    min-height: 500px;
  }
  
  /* Contenido más compacto en móvil */
  .bot__body, .webpage-content, .panel-content {
    height: 300px !important;
    font-size: 13px;
    padding: 8px;
  }
  
  /* Navegación ultra compacta en móvil */
  .panel-nav {
    padding: 4px;
    gap: 3px;
    flex-wrap: wrap;
  }
  
  .panel-nav-item {
    padding: 6px 8px;
    font-size: 10px;
    min-width: 60px;
  }
  
  /* Títulos visibles en móvil */
  .demo-card div[style*="font-size:1.3rem"] {
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.7rem !important;
    color: #2563eb !important;
    font-weight: 600 !important;
  }
  
  /* Descripción visible en móvil */
  .demo-card > div:last-child {
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #64748b !important;
    margin-bottom: 0.8rem !important;
  }
  
  /* Scrollbar más delgado en móvil */
  .webpage-content::-webkit-scrollbar,
  .panel-content > div:last-child::-webkit-scrollbar {
    width: 3px;
  }
}

/* Móviles pequeños */
@media (max-width: 360px) {
  .demo-tabs {
    padding: 0 8px;
  }
  
  .mobile-tab-selector {
    max-width: calc(100vw - 16px) !important;
    margin: 0 8px !important;
  }
  
  .demo-wrapper {
    max-width: calc(100vw - 16px);
    margin: 0 8px;
    min-height: 460px;
  }
  
  .demo-card {
    height: 460px !important;
    border-radius: 8px;
    min-height: 460px;
  }
  
  .bot__body, .webpage-content, .panel-content {
    height: 260px !important;
    font-size: 12px;
    padding: 6px;
  }
  
  .panel-nav-item {
    padding: 4px 6px;
    font-size: 9px;
    min-width: 50px;
  }
  
  /* Títulos visibles en móviles pequeños */
  .demo-card div[style*="font-size:1.3rem"] {
    font-size: 1rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.6rem !important;
    color: #2563eb !important;
    font-weight: 600 !important;
  }
  
  /* Descripción visible en móviles pequeños */
  .demo-card > div:last-child {
    font-size: 12px !important;
    line-height: 1.3 !important;
    color: #64748b !important;
    margin-bottom: 0.6rem !important;
  }
}