/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Colores principales */
:root {
  --primary-red: #e60000;
  --white: #fff;
  --black: #000;
  --grey: #f2f2f2;
}

/* Encabezado y navegación */
header {
  background: var(--white);
  border-bottom: 1px solid #ccc;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  max-height: 50px;
}

nav {
  position: relative;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-list li a {
  text-decoration: none;
  color: var(--black);
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.3s;
}

.nav-list li a:hover {
  background: var(--primary-red);
  color: var(--white);
}

/* Hamburger menu (oculto en pantallas grandes) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--black);
  margin: 4px 0;
  transition: 0.4s;
}

/* Slider */
.slider-section {
  position: relative;
  overflow: hidden;
}

.slider {
  position: relative;
  width: 100%;
  height: auto;
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  display: block;
}

/* Secciones generales */
.container {
  max-width: 1200px;
  margin: 8px auto;
  padding: 0 20px;
}

.nosotros-section,
.marcas-section,
.promociones-section,
.contacto-section {
  padding: 10px 0;
}

/* Sección Marcas: grid de 3 columnas y 2 filas */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-items: center;
}

.brand-item {
  width: 400px;
  height: 200px;
 /* background: var(--grey);*/
  display: flex;
  align-items: center;
  justify-content: center;
 /* border: 1px solid #ccc;*/
}

.brand-item img {
  max-width: 80%;
  max-height: 80%;
}

/* Sección Promociones */
.promos {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.promo-item img {
  width: 100%;
  max-width: 800px;
  height: auto;
  cursor: pointer;
  /*border: 2px solid var(--primary-red);*/
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.lightbox-content {
  position: relative;
  margin: auto;
  padding: 20px;
  max-width: 90%;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
}

.lightbox-content img {
  width: 100%;
  max-width: 800px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: var(--white);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.lightbox-nav {
  margin-top: 10px;
}

.lightbox-nav span {
  color: var(--white);
  font-size: 30px;
  margin: 0 20px;
  cursor: pointer;
}

/* Sección Contacto: Mapa y datos */
.map-container iframe {
  width: 100%;
  height: 500px;
}

.contact-info {
  text-align: center;
  margin-top: 20px;
}

.contact-info img {
  max-height: 60px;
  margin-bottom: 10px;
}

/* Botón "volver arriba" */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-red);
  color: var(--white);
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: none;
  z-index: 1500;
}

/* Pie de página */
footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 15px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-list {
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--white);
    width: 200px;
    display: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
  }
  .nav-list.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .brand-item {
    width: 90%;
    height: auto;
  }
}
