* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Quicksand', sans-serif;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: #E6E1F2;
  color: #333;
}

/* Top bar */
.top-bar {
  background-color: #5C4D83;
  color: #fff;
  text-align: center;
  padding: 8px 15px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Header & Logo */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
  background: #fff;
  box-shadow: 0 4px 15px rgba(92, 77, 131, 0.08);
  min-height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo-img {
  height: 50px;
  width: auto;
  margin-right: 10px;
}

.logo-texto {
  font-size: 1.4rem;
  font-weight: 700;
  color: #5C4D83;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #8E7CB3;
  margin-left: 20px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.btn-nav {
  background-color: #E6E1F2;
  padding: 8px 18px;
  border-radius: 20px;
  color: #433261 !important;
}

/* --- HERO / ¿QUIÉNES SOMOS? --- */
.hero-seccion {
  background: linear-gradient(135deg, #433261 0%, #5C4D83 100%);
  color: #ffffff;
  padding: 50px 30px;
  border-radius: 20px;
  max-width: 1150px;
  margin: 30px auto;
  box-shadow: 0 10px 30px rgba(67, 50, 97, 0.2);
}

.hero-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-contenido {
  flex: 1;
  text-align: left;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(230, 225, 242, 0.2);
  color: #E6E1F2;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 15px;
}

.hero-contenido h1 {
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.1;
}

.hero-subtitulo {
  font-size: 1.2rem;
  color: #E6E1F2;
  font-weight: 600;
  margin-bottom: 15px;
}

.hero-descripcion {
  font-size: 0.95rem;
  color: #d1c8e3;
  line-height: 1.6;
  margin-bottom: 25px;
}

.hero-botones {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

.btn-hero-wa, .btn-hero-ig, .btn-hero-catalogo {
  padding: 12px 22px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s;
  display: inline-block;
}

.btn-hero-wa {
  background-color: #25d366;
  color: #fff;
}

.btn-hero-ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
}

.btn-hero-catalogo {
  background-color: #fff;
  color: #433261;
}

.btn-hero-wa:hover, .btn-hero-ig:hover, .btn-hero-catalogo:hover {
  transform: translateY(-2px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  background-color: rgba(255, 255, 255, 0.1);
  color: #E6E1F2;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 12px;
}

/* Mockup Celular */
.hero-mockup-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.celular-frame {
  position: relative;
  width: 250px;
  height: 480px;
  background-color: #000;
  border-radius: 36px;
  border: 10px solid #222;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  overflow: hidden;
}

.celular-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 18px;
  background-color: #222;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

.celular-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.celular-badge-tiktok {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 15px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Contenedores y Filtros */
.contenedor {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

.titulo-seccion {
  text-align: center;
  margin: 30px 0;
}

.titulo-seccion h2 {
  font-size: 2.2rem;
  color: #5C4D83;
}

.filtros-contenedor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 35px;
  background-color: #fff;
  padding: 18px 25px;
  border-radius: 15px;
  border: 1px solid #E6E1F2;
}

.filtros-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.btn-filtro {
  background-color: #E6E1F2;
  color: #433261;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-filtro.activo {
  background-color: #5C4D83;
  color: #fff;
}

/* Grilla de Productos */
.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.tarjeta {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid #E6E1F2;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 440px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(92, 77, 131, 0.15);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #433261;
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 700;
  z-index: 2;
}

.tarjeta img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.tarjeta-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.tarjeta-body h3 {
  font-size: 1.15rem;
  color: #5C4D83;
}

.tarjeta-body p {
  font-size: 0.85rem;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.precio-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.precio {
  font-size: 1.3rem;
  font-weight: 700;
  color: #5C4D83;
}

.btn-ver {
  background-color: #8E7CB3;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* 🛍️ VISTA DETALLE PRODUCTO */
.vista-detalle-container {
  padding: 40px 0;
}

.btn-volver {
  background: none;
  border: none;
  color: #8E7CB3;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 25px;
}

.btn-volver:hover {
  color: #433261;
  text-decoration: underline;
}

.detalle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #fff;
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.detalle-galeria {
  display: flex;
  gap: 15px;
}

.galeria-miniaturas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thumb-mini {
  width: 65px;
  height: 65px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid #E6E1F2;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}

.thumb-mini.activa, .thumb-mini:hover {
  opacity: 1;
  border-color: #5C4D83;
}

.galeria-principal {
  flex-grow: 1;
  border-radius: 15px;
  overflow: hidden;
  background-color: #fcf8f6;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 420px;
}

.galeria-principal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}

.detalle-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detalle-info h1 {
  font-size: 2rem;
  color: #433261;
  margin: 10px 0;
}

.precio-grande {
  font-size: 2.2rem;
  font-weight: 700;
  color: #5C4D83;
  margin-bottom: 5px;
}

.stock-info {
  color: #28a745;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.descripcion-box {
  background-color: #fdfaf7;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 25px;
  border-left: 4px solid #8E7CB3;
}

.descripcion-box p {
  color: #555;
  line-height: 1.5;
}

.btn-wa-grande {
  display: block;
  text-align: center;
  background-color: #25d366;
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s, background-color 0.2s;
}

.btn-wa-grande:hover {
  background-color: #1ebc57;
  transform: translateY(-2px);
}

.opciones-entrega {
  margin-top: 30px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.opciones-entrega h4 {
  color: #433261;
  margin-bottom: 10px;
}

.opciones-entrega ul {
  list-style: none;
  font-size: 0.85rem;
  color: #777;
  line-height: 1.6;
}

/* Visor de Zoom Modal */
.visor-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.visor-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  object-fit: contain;
}

.cerrar-visor {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
}

/* Banner Informativo */
.banner-info {
  background-color: #fff;
  padding: 30px 0;
  margin-bottom: 30px;
  border-top: 2px solid #E6E1F2;
}

.banner-info h2 {
  text-align: center;
  color: #5C4D83;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.grid-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card-info {
  background-color: #fdfaf7;
  border: 1px dashed #8E7CB3;
  border-radius: 12px;
  padding: 20px;
}

.card-info h3 {
  color: #433261;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.card-info ul {
  list-style: none;
}

.card-info li {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 8px;
  padding-left: 15px;
  position: relative;
}

.card-info li::before {
  content: "💖";
  position: absolute;
  left: 0;
  font-size: 0.75rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 35px 20px;
  background-color: #433261;
  color: white;
  margin-top: 60px;
}

.sub-footer {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 5px;
}

/* =========================================================
   📱 REGLAS EXCLUSIVAS PARA CELULARES Y TABLETS
   ========================================================= */
@media (max-width: 900px) {
  .nav-links a:not(.btn-nav) {
    display: none;
  }
  
  .header {
    padding: 10px 15px;
  }
  
  .logo-texto {
    font-size: 1.1rem;
  }

  .logo-img {
    height: 40px;
  }

  .hero-seccion {
    margin: 15px;
    padding: 30px 15px;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .hero-contenido h1 {
    font-size: 2.2rem;
  }

  .hero-subtitulo {
    font-size: 1rem;
  }

  .hero-botones {
    flex-direction: column;
    align-items: center;
  }

  .btn-hero-wa, .btn-hero-ig, .btn-hero-catalogo {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .hero-tags {
    justify-content: center;
  }

  .celular-frame {
    width: 220px;
    height: 420px;
  }

  /* Detalle responsivo */
  .detalle-grid {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }

  .detalle-galeria {
    flex-direction: column-reverse;
  }

  .galeria-miniaturas {
    flex-direction: row;
  }

  .thumb-mini {
    width: 55px;
    height: 55px;
  }
}