﻿/* =========================================================
   NutriEsencia Digital - Estilos
   Paleta inspirada en las imágenes: crema, verde oliva,
   verde salvia y verde botella oscuro.
   ========================================================= */

:root {
  --crema: #f6f2e8;
  --crema-oscuro: #efe9db;
  --salvia: #e9eeda;
  --verde-claro: #dcebc4;
  --oliva: #527d2c;
  --oliva-oscuro: #4a6d22;
  --verde: #2f4d20;
  --verde-profundo: #223a18;
  --texto: #2c2e24;
  --texto-suave: #5c6248;
  --blanco: #ffffff;
  --sombra: 0 6px 24px rgba(47, 77, 32, 0.12);
  --radio: 14px;
  --transicion: 0.35s ease;
}

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

/* Enlace para saltar al contenido principal */
.saltar-contenido {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 300;
  background-color: var(--verde-profundo);
  color: var(--blanco);
  font-weight: 700;
  padding: 0.85rem 1.4rem;
  border-radius: 0 0 12px 12px;
  transition: left 0.2s ease;
}

.saltar-contenido:focus {
  left: 1rem;
  top: 0.5rem;
}

/* Indicador de foco visible (accesibilidad de teclado) */
:focus-visible {
  outline: 3px solid #a8c877;
  outline-offset: 3px;
}

html {
  scroll-behavior: smooth;
  /* Compensa el header sticky al navegar por anclas (#blog, #producto, etc.) */
  scroll-padding-top: 5rem;
}

/* Respeta usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: "Segoe UI", "Roboto", Helvetica, Arial, sans-serif;
  color: var(--texto);
  background-color: var(--crema);
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  background-color: var(--oliva);
  color: var(--blanco);
  font-weight: 600;
  border: 2px solid var(--oliva);
  transition: background-color var(--transicion), color var(--transicion), border-color var(--transicion);
}

.boton:hover {
  background-color: var(--oliva-oscuro);
  border-color: var(--oliva-oscuro);
}

.boton--claro {
  background-color: transparent;
  border-color: var(--blanco);
}

.boton--claro:hover {
  background-color: var(--blanco);
  color: var(--verde);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--verde);
  border-bottom: 3px solid var(--oliva);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header__contenedor {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--blanco);
}

.header__logo-icono {
  font-size: 1.7rem;
  line-height: 1;
}

.header__logo-nombre {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.header__logo-acento {
  color: #cfe3a3;
}

/* ---------- Nav ---------- */
.nav__lista {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav__enlace {
  color: var(--blanco);
  font-weight: 500;
  padding: 0.4rem 0.2rem;
  position: relative;
}

.nav__enlace::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #cfe3a3;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transicion);
}

.nav__enlace:hover::after {
  transform: scaleX(1);
}

/* Botón especial del nav (enlace al producto) */
.nav__enlace--cta {
  background: linear-gradient(135deg, var(--oliva), var(--verde));
  border: 2px solid var(--blanco);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  margin-left: 0.4rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.nav__enlace--cta::after {
  display: none;
}

.nav__enlace--cta:hover {
  background: linear-gradient(135deg, var(--oliva-oscuro), var(--verde));
  transform: translateY(-1px);
}

/* Botón hamburguesa (oculto en desktop) */
.menu-boton {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0 10px;
  background: transparent;
  border: 2px solid var(--blanco);
  border-radius: 10px;
  cursor: pointer;
}

.menu-boton__linea {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--blanco);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Hero (puro CSS, sin imagen) ---------- */
.hero {
  position: relative;
  padding: 4.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blanco);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(207, 227, 163, 0.35), transparent 60%),
    radial-gradient(900px 460px at -10% 115%, rgba(95, 139, 47, 0.55), transparent 60%),
    radial-gradient(700px 420px at 15% 20%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(160deg, var(--oliva) 0%, var(--verde) 45%, var(--verde-profundo) 100%);
}

/* Círculo decorativo superior derecho (hoja simbólica) */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -160px;
  right: -160px;
  width: 480px;
  height: 480px;
  border-radius: 5% 50% 50% 50%;
  background: linear-gradient(135deg, #a8c877, rgba(95, 139, 47, 0.25));
  opacity: 0.5;
  transform: rotate(25deg);
  box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.15);
}

/* Círculo decorativo inferior izquierdo */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -200px;
  left: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 46px solid rgba(207, 227, 163, 0.18);
  background: radial-gradient(circle at 35% 35%, rgba(207, 227, 163, 0.12), transparent 60%);
}

/* Hoja decorativa pequeña */
.hero__hoja {
  position: absolute;
  z-index: -1;
  width: 90px;
  height: 90px;
  border-radius: 0 50% 50% 50%;
}

.hero__hoja--1 {
  top: 22%;
  left: 8%;
  background: rgba(207, 227, 163, 0.22);
  transform: rotate(-20deg);
}

.hero__hoja--2 {
  bottom: 18%;
  right: 7%;
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(160deg);
}

/* Textura de puntos sutil */
.hero__puntos {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 2px, transparent 2px);
  background-size: 34px 34px;
  opacity: 0.5;
}

.hero__contenido {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 2.5rem 1.5rem;
  animation: aparecer 0.9s ease both;
}

.hero__etiqueta {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero__titulo {
  font-size: 2.9rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero__titulo span {
  color: #cfe3a3;
}

.hero__subtitulo {
  font-size: 1.15rem;
  margin-bottom: 1.8rem;
  color: #f2f5e8;
}

@keyframes aparecer {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Secciones genéricas ---------- */
.seccion__etiqueta {
  display: inline-block;
  color: var(--oliva);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.seccion__titulo {
  font-size: 2.1rem;
  color: var(--verde);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.seccion__descripcion {
  color: var(--texto-suave);
  max-width: 620px;
}

/* Utilidad: centrar texto */
.centrado {
  text-align: center;
}

/* ---------- Nosotros ---------- */
.nosotros {
  padding: 5rem 1.5rem;
  background-color: var(--crema);
  content-visibility: auto;
  contain-intrinsic-size: auto 620px;
}

.nosotros__contenedor {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
}

.nosotros__imagen {
  display: flex;
  justify-content: center;
}

.nosotros__imagen img {
  width: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.nosotros__texto .seccion__descripcion {
  margin-bottom: 1rem;
}

.nosotros__lista {
  margin-bottom: 1.4rem;
}

.nosotros__lista li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
  color: var(--texto-suave);
}

.nosotros__lista li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  color: var(--oliva);
  font-weight: 700;
}

/* ---------- Blog ---------- */
.blog {
  padding: 5rem 1.5rem;
  background-color: var(--verde-claro);
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

.blog__encabezado {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.blog__encabezado .seccion__descripcion {
  margin: 0 auto;
}

.acordeon {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.acordeon__item {
  background-color: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.acordeon__titulo-h {
  margin: 0;
  font-size: inherit;
}

.acordeon__boton {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--verde);
  background: linear-gradient(180deg, var(--blanco), #fbfaf4);
  text-align: left;
  transition: background-color var(--transicion);
}

.acordeon__boton:hover {
  background-color: var(--salvia);
}

.acordeon__icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.acordeon__icono svg {
  color: var(--oliva);
}

.acordeon__titulo {
  flex: 1;
}

.acordeon__flecha {
  font-size: 0.85rem;
  color: var(--oliva);
  transition: transform 0.3s ease;
}

.acordeon__item.abierto .acordeon__flecha {
  transform: rotate(180deg);
}

.acordeon__panel {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.4s ease, visibility 0s linear 0.4s;
}

.acordeon__item.abierto .acordeon__panel {
  visibility: visible;
  transition: max-height 0.4s ease, visibility 0s;
}

.acordeon__links {
  padding: 0.6rem 1.5rem 1.4rem;
  border-top: 1px solid var(--crema-oscuro);
}

.acordeon__links li {
  margin: 0.55rem 0;
}

.acordeon__links a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--texto-suave);
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  transition: color var(--transicion), background-color var(--transicion), padding-left var(--transicion);
}

.acordeon__links a::before {
  content: "\00bb";
  color: var(--oliva);
  font-weight: 700;
}

.acordeon__links a:hover {
  color: var(--verde);
  background-color: var(--salvia);
  padding-left: 1.2rem;
}

/* ---------- Botón CTA ---------- */
.boton--cta {
  background: linear-gradient(135deg, var(--oliva), var(--verde));
  border-color: var(--verde);
  font-size: 1.05rem;
  padding: 0.95rem 2rem;
  box-shadow: 0 8px 20px rgba(47, 77, 32, 0.35);
}

.boton--cta:hover {
  background: linear-gradient(135deg, var(--verde), var(--verde-profundo));
  transform: translateY(-2px);
}

/* ---------- Producto digital ---------- */
.producto {
  padding: 5rem 1.5rem;
  background-color: var(--crema);
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

.producto__contenedor {
  max-width: 1000px;
  margin: 0 auto;
}

.producto__encabezado {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.producto__encabezado .seccion__descripcion {
  margin: 0 auto;
}

.producto__tarjeta {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background-color: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.producto__imagen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.producto__imagen img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.producto__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--verde);
  color: var(--blanco);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.producto__info {
  padding: 2.5rem;
}

.producto__beneficios {
  margin: 1.2rem 0 1.6rem;
}

.producto__beneficios li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--texto-suave);
}

.producto__beneficios li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  color: var(--oliva);
  font-weight: 700;
}

.producto__pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.producto__precio {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--verde);
}

.producto__precio-antes {
  color: var(--texto-suave);
  text-decoration: line-through;
  font-weight: 400;
  font-size: 1rem;
  margin-right: 0.4rem;
}


/* ---------- Footer / Contacto ---------- */
.footer {
  background-color: var(--verde-profundo);
  color: var(--blanco);
  padding: 3.5rem 1.5rem 2rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 260px;
}

.footer__contenedor {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer__eslogan {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #cfe3a3;
}

.footer__texto {
  color: #d7decf;
  margin-bottom: 1.6rem;
}

.footer__redes {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.footer__red {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
  transition: background-color var(--transicion), transform var(--transicion);
}

.footer__red-icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer__red-icono svg {
  width: 1.1rem;
  height: 1.1rem;
}

.footer__red:hover {
  background-color: var(--oliva);
  transform: translateY(-3px);
}

.footer__derechos {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 880px) {
  .header__contenedor {
    padding: 0.75rem 1.1rem;
  }

  .menu-boton {
    display: flex;
  }

  /* Evita el scroll de fondo mientras el menú móvil está abierto */
  body.menu-abierto {
    overflow: hidden;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--verde);
    border-bottom: 3px solid var(--oliva);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .nav.abierto {
    max-height: 360px;
  }

  .nav__lista {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1.1rem 1rem;
  }

  .nav__enlace {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.6rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav__enlace::after {
    display: none;
  }

  .nav__enlace:hover {
    background-color: var(--oliva-oscuro);
    border-radius: 8px;
  }

  .nav__enlace--cta {
    margin: 0.8rem 0 0;
    border: none;
    text-align: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.2rem;
  }

  /* Animación al hamburguesa */
  .menu-boton.activo .menu-boton__linea:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-boton.activo .menu-boton__linea:nth-child(2) {
    opacity: 0;
  }
  .menu-boton.activo .menu-boton__linea:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero__titulo {
    font-size: 2.1rem;
  }

  .hero__subtitulo {
    font-size: 1.05rem;
  }

  .nosotros__contenedor {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .seccion__titulo {
    font-size: 1.7rem;
  }

  .producto__tarjeta {
    grid-template-columns: 1fr;
  }

  .producto__imagen {
    max-height: none;
  }

  .producto__imagen img {
    height: auto;
    object-fit: contain;
  }

  .producto__info {
    padding: 1.8rem;
  }
}

@media (max-width: 520px) {
  .header__logo-nombre {
    font-size: 1.1rem;
  }

  .hero {
    padding: 3rem 1.2rem;
  }

  .hero__titulo {
    font-size: 1.7rem;
  }

  .nosotros,
  .blog {
    padding: 3rem 1.1rem;
  }

  .acordeon__boton {
    font-size: 1rem;
    padding: 1.05rem 1.1rem;
  }

  .acordeon__links {
    padding: 0.6rem 1.1rem 1.2rem;
  }

  .footer__red {
    width: 100%;
    justify-content: center;
  }

  .producto__pie {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .producto__pie .boton {
    width: 100%;
  }
}
