/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
  --primary-2: #B6D598;
  --primary-mf: #087366;
  --variante-dg-1: #054B43;
  --variante-sg-1: #E3FFC8;
  --black: #000000;
  --white: #FFFFFF;
  --hard-grey: #3D3F3E;
  --font: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.25s ease;
}

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

body {
  font-family: var(--font);
  background-color: var(--white);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

.collection-page {
  max-width: 480px;
  /* Mobile focused max width */
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

/* ===========================
   Promo Bar
   =========================== */
.promo-bar-top {
  background-color: var(--primary-2);
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* ===========================
   Header
   =========================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
  padding: 0 24px;
  background-color: var(--primary-mf);
  position: sticky;
  top: 0;
  z-index: 100;
}

.burger-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 35px;
  justify-content: center;
  cursor: pointer;
}

.burger-menu span {
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: var(--white);
  border-radius: 2px;
}

.logo-text {
  font-weight: 900;
  font-size: 24px;
  color: var(--white);
  letter-spacing: -0.5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-icon,
.search-icon {
  display: flex;
  align-items: center;
}



/* ===========================
   Hero Section
   =========================== */
.hero-banner {
  position: relative;
  height: 589px;
  width: 100%;
}

@media (max-width: 420px) {
  .hero-banner {
    height: 140vw;
    /* Ajuste proporcional para pantallas muy pequeñas */
  }
}

.hero-bg {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  position: relative;
  top: -15%;
}

.hero-text-block {
  padding: 30px 20px 40px;
  background: #fff;
  text-align: center;
}

.hero-text-block h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--variante-dg-1);
  line-height: 1.2;
  margin-bottom: 20px;
}

.btn-primary {
  background-color: var(--primary-mf);
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  padding: 10px 30px;
  border-radius: 20px;
  border: 1px solid var(--primary-mf);
  display: inline-block;
}

/* ===========================
   Adaptogens Info Card
   =========================== */
.adaptogens-info-card {
  color: var(--white);
  margin: 40px 0;
  padding: 60px 20px;
  position: relative;
  z-index: 1;
  background-image: url('img/melena-de-leon.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  width: 100%;
}

.adaptogens-info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 75, 67, 0.85); /* Solid color overlay for contrast */
  z-index: -1;
}

.adaptogens-container {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.adaptogens-header {
  text-align: center;
}

.adaptogens-icon-top {
  margin-bottom: 15px;
  display: inline-flex;
}

.adaptogens-info-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0;
  text-align: center;
}

.adaptogens-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.adaptogens-info-card p {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 0;
  opacity: 0.95;
}

/* ===========================
   Más Vendidos
   =========================== */
.mas-vendidos {
  padding: 30px 0;
}

.mas-vendidos h2 {
  font-size: 24px;
  font-weight: 800;
  color: #535353;
  text-align: center;
  margin-bottom: 20px;
}

.products-carousel {
  display: flex;
  gap: 20px;
  padding: 0 20px 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.products-carousel::-webkit-scrollbar {
  display: none;
}

.product-card {
  flex: 0 0 240px;
  scroll-snap-align: center;
  background-color: #F6F6F6;
  border-radius: 7px;
  border: 1px solid var(--variante-dg-1);
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 226px;
  object-fit: cover;
}

.product-card-body {
  padding: 15px;
  text-align: center;
}

.product-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--variante-dg-1);
  line-height: 1.2;
  margin-bottom: 10px;
}

.product-card-pricing {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.card-new-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--black);
}

.card-old-price {
  font-size: 16px;
  font-weight: 400;
  color: #929292;
  text-decoration: line-through;
}

.product-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-add-cart-outline {
  width: 100%;
  border: 1px solid var(--variante-dg-1);
  border-radius: 20px;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--variante-dg-1);
  text-transform: uppercase;
}

.btn-ver-mas-solid {
  width: 100%;
  background-color: var(--variante-dg-1);
  border-radius: 20px;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
}

/* ===========================
   Packs Hongos Funcionales
   =========================== */
.packs-section {
  padding: 20px 10px;
}

.packs-section h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--variante-dg-1);
  text-align: center;
  margin-bottom: 30px;
}

.packs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.pack-card {
  position: relative;
  border-radius: 7px;
  overflow: hidden;
  background-color: var(--white);
}

.pack-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.bg-gray {
  background-color: #D9D9D9;
  height: 260px;
}

.pack-info {
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.pack-info-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
}

.pack-info-centered h3 {
  font-size: 18px;
  font-weight: 800;
  color: #535353;
  text-align: center;
}

.pack-discount {
  font-size: 12px;
  font-weight: 400;
  color: var(--black);
}

.btn-saber-mas-light {
  background-color: var(--variante-sg-1);
  color: var(--primary-mf);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 20px;
  border-radius: 20px;
}

.btn-saber-mas-white {
  background-color: var(--white);
  color: #606060;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 20px;
  border-radius: 20px;
}

.ver-todos-container {
  text-align: right;
  margin-top: 15px;
}

.link-ver-todos {
  font-size: 16px;
  font-weight: 700;
  color: var(--variante-dg-1);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.link-ver-todos .arrow {
  font-size: 20px;
}

/* ===========================
   Cordyceps Banner
   =========================== */
.cordyceps-banner {
  margin: 30px 10px;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  height: 387px;
}

.cordyceps-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.cordyceps-bg img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  position: relative;
  top: -15%;
}

.cordyceps-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 75, 67, 0.5);
  backdrop-filter: blur(17.5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: var(--white);
}

.cordyceps-badge {
  background-color: var(--variante-sg-1);
  color: var(--primary-mf);
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 16px;
  margin-bottom: 15px;
}

.cordyceps-overlay h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.cordyceps-benefits {
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 30px;
}

.cordyceps-benefits li {
  margin-bottom: 8px;
}

.cordyceps-cta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.discount-badge {
  background-color: var(--primary-mf);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 20px;
  font-weight: 800;
}

.btn-pruebalo {
  background-color: var(--white);
  color: var(--primary-mf);
  padding: 8px 25px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===========================
   Venta de Hongos Medicinales
   =========================== */
.venta-hongos-medicinales {
  position: relative;
  text-align: center;
  padding: 60px 20px;
  overflow: hidden;
}

.venta-hongos-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 250px;
  background: radial-gradient(ellipse at center, rgba(227, 255, 200, 0.6) 0%, rgba(255, 255, 255, 0) 60%);
  z-index: 0;
  pointer-events: none;
}

.venta-hongos-content {
  position: relative;
  z-index: 1;
}

.venta-hongos-medicinales h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-mf);
  margin-bottom: 25px;
  line-height: 1.2;
}

.venta-hongos-medicinales p {
  font-size: 18px;
  font-weight: 500;
  color: var(--variante-dg-1);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ===========================
   Alpha-Matte Mask Reveal
   =========================== */
.mask-reveal-section {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: var(--white);
}

.video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.mask-reveal-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  max-width: 900px;
  width: 90%;
  padding: clamp(30px, 5vw, 60px) clamp(20px, 4vw, 50px);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.mask-reveal-content h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.mask-reveal-content p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  margin-bottom: 35px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
}

.mask-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* ===========================
   FAQ Section
   =========================== */
.faq-section {
  position: relative;
  padding: 12vh 0;
  background-color: var(--variante-dg-1);
  color: var(--white);
}

.faq-container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

.faq-tag {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--variante-sg-1);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
  text-align: center;
}

.faq-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--white);
  font-family: inherit;
  font-weight: 800;
}

.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  border-bottom: 1px solid rgba(227, 255, 200, 0.15);
  padding: 1.5rem 0;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.accordion-header h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 600;
  color: var(--white);
  transition: color 0.3s ease;
  margin: 0;
}

.accordion-header:hover h3 {
  color: var(--variante-sg-1);
}

.accordion-icon {
  position: relative;
  width: 18px;
  height: 18px;
  min-width: 18px;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background-color: var(--white);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.accordion-icon::before {
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
}

.accordion-icon::after {
  top: 0;
  left: 8px;
  width: 2px;
  height: 18px;
}

.accordion-item.active .accordion-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.accordion-item.active .accordion-icon::before {
  transform: rotate(180deg);
  background-color: var(--variante-sg-1);
}

.accordion-item.active .accordion-header h3 {
  color: var(--variante-sg-1);
}

.accordion-body {
  height: 0;
  overflow: hidden;
  position: relative;
}

.accordion-content {
  padding: 1.5rem 0 0.5rem 0;
}

.accordion-content p {
  font-size: 1.05rem;
  color: var(--variante-sg-1);
  opacity: 0.85;
  margin: 0;
  line-height: 1.5;
}

/* ===========================
   Footer
   =========================== */
/* Mobile Nav Slide-in */
@media (max-width: 1023px) {
  .desktop-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--primary-mf);
    padding: 80px 20px 20px;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  .desktop-nav.active {
    transform: translateX(0);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
  }

  .desktop-nav a {
    color: var(--white);
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: none;
  }
}

.footer {
  background-color: var(--hard-grey);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B2F6A1;
  font-size: 41px;
  font-weight: 500;
}

/* ===========================
   Desktop Layout
   =========================== */
@media (min-width: 1024px) {
  .collection-page,
  .adaptogens-container {
    max-width: 1200px;
  }

  .header {
    padding: 0 40px;
  }

  .burger-menu {
    display: none;
  }

  .desktop-nav {
    display: flex;
    gap: 30px;
    align-items: center;
  }

  .desktop-nav a {
    color: var(--white);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.38px;
    text-decoration: none;
    display: flex;
    align-items: center;
  }

  .hero-banner {
    height: 500px;
  }

  .hero-text-block {
    padding: 60px;
  }

  .hero-text-block h1 {
    font-size: 42px;
  }

  .adaptogens-info-card {
    padding: 80px 40px;
  }

  .adaptogens-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    flex-direction: row; /* reset flex from mobile */
  }

  .adaptogens-header {
    text-align: left;
  }

  .adaptogens-info-card h2 {
    text-align: left;
  }

  .adaptogens-paragraphs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    flex-direction: row; /* reset flex */
  }

  .products-carousel {
    /* Mantiene el scroll horizontal pero muestra 4 items enteros */
    gap: 20px;
  }

  .product-card {
    flex: 0 0 calc(25% - 15px);
  }

  .packs-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cordyceps-banner {
    height: 450px;
  }

  .cordyceps-overlay {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 100px;
    text-align: left;
    background: linear-gradient(90deg, rgba(5, 75, 67, 0.9) 40%, rgba(5, 75, 67, 0) 100%);
    backdrop-filter: none;
  }

  .cordyceps-overlay>* {
    max-width: 500px;
  }

  .cordyceps-cta {
    align-self: flex-start;
  }

  .faq-section {
    width: 100%;
    margin: 0 auto;
  }
}