* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.logo-img {
  width: 45px;          /* tamaño del logo */
  height: 45px;
  border-radius: 50%;   /* lo hace redondeado */
  object-fit: cover;    /* mantiene proporción */
  margin-right: 10px;   /* separa la imagen del texto */
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin-left: auto; /* <-- AÑADE ESTA LÍNEA */
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

nav a:hover {
  opacity: 0.8;
}

.active-page {
  border-bottom: 2px solid white;
  padding-bottom: 4px;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.hero {
  text-align: center;
  padding: 3rem 0;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #667eea;
}

.hero p {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* ==========================================
   PHOTO GALLERY STYLES
   ========================================== */

.photo-gallery-section {
  margin: 80px auto;
  padding: 0 20px;
  max-width: 1400px;
}

.gallery-title {
  text-align: center;
  font-size: 42px;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.gallery-subtitle {
  text-align: center;
  font-size: 18px;
  color: #666;
  margin-bottom: 50px;
  font-style: italic;
}

/* Grid Masonry Layout */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 200px;
  gap: 15px;
  grid-auto-flow: dense;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.15);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-label {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-label {
  transform: translateY(0);
}

/* Masonry effect - diferentes tamaños */
.gallery-item-1 { grid-row: span 2; }
.gallery-item-3 { grid-column: span 2; }
.gallery-item-5 { grid-row: span 2; }
.gallery-item-7 { grid-column: span 2; }
.gallery-item-10 { grid-row: span 2; }
.gallery-item-12 { grid-column: span 2; }
.gallery-item-15 { grid-row: span 2; }
.gallery-item-18 { grid-column: span 2; }

/* Responsive */
@media (max-width: 768px) {
  .photo-gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-auto-rows: 150px;
    gap: 10px;
  }

  .gallery-title {
    font-size: 32px;
  }

  .gallery-subtitle {
    font-size: 16px;
  }

  /* Simplificar el masonry en mobile */
  .gallery-item-1,
  .gallery-item-5,
  .gallery-item-10,
  .gallery-item-15 {
    grid-row: span 1;
  }

  .gallery-item-3,
  .gallery-item-7,
  .gallery-item-12,
  .gallery-item-18 {
    grid-column: span 1;
  }
}

@media (min-width: 1200px) {
  .photo-gallery {
    grid-template-columns: repeat(5, 1fr);
  }
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature-card {
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
}

.product-category {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: #667eea;
  color: white;
  border-radius: 15px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: #333;
}

.product-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.product-link {
  display: inline-block;
  color: #667eea;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.product-link:hover {
  color: #764ba2;
}

footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

.hidden {
  display: none;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.category-card {
  background: white;
  border: 2px solid #667eea;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
  border-color: #5568d3;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.category-card h3 {
  margin-bottom: 0.5rem;
  color: #667eea;
  font-weight: 600;
}

.category-card p {
  color: #666;
  font-size: 0.9rem;
}

.all-brands-button-container {
  text-align: center;
  margin: 2rem 0;
}

.all-brands-btn {
  background: #667eea;
  color: white;
  border: 2px solid #667eea;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.all-brands-btn:hover {
  background: #5568d3;
  border-color: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ==========================================
   FOOTER STYLES - MINIMALISTA NEGRO
   ========================================== */

.site-footer {
  background: #000000;
  color: #ffffff;
  padding: 30px 20px 15px;
  margin-top: 60px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* Sección de Contacto */
.footer-contact {
  padding: 0;
}

.footer-title {
  font-size: 16px;
  margin-bottom: 12px;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.contact-item {
  display: inline-block;
  padding: 0;
  background: none;
  border-radius: 0;
}

.contact-item:hover {
  background: none;
  transform: none;
  box-shadow: none;
}

.contact-link {
  color: #cccccc;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Copyright */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333333;
  margin-top: 20px;
}

.footer-bottom p {
  font-size: 11px;
  color: #888888;
  margin: 0;
  font-weight: 300;
}

/* Responsive */
@media (max-width: 768px) {
  .site-footer {
    padding: 25px 15px 12px;
  }

  .footer-title {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .contact-link {
    font-size: 14px;
  }

  .footer-bottom p {
    font-size: 10px;
  }
}


/* ==========================================
   ESTILOS DEL MENÚ MÓVIL
   ========================================== */

/* 1. Estilo del botón de hamburguesa */
#mobile-menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  margin-left: auto; /* <-- AÑADE ESTA LÍNEA */
}

#mobile-menu-button .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease-in-out;
}

/* 2. Media Query para pantallas móviles */
@media (max-width: 768px) {

  nav {
    /* Necesario para posicionar el menú desplegable */
    position: relative;
  }

  /* 3. Ocultar la lista de enlaces original */
  nav ul#nav-links {
    display: none; /* Oculta por defecto */
    flex-direction: column;
    position: absolute;
    top: 100%; /* Justo debajo del header */
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 1000;
  }

  /* 4. Mostrar el menú cuando tiene la clase 'active' */
  nav ul#nav-links.active {
    display: flex;
  }

  nav ul#nav-links li {
    text-align: center;
    margin: 1rem 0;
  }

  /* 5. Mostrar el botón de hamburguesa */
  #mobile-menu-button {
    display: flex;
  }
}

/* 6. (Opcional) Animación de "X" para el botón */
#mobile-menu-button.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#mobile-menu-button.active .bar:nth-child(2) {
  opacity: 0;
}
#mobile-menu-button.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
