/* ----------------------------------
   CONFIGURACIÓN GENERAL DEL SITIO
---------------------------------- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  padding-top: 3rem; /* espacio para el banner fijo superior */
}

/* ----------------------------------
   ENCABEZADO CON MENÚ
---------------------------------- */
header {
  background-color: #1a1a1a;
  color: white;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1001;
}

/* Logo centrado */
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  flex: 1;
}

/* Botón hamburguesa (solo móvil) */
#hamburger {
  position: absolute;
  left: 1rem;
  top: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  display: none;
  z-index: 1002;
}

/* Menú principal */
.menu {
  display: flex;
  gap: 1rem;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  width: 100%;
  background-color: #1a1a1a;
  padding: 1rem;
  display: none;
}

.menu a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 0;
  border-top: 1px solid #333;
}

.menu a:first-child {
  border-top: none;
}

.menu a:hover {
  text-decoration: underline;
}

/* Mostrar menú si tiene clase active */
.menu.active {
  display: flex;
}

/* ----------------------------------
   VISTA ESCRITORIO
---------------------------------- */
@media screen and (min-width: 768px) {
  #hamburger {
    display: none;
  }

  .menu {
    display: flex !important;
    flex-direction: row;
    gap: 1rem;
    position: static;
    background-color: transparent;
    width: auto;
    padding: 0;
    border: none;
    box-shadow: none;
  }

  .logo {
    text-align: center;
  }
}

/* ----------------------------------
   SECCIÓN PRINCIPAL DE PRODUCTOS
---------------------------------- */
main {
  padding: 1rem;
}

/* ----------------------------------
   TARJETAS DE PRODUCTO
---------------------------------- */
.producto {
  margin-bottom: 2rem;
  padding: 1rem;
  padding-bottom: 1.5rem;
  background-color: white;
  border-radius: 10px;
  border-bottom: 1px solid #ccc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ----------------------------------
   CARRUSEL SWIPER
---------------------------------- */
.swiper {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4 / 3;
  margin: 0 auto 1rem auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background-color: #f8f8f8;
}

/* ----------------------------------
   INFORMACIÓN DEL PRODUCTO
---------------------------------- */
.info {
  text-align: center;
}

.precio {
  font-weight: bold;
  color: #007BFF;
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

/* ----------------------------------
   BANNER PROMOCIONAL FIJO
---------------------------------- */
.promo-banner {
  background-color: #d32f2f;
  color: white;
  text-align: center;
  padding: 0.6rem;
  font-weight: bold;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1002;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* ----------------------------------
   SECCIÓN DE MARCAS
---------------------------------- */
.brands-section {
  background-color: #f9f9f9;
  padding: 3rem 1rem;
  text-align: center;
  border-top: 3px solid #e0e0e0;
}

.brands-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
  font-weight: 600;
}

.brands-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brands-image {
  max-width: 90%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ----------------------------------
   PIE DE PÁGINA (FOOTER)
---------------------------------- */
.footer-contact {
  background-color: #222;
  color: #fff;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 1rem;
  margin-top: 2rem;
  border-top: 3px solid #00b894;
}

.footer-contact a {
  color: #00cec9;
  text-decoration: none;
  font-weight: bold;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-container p {
  margin: 0.3rem 0;
}

/* ----------------------------------
   Banner llantas
---------------------------------- */
.hero-llantas {
  width: 100%;
  overflow: hidden;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-llantas-img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 1024px) {
  .hero-llantas-img {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .hero-llantas {
    max-height: none;
    height: auto;
  }

  .hero-llantas-img {
    height: auto;
  }
}

/* ----------------------------------
   Envios a todo el peru
---------------------------------- */
.envios-peru {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.2rem;
  color: #333;
  padding: 1rem 0;
  background-color: #f4f4f4;
  font-weight: bold;
  width: 100%;
}

/* Contenedor del menú alineado a la izquierda */
.menu-container {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Alinea a la izquierda */
  padding: 1rem;
  background-color: #1a1a1a;
  color: white;
}

/* Enlaces del menú */
.menu a {
  color: white;
  text-decoration: none;
  margin-left: 1rem;
}

/* Botón hamburguesa oculto en escritorio */
.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* --- Menú responsivo --- */
.menu-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #1a1a1a;
  padding: 0 1rem;
}

#hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Menú por defecto */
.menu {
  display: flex;
  gap: 1rem;
}

.menu a {
  color: white;
  text-decoration: none;
  padding: 0.5rem;
}

.menu a:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
  #hamburger {
    display: block;
  }

  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #1a1a1a;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    padding: 1rem;
  }

  .menu.active {
    display: flex;
  }
}

/* --- ESTILO CONTACTO --- */

.contacto-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
  gap: 2rem;
  background-color: #fff;
  color: #333;
}

.contacto-img img {
  width: 300px;
  max-width: 100%;
  border-radius: 10px;
}

.contacto-info {
  max-width: 600px;
}

.contacto-info h1 {
  color: #008080;
  margin-bottom: 1rem;
}

.contacto-info p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.contacto-info ul {
  list-style: none;
  padding: 0;
}

.contacto-info li {
  margin-bottom: 0.5rem;
}