/* ===== JN Consultora Alimentaria ===== */
:root {
  --teal: #0d8a8a;
  --teal-deep: #0a6668;
  --teal-ink: #073c3e;
  --gold: #d9a521;
  --gold-soft: #e8c25f;
  --cream: #faf6ee;
  --ivory: #fffdf8;
  --ink: #1d2e2e;
  --ink-soft: #46605f;
  --line: rgba(13, 138, 138, .16);
  --shadow: 0 18px 50px -22px rgba(7, 60, 62, .35);
  --radius: 18px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Century Gothic", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: var(--teal-ink); }
h1 em, h2 em { font-style: italic; color: var(--gold); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--gold);
}
.kicker-light { color: var(--gold-soft); }

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 1.5rem; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-head { max-width: 640px; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -20px rgba(7, 60, 62, .4);
}
.header-inner {
  max-width: 1180px; margin: 0 auto;
  padding: .65rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-logo { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-weight: 500; font-size: .98rem; color: var(--teal-ink); }
.brand-text em { font-style: normal; font-size: .74rem; letter-spacing: .08em; color: var(--ink-soft); }
.site-nav { display: flex; align-items: center; gap: 1.6rem; font-size: .92rem; font-weight: 400; }
.site-nav a:not(.nav-cta) { position: relative; padding: .3rem 0; color: var(--ink-soft); transition: color .25s; }
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .3s;
}
.site-nav a:not(.nav-cta):hover { color: var(--teal-ink); }
.site-nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--teal); color: #fff;
  padding: .5rem 1.1rem; border-radius: 999px;
  font-weight: 500; transition: background .25s, transform .25s;
}
.nav-cta:hover { background: var(--teal-deep); transform: translateY(-1px); }
.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(232, 194, 95, .14), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(255, 255, 255, .07), transparent 55%),
    linear-gradient(160deg, var(--teal-deep), var(--teal-ink) 75%);
  color: var(--ivory);
  overflow: hidden;
  padding: clamp(5rem, 11vw, 8.5rem) 1.5rem 0;
}
.hero-inner { max-width: 1120px; margin: 0 auto; position: relative; z-index: 2; max-width: 820px; }
.hero h1 { color: var(--ivory); }
.hero-sub {
  margin-top: 1.5rem;
  max-width: 620px;
  font-size: 1.06rem;
  color: rgba(255, 253, 248, .82);
}
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-wheat {
  position: absolute; right: -2%; top: 50%;
  transform: translateY(-52%) rotate(14deg);
  width: clamp(240px, 32vw, 420px);
  color: rgba(255, 255, 255, .07);
  z-index: 1;
  pointer-events: none;
}
.hero-strip {
  position: relative; z-index: 2;
  max-width: 1120px; margin: clamp(3rem, 7vw, 5rem) auto 0;
  padding: 1.2rem 0 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem;
  font-size: .8rem; letter-spacing: .22em; font-weight: 400;
  color: rgba(255, 253, 248, .6);
}
.hero-strip i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: .97rem;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn-gold {
  background: var(--gold); color: var(--teal-ink);
  box-shadow: 0 14px 34px -14px rgba(217, 165, 33, .65);
}
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .35);
  color: var(--ivory);
}
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); transform: translateY(-2px); }

/* ===== Nosotros ===== */
.nosotros { background: var(--cream); }
.nosotros-text p + p { margin-top: 1.1rem; }
.nosotros-text { font-size: 1.02rem; color: var(--ink-soft); }
.nosotros-text strong { font-weight: 500; color: var(--teal-ink); }
.nosotros-lead {
  border-left: 2px solid var(--gold);
  padding-left: 1.1rem;
  font-family: var(--font-display);
  font-size: 1.25rem !important;
  font-style: italic;
  color: var(--teal-ink) !important;
}

/* ===== Servicios ===== */
.servicios { background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem 1.5rem;
  display: flex; flex-direction: column; gap: .8rem;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(217, 165, 33, .5);
}
.card-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(13, 138, 138, .1);
  color: var(--teal);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--teal-ink);
  line-height: 1.2;
}
.card p { font-size: .93rem; color: var(--ink-soft); flex: 1; }
.card-link {
  font-size: .85rem; font-weight: 500;
  color: var(--gold);
  letter-spacing: .04em;
  transition: letter-spacing .25s;
}
.card:hover .card-link { letter-spacing: .1em; }

/* ===== Equipo ===== */
.equipo {
  background:
    radial-gradient(800px 400px at 110% 0%, rgba(232, 194, 95, .12), transparent 55%),
    linear-gradient(150deg, var(--teal-deep), var(--teal-ink));
  color: var(--ivory);
}
.equipo h2 { color: var(--ivory); }
.directora {
  margin-top: 2rem;
  display: flex; align-items: center; gap: 1.1rem;
}
.directora-initials {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold);
  color: var(--teal-ink);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
}
.directora div { display: flex; flex-direction: column; }
.directora strong { font-weight: 500; font-size: 1.05rem; }
.directora span { font-size: .85rem; color: rgba(255, 253, 248, .7); }
.equipo-text { color: rgba(255, 253, 248, .82); max-width: 460px; }
.chips {
  list-style: none;
  margin-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .7rem;
}
.chips li {
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: .5rem 1.2rem;
  font-size: .92rem;
  transition: border-color .25s, background .25s;
}
.chips li:hover { border-color: var(--gold-soft); background: rgba(232, 194, 95, .1); }

/* ===== Instituciones ===== */
.instituciones { background: var(--cream); }
.inst-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.inst {
  background: var(--ivory);
  padding: 1.6rem 1.5rem;
  display: flex; flex-direction: column; gap: .3rem;
  transition: background .3s;
}
.inst:hover { background: #fdf9ef; }
.inst strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .02em;
}
.inst span { font-size: .85rem; color: var(--ink-soft); }
.inst-note {
  text-align: center;
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
}

/* ===== Contacto ===== */
.contacto { background: var(--ivory); }
.contacto-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 320px at 90% -20%, rgba(232, 194, 95, .16), transparent 60%),
    linear-gradient(155deg, var(--teal), var(--teal-ink) 80%);
  color: var(--ivory);
  border-radius: 26px;
  padding: clamp(2.6rem, 6vw, 4.5rem);
  box-shadow: var(--shadow);
}
.contacto-panel h2 { color: var(--ivory); max-width: 640px; }
.contacto-panel > p { margin-top: 1rem; max-width: 520px; color: rgba(255, 253, 248, .82); }
.contacto-wheat {
  position: absolute; right: -30px; bottom: -60px;
  width: 230px;
  transform: rotate(-16deg);
  color: rgba(255, 255, 255, .08);
  pointer-events: none;
}

/* ===== Footer ===== */
.site-footer { background: var(--teal-ink); color: rgba(255, 253, 248, .75); }
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 2.6rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem;
}
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-logo { width: 52px; height: 52px; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.35; }
.footer-brand strong { color: var(--ivory); font-weight: 500; }
.footer-brand span { font-size: .84rem; }
.footer-nav { display: flex; gap: 1.4rem; font-size: .9rem; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-copy { font-size: .8rem; width: 100%; text-align: center; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.4rem; }

/* ===== Animations ===== */
.reveal-load { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2,.7,.3,1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); transition-delay: var(--d, 0s); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-load, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inst-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: .4rem;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--teal-ink); transition: transform .3s, opacity .3s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    gap: .2rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem 1.4rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.nav-cta) { padding: .55rem 0; font-size: 1.02rem; }
  .nav-cta { margin-top: .6rem; }
  .brand-text strong { font-size: .88rem; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .inst-grid { grid-template-columns: 1fr; }
  .hero-wheat { opacity: .6; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { text-align: left; }
}
