:root {
  --green: #2b4647;
  --green-dark: #2b4647;
  --green-soft: #e9f1e3;
  --white: #ffffff;
  --off-white: #f8faf5;
  --text: #101716;
  --muted: #2b4647;
  --line: #d9dfd5;
  --shadow: 0 30px 90px rgba(3,45,39,.14);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* SIDE MENU */
.side-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 100%);
  background: rgba(3,45,39,.98);
  color: white;
  z-index: 1200;
  transform: translateX(100%);
  transition: .45s ease;
  padding: 100px 42px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.side-menu.active {
  transform: translateX(0);
}

.side-menu a {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.04em;
}

.close-btn {
  position: absolute;
  top: 28px;
  right: 34px;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
}

/* HERO */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 150px 6% 80px;
  background: var(--green);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 40px;
}

/* NAV DENTRO DEL HERO */
.hero-topbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 6%;
  z-index: 5;
}

.hero-logo-mini {
  height: 180px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.2);
  transition: 0.3s ease;
}

.hero-logo-mini:hover {
  transform: scale(1.05);
}

.menu-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: .3s;
}

.menu-btn:hover {
  background: rgba(255,255,255,.18);
}

.menu-btn span {
  width: 19px;
  height: 2px;
  background: white;
  border-radius: 10px;
}

/* HERO BACKGROUND */
.molecular-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10,40,35,0.9), rgba(10,40,35,0.6)),
    url("IMG/144.png");

  background-size: cover;
  background-position: center;

  filter: blur(2px);
}

@keyframes moleculeMove {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.04) translateY(-18px); }
}

.hero-copy {
  position: relative;
  z-index: 3;
  color: white;
  animation: heroFade .9s ease both;
}

.hero-copy span {
  display: block;
  font-size: 1rem;
  color: rgba(255,255,255,.68);
  margin-bottom: 34px;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  font-weight: 400;
  line-height: 1.08;
  max-width: 560px;
  margin-bottom: 12px;
}

.hero-copy p {
  max-width: 520px;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.2;
  color: rgba(255,255,255,.86);
}

/* HERO UNA SOLA IMAGEN */
.hero-single {
  position: relative;
  z-index: 3;
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-main-image {
  width: min(780px, 100%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 42px 55px rgba(0,0,0,.28));
  animation: floatBottle 5s ease-in-out infinite;
  transform: scale(1.1);
}

/* HERO PRODUCTOS SI USAS VARIAS IMÁGENES */
.hero-products {
  position: relative;
  z-index: 3;
  height: 680px;
}

.hero-product {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 35px 40px rgba(0,0,0,.22));
  animation: floatBottle 5s ease-in-out infinite;
}

.hero-product.main {
  width: 500px;
  left: 8%;
  top: 0%;
  z-index: 3;
}

.hero-product.second {
  width: 340px;
  right: 24%;
  top: 14%;
  z-index: 2;
  animation-delay: 1.5s;
}

.hero-product.third {
  width: 340px;
  right: 0%;
  top: 18%;
  z-index: 1;
  animation-delay: 3s;
}

@keyframes floatBottle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.hero-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 180px;
  background: var(--white);
  clip-path: ellipse(75% 42% at 50% 100%);
  z-index: 2;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(34px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* GENERAL SECTION */
.section {
  padding: 110px 6%;
  background: var(--white);
}

.section-head {
  max-width: 980px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-head img {
  height: 54px;
  margin: 0 auto 28px;
}

.section-head span {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  color: var(--green);
  letter-spacing: -.07em;
  line-height: .95;
}

.section-head p {
  color: var(--muted);
  margin-top: 20px;
  font-size: 17px;
}

/* ICONOS */
.icon-grid {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.icon-grid article {
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px 24px;
  box-shadow: var(--shadow);
  transition: .35s ease;
}

.icon-grid article:hover {
  transform: translateY(-8px);
}

.icon-grid article img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  margin: 0 auto 22px;
}

.icon-grid article h3 {
  color: var(--green);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.icon-grid article p {
  color: var(--muted);
  font-size: .9rem;
}

/* PRODUCT GRID */
.product-grid {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.peptide-grid .product-card:nth-child(4),
.peptide-grid .product-card:nth-child(5) {
  transform: translateX(50%);
}

.product-card {
  min-height: 300px;
  background: white;
  border: 1.5px solid #111;
  border-radius: 8px;
  padding: 26px;
  display: grid;
  place-items: center;
  transition: .35s ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.product-card img {
  height: 250px;
  width: 100%;
  object-fit: contain;
  transform: scale(1.15);
}

.product-card h3 {
  font-size: 1.4rem;
  color: var(--green);
  margin-top: 16px;
}

.suplementacion {
  background: var(--off-white);
}

.supplement {
  border-color: var(--line);
  background: #fbfdf9;
}

/* BACKGROUND */
.background-section {
  min-height: 100vh;
  padding: 110px 6%;
  position: relative;
  background: var(--green);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.background-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 44%, rgba(127,255,180,.18), transparent 24%),
    url("IMG/144.png");
  background-size: cover;
  background-position: center;
  opacity: .38;
  animation: moleculeMove 14s ease-in-out infinite alternate;
}

.background-content {
  position: relative;
  z-index: 2;
  color: white;
}

.background-content span {
  color: rgba(255,255,255,.65);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
}

.background-content h2 {
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: .95;
  letter-spacing: -.07em;
  margin: 20px 0;
  max-width: 760px;
}

.background-content p {
  color: rgba(255,255,255,.72);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 620px;
}

/* BACKGROUND UNA SOLA IMAGEN */
.background-single {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6%;
}

.background-single img {
  width: min(900px, 100%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 50px 60px rgba(0,0,0,.35));
  animation: floatBottle 5s ease-in-out infinite;
  transform: scale(1.2);
}

/* BACKGROUND VARIAS IMÁGENES SI LAS USAS */
.floating-vials {
  position: relative;
  z-index: 2;
  min-height: 650px;
}

.floating-vials img {
  position: absolute;
  width: 320px;
  filter: drop-shadow(0 40px 45px rgba(0,0,0,.30));
  animation: floatBottle 5s ease-in-out infinite;
}

.floating-vials img:nth-child(1) {
  left: 4%;
  top: 16%;
}

.floating-vials img:nth-child(2) {
  right: 14%;
  top: 0%;
  width: 420px;
  animation-delay: 1.5s;
}

.floating-vials img:nth-child(3) {
  left: 38%;
  bottom: 2%;
  width: 330px;
  animation-delay: 3s;
}

/* SCROLL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: 1s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* FOOTER PROFESIONAL */
.footer-generica {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  color: rgb(0, 0, 0);
  padding: 78px 6% 28px;
}

.footer-container {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-brand img {
  height: 42px;
  margin-bottom: 22px;
}

.footer-brand p {
  max-width: 430px;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.8;
  font-size: .95rem;
}

.footer-col h4 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(0, 0, 0, 0.95);
  margin-bottom: 22px;
}

.footer-col a,
.footer-col p {
  display: block;
  color: rgba(0, 0, 0, 0.58);
  font-size: .92rem;
  margin-bottom: 12px;
  line-height: 1.7;
  transition: .3s ease;
}

.footer-col a:hover {
  color: rgb(0, 0, 0);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1180px;
  margin: 52px auto 0;
  padding-top: 24px;
  border-top: 1px solid #0000001f;
  text-align: center;
  color: rgba(0, 0, 0, 0.42);
  font-size: .75rem;
  letter-spacing: .12em;
}

/* RESPONSIVE */
@media (max-width: 1050px) {
  .hero,
  .background-section {
    grid-template-columns: 1fr;
  }

  .hero-products {
    height: 520px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .peptide-grid .product-card:nth-child(4),
  .peptide-grid .product-card:nth-child(5) {
    transform: none;
  }
}

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-single {
    height: 460px;
  }

  .hero-main-image {
    width: min(500px, 95%);
    transform: scale(1);
  }

  .background-single {
    min-height: 460px;
    justify-content: center;
    padding-right: 0;
  }

  .background-single img {
    width: min(560px, 95%);
    transform: scale(1);
  }
}

@media (max-width: 650px) {
  .hero {
    padding: 135px 24px 70px;
  }

  .hero-logo-mini {
    height: 48px;
  }

  .hero-products {
    height: 420px;
  }

  .hero-product.main {
    width: 250px;
    left: 8%;
  }

  .hero-product.second,
  .hero-product.third {
    width: 180px;
  }

  .section,
  .background-section {
    padding: 74px 24px;
  }

  .product-grid,
  .icon-grid {
    grid-template-columns: 1fr;
  }

  .product-card img {
    height: 280px;
  }

  .floating-vials {
    min-height: 420px;
  }

  .footer-generica {
    padding: 58px 24px 24px;
  }
}

.product-card {
  position: relative;
  cursor: pointer;
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 70, 71, 0.94);
  color: white;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.35s ease;
  pointer-events: none;
}

.product-overlay h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.product-overlay p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,.75);
}

.product-card:hover .product-overlay,
.product-card:active .product-overlay {
  opacity: 1;
  transform: translateY(0);
}
.product-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 999;
}

.product-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 16px;
  max-width: 500px;
  text-align: center;
}

.modal-content img {
  width: 200px;
  margin-bottom: 20px;
}

.close-modal {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 30px;
  cursor: pointer;
}
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 1px solid #2b4647;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
