:root {
  --primary: #9E674F; /* Marrón del nuevo logo */
  --primary-hover: #85523D;
  --bg-color: #FAF2EC; /* Crema del fondo del logo */
  --text-dark: #3A261D; /* Marrón oscuro para texto */
  --text-light: #7A5C4F;
  --white: #FFFFFF;
  --border-color: #EBDAD1;
  --success: #198754;
  --star: #FFC107;
  --red-urgency: #D32F2F;
}

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

html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Barra de Anuncios (Marquee Animado) */
.marquee-container {
  background-color: var(--primary);
  color: var(--white);
  padding: 12px 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-content {
  display: inline-flex;
  width: max-content;
  animation: scrollRight 15s linear infinite;
}

.marquee-content span {
  font-size: 14px;
  font-weight: 800;
  margin: 0 40px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes scrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

/* Cabecera */
.header {
  background-color: var(--white);
  padding: 0 5%;
  height: 65px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-icon {
  font-size: 24px;
  color: var(--text-dark);
  cursor: pointer;
  position: absolute;
  right: 5%;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
  transition: transform 0.2s ease;
}

/* Contenedor Principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* =========================================
   ESTILOS PÁGINA PRINCIPAL (INDEX)
   ========================================= */
/* Hero Section con Fondo */
.hero-bg-section {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?q=80&w=2000&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  margin-bottom: 40px;
}

.hero-bg-section h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 15px;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-bg-section p {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 600px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.bounce-button {
  background-color: var(--primary);
  color: white;
  padding: 18px 40px;
  font-size: 20px;
  font-weight: 800;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(158, 103, 79, 0.3);
  animation: bounceDown 2s infinite;
  transition: background 0.3s ease;
}

.bounce-button:hover {
  background-color: var(--primary-hover);
  color: white;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-15px); }
  60% { transform: translateY(-7px); }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.product-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #f4f4f4;
}

.product-info {
  padding: 20px;
  text-align: center;
}

.product-title {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.product-price {
  color: var(--primary);
  font-weight: 800;
  font-size: 22px;
}

/* =========================================
   ESTILOS LANDING PRODUCTO (PRODUCT.HTML)
   ========================================= */
.product-landing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

@media (max-width: 850px) {
  .product-landing {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

.gallery-main img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  aspect-ratio: 1/1;
}

.gallery-thumbnails {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.gallery-thumbnails img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  cursor: pointer;
  border: 3px solid transparent;
  object-fit: cover;
  transition: border-color 0.3s ease;
}

.gallery-thumbnails img:hover, .gallery-thumbnails img.active {
  border-color: var(--primary);
}

/* Detalles de Producto */
.product-details {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Alineado arriba para evitar el espacio blanco */
}

.product-details h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
}

.reviews {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-light);
}

.stars {
  color: var(--star);
  font-size: 18px;
}

.fire-text {
  color: var(--red-urgency);
  font-weight: 700;
  background: #FFF0F0;
  padding: 4px 8px;
  border-radius: 6px;
}

.price-container {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.current-price {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
}

.old-price {
  font-size: 22px;
  color: #999;
  text-decoration: line-through;
  font-weight: 600;
}

.save-badge {
  background: var(--red-urgency);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Escasez / Urgencia (Gatillos Mentales) */
.urgency-box {
  background: #FFF5F5;
  border: 2px solid #FFE5E5;
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.urgency-text {
  font-weight: 700;
  color: var(--red-urgency);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #FFE5E5;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  width: 12%;
  height: 100%;
  background: var(--red-urgency);
  transition: width 1s ease;
}

/* BOTÓN DE COMPRA ALTA CONVERSIÓN */
.buy-button {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 22px;
  font-size: 22px;
  font-weight: 800;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(242, 139, 113, 0.4);
  transition: all 0.3s ease;
  animation: pulseButton 1.5s infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.buy-button i {
  font-size: 26px;
}

.buy-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(242, 139, 113, 0.6);
  background: var(--primary-hover);
  animation: none;
}

@keyframes pulseButton {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* Badges de Confianza */
.trust-badges {
  text-align: center;
  background: #F9F9F9;
  border-radius: 12px;
  padding: 15px;
}

.trust-badges p {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.badges-img {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 28px;
  color: #666;
}

/* Características Beneficios */
.features-list {
  margin-top: 25px;
  margin-bottom: 25px;
  list-style: none;
}

.features-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
}

.features-list li i {
  color: var(--success);
  font-size: 22px;
  margin-top: 2px;
}

/* Sticky Buy Button (Móviles) */
.sticky-buy {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  padding: 15px;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
  display: none;
  z-index: 1000;
}

@media (max-width: 850px) {
  .sticky-buy.visible {
    display: flex;
    justify-content: center;
    animation: slideUp 0.3s ease forwards;
  }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
  font-size: 14px;
}

/* =========================================
   SELECTOR DE COLOR
   ========================================= */
.color-selector {
  margin-bottom: 20px;
}

.color-selector h3 {
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.color-options {
  display: flex;
  gap: 15px;
}

.color-btn {
  padding: 10px 20px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
}

.color-btn:hover {
  border-color: #ccc;
}

.color-btn.selected {
  border-color: var(--primary);
  background: #FFF5F3;
}

.color-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #ddd;
}

.color-green { background: #A9D5B4; }
.color-pink { background: #F8BBD0; }
.color-dark { background: #333333; }
.color-light { background: #cccccc; }
/* =========================================
   SELECTOR DE PACKS (Alta Conversión)
   ========================================= */
.packs-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.pack-option {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #FAFAFA;
}

.pack-option:hover {
  border-color: var(--primary);
  background: #FFF;
}

.pack-option.selected {
  border-color: var(--primary);
  background: #FFF5F3;
  box-shadow: 0 4px 10px rgba(158, 103, 79, 0.15);
}

.pack-details {
  display: flex;
  align-items: center;
  gap: 15px;
}

.pack-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pack-option.selected .pack-radio {
  border-color: var(--primary);
}

.pack-option.selected .pack-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

.pack-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--text-dark);
}

.pack-badge {
  background: var(--red-urgency);
  color: white;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 800;
  margin-left: 10px;
}

.pack-prices {
  text-align: right;
}

.pack-current {
  font-weight: 800;
  color: var(--primary);
  font-size: 18px;
}

.pack-old {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

/* =========================================
   MODAL DE FORMULARIO DE PAGO
   ========================================= */
.modal {
  display: none; 
  position: fixed; 
  z-index: 2000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  background-color: rgba(0,0,0,0.6); 
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  color: #333;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-modal {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}

.close-modal:hover {
  color: #333;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  margin-bottom: 0;
}

.form-group.full {
  width: 100%;
}

.form-group.half {
  width: 50%;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 14px;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fafafa;
  color: #333;
  font-size: 14px;
  outline: none;
  box-shadow: 0 0 0 2px rgba(242, 139, 113, 0);
  transition: box-shadow 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
  box-shadow: 0 0 0 2px rgba(242, 139, 113, 0.4);
}

/* =========================================
   CARRUSEL DE RESEÑAS
   ========================================= */
.reviews-section {
  padding: 50px 0 40px;
  background-color: #f9f9f9;
  overflow: hidden;
  border-top: 1px solid #eee;
}

.reviews-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 26px;
  font-weight: 800;
  color: #222;
}

.reviews-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Mascara de degradado para los bordes */
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.reviews-track {
  display: flex;
  gap: 20px;
  width: max-content;
  /* Ajusta el tiempo para que vaya más lento según lo solicitado */
  animation: scrollReviews 50s linear infinite;
  padding: 10px 0;
}

.reviews-track:hover {
  animation-play-state: paused;
}

.review-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 300px;
  min-width: 300px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid #eaeaea;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.review-name {
  font-weight: 700;
  color: #333;
  font-size: 16px;
}

.review-stars {
  color: #FFB800;
  font-size: 13px;
  letter-spacing: 2px;
}

.review-meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
}

.review-meta span {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
}

.review-text {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  font-style: italic;
}

@keyframes scrollReviews {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================
   CUSTOM SELECT (SELECTOR DE PACKS)
   ========================================= */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-radius: 8px;
  border: 2px solid var(--primary);
  background: #FFF5F3;
  color: #333;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s;
}

.custom-select-trigger:hover {
  background: #ffebe5;
}

.custom-options {
  position: absolute;
  display: none;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-top: 5px;
  z-index: 100;
  overflow: hidden;
}

.custom-options.open {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-option {
  padding: 15px;
  font-weight: 600;
  color: #444;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
  font-size: 14px;
}

.custom-option:last-child {
  border-bottom: none;
}

.custom-option:hover {
  background: #FFF5F3;
  color: var(--primary);
}

.custom-option.selected {
  background: var(--primary);
  color: white;
}

.badge-pop {
  background: #ffcc00;
  color: #000;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 5px;
  vertical-align: middle;
}

/* =========================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================= */
.whatsapp-float {
  position: fixed;
  bottom: 20px; 
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 35px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  color: white;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
  }
}

/* =========================================
   PREGUNTAS FRECUENTES (FAQ)
   ========================================= */
.faq-container {
  margin-top: 35px;
  margin-bottom: 20px;
  background: #FFF;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  border: 1px solid var(--border-color);
}

.faq-container h3 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 15px;
  text-align: center;
  font-weight: 800;
}

.faq-item {
  border-bottom: 1px solid #eee;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 15px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.faq-question:hover, .faq-question.active {
  color: var(--primary);
}

.faq-question i {
  color: #ccc;
  transition: transform 0.3s ease, color 0.3s;
}

.faq-question.active i {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
  padding-bottom: 15px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.submit-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 15px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: var(--primary-hover);
}

/* =========================================
   CTA FLOTANTE MÓVIL
   ========================================= */
.sticky-mobile-cta {
  display: none;
}

/* =========================================
   AJUSTES RESPONSIVOS EXTRA (MÓVIL)
   ========================================= */
@media (max-width: 768px) {
  .container {
    padding: 0;
  }
  
  .product-details {
    align-items: stretch;
    text-align: center;
  }
  
  .product-details h1 {
    text-align: center;
    font-size: 28px;
  }
  
  .reviews {
    justify-content: center;
  }
  
  .price-container {
    justify-content: center;
  }
  
  .urgency-box {
    margin: 20px auto;
    width: 100%;
    text-align: center;
  }
  
  .urgency-text {
    justify-content: center;
  }
  
  .color-selector {
    text-align: center;
    width: 100%;
  }
  
  .color-options {
    justify-content: center;
  }
  
  .custom-select-wrapper {
    text-align: center;
    width: 100%;
  }
  
  .custom-select-wrapper h3 {
    text-align: center;
  }
  
  .gallery-thumbnails {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .gallery-thumbnails img {
    width: 55px;
    height: 55px;
  }
  
  .features-list {
    text-align: left;
    display: inline-block;
    padding: 0;
  }
  
  .features-list li {
    list-style-position: inside;
  }
  
  .buy-button {
    display: none;
  }
  
  .product-landing {
    padding: 20px 15px;
    border-radius: 0;
  }
  
  .product-container {
    gap: 30px;
  }
  
  .sticky-mobile-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 12px 20px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    z-index: 2000;
  }
  
  .sticky-mobile-cta .submit-btn {
    margin-top: 0;
    font-size: 16px;
    padding: 12px;
  }
  
  .whatsapp-float {
    bottom: 90px;
  }
}

body.modal-open .sticky-buy,
body.modal-open .sticky-mobile-cta { display: none !important; }

