/* =========================================================
   TU CHEMI FC - STYLES.CSS
   ========================================================= */


/* =========================================================
   BODY / FONDO GENERAL
   ========================================================= */

body {

  /* Fuente principal */
  font-family: 'Poppins', sans-serif;

  /* Quitamos márgenes del navegador */
  margin: 0;

  /* Espaciado suave entre letras */
  letter-spacing: 0.5px;

  /* Fondo oscuro con imagen */
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("fondo.jpeg");

  /* Ajuste de imagen */
  background-size: cover;
  background-position: center;

  /* Fondo fijo al hacer scroll */
  background-attachment: fixed;
}


/* =========================================================
   TIPOGRAFÍAS / TITULOS
   ========================================================= */

h1,
h2 {

  /* Fuente deportiva */
  font-family: 'Bebas Neue', sans-serif;

  /* Espacio entre letras */
  letter-spacing: 2px;
}


/* =========================================================
   BARRA SUPERIOR
   ========================================================= */

.top-bar {

  /* Color azul principal */
  background: #2563eb;

  /* Color del texto */
  color: white;

  /* Centrado */
  text-align: center;

  /* Espaciado interno */
  padding: 8px;

  /* Tamaño texto */
  font-size: 12px;

  /* Grosor */
  font-weight: 600;

  /* Separación entre letras */
  letter-spacing: 1px;
}


/* =========================================================
   HEADER
   ========================================================= */

header {

  display: flex;

  /* Espacio entre logo y datos */
  justify-content: space-between;

  /* Centrado vertical */
  align-items: center;

  /* Espaciado interno */
  padding: 15px 30px;

  /* Fondo oscuro transparente */
  background: rgba(0,0,0,0.40);

  /* Blur elegante */
  backdrop-filter: blur(10px);

  position: sticky;
  top: 0;
  z-index: 999;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo-container {

  display: flex;

  align-items: center;

  gap: 15px;
}

.logo-container img {

  /* Tamaño logo */
  width: 75px;
}

.logo-container h1 {

  color: white;

  font-size: 34px;

  margin: 0;
}


/* =========================================================
   SLOGAN
   ========================================================= */

.slogan {

  color: #dbeafe;

  margin-top: -5px;

  font-size: 11px;

  letter-spacing: 2px;

  font-weight: 600;
}


/* =========================================================
   INFORMACIÓN HEADER
   ========================================================= */

.header-info {

  display: flex;

  flex-direction: column;

  gap: 10px;
}

.info-box {

  display: flex;

  align-items: center;

  gap: 10px;

  color: white;

  font-size: 14px;

  font-weight: 500;
}

.info-box i {
  color: white;
  font-size: 15px;
}


/* =========================================================
   HERO / PORTADA PRINCIPAL
   ========================================================= */

.hero {

  text-align: center;

  padding: 140px 20px;

  color: white;

  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("hero.jpg");

  background-size: cover;

  background-position: center;
}

.hero h2 {

  /* Tamaño título principal */
  font-size: 58px;

  margin-bottom: 10px;

  /* Sombra suave */
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero p {

  font-size: 18px;

  color: #e5e7eb;
}


/* =========================================================
   SECCIÓN CATÁLOGO
   ========================================================= */

#catalogo {

  padding: 60px 60px;
}

#catalogo h2 {

  color: white;

  font-size: 34px;

  margin-bottom: 15px;
}


/* =========================================================
   BOTONES DE FILTRO
   ========================================================= */

.filtros {

  margin-bottom: 25px;
}

.filtros button {

  margin: 5px;

  padding: 10px 18px;

  border: none;

  border-radius: 30px;

  background: rgba(255,255,255,0.12);

  color: white;

  cursor: pointer;

  font-weight: 600;

  transition: 0.3s;
}

.filtros button:hover {

  background: #2563eb;
}


/* =========================================================
   GRID DE PRODUCTOS
   ========================================================= */

.grid {

  display: grid;

  /* Responsive automático */
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));

  gap: 22px;
}


/* =========================================================
   CARD / PRODUCTO
   ========================================================= */

.card {

  background: rgba(255,255,255,0.96);

  border-radius: 22px;

  overflow: hidden;

  display: flex;

  flex-direction: column;

  /* Sombra elegante */
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);

  transition: 0.3s ease;
}

/* Hover card */
.card:hover {

  transform: translateY(-4px);
}

.card h3 {

  font-size: 18px;

  color: #111827;

  padding: 0 14px;

  margin-top: 12px;

  min-height: 40px;
}


/* =========================================================
   PRECIO
   ========================================================= */

.precio {

  padding: 0 14px;

  margin-top: 5px;

  font-size: 16px;

  color: #374151;
}


/* =========================================================
   IMAGENES / CARRUSEL
   ========================================================= */

.carousel {

  overflow: hidden;

  position: relative;
}

.carousel-track {

  display: flex;

  transition: transform 0.4s ease;
}

.carousel img {

  width: 100%;

  height: 240px;

  object-fit: cover;

  flex: 0 0 100%;

  filter: brightness(0.96);
}


/* =========================================================
   DOTS / INDICADORES
   ========================================================= */

.dots {

  display: flex;

  justify-content: center;

  margin-top: 8px;
}

.dots span {

  width: 8px;

  height: 8px;

  background: #d1d5db;

  margin: 3px;

  border-radius: 50%;

  cursor: pointer;
}

.dots .active {

  background: #2563eb;
}


/* =========================================================
   SELECT TALLAS
   ========================================================= */

select {

  width: calc(100% - 28px);

  margin: 10px 14px;

  padding: 10px;

  border-radius: 10px;

  border: 1px solid #d1d5db;

  font-family: 'Poppins', sans-serif;
}


/* =========================================================
   BOTÓN COMPRAR
   ========================================================= */

.btn {

  background: #2563eb;

  color: white;

  padding: 12px;

  border-radius: 12px;

  text-decoration: none;

  margin: 0 14px 14px;

  text-align: center;

  font-weight: 600;

  transition: 0.3s;
}

.btn:hover {

  background: #1d4ed8;
}


/* =========================================================
   BOTÓN INSTAGRAM
   ========================================================= */

.instagram-btn {

  position: fixed;

  bottom: 20px;

  right: 20px;

  z-index: 100;
}

.instagram-btn img {

  width: 48px;

  transition: 0.3s;
}

.instagram-btn img:hover {

  transform: scale(1.1);
}


/* =========================================================
   TOAST / MENSAJE
   ========================================================= */

#toast {

  position: fixed;

  bottom: 90px;

  right: 20px;

  background: #111827;

  color: white;

  padding: 12px 18px;

  border-radius: 10px;

  opacity: 0;

  transition: 0.3s;

  z-index: 999;
}

#toast.show {

  opacity: 1;
}


/* =========================================================
   MODAL / IMAGEN GRANDE
   ========================================================= */

.modal {

  display: none;

  position: fixed;

  z-index: 999;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.85);

  justify-content: center;

  align-items: center;
}

.modal.show {

  display: flex;
}

.modal-content {

  width: 90%;

  max-width: 420px;
}

.modal-content img {

  width: 100%;

  height: 420px;

  object-fit: contain;

  border-radius: 12px;

  background: white;
}


/* =========================================================
   RESPONSIVE / MÓVILES
   ========================================================= */

@media (max-width: 600px) {

  header {

    flex-direction: column;

    gap: 15px;

    text-align: center;
  }

  .logo-container {

    justify-content: center;
  }

  .header-info {

    align-items: center;
  }

  .hero {

    padding: 90px 20px;
  }

  .hero h2 {

    font-size: 36px;
  }

  .hero p {

    font-size: 14px;
  }

  #catalogo {

    padding: 30px 15px;
  }

  #catalogo h2 {

    text-align: center;

    font-size: 28px;
  }

  .filtros {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;
  }

  .filtros button {

    font-size: 12px;

    padding: 8px 12px;
  }

  .grid {

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;
  }

  .carousel img {

    height: 180px;
  }

  .card h3 {

    font-size: 14px;
  }

  .precio {

    font-size: 14px;
  }

  .btn {

    font-size: 12px;

    padding: 10px;
  }

  .modal-content img {

    height: 320px;
  }
}