:root {
  --brown: #8B4513;
  --tan: #D2B48C;
  --cream: #F5F5DC;
  --dark: #2C1810;
  --gold: #B8860B;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Montserrat', sans-serif;
  background: #faf9f7;
  color: var(--dark);
  line-height: 1.6;
  padding-top: 100px; /* ← único padding-top para el menú fijo */
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }

/* ===================================
   HEADER HERO (solo en index.html)
   =================================== */
header {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/volcan.jpg') center/cover no-repeat;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}
.logo { font-size: 4.5rem; text-shadow: 3px 3px 10px rgba(0,0,0,0.7); margin-bottom: 1rem; }
.subtitle { font-size: 1.8rem; font-weight: 300; margin-bottom: 2rem; }
.btn { 
  background: var(--gold); 
  color: white; 
  padding: 14px 40px; 
  border-radius: 50px; 
  text-decoration: none; 
  display: inline-block; 
  transition: all 0.3s; 
}
.btn:hover { background: #9e7600; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* ===================================
   MENÚ NUEVO PROFESIONAL (el que gana)
   =================================== */
.nuevo-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.container-nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-nav {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--brown);
  text-decoration: none;
  font-weight: 700;
}
.menu-principal {
  display: flex;
  list-style: none;
  gap: 4rem;
}
.menu-principal a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
}
.menu-principal a:hover { color: var(--brown); }
.menu-principal a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -8px;
  left: 50%;
  background: var(--brown);
  transition: all 0.3s;
}
.menu-principal a:hover::after {
  width: 100%;
  left: 0;
}
.destacado a { color: #e74c3c !important; font-weight: 600; }

.iconos-derecha {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.texto-derecha {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
}
.btn-carrito-derecha {
  background: var(--brown);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
}
.btn-carrito-derecha:hover {
  background: #6d4c27;
  transform: translateY(-2px);
}

/* ===================================
   GALERÍA Y PRODUCTOS
   =================================== */
.container { max-width: 1300px; margin: 0 auto; padding: 0 2rem; text-align: center; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}
.card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s;
}
.card:hover { transform: translateY(-15px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s;
}
.card:hover img { transform: scale(1.08); }
.card-body { padding: 1.5rem; }
.card h3 { color: var(--brown); margin: 0.5rem 0; }
.card-link { text-decoration: none; color: inherit; }

/* ===================================
   PÁGINA DE PRODUCTO
   =================================== */
.producto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
  align-items: start;
}
.imagen-principal img { width: 100%; border-radius: 12px; }
.swatches { display: flex; gap: 1rem; margin: 1rem 0; }
.swatch {
  width: 50px; height: 50px; border-radius: 50%; border: 3px solid #ddd; cursor: pointer;
}
.swatch.active { border-color: var(--brown); transform: scale(1.1); }
.opcion { margin: 2rem 0; }
.opcion input, .opcion select {
  width: 100%; padding: 1rem; margin-top: 0.5rem; border-radius: 8px; border: 1px solid #ddd;
}
.btn-carrito {
  background: var(--brown);
  color: white;
  padding: 1.2rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  width: 100%;
}

/* ===================================
   CONTACTO Y OTROS
   =================================== */
.contact-form {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 3rem auto;
  text-align: left;
}
.contact-form label { display: block; margin: 1.5rem 0 0.5rem; font-weight: 600; color: var(--brown); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 15px; border: 2px solid #ddd; border-radius: 10px; font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 10px rgba(184,134,11,0.2);
}
.contact-form textarea { min-height: 150px; resize: vertical; }

/* ===================================
   CARRITO FLOTANTE (si aún lo quieres usar)
   =================================== */
.carrito-flotante {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--brown);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 999;
}
#contador-carrito {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #25D366;
  color: white;
  font-size: 0.8rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
  .logo { font-size: 3rem; }
  .menu-principal { gap: 2rem; }
  .producto-grid { grid-template-columns: 1fr; }
  .card img { height: 300px; }
}
/* FOTO PRINCIPAL CON MOVIMIENTO SUAVE */
.foto-hover {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}
.foto-hover:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* GALERÍA SECUNDARIA ESTILO WATERFIELD */
.galeria-secundaria {
  margin-top: 3rem;
}
.thumbnails-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
.thumbnails-wrapper {
  overflow: hidden;
  border-radius: 16px;
}
.thumbnails {
  display: flex;
  transition: transform 0.4s ease;
  width: 400%; /* para 4 elementos */
}
.thumb {
  width: 25%;
  padding: 0 8px;
  box-sizing: border-box;
  cursor: pointer;
}
.thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid transparent;
  transition: all 0.3s;
}
.thumb.active img, .thumb:hover img {
  border-color: var(--brown);
  transform: scale(1.05);
}

/* Flechas navegación */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
}
.left-arrow { left: 10px; }
.right-arrow { right: 10px; }

/* Icono play video */
.video-thumb {
  position: relative;
}
.play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  text-shadow: 0 0 20px rgba(0,0,0,0.8);
}

/* MODAL VIDEO */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}
.modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
}
.close-modal {
  position: absolute;
  top: -50px;
  right: 0;
  font-size: 4rem;
  color: white;
  cursor: pointer;
  z-index: 10001;
}
.galeria-thumbnails {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}
.galeria-thumbnails .thumb {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 4px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.galeria-thumbnails .thumb:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}
.galeria-thumbnails .thumb.activa {
  border: 4px solid var(--brown);
  transform: scale(1.05);
}
.video-thumb {
  position: relative;
  overflow: hidden;
}
.play-icon {
  position: absolute;
  ;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: white;
  text-shadow: 0 0 15px rgba(0,0,0,0.8);
  pointer-events: none;
}
.video-grande {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  background: #000;
}
.galeria-thumbnails {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}
.galeria-thumbnails .thumb {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 4px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.galeria-thumbnails .thumb:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}
.galeria-thumbnails .thumb.activa {
  border: 4px solid var(--brown);
  transform: scale(1.05);
}
.video-thumb {
  position: relative;
  overflow: hidden;
}
.play-icon {
  position: absolute;
  ;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: white;
  text-shadow: 0 0 15px rgba(0,0,0,0.8);
  pointer-events: none;
}
.video-grande {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  background: #000;
}
.idioma-toggle button {
  background: var(--brown);
  color: white;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(139,69,19,0.3);
  transition: all 0.3s;
}

.idioma-toggle button:hover {
  transform: scale(1.1);
  background: #6d3a14;
}
.idioma-toggle button {
  background: white;
  border: 2px solid #ddd;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.idioma-toggle button:hover {
  transform: scale(1.12);
  border-color: var(--brown);
  box-shadow: 0 8px 25px rgba(139,69,19,0.3);
}

.idioma-toggle img {
  border-radius: 4px;
  transition: opacity 0.3s ease;
}

/* Agrega o modifica esto en tu <style> */

/* 1. Centrar el Título del producto */
.opciones h1 {
    text-align: center;
    margin-bottom: 5px; /* Espacio pequeñito antes de las estrellas */
}

/* 2. Contenedor de las estrellas debajo del título */
.product-rating-simple {
    display: flex;
    justify-content: center; /* Esto las centra horizontalmente */
    align-items: center;
    gap: 10px; /* Espacio entre estrellas y el número */
    margin-bottom: 20px; /* Espacio antes del precio */
    font-size: 18px;
}

/* 3. Color dorado para las estrellas */
.stars, .estrellas, .estrellas-grandes {
    color: #F5C518; /* Amarillo dorado tipo Amazon/IMDb */
    font-weight: bold;
    letter-spacing: 2px; /* Separarlas un poquito */
}

/* --- Estilos para la Galería de Productos --- */
.gallery {
    display: grid; /* Usamos CSS Grid para un layout adaptable */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 280px mínimo, y se expanden */
    gap: 30px; /* Espacio entre las tarjetas */
    max-width: 1200px; /* Ancho máximo de la galería */
    margin: 4rem auto; /* Centrar la galería y dar espacio */
    padding: 0 20px; /* Un poco de padding en los lados para móviles */
}

.card-link {
    text-decoration: none; /* Quitar el subrayado de los enlaces */
    color: inherit; /* Heredar el color del texto */
    display: block; /* Para que la tarjeta sea clicable por completo */
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    overflow: hidden; /* Asegura que las esquinas redondeadas se vean bien */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Asegura que todas las tarjetas tengan la misma altura si están en grid */
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px); /* Efecto "levantar" al pasar el mouse */
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover; /* Recorta la imagen para que cubra el espacio sin distorsionarse */
    border-bottom: 1px solid #eee;
}

.card-body {
    padding: 20px;
    text-align: left; /* Alineación del texto dentro de la tarjeta */
    flex-grow: 1; /* Para que el body ocupe el espacio restante */
}

.card-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #3e2c1c;
    margin-bottom: 8px;
}

.card-body p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.5;
}

/* --- Responsive Design (para pantallas pequeñas) --- */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Menos ancho en móvil */
        gap: 20px;
    }
    .card img {
    aspect-ratio: 1 / 1;
    height: auto; /* Opcional, pero bueno para fallback */
    }
    .card-body h3 {
        font-size: 1.4rem;
    }
    .card-body p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr; /* Una columna en pantallas muy pequeñas */
        max-width: 350px;
    }
}