* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', Arial, sans-serif;
}

body {
  color: #1a1a1a;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===== NAVBAR ===== */
.navbar {
  background: #fff;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-content nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}

.nav-content nav a {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s;
}

.nav-content nav a:hover {
  color: #b87563;
}

/* Link activo con subrayado */
.nav-content nav a.nav-active {
  color: #b87563;
  font-weight: 600;
}

.nav-content nav a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #b87563;
  border-radius: 2px;
}

/* Ícono carrito */
.nav-acciones {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-carrito-icon {
  position: relative;
  color: #1a1a1a;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.btn-carrito-icon:hover {
  color: #b87563;
}

.carrito-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #b87563;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
}

.nav-menu {
  display: flex; list-style: none; gap: 20px; align-items: center;
}
.nav-menu a {
  text-decoration: none; color: inherit;
}
/* ===== HERO ===== */
.logo img {
  width: 90px;
  height: auto;
}

.hero {
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

.hero p {
  max-width: 600px;
  margin: auto;
  margin-bottom: 25px;
}

.btn-primary {
  background: #b87563;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
}

.hero-image img {
  width: 100%;
  max-width: 900px;
  margin-top: 40px;
}

/* ===== TESTIMONIOS ===== */
.testimonios {
  background: #f8f8f8;
  padding: 80px 0;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: white;
  padding: 25px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.cliente {
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.cliente img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-right: 10px;
}

/* Avatar inicial para reseñas de usuarios */
.avatar-inicial {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #b87563;
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
}

/* Formulario de reseña */
.form-resena {
  margin-top: 50px;
  background: white;
  border-radius: 14px;
  padding: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  text-align: left;
}

.form-resena h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.form-resena input,
.form-resena textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e0dbd5;
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: Arial, sans-serif;
  color: #333;
  box-sizing: border-box;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}

.form-resena input:focus,
.form-resena textarea:focus {
  outline: none;
  border-color: #b87563;
}

.form-resena textarea {
  resize: vertical;
  min-height: 100px;
}

.form-resena button {
  width: 100%;
  padding: 12px;
  background: #b87563;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.form-resena button:hover {
  background: #a5664f;
}

/* ===== SUSCRIPCIÓN ===== */
.suscripcion {
  background: #f1f1f1;
  padding: 50px 20px;
}

.suscripcion-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.suscripcion input {
  padding: 10px;
  width: 250px;
}

.suscripcion button {
  padding: 10px 15px;
  background: #b87563;
  color: white;
  border: none;
}

/* ===== FOOTER ===== */
.footer {
  background: #111;
  color: white;
  padding: 40px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.redes a {
  display: block;
  color: white;
  text-decoration: none;
  margin-top: 5px;
}

.footer-admin-link {
  text-align: center;
  padding: 10px 0 6px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 16px;
}

.nav-login-link {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-login-link:hover {
  color: rgba(255,255,255,0.55);
}
html {
  scroll-behavior: smooth;
}

.footer {
  color: #fff; 
  transition: color 0.5s ease;
}

.footer:target {
  animation: resaltarFooter 1.5s ease;
}

/* Animación */
@keyframes resaltarFooter {
  0% {
    background-color: #fff;
    box-shadow: 0 0 0 rgba(0,0,0,0);
    color: #000; 
  }
  50% {
    background: linear-gradient(135deg, #f3e4df, #e0c1b6);
    box-shadow: 0 0 25px rgba(184, 122, 102, 0.5);
    color: #000; 
  }
  100% {
    background-color: #000;
    box-shadow: 0 0 0 rgba(0,0,0,0);
    color: #fff; 
  }
}

/* ===== SECCIÓN PRODUCTOS ===== */
.productos {
  padding: 60px 40px;
  background: #fff;
}
.titulo-pagina {
  text-align: center;
  padding: 60px 20px 30px;
}

.titulo-pagina h1 {
  font-size: 36px;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
/* Título */
.producto-card h3 {
  font-size: 18px;
  margin: 10px 0 8px;
}


.titulo-pagina p {
  font-size: 18px;
  color: #666;
  margin-top: 12px;
}

/* Línea decorativa animada */
.titulo-pagina h1::after {
  content: "";
  width: 0;
  height: 4px;
  background: #b87a66;
  display: block;
  margin: 12px auto 0;
  border-radius: 5px;
  animation: expandirLinea 1.2s ease-out forwards;
}

/* Animación */
@keyframes expandirLinea {
  from {
    width: 0;
  }
  to {
    width: 140px; /* ≈ 3 cm por lado */
  }
}

/* ===== MODAL DETALLE PRODUCTO ===== */
.modal-producto-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-producto-overlay.activo {
  display: flex;
}

.modal-producto-content {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.modal-producto-cerrar {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #aaa;
  z-index: 10;
  line-height: 1;
}

.modal-producto-cerrar:hover { color: #333; }

/* Galería */
.modal-galeria {
  position: relative;
  background: #f7f3ef;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
  align-self: stretch;
  min-height: 340px;
}

.galeria-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.galeria-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background 0.2s;
  z-index: 2;
}

.galeria-nav:hover { background: white; }
.galeria-prev { left: 10px; }
.galeria-next { right: 10px; }

.galeria-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.galeria-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.2s;
}

.galeria-dot.activo { background: white; }

.galeria-titulo {
  position: absolute;
  bottom: 36px;       /* encima de los dots */
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.82rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.52));
  margin: 0;
  padding: 22px 16px 8px;
  font-style: italic;
  letter-spacing: 0.01em;
  pointer-events: none;
}

/* Info */
.modal-producto-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-cat {
  font-size: 0.8rem;
  color: #b87563;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-nombre {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  margin: 0;
}

.modal-precio {
  font-size: 1.3rem;
  font-weight: 700;
  color: #b87563;
  margin: 0;
}

.modal-desc-wrap { display: flex; flex-direction: column; gap: 2px; }

.modal-descripcion {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.6;
  flex: 1;
  margin: 0;
}

.btn-ver-mas {
  display: none;   /* solo visible en mobile */
  background: none;
  border: none;
  color: #b87563;
  font-size: 0.82rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.modal-producto-info .btn-primary {
  margin-top: auto;
  text-align: center;
  display: block;
}

@media (max-width: 600px) {
  .modal-producto-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal-producto-content {
    grid-template-columns: 1fr;
    border-radius: 16px 16px 0 0;
    max-height: 96vh;
    width: 100%;
  }
  .modal-producto-cerrar {
    top: 10px;
    right: 12px;
    color: #fff;
    background: rgba(0,0,0,0.35);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
  }
  .modal-galeria {
    border-radius: 16px 16px 0 0;
    height: 56vh;
  }
  .modal-producto-info {
    padding: 1.2rem 1.2rem 1.5rem;
    gap: 8px;
  }

  /* Descripción truncada a 2 líneas */
  .modal-descripcion {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: none;
  }
  .modal-descripcion.expandida {
    display: block;
    overflow: visible;
  }
  .btn-ver-mas {
    display: inline-block;
  }
}

/* ===== FILTROS CATEGORÍA ===== */
.filtros-categoria {
  padding: 0 20px 28px;
}

#filtros-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.btn-filtro {
  padding: 8px 20px;
  border-radius: 24px;
  border: 1.5px solid #d9d0c8;
  background: white;
  color: #555;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-filtro:hover {
  border-color: #b87563;
  color: #b87563;
}

.btn-filtro.activo {
  background: #b87563;
  border-color: #b87563;
  color: white;
}

    /* Tarjeta */
.producto-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

/* Imagen */
.producto-card img {
  width: 100%;
  max-width: 260px;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Precio */
.producto-card p {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Botón */
.producto-card .btn-primary {
  margin-top: auto;
  padding: 10px 18px;
  background: #b87a66;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
}
.productos {
  width: 100%;
  padding: 60px 40px;
  display: flex;
  justify-content: center;
}

/* ===== SKELETON LOADER ===== */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.skeleton-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.skeleton-img, .skeleton-line {
  border-radius: 8px;
  background: linear-gradient(90deg, #f0ece8 25%, #e8e2dc 50%, #f0ece8 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite linear;
}
.skeleton-img  { width: 100%; height: 200px; }
.skeleton-line { height: 14px; width: 70%; }
.skeleton-line.corta { width: 45%; }
.skeleton-line.btn   { width: 55%; height: 36px; border-radius: 6px; margin-top: 8px; }

.grid-productos {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .grid-productos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Navbar */
  .nav-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: nowrap;
  }
  .nav-content .logo {
    flex-shrink: 0;
  }
  .logo img {
    width: 70px;
  }
  .nav-content nav {
    gap: 12px;
    flex-wrap: wrap;
    align-content: flex-start;
    padding-top: 4px;
  }

  /* Hero */
  .hero { padding: 40px 20px; }
  .hero h1 { font-size: 26px; }

  /* Testimonios */
  .cards { grid-template-columns: 1fr; }

  /* Suscripción */
  .suscripcion-box {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* Footer: columna única desde 768px */
  .footer {
    padding: 32px 20px;
    overflow-x: hidden;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .footer h4 {
    font-size: 1rem;
    margin-bottom: 4px;
  }
  .footer p {
    font-size: 0.92rem;
    word-break: break-word;
  }
  .redes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .redes a {
    display: inline;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .grid-productos {
    grid-template-columns: 1fr;
  }
  .nav-content nav {
    gap: 12px;
    font-size: 0.9rem;
  }
  .panel-carrito {
    width: 100%;
    border-radius: 0;
  }
  .tabla-header,
  .product-row {
    grid-template-columns: 1.5fr 0.8fr 0.8fr 60px;
    padding: 12px 16px;
    font-size: 0.82rem;
  }
}
/* ===== CARRITO ===== */
.panel-carrito {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 15px rgba(0,0,0,0.2);
  padding: 20px;
  transition: right 0.4s ease;
  z-index: 9999;
  overflow-y: auto;
}

.panel-carrito.activo {
  right: 0;
}

.total-carrito {
  font-weight: bold;
  margin-top: 20px;
  font-size: 18px;
}

#contador-carrito {
  background: #b87a66;
  color: white;
  padding: 2px 8px;
  border-radius: 50%;
  font-size: 13px;
  margin-left: 5px;
}

.item-carrito {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}
/* ===== PANEL DEL CARRITO ===== */
.panel-carrito {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100vh;
  background: #fffaf7;
  box-shadow: -8px 0 30px rgba(0,0,0,0.2);
  padding: 25px;
  transition: right 0.4s ease;
  z-index: 9999;
  overflow-y: auto;
  border-radius: 20px 0 0 20px;
}

/* Activo */
.panel-carrito.activo {
  right: 0;
}

/* Título */
.panel-carrito h3 {
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #3b2f2f;
  text-align: center;
  border-bottom: 2px solid #b87a66;
  padding-bottom: 10px;
}

/* Item del carrito */
.item-carrito {
  background: white;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item-info {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

/* Botón eliminar */
.btn-eliminar {
  align-self: flex-end;
  background: transparent;
  border: 1px solid #b87a66;
  color: #b87a66;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-eliminar:hover {
  background: #b87a66;
  color: white;
}

/* Fila donde va el botón a la derecha */
.item-acciones {
  display: flex;
  justify-content: flex-end;
}

/* Total */
.total-carrito {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 700;
  color: #3b2f2f;
  text-align: center;
  border-top: 2px solid #e9d6cf;
  padding-top: 15px;
}

/* Botón WhatsApp */
.btn-whatsapp {
  margin-top: 14px;
  width: 100%;
  padding: 12px;
  background: #25d366;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-family: Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.btn-whatsapp:hover {
  background: #1ebe5a;
}

/* Botón cerrar */
#cerrar-carrito {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  background: transparent;
  color: #b87a66;
  border: 1.5px solid #b87a66;
  border-radius: 8px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  cursor: pointer;
  transition: 0.3s ease;
}

#cerrar-carrito:hover {
  background: #b87a66;
  color: white;
}

/* ===== CONTADOR DEL CARRITO ===== */
#contador-carrito {
  background: #b87a66;
  color: white;
  padding: 2px 8px;
  border-radius: 50%;
  font-size: 12px;
  margin-left: 6px;
}

/* ===== TOAST BONITO ===== */
.toast-notify {
  position: fixed;
  right: 20px;
  bottom: 30px;
  background: #b87a66;
  color: white;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.30s ease;
  z-index: 10050;
}

.toast-notify.visible {
  opacity: 1;
  transform: translateY(0);
}
.video-presentacion {
  padding: 60px 20px;
  text-align: center;
}

.video-presentacion h2 {
  font-size: 32px;
  margin-bottom: 25px;
  color: #2f2f2f;
  font-weight: 600;
}

.video-contenedor {
  display: flex;
  justify-content: center;
}

.video-contenedor video {
  width: 60%;
  max-width: 650px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
  .video-contenedor video {
    width: 95%;
  }
}

/* ===== VARIANTES EN MODAL DE PRODUCTO ===== */
.modal-variantes {
  margin: 14px 0 6px;
}

.variantes-titulo {
  font-size: 0.78rem;
  font-weight: 600;
  color: #8b6e63;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.variantes-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.btn-variante {
  border: 1.5px solid #d4c5be;
  border-radius: 8px;
  background: white;
  color: #5c4a42;
  font-size: 0.82rem;
  font-family: 'Poppins', Arial, sans-serif;
  padding: 7px 16px;
  cursor: pointer;
  transition: all 0.18s;
}

.btn-variante:hover:not([disabled]) {
  border-color: #b87563;
  color: #b87563;
}

.btn-variante.activo {
  background: #b87563;
  border-color: #b87563;
  color: white;
}

.btn-variante.sin-stock,
.btn-variante[disabled] {
  opacity: 0.38;
  cursor: not-allowed;
  text-decoration: line-through;
}

.variante-stock-info {
  font-size: 0.78rem;
  color: #aaa;
  min-height: 1.1em;
}

.variante-stock-info.disponible {
  color: #27ae60;
}

.variante-stock-info.agotado {
  color: #d94f4f;
}

.variantes-aviso {
  font-size: 0.8rem;
  color: #d94f4f;
  margin: 6px 0 8px;
  font-family: 'Poppins', Arial, sans-serif;
}

.modal-colores {
  margin: 14px 0 6px;
}

.colores-vacio {
  font-size: 0.8rem;
  color: #c0b0a8;
  font-style: italic;
}

/* Botón carrito con selecciones pendientes */
#btnModalCarrito.btn-carrito-pendiente {
  opacity: 0.55;
  cursor: pointer;
  background: #c8a99f;
}

#btnModalCarrito.btn-carrito-pendiente:hover {
  background: #b87563;
  opacity: 0.7;
}