@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Outfit', sans-serif;
  background: #f5f5f5;
  color: #0a192f;
  line-height: 1.6;
}

/* EFECTOS PREMIUM DE SCROLL NAVBAR */
.navbar {
  background-color: #0a192f;
  color: #fff;
  padding: 0;
  position: relative;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 80px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #f0c674;
  margin: 0;
}

/* Botón Hamburger */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

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

/* Navegación */
.navbar-nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: block;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(240, 199, 116, 0.1);
  color: #f0c674;
  transform: translateY(-2px);
}

.highlight-btn {
  background-color: #f0c674 !important;
  color: #0a192f !important;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(240, 199, 116, 0.3);
}

.highlight-btn:hover {
  background-color: #e0b95f !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(240, 199, 116, 0.4);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  list-style: none;
  margin: 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  color: #0a192f;
  padding: 0.75rem 1.5rem;
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.dropdown-link:hover {
  background-color: #f8f9fa;
  color: #f0c674;
  padding-left: 2rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .navbar-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #0a192f;
    padding: 5rem 0 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }
  
  .navbar-nav.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  
  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .nav-link {
    padding: 1rem 2rem;
    border-radius: 0;
    font-size: 1.1rem;
    border-left: 4px solid transparent;
  }
  
  .nav-link:hover,
  .nav-link.active {
    background-color: rgba(240, 199, 116, 0.1);
    border-left-color: #f0c674;
    transform: none;
  }
  
  .highlight-btn {
    margin: 1rem 2rem;
    border-radius: 8px !important;
    text-align: center;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: rgba(255,255,255,0.05);
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .dropdown.active .dropdown-menu {
    max-height: 300px;
  }
  
  .dropdown-link {
    color: rgba(255,255,255,0.8);
    padding: 0.75rem 3rem;
    font-size: 0.95rem;
  }
  
  .dropdown-link:hover {
    background-color: rgba(240, 199, 116, 0.1);
    color: #f0c674;
    padding-left: 3.5rem;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    padding: 1rem;
  }
  
  .navbar-brand h1 {
    font-size: 1.5rem;
  }
  
  .navbar-nav {
    width: 100%;
  }
}

/* Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* HERO */
.hero {
  text-align: center;
  padding: 2rem;
  background: #fff;
}
.hero-gallery {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.hero-gallery img {
  width: 30%;
  border-radius: 12px;
  transition: transform 0.3s ease;
}
.hero-gallery img:hover {
  transform: scale(1.05);
}

/* WHY CHOOSE US */
.why-choose-us {
  text-align: center;
  padding: 2rem;
  background-color: #f1f1f1;
}

/* SEARCH BAR */
.search-section {
  padding: 1rem;
  text-align: center;
}

/* AUTOS LIST */
/* Improved Responsive Grid */
.autos-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
}

/* NAVBAR ULTRA-SUAVE SIN REBOTE */
.navbar {
  background-color: #0a192f;
  color: #fff;
  padding: 0;
  position: relative;
  z-index: 1000;
  height: 80px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  /* Transición mínima solo para propiedades seguras */
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  /* Forzar aceleración por hardware */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  /* Solo transición para padding */
  transition: padding 0.2s ease;
}

/* Estado scrolled - SIN cambio de altura */
.navbar-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  /* NO cambiar altura aquí para evitar rebote */
}

/* Estado compact - SOLO cambio de altura */
.navbar-compact {
  height: 60px;
  /* Transición suave solo para altura */
  transition: height 0.2s ease;
}

.navbar-compact .navbar-container {
  padding: 0.5rem 2rem;
}

/* Logo con transición mínima */
.navbar-brand h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #f0c674;
  margin: 0;
  /* Transición muy rápida */
  transition: font-size 0.15s ease;
}

.navbar-compact .navbar-brand h1 {
  font-size: 1.6rem;
}

/* ELIMINAR padding-top del body en CSS */
body.navbar-sticky {
  /* El padding se maneja via JavaScript para control total */
}



/* Botón Hamburger */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Animación del Hamburger */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

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

/* Navegación Principal */
.navbar-nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: block;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(240, 199, 116, 0.1);
  color: #f0c674;
  transform: translateY(-2px);
}

/* Botón Destacado */
.highlight-btn {
  background-color: #f0c674 !important;
  color: #0a192f !important;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(240, 199, 116, 0.3);
}

.highlight-btn:hover {
  background-color: #e0b95f !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(240, 199, 116, 0.4);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  list-style: none;
  margin: 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  color: #0a192f;
  padding: 0.75rem 1.5rem;
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.dropdown-link:hover {
  background-color: #f8f9fa;
  color: #f0c674;
  padding-left: 2rem;
}

/* RESPONSIVE DESIGN */

/* Tablet */
@media (max-width: 1024px) {
  .navbar-container {
    padding: 1rem 1.5rem;
  }
  
  .nav-list {
    gap: 0.25rem;
  }
  
  .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}

/* Responsive optimizado */
@media (max-width: 768px) {
  .navbar {
    height: 70px;
  }
  
  .navbar-compact {
    height: 55px;
  }
  
  .navbar-container {
    padding: 1rem;
  }
  
  .navbar-compact .navbar-container {
    padding: 0.5rem 1rem;
  }
  
  .navbar-brand h1 {
    font-size: 1.6rem;
  }
  
  .navbar-compact .navbar-brand h1 {
    font-size: 1.4rem;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* El menú móvil mantiene su funcionalidad */
  .navbar-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: rgba(10, 25, 47, 0.98);
    backdrop-filter: blur(20px);
    padding: 5rem 0 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }
  
  .navbar-nav.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  
  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .nav-link {
    padding: 1rem 2rem;
    border-radius: 0;
    font-size: 1.1rem;
    border-left: 4px solid transparent;
  }
  
  .nav-link:hover,
  .nav-link.active {
    background-color: rgba(240, 199, 116, 0.1);
    border-left-color: #f0c674;
    transform: none;
  }
  
  .highlight-btn {
    margin: 1rem 2rem;
    border-radius: 8px !important;
    text-align: center;
  }
  
  /* Dropdown en móvil */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: rgba(255,255,255,0.05);
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .dropdown.active .dropdown-menu {
    max-height: 300px;
  }
  
  .dropdown-link {
    color: rgba(255,255,255,0.8);
    padding: 0.75rem 3rem;
    font-size: 0.95rem;
  }
  
  .dropdown-link:hover {
    background-color: rgba(240, 199, 116, 0.1);
    color: #f0c674;
    padding-left: 3.5rem;
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  .navbar-container {
    padding: 1rem;
  }
  
  .navbar-brand h1 {
    font-size: 1.5rem;
  }
  
  .navbar-nav {
    width: 100%;
    right: -100%;
  }
  
  .navbar-nav.active {
    right: 0;
  }
}

/* Overlay para cerrar menú */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}



/* Animaciones adicionales */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

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

.nav-item {
  animation: fadeInUp 0.3s ease forwards;
}

.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-item:nth-child(4) { animation-delay: 0.4s; }
.nav-item:nth-child(5) { animation-delay: 0.5s; }
  


/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
  .filter-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .autos-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.auto-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.auto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-image-container {
  position: relative;
  overflow: hidden;
}

.auto-image-container {
  position: relative;
}

.user-car-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #4CAF50;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  z-index: 2;
}

.no-results {
  text-align: center;
  padding: 2rem;
  font-size: 1.2em;
  color: #666;
  background: #f5f5f5;
  border-radius: 8px;
  margin: 2rem 0;
}

.auto-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.auto-card:hover img {
  transform: scale(1.05);
}

.card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.auto-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.auto-card p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}

/* WhatsApp Button in Cards */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #25D366;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  font-weight: 500;
  margin-top: auto;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
}

.whatsapp-btn.disabled {
  background: #cccccc;
  color: #666666;
  cursor: not-allowed;
  opacity: 0.6;
}

.whatsapp-btn.disabled:hover {
  background: #cccccc;
  transform: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.whatsapp-btn svg {
  width: 18px;
  height: 18px;
}

/* Favorite Button */
.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
  font-size: 18px;
}

.favorite-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.favorite-btn.active {
  opacity: 1;
  color: #ff3b5c;
}

/* CONTACT FORM */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}
.contact-form button {
  background-color: #f0c674;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.contact-form button:hover {
  background-color: #e0b95f;
}

/* WHATSAPP BUTTON - SOLUCIÓN COMPLETA UNIFICADA */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 65px;
  height: 65px;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* PREVENIR DEFORMACIÓN COMPLETAMENTE */
  min-width: 65px;
  min-height: 65px;
  max-width: 65px;
  max-height: 65px;
  flex-shrink: 0;
  
  /* CENTRADO PERFECTO Y ESTABLE */
  align-content: center;
  place-items: center;
  
  /* EVITAR MOVIMIENTO DE CONTENIDO */
  overflow: hidden;
  
  /* OPTIMIZACIÓN PARA SCROLL - CLAVE PARA EVITAR DEFORMACIÓN */
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  contain: layout style paint;
  
  /* ASEGURAR QUE EL CONTENIDO NO SE MUEVA */
  font-size: 0;
  line-height: 0;
}

.whatsapp-float svg,
.whatsapp-float::before,
.whatsapp-float * {
  width: 32px;
  height: 32px;
  /* CENTRADO ABSOLUTO Y ESTABLE */
  position: relative;
  flex-shrink: 0;
  /* EVITAR DISTORSIÓN DURANTE SCROLL */
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  /* MANTENER FORMA EXACTA */
  shape-rendering: geometricPrecision;
  font-size: 32px;
  line-height: 32px;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05) translateZ(0);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5), 0 6px 20px rgba(0, 0, 0, 0.3);
  background: #20c55e;
}

/* Animación de pulso */
@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float.pulse {
  animation: whatsapp-pulse 2s infinite;
}

/* RESPONSIVE UNIFICADO */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    max-width: 60px;
    max-height: 60px;
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-float svg,
  .whatsapp-float::before,
  .whatsapp-float * {
    width: 28px;
    height: 28px;
    font-size: 28px;
    line-height: 28px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    min-width: 55px;
    min-height: 55px;
    max-width: 55px;
    max-height: 55px;
    bottom: 15px;
    right: 15px;
  }
  
  .whatsapp-float svg,
  .whatsapp-float::before,
  .whatsapp-float * {
    width: 26px;
    height: 26px;
    font-size: 26px;
    line-height: 26px;
  }
}



/* Hero Banner with Background Image */
.hero-banner {
  position: relative;
  height: 80vh;
  min-height: 500px;
  background-image: url('/public/assets/cars/auto1.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-bottom: 2rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
  color: white !important;
}

.hero-tagline {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-search {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search-input,
.hero-search-select {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: none;
  flex-grow: 1;
  min-width: 150px;
  font-family: 'Poppins', sans-serif;
}

.hero-search-button {
  background-color: #f0c674;
  color: #0a192f;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.hero-search-button:hover {
  background-color: #e0b95f;
  transform: translateY(-2px);
}

.cta-button {
  display: inline-block;
  background-color: #f0c674;
  color: #0a192f;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  background-color: #e0b95f;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Featured Cars Section */
.featured-cars {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
}

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

.section-header h2 {
  font-size: 2.5rem;
  color: #0a192f;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.section-header p {
  color: #666;
  font-size: 1.1rem;
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Car Card Styling */
.car-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.car-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.car-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.car-card:hover .car-image {
  transform: scale(1.05);
}

.car-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.car-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0a192f;
  margin-bottom: 0.5rem;
  text-align: center;
}

.car-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a192f;
  margin-bottom: 1rem;
  text-align: center;
}

.car-details {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.car-details p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.view-details-btn {
  display: block;
  background-color: #0a192f;
  color: white;
  text-align: center;
  padding: 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.view-details-btn:hover {
  background-color: #172a46;
  transform: translateY(-2px);
}

.view-all-container {
  text-align: center;
  margin-top: 3rem;
}

.view-all-button {
  display: inline-block;
  background-color: transparent;
  color: #0a192f;
  border: 2px solid #0a192f;
  text-decoration: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.view-all-button:hover {
  background-color: #0a192f;
  color: white;
  transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-banner {
    height: auto;
    padding: 4rem 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-tagline {
    font-size: 1.2rem;
  }
  
  .hero-search {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-search-input,
  .hero-search-select,
  .hero-search-button {
    width: 100%;
  }
  
  .cars-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

/* FOOTER */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #0a192f;
  color: white;
  margin-top: 2rem;
}

/* Enhanced Dropdown Styles */
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a192f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1em;
  padding-right: 2.5rem;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

/* Make dropdowns scrollable with a fixed height */
select[multiple], 
select[size], 
select.scrollable {
  height: auto;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* Style the scrollbar for WebKit browsers */
select::-webkit-scrollbar {
  width: 6px;
}

select::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

select::-webkit-scrollbar-thumb {
  background-color: #0a192f;
  border-radius: 3px;
}

select::-webkit-scrollbar-thumb:hover {
  background-color: #172a46;
}

/* Hover and focus states */
select:hover {
  border-color: #0a192f;
}

select:focus {
  outline: none;
  border-color: #0a192f;
  box-shadow: 0 0 0 3px rgba(10, 25, 47, 0.1);
}

/* Style for the options */
select option {
  padding: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  select {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 0.85rem;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-gallery {
    flex-direction: column;
  }
}

/* FILTER SECTION - Ultra compacto como el original */
.filter-section {
  background-color: white;
  padding: 1rem;
  margin: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.filter-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Ancho mínimo reducido */
  gap: 1rem;
  margin-bottom: 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #0a192f;
}

.filter-select {
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: white;
  font-family: 'Outfit', sans-serif;
}

/* Contenedor de precio ORIGINAL - sin estilos adicionales */
.price-range-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.price-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-display {
  background: #f8f9fa;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  color: #2c3e50;
  min-width: 80px;
  text-align: center;
  border: 1px solid #e9ecef;
}

/* Range slider básico - SIN efectos adicionales */
.range-slider {
  flex: 1;
  margin: 0 0.5rem;
  width: 100%;
  margin: 0.5rem 0;
}

.range-slider-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.price-values, .mileage-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #666;
}

.additional-filters {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.toggle-button {
  background-color: #f0c674;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
  font-family: 'Outfit', sans-serif;
}

.toggle-button:hover {
  background-color: #e0b95f;
}

.additional-filters-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Mismo ancho mínimo */
  gap: 1rem;
  margin: 1rem 0;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.hidden {
  display: none;
}

.search-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.reset-button {
  background-color: #0a192f;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
  font-family: 'Outfit', sans-serif;
}

.reset-button:hover {
  background-color: #172a46;
}

/* RESPONSIVE FILTERS - Más compacto en móvil */
@media (max-width: 768px) {
  .filter-container,
  .additional-filters-container {
    grid-template-columns: 1fr; /* Una sola columna en móvil */
  }
  
  .search-section {
    flex-direction: column;
  }
}

/* ELIMINAR todos los estilos adicionales de precio que causan el ancho excesivo */
.price-range-container::before,
.price-range-container:hover::before {
  display: none !important;
}

.price-range-container:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: initial !important;
  background: transparent !important;
}

.price-display.updating {
  transform: none !important;
  box-shadow: none !important;
  background: #f8f9fa !important;
}

.range-slider:hover {
  transform: none !important;
  box-shadow: none !important;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: none !important;
  box-shadow: none !important;
}

.range-slider::-webkit-slider-thumb:active {
  transform: none !important;
  box-shadow: none !important;
}

.range-slider::-moz-range-thumb:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Asegurar que no hay estilos conflictivos */
.filter-loading::after {
  display: none !important;
}

/* ACCESSIBILITY IMPROVEMENTS */
:focus {
  outline: 2px solid #0a192f;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* NAVBAR IMPROVEMENTS */
.navbar {
  background-color: #0a192f;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.navbar nav {
  margin-top: 0.5rem;
}

.navbar ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 1rem;
}

.navbar li {
  margin: 0;
}

.highlight-btn {
  background-color: #f0c674;
  color: #0a192f !important;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.highlight-btn:hover {
  background-color: #e0b95f;
  text-decoration: none !important;
}

/* ABOUT US PAGE */
.about-us {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.about-content {
  margin-top: 1.5rem;
}

.about-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #0a192f;
}

.benefits-list {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.benefits-list li {
  margin-bottom: 0.5rem;
}

/* FORM IMPROVEMENTS */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-container input {
  width: auto;
}

.help-text {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

/* IMAGE UPLOAD */
.image-upload-container {
  border: 2px dashed #ccc;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1rem;
}

.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.preview-item {
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #eee;
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PUBLISH FORM */
.publish-form {
  max-width: 800px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.submit-button {
  background-color: #0a192f;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
  margin-top: 1rem;
}

.submit-button:hover {
  background-color: #172a46;
}

/* AD BANNER */
.ad-banner {
  margin: 2rem auto;
  max-width: 900px;
  padding: 0 1rem;
}

.ad-container {
  background-color: #f0f0f0;
  border: 1px dashed #ccc;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  color: #666;
  min-height: 90px;
}

/* RESPONSIVE IMPROVEMENTS */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .navbar nav {
    width: 100%;
    margin-top: 1rem;
  }
  
  .navbar ul {
    flex-direction: column;
    width: 100%;
  }
  
  .navbar li {
    margin: 0.5rem 0;
  }
  
  .hero-gallery {
    flex-direction: column;
  }
  
  .hero-gallery img {
    width: 100%;
  }
  
  .contact-form,
  .publish-form,
  .about-us {
    padding: 1.5rem;
    margin: 1rem;
  }
}

/* Animation Utilities */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

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

.scale-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scale-hover:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Improved Button Styles */
.modern-button {
  background: linear-gradient(135deg, #0a192f 0%, #172a46 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.modern-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 10px rgba(0,0,0,0.15);
}

/* Slide-in Animation */
.slide-in-element {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ANIMATIONS */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    transform: scale(1.1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    transform: scale(1);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.pulse {
  animation: pulse 1s ease-in-out;
}

.shake {
  animation: shake 0.5s ease-in-out;
}

.field-focus {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea, .auto-card, .whatsapp-float {
  transition: all 0.3s ease;
}

/* Improve form field focus states */
input:focus, textarea:focus, select:focus {
  border-color: #0a192f;
  box-shadow: 0 0 0 2px rgba(10, 25, 47, 0.2);
  outline: none;
}

/* WhatsApp Button - Modern Design */
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #25D366;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(37, 211, 102, 0.2);
  text-decoration: none;
  margin-top: 1rem;
  width: auto;
}

.whatsapp-button:hover {
  background-color: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(37, 211, 102, 0.2);
}

.whatsapp-button-icon {
  font-size: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .whatsapp-button {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .whatsapp-button-icon {
    font-size: 18px;
  }
}




/* ========================================= */
/* CORRECCIÓN NAVBAR - ENLACES BLANCOS SIN SUBRAYADO */
/* ========================================= */

/* Logo enlace styles */
.brand-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.brand-link:hover h1 {
  opacity: 0.8;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.brand-link:focus {
  outline: 2px solid #4F46E5;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reset global para todos los enlaces del navbar */
.navbar a,
.navbar a:link,
.navbar a:visited,
.navbar a:hover,
.navbar a:active,
.navbar a:focus,
header a,
header a:link,
header a:visited,
header a:hover,
header a:active,
header a:focus,
nav a,
nav a:link,
nav a:visited,
nav a:hover,
nav a:active,
nav a:focus {
  color: #ffffff !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

/* Estructura específica para autos.html */
.navbar nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.navbar nav li {
  margin: 0;
}

.navbar nav a {
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: block;
}

.navbar nav a:hover {
  background-color: rgba(240, 199, 116, 0.1) !important;
  color: #f0c674 !important;
  text-decoration: none !important;
  transform: translateY(-2px);
}

/* Estado activo minimalista */
.navbar nav a.active,
.navbar nav a[aria-current="page"] {
  opacity: 0.9;
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Botón destacado */
.navbar .highlight-btn,
.navbar nav .highlight-btn {
  background-color: #f0c674 !important;
  color: #0a192f !important;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(240, 199, 116, 0.3);
}

.navbar .highlight-btn:hover,
.navbar nav .highlight-btn:hover {
  background-color: #e0b95f !important;
  color: #0a192f !important;
  text-decoration: none !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(240, 199, 116, 0.4);
}

/* Responsive para estructura simple */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  
  .navbar nav {
    width: 100%;
    margin-top: 1rem;
  }
  
  .navbar nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  
  .navbar nav li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar nav a {
    padding: 1rem;
    border-radius: 0;
    border-left: 4px solid transparent;
    color: #ffffff !important;
    text-decoration: none !important;
  }
  
  .navbar nav a:hover {
    border-left-color: #f0c674;
    transform: none;
    color: #f0c674 !important;
    text-decoration: none !important;
  }
}
/* ========================================= */
/* SELECTOR DE AÑO MODAL - CORREGIDO */
/* ========================================= */

.year-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Z-index más alto */
}

.year-modal-overlay.active {
  display: flex !important;
}

.year-modal {
  background: white;
  border-radius: 12px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
  z-index: 10000;
}

.year-modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.year-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.close-modal {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.close-modal:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.year-search-container {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.year-search-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  outline: none;
}

.year-search-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  padding: 20px;
  max-height: 300px;
  overflow-y: auto;
}

.year-option {
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  user-select: none;
}

.year-option:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.year-option.selected {
  background: #764ba2;
  color: white;
  border-color: #764ba2;
  box-shadow: 0 4px 12px rgba(118, 75, 162, 0.3);
}

.year-selector-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.year-selector-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.year-selector-btn .dropdown-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.year-selector-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}
/* ========================================= */
/* SELECTORES SIMPLIFICADOS SIN FLECHAS MOLESTAS */
/* ========================================= */

.form-group select {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  width: 100%;
  appearance: none;
  /* ELIMINADAS las flechas molestas - sin background-image */
}

.form-group select:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.form-group select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Opciones del select */
.form-group select option {
  background: white;
  color: #374151;
  padding: 12px;
}

.form-group select option:checked,
.form-group select option:selected {
  background: #f3f4f6;
  color: #1f2937;
}

/* Placeholder mantiene el color blanco */
.form-group select:invalid {
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

/* Texto seleccionado en negro suave */
.form-group select:valid {
  color: #1f2937;
  background: white;
  /* SIN flecha molesta cuando hay valor seleccionado */
}

/* Inputs de texto con estilo moderno */
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="email"] {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #e5e7eb;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="email"]:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: white;
  transform: translateY(-1px);
}

.form-group input[type="text"]:hover,
.form-group input[type="number"]:hover,
.form-group input[type="tel"]:hover,
.form-group input[type="email"]:hover {
  border-color: #9ca3af;
  transform: translateY(-1px);
}

/* Textarea con estilo moderno */
.form-group textarea {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #e5e7eb;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  width: 100%;
  min-height: 100px;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
}

.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: white;
  transform: translateY(-1px);
}

.form-group textarea:hover {
  border-color: #9ca3af;
  transform: translateY(-1px);
}

/* Botón de envío con estilo morado */
.submit-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
  width: 100%;
  margin-top: 20px;
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.submit-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Input de archivo con estilo moderno */
.form-group input[type="file"] {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px dashed #667eea;
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.form-group input[type="file"]:hover {
  border-color: #5a6fd8;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f2ff 100%);
  transform: translateY(-2px);
}

/* Checkbox con estilo moderno */
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.checkbox-container input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #667eea;
  cursor: pointer;
}

.checkbox-container label {
  cursor: pointer;
  font-size: 14px;
  color: #374151;
}

/* Labels con mejor estilo */
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 16px;
}

/* Texto de ayuda */
.help-text {
  font-size: 14px;
  color: #6b7280;
  margin-top: 6px;
  font-style: italic;
}

/* Animaciones adicionales */
@keyframes inputFocus {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  animation: inputFocus 0.3s ease;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .form-group select,
  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Evita zoom en iOS */
  }
  
  .submit-button {
    padding: 14px 24px;
    font-size: 16px;
  }
}
/* CORRECCIÓN DEFINITIVA - MENÚ DROPDOWN CON SUBMENUS ANIDADOS */
.navbar .nav-item.dropdown {
    position: relative !important;
}

.navbar .nav-item.dropdown .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    padding: 8px 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 9999 !important;
    min-width: 220px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    list-style: none !important;
    margin: 0 !important;
}

.navbar .nav-item.dropdown:hover .dropdown-menu,
.navbar .nav-item.dropdown.active .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.navbar .dropdown-menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.navbar .dropdown-menu .dropdown-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    color: #333333 !important;
    padding: 12px 20px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    white-space: nowrap !important;
}

.navbar .dropdown-menu .dropdown-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    padding-left: 24px !important;
    transform: translateX(4px) !important;
}

.navbar .dropdown-menu li:last-child .dropdown-link {
    border-bottom: none !important;
}

/* SUBMENU ANIDADO */
.navbar .dropdown-submenu {
    position: relative !important;
}

.navbar .dropdown-submenu .submenu-arrow {
    font-size: 10px !important;
    transition: transform 0.2s ease !important;
    color: #666666 !important;
}

.navbar .dropdown-submenu:hover .submenu-arrow {
    transform: rotate(90deg) !important;
    color: #ffffff !important;
}

.navbar .dropdown-submenu-content {
    position: absolute !important;
    top: 0 !important;
    left: 100% !important;
    background: #ffffff !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    padding: 8px 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 10000 !important;
    min-width: 180px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    list-style: none !important;
    margin: 0 !important;
}

.navbar .dropdown-submenu:hover .dropdown-submenu-content {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

.navbar .dropdown-submenu-content .dropdown-link {
    padding: 10px 16px !important;
    font-size: 13px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.navbar .dropdown-submenu-content .dropdown-link:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    color: #ffffff !important;
    padding-left: 20px !important;
}

/* RESPONSIVE - MÓVIL */
@media (max-width: 768px) {
    .navbar .nav-item.dropdown .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: none !important;
        border-radius: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .navbar .nav-item.dropdown.active .dropdown-menu {
        max-height: 400px !important;
        padding: 8px 0 !important;
    }
    
    .navbar .dropdown-menu .dropdown-link {
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 14px 48px !important;
        font-size: 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        justify-content: flex-start !important;
    }
    
    .navbar .dropdown-menu .dropdown-link:hover {
        background: rgba(102, 126, 234, 0.3) !important;
        color: #ffffff !important;
        padding-left: 52px !important;
        transform: none !important;
    }
    
    .navbar .dropdown-submenu-content {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: none !important;
        border-radius: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease !important;
        margin-left: 20px !important;
    }
    
    .navbar .dropdown-submenu.active .dropdown-submenu-content {
        max-height: 200px !important;
        padding: 4px 0 !important;
    }
    
    .navbar .dropdown-submenu-content .dropdown-link {
        padding: 12px 60px !important;
        font-size: 14px !important;
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    .navbar .dropdown-submenu-content .dropdown-link:hover {
        background: rgba(118, 75, 162, 0.3) !important;
        padding-left: 64px !important;
    }
    
    .navbar .dropdown-submenu .submenu-arrow {
        color: rgba(255, 255, 255, 0.6) !important;
    }
}

/* ACCESIBILIDAD Y FOCUS */
.navbar .dropdown-link:focus {
    outline: 2px solid #667eea !important;
    outline-offset: -2px !important;
    background: rgba(102, 126, 234, 0.1) !important;
}

.navbar .dropdown-submenu .dropdown-link:focus {
    outline: 2px solid #764ba2 !important;
}

/* Estilos para métodos de contacto en contacto.html */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-method {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-method:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
  border-color: #667eea;
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.contact-method h3 {
  color: #374151;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.contact-method p {
  color: #6b7280;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.whatsapp-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  background: linear-gradient(135deg, #20ba5a 0%, #0f7a6b 100%);
  color: white;
  text-decoration: none;
}

.instagram-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #e4405f 0%, #833ab4 50%, #fd1d1d 100%);
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(228, 64, 95, 0.3);
}

.instagram-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(228, 64, 95, 0.4);
  background: linear-gradient(135deg, #d6336c 0%, #7b2cbf 50%, #e60023 100%);
  color: white;
  text-decoration: none;
}

/* Botón de Google Maps - Colores verde-rojo */
.maps-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #34a853 0%, #ea4335 100%);
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(52, 168, 83, 0.3);
}

.maps-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 168, 83, 0.4);
  background: linear-gradient(135deg, #2d8f47 0%, #d33b2c 100%);
  color: white;
  text-decoration: none;
}

/* Botón de Gmail - Colores característicos */
.email-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ea4335 0%, #fbbc04 50%, #34a853 100%);
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(234, 67, 53, 0.3);
}

.email-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 67, 53, 0.4);
  background: linear-gradient(135deg, #d33b2c 0%, #f9ab00 50%, #2d8f47 100%);
  color: white;
  text-decoration: none;
}

/* Responsive para métodos de contacto */
@media (max-width: 768px) {
  .contact-methods {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-method {
    padding: 1.5rem;
  }
  
  .contact-icon {
    font-size: 2.5rem;
  }
}

/* ========================================= */
/* ESTILOS PARA TESTIMONIOS */
/* ========================================= */

/* Sección de testimonios */
.testimonials {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  text-align: center;
}

.testimonials .section-header {
  margin-bottom: 3rem;
}

.testimonials .section-header h2 {
  font-size: 2.5rem;
  color: #0a192f;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.testimonials .section-header p {
  color: #666;
  font-size: 1.1rem;
  margin: 0;
}

/* Grid de testimonios */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tarjetas de testimonio */
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
  border-color: #667eea;
}

/* Imagen del cliente */
.testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid #f0f0f0;
  transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-image {
  border-color: #667eea;
  transform: scale(1.05);
}

/* Nombre del cliente */
.testimonial-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0a192f;
  margin: 0 0 0.5rem 0;
  font-family: 'Poppins', sans-serif;
}

/* Estrellas */
.stars {
  font-size: 1.2rem;
  color: #fbbf24;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

/* Texto del testimonio */
.testimonial-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
  position: relative;
}

.testimonial-card p::before {
  content: '"';
  font-size: 3rem;
  color: #e5e7eb;
  position: absolute;
  top: -10px;
  left: -10px;
  font-family: serif;
}

.testimonial-card p::after {
  content: '"';
  font-size: 3rem;
  color: #e5e7eb;
  position: absolute;
  bottom: -30px;
  right: -10px;
  font-family: serif;
}

/* Responsive para testimonios */
@media (max-width: 768px) {
  .testimonials {
    padding: 3rem 1rem;
  }
  
  .testimonials .section-header h2 {
    font-size: 2rem;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .testimonial-image {
    width: 60px;
    height: 60px;
  }
  
  .testimonial-card h3 {
    font-size: 1.1rem;
  }
  
  .testimonial-card p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .testimonials {
    padding: 2rem 1rem;
  }
  
  .testimonial-card {
    padding: 1.25rem;
  }
}
/* ========================================= */
/* PÁGINA SOBRE NOSOTROS - DISEÑO PREMIUM */
/* ========================================= */

/* Variables CSS para consistencia */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-light: #718096;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.15);
  --shadow-strong: 0 30px 60px rgba(0, 0, 0, 0.2);
  --border-radius: 16px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tipografía Premium */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
}

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

/* Hero Section - Fondo gris blancoso premium */
.about-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f1f3f4 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(248, 249, 250, 0.6) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(233, 236, 239, 0.3) 0%, transparent 50%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-content {
  text-align: center;
  z-index: 2;
  position: relative;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #4a5568;
  margin: 0 0 2rem 0;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.hero-divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
  margin: 0 auto;
  border-radius: 2px;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  margin: 0 auto 1rem auto;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 400;
}

/* Mission Section */
.mission-section {
  padding: 6rem 0;
  background: var(--bg-white);
}

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

.mission-text {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 400;
}

/* Team Section */
.team-section {
  padding: 6rem 0;
  background: var(--bg-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.team-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.team-image-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem auto;
}

.team-image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.team-initial {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  font-family: 'Playfair Display', serif;
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: var(--transition);
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.team-card:hover .team-image-placeholder {
  transform: scale(1.05);
}

.team-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.team-role {
  font-size: 1rem;
  color: var(--primary-gradient);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.team-description {
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

/* Services Section */
.services-section {
  padding: 6rem 0;
  background: var(--bg-white);
}

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

.service-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.service-card:hover::before {
  opacity: 0.05;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(102, 126, 234, 0.3);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  position: relative;
  z-index: 2;
}

.service-card p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* Contact Section */
.contact-section {
  padding: 6rem 0;
  background: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

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

.contact-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

.contact-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: var(--transition);
}

.contact-link:hover {
  color: #667eea;
}

.contact-link:hover::after {
  width: 100%;
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  background: var(--primary-gradient);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 3rem 0;
  font-weight: 300;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #667eea;
  text-decoration: none;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
  z-index: -1;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
  color: #5a67d8;
}

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

.slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.zoom-in {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.animate,
.slide-up.animate,
.zoom-in.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered animations */
.team-card:nth-child(1) { transition-delay: 0.1s; }
.team-card:nth-child(2) { transition-delay: 0.2s; }

.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }

.contact-card:nth-child(1) { transition-delay: 0.1s; }
.contact-card:nth-child(2) { transition-delay: 0.2s; }
.contact-card:nth-child(3) { transition-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section-header h2 {
    font-size: 2.2rem;
  }
  
  .cta-title {
    font-size: 2.2rem;
  }
  
  .mission-text {
    font-size: 1.2rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .about-hero {
    height: 60vh;
    min-height: 400px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .cta-title {
    font-size: 1.8rem;
  }
  
  .team-card,
  .service-card,
  .contact-card {
    padding: 2rem 1.5rem;
  }
}
/* Título específico para la página principal - blanco */
#hero-title-index {
  color: white !important;
}

/* Título específico para la página sobre nosotros - azul muy oscuro */
#hero-title-about {
  color: #0a192f !important;
}

/* BOTÓN SCROLL TO TOP - MINIMALISTA */
.scroll-to-top-btn {
  position: fixed;
  top: 100px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: transparent; /* Sin fondo circular */
  color: #0a192f; /* Color azul del navbar */
  border: none;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  padding: 8px;
}

/* Estado visible */
.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Efectos hover minimalistas */
.scroll-to-top-btn:hover {
  color: #f0c674; /* Color dorado del navbar al hover */
  transform: translateY(-2px);
}

/* Icono SVG - Solo flecha */
.scroll-to-top-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
  transition: all 0.3s ease;
}

.scroll-to-top-btn:hover svg {
  transform: translateY(-1px);
  stroke-width: 3;
}

/* Focus para accesibilidad */
.scroll-to-top-btn:focus {
  outline: 2px solid #f0c674;
  outline-offset: 2px;
}

/* Responsivo */
@media (max-width: 768px) {
  .scroll-to-top-btn {
    top: 80px;
    right: 15px;
    width: 36px;
    height: 36px;
  }
  
  .scroll-to-top-btn svg {
    width: 20px;
    height: 20px;
  }
  

}

@media (max-width: 480px) {
  .scroll-to-top-btn {
    top: 70px;
    right: 10px;
    width: 32px;
    height: 32px;
  }
  
  .scroll-to-top-btn svg {
    width: 18px;
    height: 18px;
  }
  

}

/* Ocultar cuando hay elementos superpuestos */
.scroll-to-top-btn.hidden-overlay {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

/* Agregar al final del archivo */
.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.team-card:hover .team-image {
  transform: scale(1.1);
}

.team-image-container {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
}

.team-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

/* ===== SISTEMA DE GALERÍA DE IMÁGENES - PÁGINA DETALLE ===== */

/* Contenedor principal de la galería */
.car-image-gallery {
  width: 100%;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Imagen principal */
.main-image-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: #f8f9fa;
  border-radius: 12px 12px 0 0;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.main-image:hover {
  transform: scale(1.05);
}

/* Indicador de imagen actual */
.image-indicator {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Galería de miniaturas */
.thumbnail-gallery {
  display: flex;
  gap: 10px;
  padding: 15px;
  background: white;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

.thumbnail-gallery::-webkit-scrollbar {
  height: 6px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Miniaturas individuales */
.thumbnail-item {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.thumbnail-item:hover {
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.thumbnail-item.active {
  border-color: #007bff;
  box-shadow: 0 0 0 1px #007bff;
}

.thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.thumbnail-item:hover .thumbnail-image {
  transform: scale(1.1);
}

/* Caso especial: Una sola imagen */
.single-image .thumbnail-gallery {
  display: none;
}

.single-image .main-image-container {
  border-radius: 12px;
}

/* Estilos para la información del auto */
.car-detail-card {
  max-width: 800px;
  margin: 2rem auto;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.car-info-section {
  padding: 2rem;
}

.car-title {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.car-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 1.5rem;
}

.car-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.spec-label {
  font-weight: 500;
  color: #666;
}

.spec-value {
  font-weight: bold;
  color: #333;
}

.car-description {
  margin-bottom: 2rem;
}

.car-description h3 {
  color: #333;
  margin-bottom: 1rem;
}

.car-description p {
  line-height: 1.6;
  color: #666;
}

.contact-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.whatsapp-button, .call-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.whatsapp-button {
  background: #25d366;
  color: white;
}

.whatsapp-button:hover {
  background: #128c7e;
  transform: translateY(-2px);
}

.call-button {
  background: #007bff;
  color: white;
}

.call-button:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.contact-info {
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  color: #666;
}

/* Estados de carga */
.image-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #6c757d;
  font-size: 1.1rem;
}

.image-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #dc3545;
  font-size: 1rem;
  text-align: center;
  padding: 2rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 768px) {
  .main-image-container {
    height: 300px;
  }
  
  .thumbnail-item {
    width: 70px;
    height: 50px;
  }
  
  .thumbnail-gallery {
    padding: 12px;
    gap: 8px;
  }
  
  .car-info-section {
    padding: 1.5rem;
  }
  
  .car-title {
    font-size: 1.5rem;
  }
  
  .car-specs-grid {
    grid-template-columns: 1fr;
  }
}

/* Móvil */
@media (max-width: 480px) {
  .car-image-gallery {
    margin-bottom: 1.5rem;
  }
  
  .main-image-container {
    height: 250px;
    border-radius: 8px 8px 0 0;
  }
  
  .thumbnail-item {
    width: 60px;
    height: 45px;
  }
  
  .thumbnail-gallery {
    padding: 10px;
    gap: 6px;
  }
  
  .image-indicator {
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  .single-image .main-image-container {
    border-radius: 8px;
  }
  
  .car-info-section {
    padding: 1rem;
  }
  
  .contact-buttons {
    flex-direction: column;
  }
}

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

.car-image-gallery {
  animation: fadeIn 0.5s ease-out;
}

/* Accesibilidad */
.thumbnail-item:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.main-image:focus {
  outline: 2px solid #007bff;
  outline-offset: -2px;
}

/* Estados hover mejorados */
@media (hover: hover) {
  .thumbnail-item:hover {
    transform: translateY(-3px);
  }
  
  .main-image:hover {
    transform: scale(1.02);
  }
}
/* ... existing code ... */

/* Navegación de Regreso */
.back-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 1rem;
}

.back-btn, .explore-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.95rem;
}

.back-btn {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
  box-shadow: 0 2px 10px rgba(108, 117, 125, 0.3);
}

.back-btn:hover {
  background: linear-gradient(135deg, #5a6268 0%, #3d4043 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

.explore-btn {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.explore-btn:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.back-arrow, .explore-icon {
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .back-navigation {
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .back-btn, .explore-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }
}

/* Estilos mejorados para tarjetas de autos */
.auto-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1rem;
}

.card-actions {
  margin-top: auto;
  padding-top: 1rem;
}

/* Botón de WhatsApp en tarjetas - Estilo mejorado */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #25D366 0%, #20c55e 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  width: 100%;
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, #20c55e 0%, #128C7E 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: white;
}

.whatsapp-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

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

/* Estilos para displays de precio */
.price-range-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-display {
  background: #f8f9fa;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  color: #2c3e50;
  min-width: 80px;
  text-align: center;
  border: 1px solid #e9ecef;
}

.range-slider {
  flex: 1;
  margin: 0 0.5rem;
}

/* Responsive para botones */
@media (max-width: 768px) {
  .whatsapp-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .whatsapp-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* Mensajes de estado */
.no-cars-message, .error-message {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

.no-cars-message h3, .error-message h3 {
  color: #0a192f;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.no-cars-message p, .error-message p {
  color: #666;
  margin-bottom: 1.5rem;
}

.retry-button {
  background-color: #f0c674;
  color: #0a192f;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retry-button:hover {
  background-color: #e0b95f;
  transform: translateY(-2px);
}

/* Form validation styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #e74c3c !important;
  box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

.error-message {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 5px;
  font-weight: 500;
}

/* ===== SISTEMA ADAPTATIVO DE CARGA DE IMÁGENES ===== */

/* Contenedor principal */
.image-upload-container {
  border: 2px dashed #ccc;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

/* Área de drag & drop para desktop */
.upload-area {
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  position: relative;
}

.upload-area:hover {
  background-color: #f8f9fa;
  border-color: #f0c674;
  transform: translateY(-2px);
}



/* Botón específico para móviles */
.mobile-upload-button {
  padding: 1rem;
}

.mobile-photo-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  width: 100%;
  max-width: 300px;
  color: white;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}

.mobile-photo-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.mobile-photo-btn:active {
  transform: translateY(-1px) scale(0.98);
  transition: all 0.1s ease;
}

/* Efecto de ondas al tocar (móvil) */
.mobile-photo-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.mobile-photo-btn:active::before {
  width: 300px;
  height: 300px;
}

.mobile-btn-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.mobile-btn-text {
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.mobile-btn-subtitle {
  font-size: 0.85rem;
  opacity: 0.9;
  display: block;
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.upload-text {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.upload-limit {
  font-size: 0.9rem;
  color: #999;
}

/* Estilos para preview de imágenes */
.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem 0;
}

.preview-item {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #eee;
  transition: all 0.3s ease;
  cursor: pointer;
}

.preview-item:hover {
  transform: scale(1.05);
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.preview-item:hover .preview-image {
  transform: scale(1.1);
}

.remove-image {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(255, 59, 48, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  backdrop-filter: blur(10px);
}

.preview-item:hover .remove-image {
  opacity: 1;
}

.remove-image:hover {
  background: rgba(255, 59, 48, 1);
  transform: scale(1.1);
}

/* Contador de imágenes */
.image-counter {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.image-counter.limit-reached {
  color: #ff6b6b;
  font-weight: 600;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets */
@media (max-width: 1024px) {
  .mobile-photo-btn {
    padding: 1.25rem 1.75rem;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .image-upload-container {
    padding: 1rem;
    margin: 1rem 0;
  }
  
  .upload-area {
    padding: 2rem 1rem;
    min-height: 120px;
  }
  
  .upload-area.mobile-upload {
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
  }
  
  .mobile-photo-btn {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
  }
  
  .mobile-btn-icon {
    font-size: 1.75rem;
  }
  
  .mobile-btn-text {
    font-size: 1rem;
  }
  
  .mobile-btn-subtitle {
    font-size: 0.8rem;
  }
  
  .image-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
  }
  
  .preview-item {
    width: 100px;
    height: 100px;
    aspect-ratio: 1;
  }
  
  .preview-image {
    border-radius: 8px;
  }
  
  .remove-image {
    width: 24px;
    height: 24px;
    font-size: 16px;
  }
  
  .upload-icon {
    font-size: 2.5rem;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .mobile-photo-btn {
    padding: 1rem 1.25rem;
  }
  
  .image-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.6rem;
  }
  
  .preview-item {
    width: 90px;
    height: 90px;
  }
}

/* Estados de carga */
.upload-area.uploading {
  pointer-events: none;
  opacity: 0.7;
}

.mobile-photo-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.mobile-photo-btn:disabled:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Mejoras para dispositivos móviles */
.upload-area.mobile-upload {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: 2px solid #667eea;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area.mobile-upload:hover,
.upload-area.mobile-upload:active {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.upload-area.mobile-upload .upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.upload-area.mobile-upload .upload-text {
  font-weight: 600;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.upload-area.mobile-upload .upload-limit {
  opacity: 0.9;
  font-size: 0.9rem;
}

/* Estados de interacción mejorados */
.upload-area:focus-within {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.upload-area.dragover {
  background-color: #f0f8ff;
  border-color: #667eea;
  transform: scale(1.02);
}

/* Estilos para mensajes de seguridad */
.security-messages {
  margin-bottom: 20px;
}

.security-message {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.security-message.info {
  background-color: #e3f2fd;
  color: #1565c0;
  border-left: 4px solid #2196f3;
}

.security-message.success {
  background-color: #e8f5e8;
  color: #2e7d32;
  border-left: 4px solid #4caf50;
}

.security-message.error {
  background-color: #ffebee;
  color: #c62828;
  border-left: 4px solid #f44336;
}

.security-message.warning {
  background-color: #fff3e0;
  color: #ef6c00;
  border-left: 4px solid #ff9800;
}

/* Información de reCAPTCHA */
.recaptcha-info {
  text-align: center;
  margin: 15px 0;
}

.recaptcha-info small {
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}

.recaptcha-info a {
  color: #1976d2;
  text-decoration: none;
}

.recaptcha-info a:hover {
  text-decoration: underline;
}

/* Estados del botón de envío */
.submit-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.submit-button.loading {
  position: relative;
  color: transparent;
}

.submit-button.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mejoras para carga de imágenes en móvil */
.upload-area.mobile-upload {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: 2px solid #667eea;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.upload-area.mobile-upload:hover,
.upload-area.mobile-upload:active {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.upload-area.mobile-upload .upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.upload-area.mobile-upload .upload-text {
  font-weight: 600;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .upload-area {
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    min-height: 140px;
  }
  
  .upload-area.mobile-upload {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid #667eea;
  }
}

/* ===== MEJORAS PARA CARGA DE IMÁGENES UNIVERSAL ===== */

/* Input accesible pero oculto */
.visually-hidden {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Área de drag & drop mejorada */
.upload-area {
  border: 2px dashed #ddd;
  background: #fafafa;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.upload-area:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.upload-area:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.upload-area:active {
  transform: translateY(0);
}

/* Estados de drag & drop mejorados */
.upload-area.dragover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.upload-area.dragover .upload-icon {
  animation: bounce 0.6s ease-in-out infinite alternate;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

/* Preview de imágenes mejorado */
.preview-item {
  position: relative;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mejoras en preview de imágenes */
.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 0.5rem;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.preview-item:hover .image-overlay {
  opacity: 1;
}

.image-name {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-size {
  display: block;
  opacity: 0.8;
  font-size: 0.7rem;
}

.remove-image {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 0, 0, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}

.remove-image:hover {
  background: rgba(255, 0, 0, 1);
  transform: scale(1.1);
}

/* Notificaciones de error elegantes */
.error-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
  z-index: 10000;
  max-width: 400px;
  animation: slideInRight 0.3s ease-out;
  font-family: inherit;
}

.error-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.error-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.error-message {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.4;
}

.error-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.error-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Focus visible mejorado para accesibilidad */
.upload-area:focus-visible {
  outline: 3px solid #667eea;
  outline-offset: 2px;
}

.mobile-photo-btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* Responsive mejorado */
@media (max-width: 768px) {
  .upload-area {
    padding: 2rem 1rem;
    border-radius: 12px;
    min-height: 120px;
  }
  
  .upload-text {
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  .image-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
  }
  
  .mobile-photo-btn {
    padding: 1.2rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .mobile-btn-icon {
    font-size: 1.8rem;
  }
  
  .error-notification {
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .error-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .error-content {
    gap: 0.5rem;
  }
  
  .error-message {
    font-size: 0.9rem;
  }
}

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

/* =================================
   CORRECCIÓN MENÚ AUTOS - DROPDOWN
   ================================= */

/* Fix para el contenedor del dropdown */
.cd-fix-dropdown-container {
    position: relative !important;
    z-index: 1001 !important;
}

/* Fix para el panel del dropdown */
.cd-fix-dropdown-panel {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    z-index: 1002 !important;
    min-width: 200px !important;
    max-width: 300px !important;
    margin-top: 0 !important;
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    overflow: visible !important;
}

/* Transiciones suaves */
.cd-fix-dropdown-panel {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cd-fix-dropdown-container.active .cd-fix-dropdown-panel,
.cd-fix-dropdown-container:hover .cd-fix-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .cd-fix-dropdown-panel {
        position: static !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        max-width: none !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .cd-fix-dropdown-container:not(.active) .cd-fix-dropdown-panel {
        display: none !important;
    }
}

/* Accesibilidad - Focus */
.cd-fix-dropdown-trigger:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.cd-fix-dropdown-panel a:focus {
    background-color: #f8f9fa;
    outline: 2px solid #007bff;
    outline-offset: -2px;
}