:root {
  --dorado: #C8A165;
  --grisOscuro: #2B2B2B;
  --grisClaro: #F5F5F5;
  --negro: #000000;
  --blanco: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--grisOscuro);
  background: var(--blanco);
  line-height: 1.6;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* HEADER */
.site-header {
  background: var(--grisOscuro);
  padding: 1rem 0;
  border-bottom: 4px solid var(--dorado);
}
.logo {
  height: 50px;
  align-items: center;
}
.main-nav a {
  color: var(--blanco);
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 500;
}

/* HERO */
.hero {
  position: relative;
  background: url('img/hero-jeans.jpg') center/cover no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .overlay {
  background: rgba(0, 0, 0, 0.4);
  padding: 2rem;
  border: 2px solid var(--dorado);
  text-align: center;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--blanco);
}
.hero p {
  font-size: 1.2rem;
  margin: 1rem 0;
  color: var(--blanco);
}
.btn {
  display: inline-block;
  background: var(--dorado);
  color: var(--blanco);
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  margin-top: 1rem;
  border-radius: 4px;
}

/* GALERÍA */
.galeria h2 {
  text-align: center;
  margin: 2rem 0;
  font-family: 'Playfair Display', serif;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.card {
  border: 2px solid transparent;
  transition: border 0.3s;
}
.card:hover {
  border: 2px solid var(--dorado);
}
.card img {
  width: 100%;
}
/* Enlaces dentro de la galería */
.galeria a {
  color: inherit;              /* hereda el color del texto padre */
  text-decoration: none;       /* quita el subrayado */
  display: block;              /* hace que toda la tarjeta sea clickeable */
}
.galeria a:hover {
  color: var(--dorado);        /* opcional: cambia el color al pasar el mouse */
  text-decoration: none;       /* asegura que no aparezca subrayado */
}

/* CONTACTO */
.contacto h2 {
  text-align: center;
  margin: 2rem 0;
  font-family: 'Playfair Display', serif;
}
.vendedores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.vendedor {
  border: 1px solid var(--grisClaro);
  padding: 1rem;
  border-radius: 4px;
  background: var(--grisClaro);
}
.vendedor h3 {
  margin-bottom: 0.5rem;
  color: var(--grisOscuro);
}

/* UBICACIÓN */
.ubicacion h2 {
  text-align: center;
  margin: 2rem 0;
  font-family: 'Playfair Display', serif;
}
.ubicacion ul {
  list-style: none;
  padding: 0;
  text-align: center;
}
.ubicacion li {
  margin: 1rem 0;
}
.ubicacion a {
  color: var(--dorado);
  font-weight: 500;
  text-decoration: none;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 1rem;
  background: var(--grisClaro);
  font-size: 0.9rem;
}
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  z-index: 1000;
}
.whatsapp-float img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.detalle-producto {
  text-align: center;
  margin-top: 2rem;
}

.carrusel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 500px;
  margin: auto;
}

.carrusel img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
}

.flecha:hover {
  background: var(--dorado);
}

.flecha.izquierda { left: -40px; }
.flecha.derecha { right: -40px; }

.volver {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  color: var(--dorado);
  font-weight: 600;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  background: var(--grisOscuro);
  color: var(--blanco);
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 1100;
  border-radius: 4px;
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  left: -260px; /* oculto por defecto */
  width: 250px;
  height: 100%;
  background: var(--grisOscuro);
  color: var(--blanco);
  transition: left 0.3s ease;
  z-index: 1200;
  display: flex;
  flex-direction: column;
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 2px solid var(--dorado);
}

.sidebar-header .logo {
  height: 40px;
}

.close-btn {
  background: none;
  border: none;
  color: var(--blanco);
  font-size: 2rem;
  cursor: pointer;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.sidebar-nav a {
  color: var(--blanco);
  text-decoration: none;
  padding: 0.8rem 0;
  font-weight: 500;
  transition: color 0.3s;
}

.sidebar-nav a:hover {
  color: var(--dorado);
}

/* FILTROS */
.filtros {
  text-align: center;
  margin: 2rem 0 1rem;
}
.filtros button {
  background: var(--grisClaro);
  border: 1px solid var(--dorado);
  color: var(--grisOscuro);
  margin: 0.3rem;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.3s;
}
.filtros button:hover {
  background: var(--dorado);
  color: var(--blanco);
}
.filtros button.activo {
  background: var(--dorado);
  color: var(--blanco);
}

.card-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.3rem;
}

.btn-mini {
  background: transparent;          /* sin fondo sólido */
  color: var(--grisOscuro);         /* gris oscuro, discreto */
  border: 1px solid var(--grisClaro);
  border-radius: 12px;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;               /* más pequeño */
  cursor: pointer;
  opacity: 0.7;                     /* un poco más tenue */
  transition: all 0.3s ease;
}

.btn-mini:hover {
  background: var(--dorado);        /* resalta solo al pasar el mouse */
  color: var(--blanco);
  border-color: var(--dorado);
  opacity: 1;
}



.pedido-whatsapp {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.btn-mini {
  background: transparent;
  color: var(--grisOscuro);
  border: 1px solid var(--grisClaro);
  border-radius: 12px;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
}
.btn-mini:hover {
  background: var(--dorado);
  color: var(--blanco);
  border-color: var(--dorado);
  opacity: 1;
}

/* Toast de confirmación */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--grisOscuro);
  color: var(--blanco);
  padding: 0.6rem 1rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1300;
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* Loader dorado */
.loader {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(200, 161, 101, 0.3);
  border-top-color: var(--dorado);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.loader.visible {
  opacity: 1;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Ocultar contenido mientras carga */
.detalle-producto.loading h2,
.detalle-producto.loading p,
.detalle-producto.loading .carrusel,
.detalle-producto.loading .indicadores,
.detalle-producto.loading .pedido-whatsapp,
.detalle-producto.loading .volver {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.detalle-producto:not(.loading) h2,
.detalle-producto:not(.loading) p,
.detalle-producto:not(.loading) .carrusel,
.detalle-producto:not(.loading) .indicadores,
.detalle-producto:not(.loading) .pedido-whatsapp,
.detalle-producto:not(.loading) .volver {
  visibility: visible;
  opacity: 1;
}

/* Puntitos indicadores */
.indicadores {
  text-align: center;
  margin-top: 0.5rem;
}
.dot {
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background-color: var(--grisClaro);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s;
  cursor: pointer;
}
.dot.activo {
  background-color: var(--dorado);
}
/* Barra de buscar */
.buscador {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.buscador input {
  width: 90%;
  max-width: 400px;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--grisClaro);
  border-radius: 30px;
  outline: none;
  transition: box-shadow 0.3s ease;
}

.buscador input:focus {
  box-shadow: 0 0 0 2px var(--dorado);
}

.sugerencias {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--grisClaro);
  border-radius: 10px;
  margin-top: 0.3rem;
  list-style: none;
  padding: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: none;
}

.sugerencias li {
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.sugerencias li:hover {
  background: var(--grisClaro);
}
/* TOAST EN PEDIDOS */
.toast {
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 0.9rem;
  color: var(--dorado);
  margin-left: 0.5rem;
}
.toast.visible {
  opacity: 1;
}


