/* =====================================================
   VARIABLES DE IDENTIDAD VISUAL (cambiar aquí primero)
   ===================================================== */
:root {
	

  /* ===========================
     Paleta Principal (Rojo + Energía)
     =========================== */
  --color-red: #C21A26;          /* Rojo intenso: protagonista, poderoso y agresivo */
  --color-red-secondary: #FF1E1E;/* Rojo eléctrico: usado en hover, CTA fuertes */
  --color-red-accent: #FF4D6D;   /* Rojo neón-rosado: microinteracciones modernas */
  --color-red-light: #FF9AA2;    /* Rojo pastel: fondos suaves y hover sutil */

  /* ===========================
     Colores Neutros de Soporte
     =========================== */
  --color-dark: #121212;         /* Negro profundo: base elegante, futurista */
  --color-gray: #4A4A4A;         /* Gris carbón: textos secundarios */
  --color-gray-light: #E5E5E5;   /* Gris claro: secciones alternas */
  --color-white: #FFFFFF;        /* Blanco puro: contraste y limpieza */

  /* ===========================
     Colores Arriesgados (Impacto)
     =========================== */
  --color-blue-electric: #007BFF;/* Azul eléctrico: contrasta con el rojo, moderno */
  --color-cyan-neon: #00F5D4;    /* Cian neón: detalles vibrantes, hover inesperados */
  --color-gold-metal: #FFD700;   /* Dorado metálico: premium, para etiquetas exclusivas */

  /* ===========================
     Mapear a Bootstrap
     =========================== */
  --bs-primary: var(--color-red);
  --bs-secondary: var(--color-gray);
  --bs-dark: var(--color-dark);
  --bs-light: var(--color-white);




  /* Formularios */
  --form-bg-dark-overlay: rgba(0,0,0,0.25);
  --form-text-light: #FFFFFF;
  --form-border: #ddd;
  --form-focus-border: var(--color-red-secondary);
  --form-focus-shadow: rgba(224,58,62,0.25);
  --form-btn-bg: var(--color-red);
  --form-btn-hover: var(--color-red-secondary);

  /* Filtros */
  --filter-bg: var(--color-white);
  --filter-input-border: #ddd;
  --filter-input-focus: var(--color-red-secondary);
  --filter-input-focus-shadow: rgba(224,58,62,0.25);
  --filter-btn-bg: var(--color-red);
  --filter-btn-hover: var(--color-red-secondary);
  --filter-text: var(--color-dark);
}

/* =====================================================
   TIPOGRAFÍA GLOBAL
   ===================================================== */



html, body {

	overflow-x:hidden;
	margin: 0;
	padding:0

}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--color-white);
  color: var(--color-gray);
  font-size: 0.95rem;
  line-height: 1.5;
}


h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  
}




.nav-link, label, .form-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar-dark { background-color: var(--color-dark); }

.navbar-nav .nav-link { 
  color: var(--color-white); 
  font-weight: 500; 
  transition: color 0.2s; 
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { 
  color: var(--color-red-secondary); 
  font-weight: 600; 
}

.navbar-brand img { max-height: 50px; transition: transform 0.3s ease; }
.navbar-brand img:hover { transform: scale(1.05); }

/* Botón hamburguesa */
.navbar-toggler { border-color: rgba(255,255,255,0.3); }

/* Dropdown */
.dropdown-menu { background-color: #18252C; border: none; }
.dropdown-menu .dropdown-item { 
  color: var(--color-white); 
  transition: background 0.2s, color 0.2s; 
}
.dropdown-menu .dropdown-item:hover { 
  background-color: var(--color-red-secondary); 
  color: var(--color-white); 
}

/* Menú hamburguesa en móviles */
@media (max-width: 991.98px) {
  .custom-mobile-menu {
    position: absolute;
    top: 100%; left: 0;
    width: 100%;
    background-color: #2A2A2A;
    z-index: 1050;
    padding: 1rem 0;
  }
  .custom-mobile-menu .nav-link {
    color: var(--color-white);
    text-align: center;
    padding: 0.75rem;
    transition: background 0.3s ease;
  }
  .custom-mobile-menu .nav-link:hover {
    background-color: var(--color-red);
    color: var(--color-white);
  }
}

/* =====================================================
   BOTONES
   ===================================================== */
.btn-red {
  background-color: var(--color-red);
  color: var(--color-white);
  border-radius: 2rem;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(194,26,38,0.4);
}
.btn-red:hover {
  background-color: var(--color-red-secondary);
  transform: scale(1.05);
}

.btn-outline-red {
  border: 2px solid var(--color-red);
  color: var(--color-red);
  border-radius: 2rem;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-outline-red:hover {
  background-color: var(--color-red-secondary);
  color: var(--color-white);
  box-shadow: 0 4px 10px rgba(224,58,62,0.3);
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
  border-radius: 0.5rem;
  border: 1px solid #ddd;
  background-color: var(--color-white);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.12); }

.card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  color: var(--color-dark);
  font-size: 1rem;
}
.card ul li { margin-bottom: 0.25rem; font-size: 0.7rem; color: var(--color-gray); }
.card ul i { width: 18px; text-align: center; color: var(--color-red); }

/* =====================================================
   FORMULARIOS
   ===================================================== */
.form-control,
.form-select {
  border-radius: 0.75rem;
  border: 1px solid #ddd;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--form-focus-border);
  box-shadow: 0 0 0 0.25rem var(--form-focus-shadow);
}

/* Formularios en overlay oscuro */
#form-contacto-monsalves .form-control,
#form-contacto-monsalves .form-select,
#form-contacto-monsalves textarea {
  background-color: var(--form-bg-dark-overlay);
  color: var(--form-text-light);
  border: 1px solid var(--form-border);
  border-radius: 0.75rem;
  transition: border 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
#form-contacto-monsalves .form-control:focus,
#form-contacto-monsalves .form-select:focus,
#form-contacto-monsalves textarea:focus {
  border-color: var(--form-focus-border);
  box-shadow: 0 0 0 0.25rem var(--form-focus-shadow);
  background-color: rgba(255,255,255,0.15);
  color: var(--form-text-light);
  transform: scale(1.01);
}


#form-contacto-monsalves .form-label { color: var(--form-text-light); }
/* Botones de formularios (unificados) */
#form-contacto-monsalves button[type="submit"],
#vehiculo-filtro button[type="submit"],
#form-cotizacion button[type="submit"] {
  background-color: var(--form-btn-bg);
  color: var(--color-white);
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(194, 26, 38, 0.4);

  /* Transición más suave y fluida */
  transition: 
    background-color 0.4s ease-in-out,
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease-in-out;
}

#form-contacto-monsalves button[type="submit"]:hover,
#vehiculo-filtro button[type="submit"]:hover,
#form-cotizacion button[type="submit"]:hover {
  background-color: var(--form-btn-hover);
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgba(224, 58, 62, 0.55);
}

/* ============================
   Botones: base y animación
   ============================ */

/* Aseguramos que los botones objetivo sean posicionables y recorten el ripple */
#form-contacto-monsalves button[type="submit"],
#vehiculo-filtro button[type="submit"],
#form-cotizacion button[type="submit"],
.btn-red {
  position: relative;        /* necesario para posicionar el ripple */
  overflow: hidden;          /* recorta el ripple al borde */
  -webkit-tap-highlight-color: transparent;
  will-change: transform, box-shadow;
  cursor: pointer;
  outline: none;
}

/* Focus visible accesible y elegante */
#form-contacto-monsalves button[type="submit"]:focus-visible,
#vehiculo-filtro button[type="submit"]:focus-visible,
#form-cotizacion button[type="submit"]:focus-visible,
.btn-red:focus-visible {
  box-shadow: 0 0 0 4px rgba(224,58,62,0.14), 0 6px 18px rgba(0,0,0,0.12);
  border-radius: 2rem;
}

/* El elemento ripple — creado por JS dentro del botón */
.button-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  pointer-events: none;
  opacity: 0.85;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  /* Para botones oscuros: usar sombra sutil */
  box-shadow: 0 6px 16px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.03);
}

/* Animación: escala y desvanecimiento */
.button-ripple.animate {
  transform: scale(1);
  opacity: 0;
  transition: transform 540ms cubic-bezier(.2,.8,.2,1), opacity 480ms ease-out;
}

/* Hacer la animación más corta si se prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .button-ripple,
  .button-ripple.animate {
    transition: none;
    opacity: 0.6;
  }
}
/* ===========================
   Ripple Effect - Global Buttons
   =========================== */
button[type="submit"],
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

button[type="submit"]:hover,
.btn:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ripple 0.75s linear;
  pointer-events: none;
  z-index: 0;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}


/* =====================================================
   FOOTER
   ===================================================== */
footer {
  padding: 2rem 0;
  transition: background 0.3s ease;
}
footer a {
  color: var(--color-red-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}
footer a:hover { color: var(--color-red); text-decoration: underline; }


/* =====================================================
   HERO PARALLAX AVANZADO
   ===================================================== */

.hero-parallax-advanced {
  position: relative;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-dark); /* Fallback detrás de la imagen */
  color: #fff;
}


/* Fix para navegadores móviles que no manejan bien vh dinámico */
@supports (height: 100dvh) {
  .hero-parallax-advanced {
    min-height: calc(100dvh - 70px); /* dvh = viewport dinámico en mobile */
  }
}


.hero-parallax-advanced .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%; /* extra altura para margen de movimiento */
  z-index: 0;
  overflow: hidden;
}

.hero-parallax-advanced .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(0);
  will-change: transform;
  transition: transform 0.1s linear;
}

.hero-parallax-advanced .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(24, 37, 44, 0.55);
  z-index: 1;
}

.hero-parallax-advanced .hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 1rem;
  text-align: center;
}

.hero-parallax-advanced .hero-title {
  text-shadow: 0 3px 12px rgba(0,0,0,0.5);
}

.hero-parallax-advanced .hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.hero-parallax-advanced .hero-form {
  background: rgba(0,0,0,0.4);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* =====================================================
   FORMULARIO OVERLAY (reutilizable en todas las páginas)
   ===================================================== */
.form-overlay {
  background: rgba(30, 30, 30, 0.3);
  backdrop-filter: blur(6px);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: all 0.5s ease;
}

.form-overlay label {
  font-weight: 600;
  color: #fff;
}

.form-overlay .form-control,
.form-overlay .form-select,
.form-overlay textarea {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: box-shadow 0.3s ease;
}

.form-overlay .form-control:focus,
.form-overlay .form-select:focus,
.form-overlay textarea:focus {
  box-shadow: 0 0 0 0.2rem rgba(0,181,192,0.35);
  outline: none;
}

.form-overlay button[type="submit"] {
  font-size: 1.05rem;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

/* =====================================================
   RESPONSIVE ADAPTATIONS
   ===================================================== */
@media (max-width: 767.98px) {
  .hero-parallax-advanced .hero-content {
    padding: 2rem 1rem;
  }

  .hero-parallax-advanced .hero-title {
    font-size: 1.75rem;
  }

  .hero-parallax-advanced .hero-subtitle {
    font-size: 1rem;
  }

  /* Botones */
  .btn-red, .btn-outline-red { 
    font-size: 1rem; 
    padding: 0.5rem 1.25rem; 
  }

  /* Formularios */
  .form-overlay {
    padding: 1.5rem;
  }

  .form-overlay .form-control,
  .form-overlay .form-select,
  .form-overlay textarea {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
  }

  .form-overlay button[type="submit"] {
    font-size: 0.95rem;
    padding: 0.5rem 1.5rem;
  }




  #vehiculo-filtro .form-control,
  #vehiculo-filtro .form-select { 
    padding: 0.5rem 0.75rem; 
    font-size: 0.95rem; 
  }

  #vehiculo-filtro button[type="submit"] { 
    padding: 0.5rem 1rem; 
    font-size: 0.95rem; 
  }

  #vehiculo-filtro .col-md-3,
  #vehiculo-filtro .col-md-2 { 
    margin-bottom: 0.5rem; 
  }
}

/* =====================================================
   HERO PARALLAX FILTRO - ARCHIVE STOCK
   ===================================================== */
.hero-parallax-filtro {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-dark);
  color: #fff;
  min-height: calc(20vh - 70px);
  text-align: center;
}

@supports (height: 25dvh) {
  .hero-parallax-filtro {
    min-height: calc(20dvh - 70px);
  }
}

/* BACKGROUND */
.hero-parallax-filtro .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  z-index: 0;
  overflow: hidden;
}

.hero-parallax-filtro .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(0);
  will-change: transform;
  transition: transform 0.1s linear;
}

/* OVERLAY */
.hero-parallax-filtro .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(24,37,44,0.55);
  z-index: 1;
}

/* CONTENIDO */
.hero-parallax-filtro .hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1rem;
}

.hero-parallax-filtro .hero-title {
  text-shadow: 0 3px 12px rgba(0,0,0,0.5);
  font-size: 2rem;
}

.hero-parallax-filtro .hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* FORMULARIO FILTROS */
.hero-parallax-filtro .hero-form {
  background: rgba(0,0,0,0.4);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* =====================================================
   Badges Filtros Activos - Color Rojo Komodo
   ===================================================== */
#filtros-activos .badge {
  background-color: var(--color-red) !important;
  color: #fff !important;
  font-size: 0.8rem;
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0.55rem;
  border-radius: 50rem; /* pill */
}

#filtros-activos .badge .btn-close {
  filter: brightness(0) invert(1); /* X blanca visible */
}

/* ANIMACIÓN CAMPOS INVÁLIDOS */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-6px); }
}
.shake-invalid {
  animation: shake 0.3s;
  border-color: #FF1E1E !important;
  box-shadow: 0 0 5px #FF1E1E !important;
}

/* Animaciones */
.fade-in { animation: fadeIn 0.4s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* Colores badges */
.badge.bg-red {
  background-color: #C21A26 !important;
  color: #fff !important;
  transition: background-color 0.3s ease;
}
.badge.bg-red:hover { background-color: #a3151f !important; }


/* ===============================
   Contenedor de resultados
   =============================== */
#vehiculo-resultados {
  min-height: 60vh;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  position: relative; /* necesario para el overlay */
  transition: opacity 0.3s ease;
}

/* Estado cargando */
#vehiculo-resultados.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ===============================
   Loader Overlay
   =============================== */
#vehiculo-resultados::after {
  content: "";
  position: absolute;
  inset: 0;
  display: none;
  background: rgba(255,255,255,0.8);
  z-index: 10;
}

#vehiculo-resultados.loading::after {
  display: block;
}

/* Spinner centrado */
#vehiculo-resultados::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 4px solid rgba(194, 26, 38, 0.2); /* base */
  border-top-color: #C21A26;                /* rojo protagonista */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 11;
  display: none;
}

#vehiculo-resultados.loading::before {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}



/* =====================================================
   SECCIÓN DE CONTACTO
====================================================== */
.contacto-info {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.contacto-info .info-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contacto-info .info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.contacto-info i {
  min-width: 24px;
  text-align: center;
}

.contacto-info .text-accent {
  color: #C21A26;
}

.contacto-info .map-wrapper {
  height: 100%;
}

@media (max-width: 991.98px) {
  .contacto-info .map-wrapper {
    height: 350px;
  }
}


/* ==== Galería Entregas Definitiva ==== */
.entregas-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
}
.entregas-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.7s ease;
}
.entregas-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  transition: opacity 0.5s ease;
  opacity: 1; /* Visible al inicio */
}
.entregas-card:hover .entregas-overlay {
  opacity: 0; /* Desaparece al hover */
}
.entregas-card:hover .entregas-img {
  transform: scale(1.15); /* Zoom suave al hover */
}
.entregas-item {
  min-height: 250px;
  position: relative;
}
@media (max-width: 576px) {
  .entregas-item { min-height: 200px; }
}
.entregas-footer-separator {
  width: 100%;
  display: block;
  height: 1px; /* siempre deja espacio para footer */
}






/* =====================================================
   COMPONENTES VARIOS
   ===================================================== */
.badge.bg-success { background-color: #28a745; }
.badge.bg-warning { background-color: #ffc107; color: #212529; }
.badge.bg-secondary { background-color: #6c757d; }
.text-danger { color: var(--color-red-secondary) !important; }
.text-dark { color: #212529 !important; }
.img-fluid.rounded { border-radius: 12px; transition: transform 0.3s ease; }
.img-fluid.rounded:hover { transform: scale(1.05); }
.nav-tabs .nav-link.active { color: var(--color-red-secondary); font-weight: 600; }
.tab-pane img { border-radius: 8px; transition: transform 0.3s ease; }
.tab-pane img:hover { transform: scale(1.05); }


.vehiculo-gallery-wrapper { max-width: 950px; margin: 0 auto; }
.vehiculo-gallery-main .swiper-slide img { width:100%; height:auto; display:block; object-fit:cover; }
.vehiculo-gallery-thumbs { margin-top: 0.75rem; }
.vehiculo-gallery-thumbs .swiper-slide { width:auto; opacity: .6; cursor:pointer; padding:2px; }
.vehiculo-gallery-thumbs .swiper-slide-active,
.vehiculo-gallery-thumbs .swiper-slide-thumb-active { opacity:1; border-radius:6px; box-shadow:0 2px 6px rgba(0,0,0,0.15); }
.swiper-lazy-preloader { width: 32px; height: 32px; }

