/* YOJANDRY NAVA — PROTOCOLO DE RESTAURACIÓN METABÓLICA */
/* Paleta armónica: Verde bosque + Ivory cálido + Taupe + Dusty Rose + Gold */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { -webkit-font-smoothing: antialiased; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #355B44 0%, #4A7C5C 100%);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(53, 91, 68, 0.25);
  transition: all 0.3s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(53, 91, 68, 0.35);
  background: linear-gradient(135deg, #2A4A38 0%, #355B44 100%);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background-color: transparent;
  color: #355B44;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  border: 2px solid #355B44;
  text-decoration: none;
  cursor: pointer;
  border-radius: 9999px;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: linear-gradient(135deg, #355B44 0%, #4A7C5C 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background-color: white;
  color: #355B44;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background-color: transparent;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  border: 2px solid rgba(255,255,255,0.6);
  text-decoration: none;
  cursor: pointer;
  border-radius: 9999px;
  transition: all 0.3s ease;
}
.btn-outline-white:hover {
  background-color: white;
  color: #355B44;
  border-color: white;
  transform: translateY(-2px);
}

/* ===== NAVIGATION ===== */
.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: #3D3D3D;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #355B44, #6B9B7A);
  transition: width 0.3s ease;
}
.nav-link:hover { color: #355B44; }
.nav-link:hover::after { width: 100%; }

.mobile-nav-link {
  display: block;
  font-size: 1.125rem;
  font-weight: 500;
  color: #3D3D3D;
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(53, 91, 68, 0.08);
  transition: all 0.3s ease;
}
.mobile-nav-link:hover {
  color: #355B44;
  padding-left: 0.5rem;
}

/* ===== CART ===== */
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #355B44, #4A7C5C);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid rgba(53, 91, 68, 0.06);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(53, 91, 68, 0.12);
  border-color: rgba(53, 91, 68, 0.12);
}

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.08); }

.product-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.75rem;
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  z-index: 10;
}

.product-add-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  color: #355B44;
  z-index: 10;
}
.product-card:hover .product-add-btn {
  opacity: 1;
  transform: translateY(0);
}
.product-add-btn:hover {
  background: linear-gradient(135deg, #355B44, #4A7C5C);
  color: white;
}

.product-card-content { padding: 1.5rem; }

/* ===== FAQ ===== */
.faq-item {
  background: #FAFAF7;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(53, 91, 68, 0.06);
}
.faq-item:hover { border-color: rgba(53, 91, 68, 0.12); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #3D3D3D;
  font-family: 'DM Sans', sans-serif;
}
.faq-question:hover { color: #355B44; }

.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #355B44;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer-content {
  padding: 0 1.5rem 1.5rem;
  color: #7A7A72;
  line-height: 1.7;
}

/* ===== ZIGZAG ===== */
.zigzag-image {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.zigzag-image:hover { transform: scale(1.03); }

/* ===== QUIZ ===== */
.quiz-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  color: rgba(255,255,255,0.85);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}
.quiz-option:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(107,155,122,0.4);
}
.quiz-option.selected {
  background: rgba(107,155,122,0.15);
  border-color: #6B9B7A;
  color: white;
}
.quiz-option .radio-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.quiz-option.selected .radio-dot {
  border-color: #6B9B7A;
  background: #6B9B7A;
}
.quiz-option.selected .radio-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}
.quiz-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6B9B7A, #C9A96E);
  border-radius: 999px;
  transition: width 0.5s ease;
}
.quiz-result-bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}
.quiz-result-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 1s ease;
}

/* ===== UTILITIES ===== */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FAFAF7; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #355B44, #6B9B7A);
  border-radius: 4px;
}
::selection { background: #355B44; color: white; }

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(53, 91, 68, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(53, 91, 68, 0); }
}
.float-animation { animation: float 3s ease-in-out infinite; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .btn-primary, .btn-outline, .btn-white, .btn-outline-white {
    padding: 0.875rem 1.5rem;
    font-size: 0.8125rem;
  }
}
