/* estilos generales*/
body {
  font-family: 'sans-serif', sans-serif;
  background-color: var(--body-bg);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}
/* variables de color de marca */
:root {
  --brand-red: #c62828; /* Color de hover del menu desplegable */
  --body-bg: #fff5f5; /* fondo principal del body, sutil tintado para armonizar con --brand-red */
  --azul: rgba(3, 28, 136, 0.85); /* color de fondo del carrusel de imagenes */
  --negro: rgba(0, 0, 0, 0.85); /* color de fondo del contenedor de imagenes */
  --rojo: rgb(255, 0, 0);
  --background: #101922;

  --brand-red: #c62828; /* Color de hover del menu desplegable */
  --body-bg: #fff5f5; /* fondo principal del body */
  --azul: rgba(3, 28, 136, 0.85);
  --negro: rgba(0, 0, 0, 0.85);
  --rojo: rgb(255, 0, 0);
  --background: #101922;
  --rojo-hover: #b71c1c;
  --gris-claro: #f8f9fa;
  --texto-oscuro: #2d2d2d;

  --primary-red: #8b0000;
  --accent-red: #dc143c;
  --dark-bg: #1a0000;
  --light-text: #ffffff;
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 1001;
  animation: pulse 2s infinite;
  text-decoration: none;
}

.whatsapp-float i {
  font-size: 32px;
  color: white;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* --------------------------------------------------------------------------------
                            Inicio de estilo para el header -----------------------
-----------------------------------------------------------------------------------*/

header img {
  width: 11.5rem;
  height: auto;
  transition: transform 0.5s ease;
}

header img:hover {
  transform: scale(1.1);
}

.contact-info-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--texto-oscuro);
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.contact-info-header:hover {
  color: var(--brand-red);
  transform: translateY(-2px);
}

.contact-info-header svg {
  transition: transform 0.3s ease;
}

.contact-info-header:hover svg {
  transform: scale(1.2);
}

/* Iconos de redes sociales */
.social-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 30%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-header:hover {
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-header.facebook:hover {
  background: #1877f2;
  color: white;
}

.social-header.instagram:hover {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  color: white;
}

/* --------------------------------------------------------------------------------
                            Final del estilo para el header -----------------------
-----------------------------------------------------------------------------------*/

/* ----------------------------------------------------------------------------------
                        Estilo para la barra de navegacion-------------------------
-------------------------------------------------------------------------------------*/
.navbar-brand {
  font-size: 1.4rem !important;
  font-weight: 700;
  color: var(--texto-oscuro) !important;
  transition: color 0.3s ease;
}

.navbar-brand:hover {
  color: var(--rojo-hover) !important;
}

.navbar-nav {
  gap: 0;
}

.nav-item {
  position: relative;
  padding: 0px 25px 0px 25px;
  font-size: 1.125rem;
  font-weight: 500;
  color: black;
}

.nav-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 30px;
  width: 3px;
  background: rgba(0, 0, 0, 0.712);
}

.nav-link {
  font-size: 1.125rem !important;
  font-weight: 500;
  color: var(--background) !important;
  padding: 0.5rem 0 !important;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--rojo-hover);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--brand-red) !important;
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link.active::before {
  width: 100%;
}

/* Botón WhatsApp */
.boton-whatsapp {
  background: linear-gradient(
    45deg,
    #25d366 0%,
    /* Verde WhatsApp principal */ #20c659 25%,
    /* Verde medio */ #1ebea5 50%,
    /* Verde agua */ #00a884 75%,
    /* Verde oscuro */ #007c65 100% /* Verde profundo */
  );
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
}

.boton-whatsapp:hover {
  color: white;
  transform: translateY(-30px);
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.5);
  filter: brightness(1.1);
}

.boton-whatsapp svg {
  width: 1.6rem;
  height: auto;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* ---------------------------------------------------------------------------------
                          Estilo para el carrusel de marcas ------------------------
------------------------------------------------------------------------------------*/

.brands-section {
  overflow: hidden;
  background: #ffffff;
  margin: 50px 70px 50px 70px;
}

.brands-track {
  width: max-content; /* porque duplicamos los logos */
  animation: scroll 20s linear infinite;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 10px;
  align-items: center;
}

.brands-track img {
  margin: 0 35px;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid #000000b6;
  border-radius: 25px;
}

.brand-item img {
  max-height: 70px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  filter: saturate(1);
  opacity: 0.9;
  transition: opacity 0.3s;
}

.brands-track img:hover {
  opacity: 1;
  filter: saturate(2);
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
/* ----------------------------------------------------------------------------------
                  final de estilo para el carrusel de marcas-------------------------
------------------------------------------------------------------------------------*-/

/* ----------------------------------------------------------------------------------
                Incio de estilos del contenedor de quienes somos ---------------------
  -----------------------------------------------------------------------------------*/

#quienes-somos {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--dark-bg) 0%,
    var(--primary-red) 50%,
    var(--dark-bg) 100%
  );
  color: var(--light-text);
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 40px 0;
  overflow: hidden;
}

#quienes-somos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(220, 20, 60, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(circle at 80% 50%, rgba(139, 0, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 300px 2px 2fr;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  max-width: 450px;
  width: 100%;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: 15px;
  bottom: 15px;
  border: 3px solid var(--accent-red);
  border-radius: 30px;
  z-index: -1;
}

.hero-image {
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: block;
}

.divider-line {
  width: 10px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--accent-red),
    transparent
  );
  min-height: 300px;
  margin-left: 15px;
}

.hero-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0px 0px 0px 42px;
}

.main-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: left;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #fff 0%, #ffcccc 50%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.lead-text {
  font-size: 1.1rem;
  text-align: justify;
}

.vision-mission-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 10px;

  p{
    text-align: justify;
  }
}

.card-vm {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 25px 15px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card-vm::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-red), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card-vm:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(220, 20, 60, 0.5);
  box-shadow: 0 20px 40px rgba(220, 20, 60, 0.2);
}

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

.card-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 25px;
  padding: 20px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.card-vm:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(220, 20, 60, 0.4);
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.card-text {
  font-size: 1.05rem;
  text-align: center;
}

/* ----------------------------------------------------------------------------------
                final de estilo del contenedor de quienes somos ----------------------
-------------------------------------------------------------------------------------*/

/* ----------------------------------------------------------------------------------
                /* Estadísticas  ----------------------
-------------------------------------------------------------------------------------*/
.stats-section {
  background: white;
  padding: 60px 0 !important;

  p {
    color: #000000;
    font-size: 1.125rem !important;
    font-weight: 500;
  }
}

.stat-card {
  text-align: center;
  padding: 30px 20px;
  border: 2px solid #eee;
  border-radius: 15px;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.05);
  border-color: var(--brand-red);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.stat-card i {
  font-size: 3rem;
  color: var(--brand-red);
  margin-bottom: 15px;
}

.stat-card h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-red);
  margin-bottom: 10px;
}
/* ----------------------------------------------------------------------------------
                final de estilo del contenedor Estadísticas ----------------------
-------------------------------------------------------------------------------------*/
/* ----------------------------------------------------------------------------------
                Inicio de estilo del contenedor de Proceso de Compra ----------------------
-------------------------------------------------------------------------------------*/
.proceso-section {
  background: var(--gris-claro);
  padding: 80px 0;
}

/* Tarjetas de pasos */
.proceso-step {
  text-align: center;
  padding: 30px;
  background: #fff;
  border: 2px solid transparent; /* 🔹 Sin borde por defecto */
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

/* Efecto hover: aparece el borde */
.proceso-step:hover {
  transform: translateY(-10px);
  border-color: var(--brand-red); /* 🔹 Aparece el borde rojo */
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

/* Número dentro del círculo */
.proceso-step .step-number {
  width: 70px;
  height: 70px;
  background: var(--brand-red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

/* Título y texto */
.proceso-step h5 {
  font-weight: 700;
  margin-bottom: 10px;
}

.proceso-step p {
  font-size: 1.1rem;
  color: #000000;
}

.proceso-step:hover .step-number {
  background: #ffe5e5; /* Un rojo claro (puedes ajustarlo) */
  color: var(--brand-red);
  border: 2px solid var(--brand-red);
  transition: all 0.3s ease;
}
/* ----------------------------------------------------------------------------------
                      final del estilo para la barra de navegacion--------------------
-------------------------------------------------------------------------------------*/

/* ----------------------------------------------------------------------------------
                        Inicio de estilos del contenedor de ventajas --------------------------
  -----------------------------------------------------------------------------------*/
.hero-scroll {
  padding: 45px 10px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #000;

  /* Imagen de fondo con efecto parallax */
  background-image: url('../images/seccion_ventajas.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* el truco para el scroll */
  isolation: isolate; /* evita conflictos con otras capas */
}

/* Capa oscura para contraste */
.hero-scroll::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  z-index: 0;
}

/* Contenido encima */
.hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.hero-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero-content p {
  font-size: 1.4rem;
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 25px;
  margin-bottom: 15px;
}
/* -------------------------------------------------------------------------------------
                        final de estilo del contenedor de ventajas ---------------------
----------------------------------------------------------------------------------------*/

/* -------------------------------------------------------------------------------------
                        inicio de estilo del contenedor de respuestos ---------------------
----------------------------------------------------------------------------------------*/

#repuestos {
  background: linear-gradient(
    180deg,
    var(--dark-bg) 0%,
    var(--primary-red) 100%
  );
  padding: 80px 0;
  color: white;
  position: relative;
}

#repuestos::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
}

.repuestos-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.repuestos-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.repuestos-description {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
}

.repuestos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  padding: 0 20px;
}

.repuesto-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.repuesto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.repuesto-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.repuesto-card:hover::before {
  opacity: 1;
}

.repuesto-image-container {
  height: 250px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.repuesto-image-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.05), transparent);
}

.repuesto-icon-overlay {
  position: relative;
  width: 140px;
  height: 140px;
  opacity: 1;
  z-index: 1;
  transition: all 0.4s ease;
}

.repuesto-card:hover .repuesto-icon-overlay {
  transform: scale(1.15) rotate(10deg);
}

.repuesto-icon-overlay svg {
  width: 100%;
  height: 100%;
  fill: var(--accent-red);
  stroke: var(--accent-red);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.repuesto-icon-overlay svg [fill='white'] {
  fill: white;
}

.repuesto-icon-overlay svg [stroke='white'] {
  stroke: white;
}

.repuesto-icon-overlay svg [fill='currentColor'] {
  fill: var(--accent-red);
}

.repuesto-icon-overlay svg [stroke='currentColor'] {
  stroke: var(--accent-red);
}

.repuesto-content {
  padding: 30px;
}

.repuesto-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: white;
}

.repuesto-description {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 25px;
  min-height: 50px;
}

.repuesto-btn {
  display: inline-block;
  background: white;
  color: var(--accent-red);
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid white;
}

.repuesto-btn:hover {
  background: transparent;
  color: white;
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* -------------------------------------------------------------------------------------
                          fin de Estilos del contenedor de respuestos ------------------------
  --------------------------------------------------------------------------------------*/
/* -------------------------------------------------------------------------------------
                          Estilos del contenedor de respuestos ------------------------
  --------------------------------------------------------------------------------------*/
#servicios {
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

#servicios::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(220, 20, 60, 0.03) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

#servicios::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(139, 0, 0, 0.03) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.servicios-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.servicios-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--dark-bg);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.servicios-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-red), var(--primary-red));
  border-radius: 2px;
}

.servicios-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-top: 20px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.servicio-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 2px solid transparent;
  overflow: hidden;
}

.servicio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-red), var(--primary-red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.servicio-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(220, 20, 60, 0.15);
  border-color: rgba(220, 20, 60, 0.1);
}

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

.servicio-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, var(--accent-red), var(--primary-red));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.servicio-card:hover .servicio-icon {
  transform: scale(1.1) rotate(10deg);
}

.servicio-icon svg {
  width: 50px;
  height: 50px;
  fill: white;
}

.servicio-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-bg);
  margin-bottom: 15px;
  text-align: center;
}

.servicio-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
  text-align: center;
}
/* -------------------------------------------------------------------------------------
                          fin de estilos del contenedor de testimonios ------------------------
  --------------------------------------------------------------------------------------*/

/* -------------------------------------------------------------------------------------
                          fin de Estilos del contenedor de respuestos ------------------------
  --------------------------------------------------------------------------------------*/
/* ==================== SECCIÓN TESTIMONIOS ==================== */
#testimonios {
  background: linear-gradient(
    180deg,
    var(--dark-bg) 0%,
    var(--primary-red) 100%
  );
  padding: 80px 0;
  color: white;
  position: relative;
  overflow: hidden;
}

#testimonios::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.testimonios-header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonios-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.carrusel-testimonio {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.carrusel-testimonio {
  padding: 20px 40px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 50px 40px;
  text-align: center;
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-quote-icon {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.1);
  position: absolute;
  top: 20px;
  left: 30px;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: 1.3rem;
  line-height: 1.8;
  margin-bottom: 25px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
  position: relative;
  z-index: 1;
}

.testimonial-stars {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #ffd700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.testimonial-author {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.testimonial-role {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 5px;
}

/* Indicadores del carousel */
.carousel-indicators {
  margin-bottom: -30px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background-color: var(--accent-red);
  border-color: white;
  transform: scale(1.2);
}
/* -------------------------------------------------------------------------------------
                          Estilos del contenedor de testimonios ------------------------
  --------------------------------------------------------------------------------------*/

.footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #dc3545 0%, #ff6b6b 50%, #dc3545 100%);
}

.footer h3 {
  color: #dc3545;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-logo {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo img {
  background: #ffffff;
  padding: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.footer-logo img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

@media (max-width: 768px) {
  .footer-logo img {
    max-width: 150px !important;
  }
}

.footer h5 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: #dc3545;
}

.footer p {
  color: #cccccc;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.footer-link {
  color: #cccccc;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0.3rem 0;
  position: relative;
}

.footer-link::before {
  content: '›';
  margin-right: 0.5rem;
  color: #dc3545;
  font-weight: bold;
}

.footer-link:hover {
  color: #dc3545;
  transform: translateX(5px);
}

.contact-info {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.contact-info:hover {
  background: rgba(220, 53, 69, 0.1);
}

.contact-info i {
  color: #dc3545;
  font-size: 1.2rem;
  margin-right: 1rem;
  width: 25px;
  text-align: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: #dc3545;
  color: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.footer-bottom {
  background: #0d0d0d;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
}

.footer-bottom p {
  color: #999999;
  margin: 0;
  font-size: 0.9rem;
}

.footer-bottom strong {
  color: #dc3545;
}

@media (max-width: 768px) {
  .footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .text-md-start {
    text-align: center !important;
  }

  .contact-info {
    justify-content: center;
  }
}

/* -----------------------------------------------------------------------------------
                              Estilos para movil -------------------------------------
  ------------------------------------------------------------------------------------*/

@media (max-width: 450px) {
  /* Estilos para la imagen del logo tipo del header */
  header img {
    margin: auto;
    width: 13rem;
    margin-left: 40px;
  }
  /*Estilos para el contenedor de el icono de WhatSapp y Ubicacion*/
  #cont_info {
    display: flex;
    flex-direction: column; /* uno debajo del otro */
    align-items: center; /* centrados horizontalmente */
    gap: 0; /* sin espacio entre ellos */
  }

  /* ---------------------------------------------
      Estilos para tables de la barra de navegacion
  ----------------------------------------------*/
  .nav-item::after {
    display: none;
  }

  .nav-item:not(:last-child)::after {
    display: none;
    content: none; /* también ayuda a eliminarlo completamente */
  }

  .navbar-collapse {
    margin-top: 0.1rem;
    background: #f8f9fa;
    border-radius: 10px;
  }

  .boton-whatsapp {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }

  .contact-info-header {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.3rem 0.5rem;
    letter-spacing: -0.5px;
  }

  /* ---------------------------------------------
      Estilos para móviles del contendor de BIENVENIDA
  ----------------------------------------------*/
  #bienvenida h1 {
    font-size: 1.8rem;
  }

  #bienvenida {
    padding: 50px 10px 0px 10px;

    p {
      line-height: 1.4;
    }
  }

  /* ---------------------------------------------
      Estilos para móviles del carrusel de marcas
  ----------------------------------------------*/
  /*Estilo para el titulo de la seccion de marcas */
  main section:nth-child(3) h2 {
    font-size: 1.4rem;
    padding: 0 25px;
  }

  .brands-section {
    overflow: hidden;
    background: #ffffff;
    margin: 20px 10px 20px 10px; /* <-- nuevo margin para móvil */
  }

  .brand-item {
    flex: 0 0 calc(100% / 2); /* 2 logos por fila */
    border-radius: 25px;
  }

  .brand-item img {
    max-height: 50px;
    height: 45px;
  }

  /* ---------------------------------------------
      Estilos para móviles de la seccion ventajas
  ----------------------------------------------*/
  .hero-scroll {
    height: auto;
    padding: 50px 15px;
    background-attachment: scroll;
    background-position: center;
  }

  .hero-content h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0;
  }

  .hero-content p {
    font-size: 1rem;
    padding: 6px 10px;
    border-radius: 15px;
    margin-bottom: 12px;
  }

  /* ---------------------------------------------
      Estilos para móviles de la seccion ventajas
  ----------------------------------------------*/
  #quienes-somos {
    padding: 50px 0;
  }

  .main-title {
    font-size: 1.6rem;
  }

  .card-vm {
    padding: 30px 20px;
  }

  .card-icon {
    width: 100px;
    height: 100px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .divider-line {
    display: none;
  }

  .hero-image-wrapper {
    max-width: 350px;
  }

  .main-title,
  .lead-text {
    text-align: center;
  }

  .hero-text-container {
    padding: 0 20px;
  }

  /* Estilos en movil de respuestos*/
  .section-title,
  .repuestos-title {
    font-size: 1.6rem;
  }

  .blog-content {
    padding: 0 20px 25px;
  }

  .repuesto-content {
    padding: 20px;
  }

  /* Estilos en movil de servicios*/
  .servicios-title,
  .testimonios-title {
    font-size: 1.6rem;
  }

  .servicio-icon {
    width: 70px;
    height: 70px;
  }

  .servicio-icon svg {
    width: 40px;
    height: 40px;
  }

  .testimonial-text {
    font-size: 1rem;
  }
}

/* -----------------------------------------------------------------------------------
                              Estilos para tables -------------------------------------
  ------------------------------------------------------------------------------------*/

@media (min-width: 450px) and (max-width: 992px) {
  /* ---------------------------------------------
      Estilos para table de la imagen del header
  ----------------------------------------------*/
  header img {
    margin: auto;
    width: 13rem;
    margin-left: 75px;
  }

  #cont_info {
    flex-direction: column;
    gap: 0.5rem !important;
  }

  /* ---------------------------------------------
      Estilos para tables de la barra de navegacion
  ----------------------------------------------*/
  .nav-item::after {
    display: none;
  }

  .nav-item:not(:last-child)::after {
    display: none;
    content: none; /* también ayuda a eliminarlo completamente */
  }

  .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
  }

  .boton-whatsapp {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }

  .contact-info-header {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.3rem 0.5rem;
    letter-spacing: -0.5px;
  }
  /* ---------------------------------------------
      Estilos para tablets del carrusel de marcas
  ----------------------------------------------*/
  .brands-section {
    overflow: hidden;
    background: #ffffff;
    margin: 50px 20px 50px 20px;
  }

  .brand-item {
    flex: 0 0 calc(100% / 4); /* 3 logos por fila */
  }

  .brand-item img {
    max-height: 60px;
    height: 50px;
  }

  /* ---------------------------------------------
      Estilos para móviles de la seccion ventajas
  ----------------------------------------------*/
  .hero-scroll {
    height: auto;
    padding: 60px 20px;
    background-attachment: scroll;
    background-position: center;
  }

  .hero-content {
    padding: 10px;
  }

  .hero-content h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 25px;
  }

  .hero-content p {
    font-size: 1.2rem;
    padding: 8px 12px;
    border-radius: 20px;
  }

  .main-title {
    font-size: 2rem;
  }

  .lead-text {
    font-size: 1rem;
  }

  .vision-mission-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .stat-item {
    display: block;
    margin: 20px 0;
  }

  .stat-number {
    font-size: 2.5rem;
  }
  /* ---------------------------------------------
      Estilos para móviles de la seccion ventajas
  ----------------------------------------------*/

  #quienes-somos {
    padding: 50px 0;
  }

  .main-title {
    font-size: 1.6rem;
  }

  .card-vm {
    padding: 30px 20px;
  }

  .card-icon {
    width: 100px;
    height: 100px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .divider-line {
    display: none;
  }

  .hero-image-wrapper {
    max-width: 350px;
  }

  .main-title,
  .lead-text {
    text-align: center;
  }

  .hero-text-container {
    padding: 0 20px;
  }

  /* Estilos en tables de respuestos*/
  .section-title,
  .repuestos-title {
    font-size: 2rem;
  }

  .blog-grid,
  .repuestos-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .blog-title {
    font-size: 1.2rem;
    min-height: auto;
  }

  .repuesto-image-container {
    height: 200px;
  }

  #blog-section,
  #repuestos {
    padding: 50px 0;
  }

  /* Estilos en tables de servicios*/
  .servicios-title,
  .testimonios-title {
    font-size: 2rem;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .servicio-card {
    padding: 30px 25px;
  }

  .carrusel-testimonio {
    padding: 30px 20px;
  }

  .testimonial-card {
    padding: 40px 25px;
    min-height: auto;
  }

  .testimonial-text {
    font-size: 1.1rem;
  }

  #servicios,
  #testimonios {
    padding: 50px 0;
  }
}
