/* ===== RESET Y VARIABLES ===== */
html {
  overflow-y: scroll;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

@font-face {
  font-family: "Russo One";
  src: url("../autosmgc/Fuente/RussoOne-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "Russo One", sans-serif;
  line-height: 1.6;
  background-color: white;
  margin: 0;
  padding: 0;
}

.contendorPagina {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  border-color: #950000;
  border-width: thin;
  border-style: solid;
}

/* ===== NAVEGACIÓN STICKY ===== */
.barra_navegacion {
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 2px solid #950000;
  width: 100%;
}

.barra_navegacion_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  flex-wrap: wrap;
  gap: 20px;
}

.AutosMGCLogo {
  width: 160px;
  height: auto;
}

.barra_navegacion_menu {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.barra_navegacion_enlace {
  color: #790505;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.barra_navegacion_enlace:hover {
  color: #c14444;
}

/* ===== CARRUSEL ===== */
.frontal {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.carrusel {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carrusel-contenedor {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carrusel-img {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: cover;
}

.carrusel-btn {
  font-size: 1.5rem;
  background-color: #4b0000;
  color: white;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.8rem;
  opacity: 0.8;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.carrusel-btn:hover {
  background-color: #c14444;
  opacity: 1;
}

.carrusel-btn:first-of-type {
  left: 5px;
}

.carrusel-btn:last-of-type {
  right: 5px;
}

.indicadores {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 1;
}

.indicador {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.indicador.activo {
  background-color: white;
}

/* ===== TEXTOS CLAVE ===== */
.textoCLAVE1 {
  text-align: center;
  padding: 20px 15px;
  font-size: 2.5rem;
  font-weight: 500;
  color: #616161;
  letter-spacing: 5px;
  word-break: break-word;
}

.subtextoCLAVE1 {
  text-align: center;
  padding: 0 15px 30px;
  font-size: 1.4rem;
  font-weight: normal;
  line-height: 1.3;
  margin-top: -20px;
}

/* ===== PROMOCIONES ===== */
.Promociones {
  width: 100%;
  position: relative;
  max-height: 350px;
  overflow: hidden;
  margin-bottom: 30px;
}

.PromocionesImagen {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.PromocionesTexto {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid white;
  font-size: 1rem;
  color: white;
  background-color: #790505;
  padding: 8px 20px;
  white-space: nowrap;
  transition: all 0.2s;
}

.PromocionesTexto:hover {
  background-color: white;
  color: #790505;
}

/* ===== MISCELÁNEO ===== */
.miscelaneo {
  padding: 30px 20px;
}

.textomultipleencabezado {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #950000;
  text-align: center;
}

.opcionesencuadradas {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

.opcionesmiscelaneas {
  flex: 1 1 280px;
  max-width: 320px;
  background: white;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.opcion_imagen {
  width: 100%;
  border-radius: 8px;
}

.opcion_titulo {
  font-size: 1.3rem;
  font-weight: bold;
  margin-top: 15px;
  color: #950000;
  letter-spacing: 1px;
}

.opcion_descripcion {
  font-size: 1rem;
  color: #555;
  margin-top: 5px;
}

/* ===== REVISIÓN ===== */
.Revision {
  padding: 30px 20px;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.Revision_Encabezado {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #950000;
}

.Revision_TextoBoton {
  display: inline-block;
  background-color: #790505;
  color: white;
  padding: 10px 25px;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.Revision_TextoBoton:hover {
  background-color: white;
  color: #790505;
  border-color: #790505;
}

/* ===== CITA DE SERVICIO ===== */
.CitaDeServicio {
  position: relative;
  max-height: 350px;
  overflow: hidden;
  margin: 20px 0;
}

.CitaDeServicioImagen {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.BotonCitadeServicio {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
}

.CitadeServicioTexto {
  background-color: #790505;
  color: white;
  padding: 8px 20px;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
  white-space: nowrap;
}

.CitadeServicioTexto:hover {
  background-color: white;
  color: #790505;
  border: 1px solid #790505;
}

/* ===== NOTICIAS ===== */
.NoticiasMGC {
  margin-top: 60px;
  padding: 0 20px;
}

.NoticiasMGC_Encabezado {
  font-size: 2rem;
  text-align: center;
  color: #950000;
  margin-bottom: 20px;
}

.NoticasMGC_SubTexto {
  text-align: center;
  font-size: 1.2rem;
  color: #616161;
  margin-top: -15px;
  margin-bottom: 30px;
}

.NoticiasMGC_Imagen {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
  margin: 0 auto 30px;
}

/* ===== PIE DE PÁGINA ===== */
.subPie_Pagina {
  background: #343434;
  padding: 20px 20px;
}

.pie_pagina {
  background-color: #252525;
  color: white;
  padding: 40px 20px;
}

.pie_pagina_container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.pie_pagina_seccion {
  flex: 1 1 200px;
}

.pie_pagina_titulo {
  font-size: 1.3rem;
  font-weight: 100;
  margin-bottom: 15px;
}

.pie_pagina_lista {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pie_pagina_item {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.pie_pagina_enlace {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}

.pie_pagina_enlace:hover {
  color: whitesmoke;
}

.pie_pagina_abajo {
  background-color: #5d0e0e;
  text-align: center;
  padding: 15px;
}

.afterPie_Pagina {
  background-color: white;
  border-top: 2px solid #950000;
}

.AfterPieContenedor {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.pie_pagina_texto {
  font-size: 1rem;
  font-weight: 500;
  color: #790505;
  text-decoration: none;
}

.pie_pagina_texto:hover {
  color: #c14444;
}

.AutosMGCLogo-r {
  width: 150px;
  height: auto;
}

/* ===== CATÁLOGO ===== */
.catalogo-header {
  background: linear-gradient(135deg, #950000 0%, #5d0e0e 100%);
  padding: 30px 20px;
  border-radius: 16px;
  margin: 20px;
  color: white;
  text-align: center;
}

.catalogo-titulo {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.buscador-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.buscador-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: white;
  padding: 12px;
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
}

#busqueda {
  flex: 1;
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
}

#filtro {
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  min-width: 150px;
}

.btn-buscar {
  background: linear-gradient(135deg, #950000 0%, #5d0e0e 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.catalogo-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  padding: 20px;
}

.filtros-sidebar {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  flex: 1 1 260px;
  position: sticky;
  top: 80px;
  align-self: flex-start;
}

.filtro-grupo {
  margin-bottom: 20px;
}

.filtro-titulo {
  color: #950000;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 4px;
}

.filtro-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.9rem;
}

.catalogo-grid-container {
  flex: 3;
  min-width: 0;
}

.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.producto-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: 0.2s;
  text-decoration: none;
  display: block;
}

.producto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.producto-imagen {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #f8f9fa;
}

.producto-info {
  padding: 15px;
}

.producto-nombre {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 5px;
}

.producto-precio {
  font-size: 1.2rem;
  font-weight: 700;
  color: #950000;
  margin-bottom: 8px;
}

.producto-descripcion {
  color: #718096;
  font-size: 0.85rem;
  line-height: 1.4;
}

.producto-etiqueta {
  display: inline-block;
  background: #950000;
  color: white;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  position: absolute;
  top: 10px;
  right: 10px;
}

.btn-reestablecer {
  width: 100%;
  background: #616161;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 15px;
  transition: 0.2s;
}

.btn-reestablecer:hover {
  background: #950000;
}

/* ===== MEDIA QUERIES ESPECÍFICAS ===== */
@media (max-width: 768px) {
  .barra_navegacion_container {
    flex-direction: column;
    text-align: center;
  }

  .barra_navegacion_menu {
    gap: 15px;
    margin-right: 0;
  }

  .barra_navegacion_enlace {
    font-size: 1rem;
  }

  .frontal {
    height: 250px;
  }

  .textoCLAVE1 {
    font-size: 1.8rem;
    letter-spacing: 3px;
  }

  .subtextoCLAVE1 {
    font-size: 1.1rem;
  }

  .PromocionesTexto,
  .CitadeServicioTexto {
    font-size: 0.9rem;
    padding: 6px 15px;
    white-space: nowrap;
  }

  .textomultipleencabezado {
    font-size: 1.8rem;
  }

  .opcionesencuadradas {
    flex-direction: column;
    align-items: center;
  }

  .opcionesmiscelaneas {
    max-width: 90%;
  }

  .Revision_Encabezado {
    font-size: 1.6rem;
  }

  .NoticiasMGC_Encabezado {
    font-size: 1.6rem;
  }

  .NoticasMGC_SubTexto {
    font-size: 1rem;
  }

  .pie_pagina_container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .AfterPieContenedor {
    flex-direction: column;
    text-align: center;
  }

  .catalogo-header {
    margin: 10px;
    padding: 20px;
  }

  .catalogo-titulo {
    font-size: 1.5rem;
  }

  .buscador-box {
    flex-direction: column;
  }

  .filtros-sidebar {
    position: static;
    width: 100%;
  }

  .catalogo-layout {
    flex-direction: column;
  }

  .catalogo-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .frontal {
    height: 200px;
  }

  .carrusel-btn {
    font-size: 1.2rem;
    padding: 0.3rem 0.6rem;
  }

  .textoCLAVE1 {
    font-size: 1.5rem;
  }

  .PromocionesTexto,
  .CitadeServicioTexto {
    font-size: 0.8rem;
    padding: 4px 12px;
  }

  .catalogo-grid {
    grid-template-columns: 1fr;
  }

  .producto-imagen {
    height: 140px;
  }
}