/* ================== RESET Y VARIABLES GLOBALES ================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Rubik', sans-serif;
}

:root {
  --color-primario: #C30000;       /* Rojo Ferrari intenso */
  --color-secundario: #000000;     /* Negro para detalles */
  --color-fondo: #FFFFFF;          /* Blanco para fondo limpio */
  --color-texto: #000000;          /* Texto negro */
  --color-texto-claro: #555555;    /* Texto secundario gris oscuro */
  --color-error: #C30000;          /* Rojo Ferrari para errores */
  --sombra: 0 6px 16px rgba(195, 0, 0, 0.25); /* Sombra roja suave */
  --radio-bordes: 8px;
  --transicion: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================== ESTILOS GLOBALES ================== */
body {
  background-color: var(--color-fondo);
  color: var(--color-texto);
  min-height: 100vh;
  line-height: 1.5;
  font-size: 16px;
  padding-bottom: 60px; /* espacio para footer */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  color: var(--color-primario);
  margin-bottom: 14px;
  font-weight: 700;
  line-height: 1.2;
}

h2.categoria-titulo {
  font-weight: 700;
  font-size: 1.6rem;
  margin: 28px 0 16px;
}

/* ================== CONTENEDORES GENERALES ================== */
.container,
.contenedor {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
}

/* ================== HEADER ================== */
header {
  background-color: var(--color-fondo);
  padding: 14px 24px;
  box-shadow: var(--sombra);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 900;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-izquierda {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 160px;
}

.logo img {
  height: 55px;
  width: auto;
  display: block;
}

.btn-navegacion {
  background-color: var(--color-primario);
  color: var(--color-fondo);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radio-bordes);
  text-decoration: none;
  font-size: 1rem;
  transition: background-color var(--transicion), color var(--transicion);
  white-space: nowrap;
  user-select: none;
  box-shadow: 0 3px 8px rgba(195, 0, 0, 0.3);
  cursor: pointer;
}

.btn-navegacion:hover,
.btn-navegacion.activo {
  background-color: var(--color-secundario);
  color: var(--color-fondo);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.nav-centro {
  flex: 2 1 420px;
  display: flex;
  justify-content: center;
  min-width: 220px;
}

/* ================== BUSCADOR ================== */
#buscador {
  width: 100%;
  max-width: 420px;
  padding: 12px 16px;
  font-size: 1.1rem;
  border: 2.5px solid var(--color-primario);
  border-radius: var(--radio-bordes);
  transition: border-color var(--transicion), box-shadow var(--transicion);
  user-select: text;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

#buscador::placeholder {
  color: var(--color-texto-claro);
  opacity: 1;
}

#buscador:focus {
  outline: none;
  border-color: var(--color-secundario);
  box-shadow: 0 0 8px var(--color-secundario);
}

/* ================== ICONO CARRITO ================== */
.carrito-icono {
  background-color: var(--color-primario);
  color: var(--color-fondo);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--sombra);
  position: relative;
  flex-shrink: 0;
  user-select: none;
  font-size: 1.5rem;
  transition: background-color var(--transicion);
}

.carrito-icono:hover,
.carrito-icono:focus {
  background-color: var(--color-secundario);
  outline: none;
  box-shadow: 0 0 10px var(--color-secundario);
}

#contador-carrito {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--color-error);
  width: 20px;
  height: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-fondo);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

/* ================== LISTA RESULTADOS BUSCADOR ================== */
.lista-resultados {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

/* ================== SLIDERS ================== */
.slider-container {
  position: relative;
  margin-bottom: 36px;
}

.slider-productos {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 18px;
  padding-bottom: 14px;
  scrollbar-width: none; /* Firefox */
}

.slider-productos::-webkit-scrollbar {
  display: none;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--color-primario);
  border: none;
  color: var(--color-fondo);
  font-size: 1.9rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--sombra);
  transition: background-color var(--transicion);
  z-index: 10;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-btn:hover,
.slider-btn:focus {
  background-color: var(--color-secundario);
  outline: none;
  box-shadow: 0 0 14px var(--color-secundario);
}

.slider-prev {
  left: -26px;
}

.slider-next {
  right: -26px;
}

/* ================== PRODUCTOS ================== */
.producto {
  background-color: var(--color-fondo);
  box-shadow: var(--sombra);
  border-radius: var(--radio-bordes);
  flex: 0 0 220px; /* aumentado desde 180px */
  cursor: pointer;
  transition: transform var(--transicion), box-shadow var(--transicion);
  outline-offset: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 16px 20px; /* más espacio */
  user-select: none;
}

.producto:focus,
.producto:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 26px rgba(195, 0, 0, 0.45);
  outline: none;
}

.producto-img {
  width: 100%;
  height: 200px; /* aumentado desde 170px */
  object-fit: cover;
  border-radius: var(--radio-bordes);
  margin-bottom: 12px;
  transition: transform var(--transicion);
}

.producto-img:hover {
  transform: scale(1.05);
}

.producto h3.titulo {
  font-size: 1.15rem; /* antes 1.05rem */
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
  min-height: 48px; /* antes 44px */
  user-select: text;
  color: var(--color-secundario);
}

.producto p.precio {
  font-weight: 700;
  color: var(--color-primario);
  font-size: 1.25rem; /* antes 1.15rem */
  margin-bottom: 6px;
  text-align: center;
}

.producto p.precio del {
  font-weight: 400;
  font-size: 1rem; /* antes 0.92rem */
  color: var(--color-texto-claro);
  margin-left: 8px;
  text-decoration: line-through;
}

.producto p.precio-descuento {
  font-weight: 700;
  font-size: 1.05rem; /* antes 0.95rem */
  color: var(--color-error);
  margin-left: 6px;
}

/* ================== NAVEGACIÓN DE CATEGORÍAS ================== */
#contenedor-nav-categorias {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 10px;
  padding: 10px;
  /* Opcional para esconder scrollbar en Webkit */
  -ms-overflow-style: none; /* IE y Edge */
  scrollbar-width: none; /* Firefox */
}

#contenedor-nav-categorias::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}


.btn-categoria-nav {
  background-color: var(--color-primario);
  color: var(--color-fondo);
  border: none;
  padding: 12px 22px;
  margin: 0 8px 12px 8px;
  border-radius: var(--radio-bordes);
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: background-color var(--transicion), color var(--transicion);
  user-select: none;
  box-shadow: 0 2px 8px rgba(195, 0, 0, 0.3);
}

.btn-categoria-nav:hover,
.btn-categoria-nav.activo,
.btn-categoria-nav:focus {
  background-color: var(--color-secundario);
  outline: none;
  color: var(--color-fondo);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}


/* ================== MODAL AJUSTADO ================== */
#modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 20, 20, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 1;
  transition: opacity 0.3s ease;
}

#modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-contenido {
  background-color: var(--color-fondo);
  border-radius: var(--radio-bordes);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--sombra);
  padding: 18px 20px;
  position: relative;

  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: flex-start;
}

#modal-cerrar {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--color-primario);
  cursor: pointer;
  font-weight: 800;
  transition: color var(--transicion);
  z-index: 10;
}

#modal-cerrar:hover,
#modal-cerrar:focus {
  color: var(--color-secundario);
  outline: none;
}

/* Imagen y texto lado a lado sin superposición */
#modal-imagen {
  flex: 0 0 40%;
  max-height: 300px;
  border-radius: var(--radio-bordes);
  user-select: none;
  overflow: hidden;
}

#modal-imagen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radio-bordes);
  display: block;
}

#modal-texto {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  user-select: text;
  overflow-wrap: break-word;
}

/* Texto del modal */
#modal-titulo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primario);
  margin-bottom: 4px;
  line-height: 1.15;
}

#modal-descripcion {
  font-size: 1rem;
  color: var(--color-texto-claro);
  min-height: 48px;
  line-height: 1.4;
  white-space: pre-wrap;
}

#modal-precio {
  font-weight: 800;
  color: var(--color-primario);
  font-size: 1.15rem;
  margin-top: 4px;
}

#modal-descuento {
  font-weight: 700;
  color: var(--color-error);
  font-size: 0.95rem;
  margin-top: 2px;
}

/* Opciones select */
.modal-opciones {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.modal-opciones select {
  flex: 1 1 48%;
  padding: 8px 12px;
  border: 2px solid var(--color-primario);
  border-radius: var(--radio-bordes);
  font-size: 1rem;
  transition: border-color var(--transicion), box-shadow var(--transicion);
  appearance: none;
  background-color: var(--color-fondo);
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.modal-opciones select:focus {
  outline: none;
  border-color: var(--color-secundario);
  box-shadow: 0 0 8px var(--color-secundario);
}

/* Botón agregar al carrito */
#btn-agregar-carrito {
  margin-top: auto;
  background-color: var(--color-primario);
  border: none;
  color: var(--color-fondo);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 12px 0;
  border-radius: var(--radio-bordes);
  cursor: pointer;
  transition: background-color var(--transicion);
  width: 100%;
  user-select: none;
  box-shadow: 0 4px 12px rgba(195, 0, 0, 0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#btn-agregar-carrito:hover,
#btn-agregar-carrito:focus {
  background-color: var(--color-secundario);
  outline: none;
  box-shadow: 0 0 16px var(--color-secundario);
}

/* Ocultar categoría en modal para que no ocupe espacio */
#modal .modal-categoria {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* ================== CARRITO (carrito.html) ================== */
#carrito-lista {
  max-width: 900px;
  margin: 0 auto 36px auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.producto-carrito {
  background-color: var(--color-fondo);
  box-shadow: var(--sombra);
  border-radius: var(--radio-bordes);
  display: flex;
  gap: 20px;
  padding: 14px;
  align-items: center;
  user-select: none;
  transition: box-shadow var(--transicion);
}

.producto-carrito:hover {
  box-shadow: 0 10px 26px rgba(195, 0, 0, 0.4);
}

.producto-img-carrito {
  width: 120px;
  height: 95px;
  object-fit: cover;
  border-radius: var(--radio-bordes);
  flex-shrink: 0;
  transition: transform var(--transicion);
}

.producto-img-carrito:hover {
  transform: scale(1.04);
}

.detalle-producto {
  flex: 1;
}

.detalle-producto h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--color-primario);
  user-select: text;
}

.detalle-producto p {
  font-size: 1rem;
  color: var(--color-texto-claro);
  margin-bottom: 6px;
}

.detalle-producto button.btn-eliminar {
  background-color: var(--color-error);
  border: none;
  color: var(--color-fondo);
  padding: 10px 18px;
  border-radius: var(--radio-bordes);
  cursor: pointer;
  font-weight: 700;
  transition: background-color var(--transicion), box-shadow var(--transicion);
  margin-top: 8px;
  user-select: none;
  box-shadow: 0 2px 8px rgba(195, 0, 0, 0.35);
  width: max-content;
}

.detalle-producto button.btn-eliminar:hover,
.detalle-producto button.btn-eliminar:focus {
  background-color: #7f0000;
  outline: none;
  box-shadow: 0 0 14px #7f0000;
}

#carrito-total {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primario);
  text-align: right;
  margin-top: 24px;
  margin-bottom: 12px;
}

#btn-comprar {
  background-color: var(--color-primario);
  color: var(--color-fondo);
  border: none;
  border-radius: var(--radio-bordes);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 14px 0;
  width: 100%;
  max-width: 300px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 4px 16px rgba(195, 0, 0, 0.5);
  transition: background-color var(--transicion);
  margin-left: auto;
  display: block;
}

#btn-comprar:hover,
#btn-comprar:focus {
  background-color: var(--color-secundario);
  outline: none;
  box-shadow: 0 0 18px var(--color-secundario);
}


/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
  /* ====== HEADER ====== */
  header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 16px;
  }

  .nav-izquierda {
    flex: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: auto;
  }

  .logo img {
    height: 32px;
  }

  .btn-navegacion {
    flex: none;
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(195, 0, 0, 0.35);
    border-radius: var(--radio-bordes);
  }

  .nav-centro {
    flex: none;
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: center;
  }

  /* ====== BUSCADOR ====== */
  #buscador {
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    padding: 10px 14px;
    border-radius: var(--radio-bordes);
    box-sizing: border-box;
  }

  /* ====== ICONO CARRITO ====== */
  .carrito-icono {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  #contador-carrito {
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
    top: -5px;
    right: -5px;
  }

  /* ====== MODAL ====== */
  .modal-contenido {
    flex-direction: column;
    max-height: 90vh;
  }

  #modal-imagen {
    max-height: 250px;
    flex: none;
    width: 100%;
  }

  #modal-texto {
    flex: none;
    width: 100%;
  }

  /* ====== PRODUCTOS ====== */
  .producto {
    flex: 0 0 140px;
  }

  .producto-img {
    height: 140px;
  }

}

/* ================== MENÚ NAVEGACIÓN ================== */
/* Ocultar menú en desktop */
.menu-nav {
  display: flex;
  gap: 16px;
}

/* Botón hamburguesa oculto en desktop */
#btn-menu {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-primario);
  user-select: none;
}

/* ===== Móvil ===== */
@media (max-width: 768px) {
  /* Mostrar botón hamburguesa */
  #btn-menu {
    display: block;
  }

  /* Ocultar el menú por defecto en móvil */
  .menu-nav {
    display: none;
    flex-direction: column;
    background-color: var(--color-fondo);
    position: absolute;
    top: 60px; /* ajusta según header */
    left: 0;
    right: 0;
    box-shadow: var(--sombra);
    border-radius: 0 0 var(--radio-bordes) var(--radio-bordes);
    padding: 12px 0;
    z-index: 1000;
  }

  /* Mostrar menú cuando tenga clase 'activo' */
  .menu-nav.activo {
    display: flex;
  }

  /* Estilos para links en menú móvil */
  .menu-nav .btn-navegacion {
    padding: 12px 20px;
    margin: 0;
    border-radius: 0;
    font-size: 1.1rem;
    width: 100%;
    text-align: left;
  }
}

/* === Ajuste móvil: menú + carrito juntos === */
@media screen and (max-width: 768px) {
  .nav-izquierda {
    display: flex;
    align-items: center;
    gap: 10px; /* espacio entre botón menú y carrito */
  }

  .nav-izquierda #btn-menu,
  .nav-izquierda .carrito-icono {
    font-size: 1.6rem;
    padding: 8px;
    background: none;
    border: none;
    color: var(--color-primario);
    cursor: pointer;
  }

  .nav-izquierda .carrito-icono {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  /* Oculta el botón de carrito duplicado en otras ubicaciones si existiera */
  header > .carrito-icono {
    display: none;
  }
}

/* === Mostrar carrito al final del header en escritorio === */
@media (min-width: 769px) {
  .carrito-desktop {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
  }

  header {
    position: relative;
  }
}

/* ================== MODAL CARRITO - DATOS COMPRA ================== */
#modal-compra {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 20, 20, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

#modal-compra.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-compra-contenido {
  background-color: var(--color-fondo);
  border-radius: var(--radio-bordes);
  max-width: 450px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 6px 16px rgba(195, 0, 0, 0.25);
  padding: 24px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#modal-compra-cerrar {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--color-primario);
  cursor: pointer;
  font-weight: 800;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

#modal-compra-cerrar:hover,
#modal-compra-cerrar:focus {
  color: var(--color-secundario);
  outline: none;
}

.modal-compra-contenido h2 {
  color: var(--color-primario);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 12px;
  user-select: none;
}

.modal-compra-contenido label {
  font-weight: 700;
  color: var(--color-secundario);
  margin-bottom: 6px;
  display: block;
  user-select: none;
}

.modal-compra-contenido input,
.modal-compra-contenido textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--color-primario);
  border-radius: var(--radio-bordes);
  font-size: 1rem;
  resize: vertical;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Rubik', sans-serif;
}

.modal-compra-contenido input:focus,
.modal-compra-contenido textarea:focus {
  outline: none;
  border-color: var(--color-secundario);
  box-shadow: 0 0 8px var(--color-secundario);
}

.modal-acciones {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.modal-acciones button {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border: none;
  background-color: var(--color-primario);
  color: white;
  border-radius: var(--radio-bordes);
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.modal-acciones button:hover,
.modal-acciones button:focus {
  background-color: var(--color-secundario);
  outline: none;
}

.modal-acciones button:last-child {
  background-color: #777;
}

@media (max-width: 480px) {
  .modal-compra-contenido {
    max-width: 90vw;
    padding: 20px;
  }
}


@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* =========================
   RESET Y ESTILOS BASE
========================= */

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: white;
  display: flex;
  flex-direction: column;
}

body > *:not(footer) {
  flex: 1 0 auto;
}






/* =========================
   PROMOCIONES
========================= */

.promo-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.promo-box {
  max-width: 1100px;
  width: 90%;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  border-radius: 10px;
}

.promo-image,
.promo-content {
  flex: 1;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-content {
  flex-direction: column;
  text-align: center;
  color: white;
  background-color: #cc0000;
}

.promo-content h2 {
  font-size: 30px;
  font-weight: 600;
}

.promo-content h3 {
  font-size: 20px;
  font-weight: 500;
}

.promo-content p {
  margin: 20px 0;
  font-size: 16px;
}

.promo-content button {
  padding: 12px 30px;
  background-color: white;
  color: #cc0000;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.promo-content button:hover {
  background-color: #990000;
  color: white;
}

/* =========================
/* =========================
   PRODUCTOS DESTACADOS
========================= */

#product-top-container {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#product-top-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 1200px;
  gap: 20px;
}

#product-top-text-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#product-top-text-section h1 {
  color: #990000;
  font-size: 22px;
}

#product-top-text-section h2 {
  color: #cc0000;
  font-size: 36px;
}

#product-top-text-section p {
  color: #cc0000;
  font-size: 16px;
  margin: 15px 0;
  max-width: 600px;
}

#product-top-text-section button {
  padding: 12px 30px;
  background-color: #cc0000;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#product-top-text-section button:hover {
  background-color: #990000;
}

#product-top-image-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#product-top-image-section img {
  width: 100%;
  max-width: 500px;
  transition: transform 0.4s ease;
}

#product-top-image-section:hover img {
  transform: scale(1.1);
}

/* =================== RESPONSIVE =================== */

@media (max-width: 1024px) {
  #product-top-wrapper {
    gap: 30px;
    padding: 0 20px;
  }

  #product-top-text-section {
    align-items: center;
    text-align: center;
  }

  #product-top-image-section img {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  #product-top-container {
    padding: 40px 20px;
  }

  #product-top-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
  }

  #product-top-text-section {
    align-items: center;
    text-align: center;
  }

  #product-top-image-section img {
    max-width: 350px;
  }

  .promo-box {
    flex-direction: column;
  }

  #collection-container h1,
  #collection-container h2 {
    font-size: 30px;
  }

  .promo-content h2 {
    font-size: 26px;
  }

  .promo-content p {
    font-size: 14px;
  }

  .collection-icon {
    height: 80px;
    width: 80px;
  }

  .promo-content,
  .promo-image {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  #product-top-container {
    padding: 30px 10px;
  }

  #product-top-text-section h2 {
    font-size: 28px;
  }

  #product-top-text-section p {
    font-size: 14px;
  }

  #product-top-image-section img {
    max-width: 280px;
  }
}



/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  #product-top-wrapper {
    flex-direction: column;
    padding: 20px;
    text-align: center;
  }

  .promo-box {
    flex-direction: column;
  }

  #collection-container h1,
  #collection-container h2 {
    font-size: 30px;
  }

  .promo-content h2 {
    font-size: 26px;
  }

  .promo-content p {
    font-size: 14px;
  }

  .collection-icon {
    height: 80px;
    width: 80px;
  }

  .promo-content,
  .promo-image {
    padding: 20px;
  }
}

/* =========================
   FOOTER
========================= */

#footer {
  flex-shrink: 0;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  text-align: center;
  padding: 30px 0;
  margin-top: 90px;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.7);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-logo-social {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  color: white;
  font-size: 24px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
  color: #ff3333;
  transform: scale(1.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  font-size: 14px;
}

.btn-agregar-carrito:disabled {
  background-color: #999;
  cursor: not-allowed;
  color: #fff;
  opacity: 0.6;
}

/* =========================
   NUESTRA COLECCIÓN
========================= */

#collection-container {
  display: flex;
  flex-direction: column;
  place-items: center;
  padding: 20px;
}

#collection-container h1,
#collection-container h2 {
  color: #990000;
  font-weight: 500;
  font-size: 40px;
  margin-top: 30px;
  text-align: center;
}

#collection-items-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 55px;
  padding: 30px 10px;
}

.collection-item {
  text-align: center;
  margin: 0px;
  cursor: pointer;

  /* Quitar borde y fondo */
  border: none;
  outline: none;
  background: transparent;

  /* Quitar padding y mantener fuente heredada */
  padding: 0;
  font: inherit;

  /* Quitar estilos por defecto en distintos navegadores */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Quitar outline y sombra al enfocar */
.collection-item:focus {
  outline: none;
  box-shadow: none;
}

/* Firefox interno para quitar borde/padding al enfocar */
.collection-item::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.collection-icon {
  height: 90px;
  width: 90px;
  border-radius: 50%;
  box-shadow: 0px 5px 15px rgba(153, 0, 0, 0.2);
  color: #990000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease-in-out;
}

.collection-icon:hover {
  background-color: #cc0000;
  color: white;
}

.collection-name {
  margin-top: 15px;
  color: #990000;
  font-weight: 500;
}
