:root {
  --blue: #14487f;
  --deep-blue: #0b2f5e;
  --cyan: #1fa9bd;
  --soft-cyan: #b8dce0;
  --green: #6aa92f;
  --deep-green: #4f8d22;
  --ink: #14314d;
  --muted: #5d7388;
  --line: #e2eef2;
  --surface: #ffffff;
  --bg: #f3f9fb;
  --shadow-sm: 0 6px 20px rgba(11, 47, 94, .06);
  --shadow: 0 22px 60px rgba(11, 47, 94, .12);
  --shadow-lg: 0 40px 90px rgba(11, 47, 94, .18);
  --radius: 26px;
  --radius-lg: 34px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Poppins", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
}
/* Textura de grano sutil para que no se vea plano */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1140px, calc(100% - 34px)); margin: 0 auto; position: relative; z-index: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 5vw, 48px);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(226, 238, 242, .8);
  transition: box-shadow .3s var(--ease), padding .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(11, 47, 94, .08); padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; display: block; transition: transform .4s var(--ease); }
.brand:hover img { transform: scale(1.04); }
.main-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a {
  position: relative;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--deep-blue);
  background: rgba(238, 247, 249, .7);
  font-weight: 600;
  font-size: .92rem;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.main-nav a:hover { transform: translateY(-2px); }
.main-nav a.active { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; box-shadow: 0 8px 20px rgba(31, 169, 189, .3); }
.main-nav a.active.green { background: linear-gradient(135deg, var(--green), var(--deep-green)); box-shadow: 0 8px 20px rgba(106, 169, 47, .3); }

/* ---------- Hero ---------- */
.hero, .page-hero { position: relative; overflow: hidden; }
.hero { padding: clamp(64px, 11vw, 130px) 0 clamp(90px, 12vw, 150px); text-align: center; }
.mesh {
  position: absolute; inset: -20% -10% auto -10%; height: 130%;
  background:
    radial-gradient(38% 45% at 18% 22%, rgba(31, 169, 189, .28), transparent 60%),
    radial-gradient(34% 40% at 82% 18%, rgba(20, 72, 127, .22), transparent 60%),
    radial-gradient(40% 45% at 70% 80%, rgba(106, 169, 47, .22), transparent 60%),
    radial-gradient(30% 35% at 30% 78%, rgba(184, 220, 224, .35), transparent 60%);
  filter: blur(6px);
  animation: meshFloat 16s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes meshFloat {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(0,-18px,0) scale(1.05); }
}
.floaty { position: absolute; border-radius: 30px; z-index: 0; opacity: .9; animation: bob 7s ease-in-out infinite; }
.floaty--a { width: 66px; height: 66px; left: 8%; top: 26%; background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: 0 20px 40px rgba(31,169,189,.28); }
.floaty--b { width: 52px; height: 52px; right: 10%; top: 34%; background: linear-gradient(135deg, var(--green), var(--deep-green)); box-shadow: 0 20px 40px rgba(106,169,47,.28); animation-delay: 1.5s; }
.floaty--c { width: 40px; height: 40px; right: 22%; top: 66%; background: #fff; box-shadow: var(--shadow); animation-delay: .8s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(6deg); } }

.hero-content { width: min(880px, calc(100% - 34px)); margin: 0 auto; position: relative; z-index: 2; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--deep-blue);
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(31, 169, 189, .28);
  border-radius: 999px; padding: 9px 16px;
  font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(106,169,47,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(106,169,47,.55); } 70% { box-shadow: 0 0 0 10px rgba(106,169,47,0); } 100% { box-shadow: 0 0 0 0 rgba(106,169,47,0); } }
h1 {
  margin: 20px 0 0; color: var(--deep-blue);
  line-height: .98; font-size: clamp(2.5rem, 7vw, 5.4rem);
  letter-spacing: -.04em; font-weight: 700;
}
h1 .grad { background: linear-gradient(120deg, var(--cyan), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p, .page-hero p {
  width: min(680px, 100%); margin: 22px auto 0;
  color: #3f5f7c; font-size: clamp(1.02rem, 2vw, 1.24rem); line-height: 1.7;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; box-shadow: 0 14px 30px rgba(31,169,189,.32); }
.btn-ghost { background: #fff; color: var(--deep-blue); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.btn:hover { transform: translateY(-3px); }
.btn-primary:hover { box-shadow: 0 20px 40px rgba(31,169,189,.42); }

/* wave separator */
.wave { display: block; width: 100%; height: 60px; margin-top: -1px; }

/* ---------- Option cards (home) ---------- */
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; margin-top: -70px; z-index: 5; }
.option-card {
  display: flex; flex-direction: column; min-height: 320px;
  padding: clamp(26px, 4vw, 40px); border-radius: var(--radius-lg);
  color: #fff; position: relative; overflow: hidden;
  box-shadow: var(--shadow); transform: translateY(0);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.option-card::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; bottom: -80px; background: rgba(255,255,255,.14); transition: transform .5s var(--ease); }
.option-card::before { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 34px; left: -30px; top: -30px; background: rgba(255,255,255,.1); transform: rotate(18deg); }
.option-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.option-card:hover::after { transform: scale(1.15); }
.option-card-blue { background: linear-gradient(150deg, var(--blue) 0%, var(--deep-blue) 100%); }
.option-card-green { background: linear-gradient(150deg, var(--green) 0%, var(--deep-green) 100%); }
.option-ico { width: 58px; height: 58px; border-radius: 18px; background: rgba(255,255,255,.18); display: grid; place-items: center; margin-bottom: auto; }
.option-ico svg { width: 30px; height: 30px; color: #fff; }
.option-label { position: absolute; top: 22px; right: 22px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.2); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
.option-card h2 { margin: 22px 0 0; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1; letter-spacing: -.03em; font-weight: 700; }
.option-card p { margin: 14px 0 0; color: rgba(255,255,255,.85); line-height: 1.6; }
.option-action { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.option-action svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.option-card:hover .option-action svg { transform: translateX(5px); }

/* feature strip */
.features { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 28px; }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.feature:hover { transform: translateY(-4px); }
.feature .fic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(31,169,189,.16), rgba(106,169,47,.16)); }
.feature .fic svg { width: 22px; height: 22px; color: var(--cyan); }
.feature h3 { margin: 0 0 4px; font-size: 1.02rem; color: var(--deep-blue); }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }

/* ---------- Page hero ---------- */
.page-hero { padding: clamp(54px, 8vw, 96px) 0 clamp(64px, 9vw, 110px); }
.page-hero-content { position: relative; z-index: 2; text-align: left; }
.page-hero-content h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); }
.page-hero-blue .mesh { background: radial-gradient(40% 50% at 15% 20%, rgba(31,169,189,.28), transparent 60%), radial-gradient(38% 46% at 85% 30%, rgba(20,72,127,.2), transparent 60%); }
.page-hero-green .mesh { background: radial-gradient(40% 50% at 15% 20%, rgba(106,169,47,.26), transparent 60%), radial-gradient(38% 46% at 85% 30%, rgba(31,169,189,.2), transparent 60%); }

/* summary card */
.summary-card { margin-top: -52px; padding: 26px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; z-index: 4; display: flex; gap: 20px; align-items: center; }
.summary-card .sc-ico { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.summary-card.summary-card-green .sc-ico { background: linear-gradient(135deg, var(--green), var(--deep-green)); }
.summary-card .sc-ico svg { width: 26px; height: 26px; color: #fff; }
.summary-card h2 { margin: 0 0 4px; color: var(--deep-blue); font-size: 1.2rem; }
.summary-card p { margin: 0; color: var(--muted); line-height: 1.55; }

/* ---------- Dish cards ---------- */
.dishes-grid { display: grid; gap: 24px; margin-top: 30px; }
.dish-card {
  display: grid; grid-template-columns: 280px minmax(0,1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  opacity: 0; transform: translateY(24px);
}
.dish-card.in { opacity: 1; transform: translateY(0); }
.dish-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.dish-image { position: relative; min-height: 100%; display: grid; place-items: center; padding: 20px; color: rgba(255,255,255,.95); text-align: center; font-weight: 600; overflow: hidden; }
.dish-image span.ph { position: relative; z-index: 2; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; font-size: .9rem; }
.dish-image span.ph svg { width: 34px; height: 34px; opacity: .9; }
.dish-image::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 50%); }
.placeholder-blue { background: linear-gradient(150deg, var(--blue), var(--cyan)); }
.placeholder-green { background: linear-gradient(150deg, var(--green), var(--cyan)); }
.dish-body { padding: clamp(22px, 4vw, 32px); }
.dish-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; color: #fff; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .72rem; }
.badge svg { width: 14px; height: 14px; }
.badge-blue { background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.badge-green { background: linear-gradient(135deg, var(--green), var(--deep-green)); }
.portion { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.portion svg { width: 15px; height: 15px; }
.dish-body h2 { margin: 16px 0 0; color: var(--deep-blue); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; }
.description { color: var(--muted); line-height: 1.6; margin: 12px 0 0; }

/* Semaphore chips */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.tag-good { background: rgba(106,169,47,.12); color: var(--deep-green); }
.tag-good::before { background: var(--green); }
.tag-info { background: rgba(31,169,189,.12); color: #0d7a89; }
.tag-info::before { background: var(--cyan); }
.tag-warn { background: rgba(232,150,50,.14); color: #b5670f; }
.tag-warn::before { background: #e89632; }

/* Nutrition grid + bars */
.nutrition-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 22px; }
.nut {
  padding: 15px; border-radius: 18px; background: linear-gradient(180deg, #f7fbfc, #eef6f8);
  border: 1px solid #e3eef2; position: relative; overflow: hidden;
}
.nut .top { display: flex; align-items: center; justify-content: space-between; }
.nut span.lbl { color: var(--muted); font-size: .78rem; font-weight: 600; }
.nut strong { color: var(--deep-blue); font-size: 1.12rem; font-weight: 700; }
.nut .bar { height: 6px; border-radius: 999px; background: #dfeaee; margin-top: 10px; overflow: hidden; }
.nut .bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--green)); transition: width 1.1s var(--ease); }
.nut.in .bar i { width: var(--fill, 60%); }

.detail-columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; margin-top: 24px; }
.detail-columns h3 { margin: 0 0 10px; color: var(--deep-blue); font-size: .96rem; display: flex; align-items: center; gap: 8px; }
.detail-columns h3 svg { width: 16px; height: 16px; color: var(--cyan); }
.detail-columns ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.6; }
.updated { margin: 22px 0 0; display: inline-flex; align-items: center; gap: 7px; color: #8496a6; font-size: .86rem; font-weight: 600; }
.updated svg { width: 15px; height: 15px; }

/* back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); z-index: 50; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.footer-wrap { margin-top: 46px; background: linear-gradient(160deg, var(--deep-blue), #0a2547); color: rgba(255,255,255,.82); position: relative; overflow: hidden; }
.footer-wrap::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -80px; top: -120px; background: rgba(31,169,189,.16); }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 30px 0; flex-wrap: wrap; }
.footer .f-brand { display: flex; align-items: center; gap: 14px; }
.footer img { height: 40px; width: auto; background: #fff; padding: 8px 12px; border-radius: 12px; }
.footer p { margin: 0; line-height: 1.5; max-width: 520px; font-size: .88rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 920px) {
  .option-grid { grid-template-columns: 1fr; margin-top: -50px; }
  .features { grid-template-columns: 1fr; }
  .dish-card { grid-template-columns: 1fr; }
  .dish-image { min-height: 200px; }
}
@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .brand img { height: 38px; }
  .main-nav { width: 100%; }
  .main-nav a { flex: 1; text-align: center; }
  .nutrition-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .detail-columns { grid-template-columns: 1fr; }
  .summary-card { flex-direction: column; align-items: flex-start; }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .dish-card { opacity: 1; transform: none; }
}
