/* ---------------------- VARIABLES ---------------------- */
:root {
  --fondo: #F8F4EC;
  --fondo-tarjeta: #ffffff;
  --color-texto: #4B3C33;
  --color-dorado: #C9A24B;
  --color-rosado: #E8D3D1;
  --color-gris-suave: #7a6a64;
  --sombra: 0 4px 12px rgba(0,0,0,0.08);
  --fuente-titulos: 'Playfair Display', serif;
  --fuente-texto: 'Poppins', sans-serif;
}

/* ---------------------- GENERAL ---------------------- */
body {
  margin: 0;
  font-family: var(--fuente-texto);
  background-color: var(--fondo);
  color: var(--color-texto);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--fuente-titulos);
  color: var(--color-texto);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------------------- HEADER ---------------------- */
/* === HEADER GENERAL (versión mejorada y más delgada) === */
header {
  width: 100%;
  background-color: transparent;
  display: flex;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

header .header-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px; /* tamaño equilibrado */
  transition: padding 0.3s ease;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: var(--sombra);
}

header.scrolled .header-content {
  padding: 10px 28px; /* más delgado y elegante */
}

/* === LOGO & NOMBRE === */
.logo {
  height: 48px;
  border-radius: 50%;
  transition: height 0.25s ease;
}

.nombre-tienda {
  font-size: 1.55rem;
  letter-spacing: 2px;
  transition: font-size 0.25s ease;
}

header.scrolled .logo {
  height: 40px;
}

header.scrolled .nombre-tienda {
  font-size: 1.35rem;
}

/* === RESPONSIVE HEADER === */
@media (max-width: 768px) {
  header .header-content {
    padding: 10px 16px;
  }

  .logo {
    height: 42px;
  }

  .nombre-tienda {
    font-size: 1.25rem;
  }

  header.scrolled .header-content {
    padding: 8px 14px;
  }
}
/* === LOGO + NOMBRE EN FILA === */
.brand {
  display: flex;
  align-items: center;
  gap: 12px; /* separación elegante */
}

.brand .logo {
  height: 48px;
  border-radius: 50%;
}

.brand .nombre-tienda {
  margin: 0;
}
header.scrolled .brand .logo {
  height: 40px;
}

header.scrolled .brand .nombre-tienda {
  font-size: 1.35rem;
}
/* ---------------------- NAV ---------------------- */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--color-dorado);
}

/* ---------------------- MENÚ HAMBURGUESA (MÓVIL) ---------------------- */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* === SLIDER DE TEXTO HORIZONTAL (FUNCIONAL) === */
.inicio-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  background-color: var(--fondo);
  text-align: center;
  padding: 120px 0 35px; /* 🔹 Menos espacio arriba y abajo */
  min-height: 200px; /* 🔹 Más compacto */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 100%;

}

/* --- Contenedor del carrusel --- */
.slider-text-wrapper {
  display: flex;
  transition: transform 0.8s ease-in-out;
  width: 100%;
}

/* --- Cada slide individual --- */
.text-slide {
  flex: 0 0 100%;
  opacity: 0.2;
  transition: opacity 0.6s ease-in-out;
}

.text-slide.active {
  opacity: 1;
}

.text-slide h2 {
  font-family: var(--fuente-titulos);
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: var(--color-texto);
}

.text-slide p {
  font-size: 1rem;
  color: var(--color-gris-suave);
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto;
}

/* --- Puntos de navegación --- */
.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 10px;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-dots button.active {
  background-color: var(--color-dorado);
  transform: scale(1.2);
}

.slider-dots button:hover {
  background-color: #b38a32;
}

/* --- Responsivo --- */
@media (max-width: 768px) {
  .text-slide h2 {
    font-size: 1.8rem;
  }

  .text-slide p {
    font-size: 0.95rem;
  }
}

/* ---------------------- FILTROS ---------------------- */
.filtros {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px auto;
  padding: 10px;
  max-width: 700px;
  border-radius: 12px;
  background-color: #F1E8DC;
}

.filtros input, .filtros select {
  padding: 10px;
  border: 1px solid #D6CFC8;
  border-radius: 8px;
  outline: none;
  font-size: 0.9rem;
}

/* ---------------------- CATÁLOGO ---------------------- */
.catalogo {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 🔹 4 columnas iguales */
  gap: 20px;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px 100px;
  justify-items: center; /* centra cada tarjeta dentro de su celda */
}

/* 🔹 Ajuste responsivo para diferentes pantallas */
@media (max-width: 1024px) {
  .catalogo {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .catalogo {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .catalogo {
    grid-template-columns: 1fr;
  }
}

.producto {
  background-color: var(--fondo-tarjeta);
  border-radius: 12px;
  box-shadow: var(--sombra);
  text-align: center;
  padding: 15px;
  transform: translateY(10px);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 430px; /* puedes ajustar entre 420–460 según tus fotos */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%; /* ocupa todo el ancho de la celda del grid */
  max-width: 260px; /* evita que crezca más de esto */
  box-sizing: border-box;
}

.producto.visible {
  transform: translateY(0);
  opacity: 1;
}

.producto img {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  height: 220px; /* altura uniforme */
  border-radius: 10px;
  object-fit: cover;
  background-color: #fff;
  transition: transform 0.4s ease;

}

.producto h3 {
  margin: 8px 0 4px 0; /* nombre más cerca del precio */
}

.producto p {
  margin: 2px 0; /* elimina el espacio extra entre precio y stock */
  line-height: 1.2; /* texto más compacto */
}

.producto button {
  padding: 8px 16px;
  background-color: var(--color-dorado);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin: 5px 0;
  margin-top: 10px;
  font-weight: 500;
}

.producto button:hover {
  background-color: #b38a32; /* dorado más oscuro */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.producto:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  background-color: #f8eed8; /* fondo más claro al pasar el cursor */
}

.producto img:hover {
  transform: scale(1.05);
}
/* ---------------------- CARRITO FLOTANTE ---------------------- */
#carritoFlotante {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--color-dorado);
  color: white;
  padding: 12px 18px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: var(--sombra);
  transition: transform 0.3s;
  z-index: 1000;
}

#carritoFlotante:hover {
  transform: scale(1.1);
}

footer .social-icons img {
  width: 25px;
  margin: 0 8px;
}

/* --- MODAL CARRITO --- */

#modalCarrito .contenido {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: var(--sombra);
  text-align: center;
  position: relative;
}

#modalCarrito ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  text-align: left;
  max-height: 200px;
  overflow-y: auto;
}

#modalCarrito li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

#modalCarrito img {
  width: 40px;
  border-radius: 6px;
  margin-right: 10px;
}

#modalCarrito button {
  background-color: var(--color-dorado);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

#modalCarrito button:hover {
  background-color: #b38a32;
}

/* --- LIGHTBOX SLIDER --- */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.lightbox .cerrar,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(0,0,0,0.4);
  padding: 8px 14px;
  border-radius: 50%;
  transition: 0.3s;
}

.lightbox .cerrar:hover,
.lightbox .prev:hover,
.lightbox .next:hover {
  background: rgba(0,0,0,0.7);
}

.lightbox .cerrar { top: 20px; right: 30px; }
.lightbox .prev { left: 30px; }
.lightbox .next { right: 30px; }


/* --- Íconos sociales (en fila, debajo del texto) --- */
.footer-bottom .social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.footer-bottom .social-icons a {
  color: #caa64d; /* tono original dorado */
  font-size: 22px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-bottom .social-icons a:hover {
  color: #b6913e;
  transform: translateY(-3px);
}

/* --- Responsivo --- */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 40px;
  }

  .footer-bottom .social-icons a {
    font-size: 24px;
  }
}

/* 🔧 Restaura el scroll normal del body */
html, body {
  height: auto;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

main {
  flex: 1; /* empuja el footer al fondo sin generar espacio adicional */
}


.footer-bottom .social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.footer-bottom .social-icons a {
  color: #caa64d;
  font-size: 22px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-bottom .social-icons a:hover {
  color: #b6913e;
  transform: translateY(-3px);
}

.footer-bottom .social-icons {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

html, body {
  overflow-x: hidden; /* evita desplazamientos no deseados */
}

body {
  margin: 0;
  font-family: var(--fuente-texto);
  background-color: var(--fondo);
  color: var(--color-texto);
  overflow-x: hidden;
}

/* El contenido principal se expande, pero permite scroll */
main {
  flex: 1 0 auto;
}
.footer-bottom .social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.footer-bottom .social-icons a {
  color: #caa64d;
  font-size: 22px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-bottom .social-icons a:hover {
  color: #b6913e;
  transform: translateY(-3px);
}

/* === CARRITO DESLIZANTE (slide desde la derecha) === */
#modalCarrito {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100%;
  background-color: #fff;
  box-shadow: -4px 0 12px rgba(0,0,0,0.15);
  z-index: 2000;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  overflow-y: hidden; /* 🔹 evita doble scroll */
  transition: right 0.4s ease;
}

#modalCarrito.activo {
  right: 0; /* se desliza visible */
}

#modalCarrito h2 {
  text-align: center;
  margin-bottom: 15px;
  color: #4B3C33;
}

#modalCarrito ul {
  flex: 1;
  overflow-y: auto; /* 🔹 solo el listado tiene scroll */
  margin-bottom: 10px;
}

#modalCarrito li.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

#modalCarrito li img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 8px;
}

#modalCarrito .cart-footer {
  margin-top: auto; /* 🔹 empuja el total y botón al fondo */
  padding-top: 15px;
  border-top: 1px solid #ddd;
  background-color: #fff;
}

#modalCarrito .cerrar {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.6rem;
  cursor: pointer;
  color: #444;
  transition: color 0.3s ease;
}

#modalCarrito .cerrar:hover {
  color: #000;
}
/* --- Ajuste más alto del total y botón en el carrito --- */
.cart-footer {
  position: sticky;
  bottom: 15px; /* 🔹 Subido desde 0px para que no quede tan abajo */
  background-color: #fff;
  padding: 15px 0 18px;
  text-align: center;
  border-top: 1px solid #e0d7c9;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
}

.cart-footer p {
  margin-bottom: 10px;
  font-weight: 600;
  color: #4a3c2f;
}

.cart-footer button {
  background-color: #caa64d;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cart-footer button:hover {
  background-color: #b6913e;
}

/* --- SECCIÓN INICIO ESTÁTICA PARA CATÁLOGO --- */
.inicio-catalogo {
  background-color: var(--fondo);
  text-align: center;
  padding: 100px 20px 60px; /* espacio superior por el header fijo */
}

.inicio-catalogo h2 {
  font-family: var(--fuente-titulos);
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: var(--color-texto);
}

.inicio-catalogo p {
  font-size: 1rem;
  color: var(--color-gris-suave);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* --- SECCIÓN NUEVA COLECCIÓN (debajo del slider) --- */
.nueva-coleccion {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 10px;
  padding: 0 40px;
  text-align: left; /* 🔹 Alinea el texto a la derecha */
}

.nueva-coleccion h2 {
  font-family: var(--fuente-titulos);
  font-size: 2rem;
  color: var(--color-texto);
  letter-spacing: 1px;
  border-bottom: 2px solid var(--color-dorado);
  display: inline-block;
  padding-bottom: 6px;
}
/* === FOOTER FINAL AJUSTADO === */
footer {
  width: 100vw; /* ocupa todo el ancho de la ventana */
  background-color: #EDE6DF;
  color: #4B3C33;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  padding: 40px 0 0 0; /* sin padding lateral */
  margin: 0;
  overflow-x: hidden; /* evita scroll horizontal por el 100vw */
}

.footer-container {
  display: flex;
  justify-content: center; /* centra horizontalmente todas las columnas */
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 60px; /* menos separación para equilibrio */
  margin: 0 auto;
  max-width: 1100px; /* límite visual centrado */
}


.footer-column {
  flex: 1;
  min-width: 260px;
}

.footer-column h4 {
  color: #caa64d;
  font-weight: 600;
  margin-bottom: 15px;
}

.footer-column p {
  margin: 6px 0;
  line-height: 1.5;
}

/* Suscripción */
.footer-column form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column input[type="email"] {
  padding: 8px;
  border: 1px solid #d3c7b8;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

.footer-column button {
  background-color: #caa64d;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.footer-column button:hover {
  background-color: #b8923f;
  transform: translateY(-2px);
}

/* Parte inferior del footer */
.footer-bottom {
  margin-top: 10px;
  padding-top: 10px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: #5a4632;
}

.footer-bottom .social-icons {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.footer-bottom .social-icons a {
  color: #caa64d;
  font-size: 22px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-bottom .social-icons a:hover {
  color: #b6913e;
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 40px;
  }
}

.mapa-ubicacion {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 15px;
  overflow: hidden;
}
.mapa-ubicacion iframe {
  width: 100%;
  height: 60vh; /* 60% del alto visible de la pantalla */
  min-height: 400px;
  border: 0;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* === SECCIÓN DE CONTACTO === */
.contacto-contenedor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.contacto-card {
  background: var(--fondo-tarjeta);
  box-shadow: var(--sombra);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contacto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.contacto-card h2 {
  color: var(--color-texto);
  font-family: var(--fuente-titulos);
  margin-bottom: 1rem;
}

.contacto-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contacto-card input,
.contacto-card textarea {
  padding: 10px;
  border: 1px solid #d6cfc8;
  border-radius: 8px;
  outline: none;
  font-family: var(--fuente-texto);
}

.contacto-card button {
  background-color: var(--color-dorado);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contacto-card button:hover {
  background-color: #b38a32;
}

.social-contacto {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 1rem;
}

.social-contacto a {
  color: var(--color-dorado);
  font-size: 1.6rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-contacto a:hover {
  color: #b6913e;
  transform: translateY(-3px);
}

.logo-contacto {
  margin-top: 1rem;
  width: 80px;
  border-radius: 50%;
}

@media (max-width: 900px) {
  .contacto-contenedor {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .contacto-contenedor {
    grid-template-columns: 1fr;
  }
}
/* --- Ajuste para evitar que el mapa tape el header --- */
.espaciado-header {
  height: 110px; /* compensa el header fijo */
}

/* Ajuste visual para contacto */
.main-contacto {
  background-color: var(--fondo);
  padding-bottom: 4rem;
}

/* ============================
   OVERLAY CORRECTO
============================ */

.overlayMenu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 9000; /* debajo del menú */
}

.overlayMenu.activo {
  opacity: 1;
  visibility: visible;
}

/* ============================
   MENÚ LATERAL
============================ */

@media (max-width: 768px) {

  .menu-toggle {
    display: block !important;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
    z-index: 10001;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.08);
    padding-top: 90px;
    transition: right 0.35s ease;
    z-index: 10010; /* encima del overlay */
  }

  nav.activo {
    right: 0;
  }

  nav ul {
    display: flex !important;
    flex-direction: column;
    gap: 22px;
    padding-left: 28px;
  }

  nav ul li a {
    font-size: 1.35rem;
    font-weight: 500;
  }
}
/* Botón X del menú móvil */
.cerrar-menu {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10020;
  color: #4B3C33;
  user-select: none;
  display: none; /* solo visible en móvil */
}

@media (max-width: 768px) {
  .cerrar-menu {
    display: block;
  }
}

/* --- BOTÓN VER MÁS --- */
.ver-mas-container {
  width: 100%;
  text-align: center;
  margin: 20px 0 60px 0;
  display: block;
}

.btn-ver-mas {
  display: inline-block;
  background-color: var(--color-dorado);
  color: white;
  padding: 12px 26px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);

  /* Animación */
  opacity: 0;
  transform: translateY(25px);
  animation: aparecer 0.9s ease-out forwards;
}

@keyframes aparecer {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🔹 Móvil: asegura que el botón siempre sea visible */
@media (max-width: 768px) {
  .ver-mas-container {
    margin-top: 10px !important;
  }

  .btn-ver-mas {
    font-size: 1rem;
    padding: 12px 22px;
  }
}
