/**
 * RESPONSIVE OPTIMIZED CSS - Bajaj Carrera Motos
 * Sistema de diseño responsive unificado y optimizado
 * Breakpoints consistentes y mobile-first approach
 */

/* ===== VARIABLES RESPONSIVE ===== */
:root {
  /* Breakpoints estandarizados */
  --bp-xs: 320px;   /* Móviles pequeños */
  --bp-sm: 480px;   /* Móviles */
  --bp-md: 768px;   /* Tablets */
  --bp-lg: 1024px;  /* Desktop pequeño */
  --bp-xl: 1200px;  /* Desktop */
  --bp-xxl: 1440px; /* Desktop grande */
  
  /* Espaciado responsive */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Tipografía fluida */
  --font-size-xs: clamp(0.75rem, 2vw, 0.875rem);
  --font-size-sm: clamp(0.875rem, 2.5vw, 1rem);
  --font-size-base: clamp(1rem, 3vw, 1.125rem);
  --font-size-lg: clamp(1.125rem, 3.5vw, 1.25rem);
  --font-size-xl: clamp(1.25rem, 4vw, 1.5rem);
  --font-size-xxl: clamp(1.5rem, 5vw, 2rem);
  --font-size-hero: clamp(2rem, 6vw, 3.5rem);
  
  /* Contenedores responsive */
  --container-xs: 100%;
  --container-sm: 100%;
  --container-md: 95%;
  --container-lg: 90%;
  --container-xl: 85%;
  --container-max: 1600px;
}

/* ===== BASE RESPONSIVE ===== */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-size: var(--font-size-base);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== NAVEGACIÓN RESPONSIVE CORREGIDA ===== */

/* Navegación base - mobile first approach */
.navbar-pc {
  min-height: 70px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0.5rem 1rem;
  max-width: 100vw;
  margin: 0 auto;
  position: relative;
}

.navbar-brand {
  flex-shrink: 0;
  z-index: 1001;
  order: 1;
}

.logo-img {
  height: 40px !important;
  max-width: 160px !important;
  width: auto !important;
  transition: all 0.3s ease;
}

/* ===== MENÚ DESKTOP - OCULTO POR DEFECTO (MOBILE FIRST) ===== */
.navbar-inner ul.navbar {
  display: none !important;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 1.5rem;
  order: 2;
}

.navbar-inner ul.navbar > li {
  position: relative;
}

.navbar-inner ul.navbar > li > a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  white-space: nowrap;
}

.navbar-inner ul.navbar > li > a:hover,
.navbar-inner ul.navbar > li > a:focus {
  color: #e02b20;
  background: rgba(224, 43, 32, 0.1);
}

/* Submenús desktop */
.navbar-inner ul.navbar ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 999;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar-inner ul.navbar li:hover > ul,
.navbar-inner ul.navbar li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-inner ul.navbar ul li a {
  padding: 0.75rem 1rem;
  color: #222;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
}

.navbar-inner ul.navbar ul li a:hover {
  background: #e02b20;
  color: white;
}

/* ===== MENÚ MÓVIL - VISIBLE POR DEFECTO ===== */
.menu-movil {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  order: 3;
  margin-left: auto;
  position: relative;
  z-index: 1002;
  -webkit-tap-highlight-color: transparent; /* Eliminar highlight en dispositivos táctiles */
  touch-action: manipulation; /* Mejorar respuesta táctil */
}

.menu-movil:hover {
  background: rgba(224, 43, 32, 0.1);
}

.menu-movil:focus {
  outline: 2px solid #e02b20;
  outline-offset: 2px;
}

/* Hamburger animado */
.hamburger {
  width: 24px;
  height: 3px;
  background: #222;
  border-radius: 2px;
  position: relative;
  transition: all 0.3s ease;
  pointer-events: none; /* Evitar problemas de eventos */
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 3px;
  background: #222;
  border-radius: 2px;
  transition: all 0.3s ease;
  pointer-events: none; /* Evitar problemas de eventos */
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Animación del hamburger cuando está activo */
.menu-movil[aria-expanded="true"] .hamburger {
  background: transparent;
}

.menu-movil[aria-expanded="true"] .hamburger::before {
  transform: translateY(8px) rotate(45deg);
  background: #e02b20;
}

.menu-movil[aria-expanded="true"] .hamburger::after {
  transform: translateY(-8px) rotate(-45deg);
  background: #e02b20;
}

/* ===== MENÚ MÓVIL DESPLEGABLE ===== */
.navbar-movil {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  width: 100%; /* Asegurar ancho completo */
  max-width: 100vw; /* Limitar al ancho visible */
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 999;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none; /* Asegurar que no se pueda interactuar cuando está oculto */
  will-change: transform, opacity, visibility; /* Optimizar rendimiento de animación */
}

.navbar-movil.show {
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  width: 100% !important; /* Asegurar ancho completo cuando está visible */
  pointer-events: auto !important; /* Permitir interacción cuando está visible */
}

/* Asegurarse de que el menú móvil sea visible cuando se muestra */
.navbar-movil[style*="display: block"] {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  width: 100%; /* Asegurar ancho completo */
  pointer-events: auto; /* Permitir interacción */
}

.navbar-movil ul {
  list-style: none;
  margin: 0;
  padding: 1rem;
}

.navbar-movil li {
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar-movil li:last-child {
  border-bottom: none;
}

.navbar-movil a {
  display: block;
  padding: 1rem;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.navbar-movil a:hover,
.navbar-movil a:focus {
  background-color: rgba(224, 43, 32, 0.05);
}

.navbar-movil .submenu {
  background-color: rgba(0,0,0,0.02);
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: 0;
}

/* Posicionamiento del botón de expansión */
.submenu-toggle {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.submenu-toggle:hover,
.submenu-toggle:focus {
  background-color: rgba(224, 43, 32, 0.05);
}

.submenu-arrow {
  font-size: 12px;
  color: #666;
  transition: transform 0.3s ease;
}

/* Animación para la flecha del submenú */
.navbar-movil a[aria-expanded="true"] + .submenu-toggle .submenu-arrow {
  transform: rotate(180deg);
}

/* Estilos para submenús abiertos */
.navbar-movil li[aria-expanded="true"] > .submenu {
  max-height: 500px; /* Valor alto para permitir contenido variable */
  opacity: 1;
}

/* ===== BREAKPOINTS RESPONSIVE ESPECÍFICOS PARA MENÚ MÓVIL ===== */

/* Móviles pequeños (hasta 479px) */
@media (max-width: 479px) {
  .navbar-movil {
    top: 70px; /* Altura del navbar en móviles pequeños */
    padding: 0;
    max-height: calc(100vh - 70px);
  }
  
  .navbar-movil.show {
    width: 100% !important;
  }
  
  .navbar-inner {
    padding: 0.5rem 0.75rem;
  }
  
  .logo-img {
    height: 35px !important;
    max-width: 140px !important;
  }
  
  .menu-movil {
    width: 40px;
    height: 40px;
  }
  
  .hamburger {
    width: 20px;
  }
  
  .hamburger::before,
  .hamburger::after {
    width: 20px;
  }
  
  .navbar-movil a {
    padding: 0.875rem;
    font-size: 0.95rem;
  }
}

/* Móviles (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
  .navbar-movil {
    top: 70px; /* Altura del navbar en móviles */
    padding: 0;
    max-height: calc(100vh - 70px);
  }
  
  .navbar-movil.show {
    width: 100% !important;
  }
  
  .navbar-inner {
    padding: 0.5rem 1rem;
  }
  
  .logo-img {
    height: 38px !important;
    max-width: 150px !important;
  }
  
  .navbar-movil a {
    padding: 1rem;
    font-size: 1rem;
  }
}

/* Tablets (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .navbar-movil {
    top: 70px; /* Altura del navbar en tablets */
    padding: 0;
    max-height: calc(100vh - 70px);
  }
  
  .navbar-movil.show {
    width: 100% !important;
  }
  
  .navbar-inner {
    padding: 0.5rem 1.5rem;
  }
  
  .logo-img {
    height: 42px !important;
    max-width: 170px !important;
  }
  
  /* En tablets, seguimos mostrando el menú móvil */
  .navbar-inner ul.navbar {
    display: none !important;
  }
  
  .menu-movil {
    display: flex !important;
  }
}

/* Desktop (1024px+) - Ocultar menú móvil */
@media (min-width: 1024px) {
  .navbar-movil {
    display: none !important;
  }
  
  .navbar-inner {
    padding: 0.5rem 2.5rem;
  }
  
  .logo-img {
    height: 50px !important;
    max-width: 200px !important;
  }
  
  /* Mostrar navegación desktop */
  .navbar-inner ul.navbar {
    display: flex !important;
    gap: 2rem;
  }
  
  .navbar-inner ul.navbar > li > a {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }
  
  .menu-movil {
    display: none !important;
  }
}

/* ===== OVERRIDE DE ESTILOS CONFLICTIVOS ===== */

/* Forzar la visibilidad correcta del menú según breakpoint */
@media (max-width: 1023px) {
  .navbar-inner ul.navbar {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  
  .menu-movil {
    display: flex !important;
  }
}

@media (min-width: 1024px) {
  .navbar-inner ul.navbar {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .menu-movil {
    display: none !important;
  }
}

/* Prevenir conflictos con estilos inline */
.navbar-inner ul.navbar[style*="display: flex"] {
  display: none !important;
}

@media (min-width: 1024px) {
  .navbar-inner ul.navbar[style*="display: flex"] {
    display: flex !important;
  }
}

/* ===== ACCESIBILIDAD Y UX ===== */

/* Focus states mejorados */
.navbar-inner ul.navbar a:focus-visible,
.navbar-movil a:focus-visible {
  outline: 2px solid #e02b20;
  outline-offset: 2px;
}

/* Prevenir scroll del body cuando el menú móvil está abierto */
body.menu-open {
  overflow: hidden;
}

/* Animaciones suaves para cambios de breakpoint */
.navbar-inner,
.navbar-inner ul.navbar,
.menu-movil {
  transition: all 0.3s ease;
}

/* ===== HERO SECTION RESPONSIVE ===== */
.hero {
  padding-top: 80px;
  min-height: 50vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: var(--font-size-hero);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #00204A;
}

.hero p {
  font-size: var(--font-size-lg);
  margin-bottom: 2rem;
  color: #666;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2rem;
  background: #e02b20;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(224, 43, 32, 0.3);
}

/* ===== PRODUCTS SECTION RESPONSIVE ===== */
.tabs-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 2rem;
  background: #f8f9fa;
  padding: 0.5rem;
  border-radius: 12px;
}

.tab-item {
  flex: 1;
  min-width: 120px;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.tab-item.active {
  background: #e02b20;
  color: white;
  box-shadow: 0 2px 8px rgba(224, 43, 32, 0.3);
}

.tab-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* ===== GRID SYSTEMS ===== */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Móviles (480px+) */
@media (min-width: 480px) {
  .logo-img {
    height: 38px !important;
    max-width: 150px !important;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .tabs-wrapper {
    gap: 0.5rem;
  }
  
  .tab-item {
    min-width: 140px;
  }
}

/* Tablets (768px+) */
@media (min-width: 768px) {
  .navbar-pc {
    min-height: 70px;
  }
  
  .navbar-inner {
    padding: 0.75rem 1.75rem;
    min-height: 70px;
  }
  
  .logo-img {
    height: 42px !important;
    max-width: 170px !important;
  }
  
  .hero {
    padding-top: 90px;
    min-height: 60vh;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
  
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .tabs-wrapper {
    flex-wrap: nowrap;
  }
}

/* Desktop pequeño (1024px+) */
@media (min-width: 1024px) {
  .navbar-pc {
    min-height: 80px;
  }
  
  .navbar-inner {
    padding: 1rem 3rem;
    min-height: 80px;
  }
  
  .navbar-brand {
    margin-right: 3rem;
  }
  
  .logo-img {
    height: 50px !important;
    max-width: 200px !important;
  }
  
  /* Mostrar navegación desktop */
  .navbar-inner ul.navbar {
    display: flex !important;
    align-items: center;
    margin-left: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
  }
  
  .navbar-inner ul.navbar li a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
  }
  
  .navbar-inner ul.navbar li a:hover {
    background: rgba(224, 43, 32, 0.1);
    color: #e02b20;
  }
  
  /* Ocultar menú móvil */
  .menu-movil {
    display: none !important;
  }
  
  .hero {
    padding-top: 100px;
    min-height: 70vh;
    text-align: left;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Desktop (1200px+) */
@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

/* Desktop grande (1440px+) */
@media (min-width: 1440px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

/* ===== UTILIDADES RESPONSIVE ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Visibilidad responsive */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

@media (max-width: 479px) {
  .d-none-xs { display: none !important; }
}

@media (min-width: 480px) and (max-width: 767px) {
  .d-none-sm { display: none !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .d-none-md { display: none !important; }
}

@media (min-width: 1024px) {
  .d-none-lg { display: none !important; }
}

/* ===== ACCESIBILIDAD Y UX ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mejoras para pantallas táctiles */
@media (hover: none) and (pointer: coarse) {
  .feature-item:hover,
  .product-card:hover,
  .card:hover {
    transform: none;
  }
  
  .btn-ver-mas:hover,
  .hero-cta:hover,
  .card-btn:hover {
    transform: none;
  }
}

/* ===== BANNER RESPONSIVE ===== */
.banner-container {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

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

/* ===== FEATURES SECTION RESPONSIVE PROFESIONAL ===== */
.features-section {
  padding: 3rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e02b20 50%, transparent 100%);
}

.features-section .section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.features-section .section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.features-section .section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #00204A;
  margin-bottom: 1rem;
  position: relative;
}

.features-section .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #e02b20 0%, #00204A 100%);
  border-radius: 2px;
}

.features-section .section-subtitle {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.features-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  margin: 2rem auto 0;
  max-width: 1200px;
  flex-wrap: wrap;
}

.feature-item {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  border: 1px solid rgba(0, 32, 74, 0.05);
  cursor: pointer;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(224, 43, 32, 0.05), transparent);
  transition: left 0.6s ease;
}

.feature-item:hover::before {
  left: 100%;
}

.feature-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: #e02b20;
}

.feature-item:focus {
  outline: 2px solid #e02b20;
  outline-offset: 2px;
}

.feature-icon {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(224, 43, 32, 0.1) 0%, rgba(0, 32, 74, 0.1) 100%);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  background: linear-gradient(135deg, rgba(224, 43, 32, 0.2) 0%, rgba(0, 32, 74, 0.2) 100%);
  transform: scale(1.1);
}

.feature-icon svg {
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon svg {
  transform: scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(224, 43, 32, 0.3));
}

.feature-content {
  position: relative;
  z-index: 1;
}

.feature-content h2 {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin: 0;
  color: #00204A;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.feature-item:hover .feature-content h2 {
  color: #e02b20;
}

/* Animaciones profesionales para fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.feature-item.fade-in:nth-child(1) {
  transition-delay: 0.1s;
}

.feature-item.fade-in:nth-child(2) {
  transition-delay: 0.2s;
}

.feature-item.fade-in:nth-child(3) {
  transition-delay: 0.3s;
}

/* Responsive para móviles pequeños */
@media (max-width: 479px) {
  .features-section {
    padding: 2.5rem 0;
  }
  
  .features-section .section-container {
    padding: 0 1rem;
  }
  
  .features-grid {
    gap: 1.5rem;
    margin: 2rem auto 0;
  }
  
  .feature-item {
    padding: 2rem 1.5rem;
  }
  
  .feature-icon {
    width: 70px;
    height: 70px;
  }
  
  .feature-content h2 {
    font-size: 1.1rem;
  }
}

/* ===== SERVICIOS RESPONSIVE ===== */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 1rem;
  color: #00204A;
}

.section-description {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  text-align: center;
  margin-bottom: 2rem;
  color: #666;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.card,
.location-card,
.info-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.card:hover,
.location-card:hover,
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-title,
.location-city,
.info-title {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin-bottom: 1rem;
  color: #00204A;
}

.card-text {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #666;
}

.card-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #e02b20;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-btn:hover {
  background: #c02419;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(224, 43, 32, 0.3);
}

/* ===== FAQ RESPONSIVE ===== */
.faq-container {
  max-width: 100%;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: 1rem;
  background: #00204A;
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 600;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: #e02b20;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: white;
}

.faq-answer > div {
  padding: 1rem;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  line-height: 1.6;
}

/* ===== FOOTER RESPONSIVE ===== */
.custom-footer {
  background: #00204A;
  color: white;
  padding: 2rem 0 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-logo {
  max-width: 150px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-title {
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.custom-footer-bottom {
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1.5rem;
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  color: rgba(255, 255, 255, 0.7);
}

/* ===== BREAKPOINTS ADICIONALES PARA FEATURES Y FOOTER ===== */

@media (min-width: 480px) {
  .features-section {
    padding: 3.5rem 0;
  }
  
  .features-section .section-container {
    padding: 0 1.5rem;
  }
  
  .features-grid {
    gap: 1.5rem;
    margin: 2.5rem auto 0;
  }
  
  .feature-item {
    min-width: 260px;
    max-width: 320px;
    padding: 2rem 1.5rem;
  }
  
  .banner-container {
    margin: 0 auto;
  }
  
  .banner-container img {
    width: 100%;
    height: auto;
  }
}

@media (min-width: 768px) {
  .features-section {
    padding: 4rem 0;
  }
  
  .features-section .section-container {
    padding: 0 2rem;
  }
  
  .features-grid {
    gap: 2rem;
    margin: 3rem auto 0;
    justify-content: center;
  }
  
  .feature-item {
    min-width: 300px;
    max-width: 350px;
    padding: 2.5rem 2rem;
  }
  
  .feature-icon {
    width: 90px;
    height: 90px;
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .banner-container {
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {
  .features-section {
    padding: 5rem 0;
  }
  
  .features-section .section-container {
    padding: 0 3rem;
  }
  
  .features-grid {
    gap: 2.5rem;
    margin: 3.5rem auto 0;
    max-width: 1200px;
  }
  
  .feature-item {
    min-width: 320px;
    max-width: 380px;
    padding: 3rem 2.5rem;
  }
  
  .feature-icon {
    width: 100px;
    height: 100px;
  }
  
  .footer-container {
    grid-template-columns: repeat(4, 1fr);
    padding: 0 3rem;
  }
}

/* ===== OPTIMIZACIÓN DE ANCHO COMPLETO DE PANTALLA ===== */

/* Contenedores de ancho completo para aprovechar toda la pantalla */
.full-width-container {
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Contenedores optimizados por breakpoint */
.container-responsive {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-xs);
}

.section-container-full {
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  padding: 0 var(--spacing-xs);
}

/* Sobrescribir contenedores existentes para usar más ancho */
.section-container {
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 auto !important;
  padding: 0 var(--spacing-xs) !important;
}

.container {
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 auto !important;
  padding: 0 var(--spacing-xs) !important;
}

/* Banner y elementos de ancho completo */
.banner-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.banner-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Grids que aprovechan el ancho completo */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  width: 100%;
  padding: 0;
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  width: 100%;
  padding: 0;
  margin: 0;
}

/* ===== BREAKPOINTS RESPONSIVE PARA ANCHO COMPLETO ===== */

/* Móviles pequeños (320px - 479px) */
@media (max-width: 479px) {
  .section-container,
  .container,
  .container-responsive,
  .section-container-full {
    width: 100% !important;
    padding: 0 var(--spacing-xs) !important;
    margin: 0 auto !important;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    padding: 0 var(--spacing-xs);
  }
  
  .features-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0 var(--spacing-xs);
    margin: 2rem auto 0;
  }
  
  .feature-item {
    min-width: 100%;
    max-width: 100%;
    padding: 2rem 1.5rem;
  }
  
  /* Navbar usa ancho completo */
  .navbar-inner {
    width: 100% !important;
    padding: 0 var(--spacing-xs) !important;
    max-width: 100vw !important;
  }
}

/* Móviles (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
  .section-container,
  .container,
  .container-responsive,
  .section-container-full {
    width: 100% !important;
    padding: 0 var(--spacing-sm) !important;
    margin: 0 auto !important;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    padding: 0 var(--spacing-sm);
  }
  
  .features-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 0 var(--spacing-sm);
    margin: 2.5rem auto 0;
  }
  
  .feature-item {
    min-width: 260px;
    max-width: 300px;
    flex: 0 1 auto;
  }
  
  .navbar-inner {
    width: 100% !important;
    padding: 0 var(--spacing-sm) !important;
    max-width: 100vw !important;
  }
}

/* Tablets (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .section-container,
  .container,
  .container-responsive,
  .section-container-full {
    width: 100% !important;
    padding: 0 var(--spacing-md) !important;
    margin: 0 auto !important;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
    padding: 0 var(--spacing-md);
  }
  
  .features-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 0 var(--spacing-md);
    margin: 3rem auto 0;
  }
  
  .feature-item {
    min-width: 300px;
    max-width: 350px;
    flex: 0 1 auto;
  }
  
  .navbar-inner {
    width: 100% !important;
    padding: 0 var(--spacing-md) !important;
    max-width: 100vw !important;
  }
}

/* Desktop pequeño (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
  .section-container,
  .container,
  .container-responsive,
  .section-container-full {
    width: 98% !important;
    max-width: 100vw !important;
    padding: 0 var(--spacing-md) !important;
    margin: 0 auto !important;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-md);
  }
  
  .features-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    padding: 0 var(--spacing-md);
    margin: 3.5rem auto 0;
    max-width: 1200px;
  }
  
  .feature-item {
    min-width: 320px;
    max-width: 380px;
    flex: 0 1 auto;
  }
  
  .navbar-inner {
    width: 98% !important;
    padding: 0 var(--spacing-md) !important;
    max-width: 100vw !important;
  }
}

/* Desktop (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
  .section-container,
  .container,
  .container-responsive,
  .section-container-full {
    width: 96% !important;
    max-width: 100vw !important;
    padding: 0 var(--spacing-lg) !important;
    margin: 0 auto !important;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-lg);
  }
  
  .features-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    padding: 0 var(--spacing-lg);
    margin: 3.5rem auto 0;
    max-width: 1300px;
  }
  
  .feature-item {
    min-width: 350px;
    max-width: 400px;
    flex: 0 1 auto;
  }
  
  .navbar-inner {
    width: 96% !important;
    padding: 0 var(--spacing-lg) !important;
    max-width: 100vw !important;
  }
}

/* Desktop grande (1440px+) */
@media (min-width: 1440px) {
  .section-container,
  .container,
  .container-responsive,
  .section-container-full {
    width: 94% !important;
    max-width: 100vw !important;
    padding: 0 var(--spacing-xl) !important;
    margin: 0 auto !important;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
    padding: 0 var(--spacing-xl);
  }
  
  .features-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    padding: 0 var(--spacing-xl);
    margin: 4rem auto 0;
    max-width: 1400px;
  }
  
  .feature-item {
    min-width: 380px;
    max-width: 420px;
    flex: 0 1 auto;
  }
  
  .navbar-inner {
    width: 94% !important;
    padding: 0 var(--spacing-xl) !important;
    max-width: 100vw !important;
  }
}

/* ===== ELEMENTOS ESPECÍFICOS DE ANCHO COMPLETO ===== */

/* Hero section de ancho completo */
.hero {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 80px var(--spacing-md) var(--spacing-xl) var(--spacing-md) !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

/* Secciones de ancho completo */
.features-section,
.products-section,
#servicios,
#ubicaciones,
#horarios-pagos,
#preguntas-frecuentes {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

/* Footer de ancho completo */
.custom-footer {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

.footer-container {
  width: 100% !important;
  max-width: 100vw !important;
  padding: 0 var(--spacing-md) !important;
  margin: 0 auto !important;
}

/* ===== OVERRIDE DE ESTILOS RESTRICTIVOS ===== */

/* Eliminar limitaciones de ancho en elementos críticos */
body, html {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

main {
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Asegurar que las imágenes no se desborden */
img {
  max-width: 100% !important;
  height: auto !important;
}

/* ===== UTILIDADES DE ANCHO COMPLETO ===== */

.w-100 {
  width: 100% !important;
}

.w-100vw {
  width: 100vw !important;
}

.max-w-100 {
  max-width: 100% !important;
}

.max-w-100vw {
  max-width: 100vw !important;
}

.no-padding {
  padding: 0 !important;
}

.no-margin {
  margin: 0 !important;
}

.full-width {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

/* ===== AJUSTES CRÍTICOS PARA MENÚ RESPONSIVE ===== */

/* Cuando el menú móvil está abierto, ocultar siempre el menú desktop */
body.menu-open .navbar-inner ul.navbar {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important; /* Prevenir interacción con el menú oculto */
}

/* Regla más específica para el menú desktop */
@media (max-width: 1023px) {
  .navbar-inner .navbar {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Forzar visibilidad del menú móvil cuando tiene la clase show */
.navbar-movil.show {
  height: auto !important; /* Altura automática según contenido */
  min-height: 200px; /* Altura mínima para asegurar visibilidad */
  overflow-y: auto !important; /* Permitir scroll si el contenido es muy largo */
  -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
}

/* Clase para prevenir scroll cuando el menú está abierto */
body.menu-open {
  overflow: hidden;
}

/* Asegurar que el menú desktop se oculte en móviles y tablets */
@media (max-width: 1023px) {
  .navbar-inner ul.navbar {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  
  .menu-movil {
    display: flex !important;
  }
}

/* Asegurar que el menú móvil se oculte en desktop */
@media (min-width: 1024px) {
  .navbar-inner ul.navbar {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  
  .menu-movil {
    display: none !important;
  }
  
  .navbar-movil {
    display: none !important;
  }
}

/* Estilos específicos para el menú desktop con ID */
#desktop-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Ocultar el menú desktop cuando el menú móvil está abierto */
body.menu-open #desktop-menu {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Asegurar que el menú desktop se oculte en móviles */
@media (max-width: 1023px) {
  #desktop-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Mostrar el menú desktop en pantallas grandes */
@media (min-width: 1024px) {
  #desktop-menu {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* Añadir padding lateral específico para cada breakpoint */
@media (max-width: 479px) {
  .navbar-movil ul {
    padding: 0.5rem !important;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .navbar-movil ul {
    padding: 0.75rem !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .navbar-movil ul {
    padding: 1rem !important;
  }
}

/* Contenedor del menú móvil para mejor estructura */
.navbar-movil-container {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

@media (max-width: 479px) {
  .navbar-movil-container {
    padding: 0 var(--spacing-xs);
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .navbar-movil-container {
    padding: 0 var(--spacing-sm);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .navbar-movil-container {
    padding: 0 var(--spacing-md);
  }
}

/* ===== BANNER HEADER RESPONSIVE ===== */
@media (max-width: 1023px) {
  .banner-header {
    margin-top: 70px; /* Altura del navbar en tablet/móvil */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 100px;
  }
  
  .banner-img {
    object-fit: cover;
    object-position: center;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .hero-overlay {
    padding: 0 var(--spacing-md);
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.2) 100%);
  }
  
  .hero-overlay .container {
    max-width: 500px;
    padding: var(--spacing-md);
  }
  
  .hero-overlay h1 {
    font-size: 2rem;
  }
  
  .hero-overlay p {
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .banner-header {
    margin-top: 60px; /* Altura del navbar en móvil pequeño */
    min-height: 80px;
  }
  
  .hero-overlay {
    padding: 0 var(--spacing-sm);
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    justify-content: center;
    text-align: center;
  }
  
  .hero-overlay .container {
    max-width: 100%;
    padding: var(--spacing-sm);
  }
  
  .hero-overlay h1 {
    font-size: 1.75rem;
  }
  
  .hero-overlay p {
    font-size: 0.9rem;
    margin: var(--spacing-sm) 0;
  }
  
  .hero-overlay .hero-cta {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Ajuste para compensar el banner en el layout */
@media (min-width: 1024px) {
  .banner-header {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .hero-overlay .container {
    margin-left: 5%;
  }
}

@media (max-width: 1023px) {
  .features-section {
    padding-top: var(--spacing-lg);
  }
}

@media (max-width: 767px) {
  .features-section {
    padding-top: var(--spacing-md);
  }
}

/* ===== LAZY LOADING OPTIMIZATIONS ===== */
/* Importar estilos de lazy loading */
@import url('lazy-loading.css');

/* Optimizaciones adicionales para imágenes */
.image-optimized {
  will-change: transform, opacity;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.image-optimized.loading {
  opacity: 0.7;
  transform: scale(0.98);
}

.image-optimized.loaded {
  opacity: 1;
  transform: scale(1);
}

/* Preload de imágenes críticas */
.critical-image {
  loading: eager;
  fetchpriority: high;
}

/* Optimización de aspect ratio */
.aspect-ratio-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.aspect-ratio-container::before {
  content: '';
  display: block;
  padding-top: 66.67%; /* 3:2 aspect ratio por defecto */
}

.aspect-ratio-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Variaciones de aspect ratio */
.aspect-ratio-1-1::before { padding-top: 100%; }
.aspect-ratio-4-3::before { padding-top: 75%; }
.aspect-ratio-16-9::before { padding-top: 56.25%; }
.aspect-ratio-3-2::before { padding-top: 66.67%; }

/* Optimización de CLS para productos */
.product-image-container {
  min-height: 200px;
  background: var(--clr-bg-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

@media (max-width: 768px) {
  .product-image-container {
    min-height: 150px;
  }
}

@media (max-width: 480px) {
  .product-image-container {
    min-height: 120px;
  }
}

