/* ============================================================
   HACCH — Landing
   Brand: green #01B473 · navy #0A2739 · cream #FDFCF7 · yellow #FFDE2D
   Type:  Poppins (headers) · DM Sans (body)
   Motif: eggs · growth-line · chevrons · egg-people
   ============================================================ */

:root {
  --cream:     #FDFCF7;
  --cream-2:   #F4F1E6;
  --green:     #01B473;
  --green-700: #019A62;
  --green-800: #017A4E;
  --navy:      #0A2739;
  --navy-soft: #3C4D58;
  --navy-faint:#6A7780;
  --yellow:    #FFDE2D;
  --white:     #FFFFFF;

  --line:      rgba(10, 39, 57, 0.12);
  --line-2:    rgba(10, 39, 57, 0.08);

  --egg: 50% 50% 50% 50% / 62% 62% 38% 38%;

  --radius:    20px;
  --radius-lg: 32px;
  --maxw: 1220px;

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
section { position: relative; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.eyebrow.on-green { color: var(--navy); }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: currentColor; display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 0.85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), color 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn-green { background: var(--green); color: var(--cream); }
.btn-green:hover { background: var(--green-700); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(1,180,115,0.32); }

.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(10,39,57,0.28); }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-2px); }

.btn-cream { background: var(--cream); color: var(--navy); }
.btn-cream:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.18); }

.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255,222,45,0.45); }

/* ---------- Egg primitive ---------- */
.egg { border-radius: var(--egg); }

/* ============================================================ NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,252,247,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 0.55em; text-decoration: none; color: var(--navy); }
.brand .logo { width: 34px; height: 38px; flex: none; }
.brand .word { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.01em; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: clamp(1.1rem, 3vw, 2.3rem); }
.nav-links a.navlink { text-decoration: none; color: var(--navy-soft); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a.navlink:hover { color: var(--green-700); }
.nav-right { display: flex; align-items: center; gap: 0.85rem; }

.lang { display: inline-flex; border: 2px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button {
  border: none; background: transparent; font-family: var(--font-body); font-weight: 700;
  font-size: 0.8rem; color: var(--navy-faint); padding: 0.3em 0.7em; border-radius: 999px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang button.active { background: var(--green); color: var(--cream); }
.nav .btn { padding: 0.6em 1.15em; font-size: 0.9rem; }
@media (max-width: 880px) { .nav-links a.navlink { display: none; } }
/* On small phones the nav CTA no longer fits next to the brand + lang toggle
   and pushes the layout off-screen — hide it (the hero CTA covers this). */
@media (max-width: 560px) { .nav-right .btn { display: none; } }

/* ============================================================ HERO */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 6.2rem); font-weight: 800; line-height: 1.0; letter-spacing: -0.035em; }
.hero h1 .hatch { color: var(--green); }
.hero .sub { margin-top: 1.6rem; font-size: clamp(1.15rem, 1.9vw, 1.45rem); color: var(--navy-soft); max-width: 34ch; font-weight: 500; }
.hero .cta-row { margin-top: 2.2rem; display: flex; gap: 0.85rem; flex-wrap: wrap; align-items: center; }
.hero .micro { margin-top: 2.2rem; display: flex; gap: clamp(1.2rem,3vw,2.2rem); flex-wrap: wrap; }
.hero .micro .stat { display: flex; flex-direction: column; gap: 0.15rem; }
.hero .micro .stat .n { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.4rem,2.2vw,1.9rem); color: var(--navy); line-height: 1; }
.hero .micro .stat .l { font-size: 0.82rem; color: var(--navy-faint); font-weight: 600; }
.hero .micro .stat .n.is-green { color: var(--green); }
.hero .micro .stat .n { display: inline-block; transform-origin: left center; }
.hero .micro .stat .n.pop { animation: statPop 0.6s var(--ease); }
@keyframes statPop { 0% { transform: scale(0.7); opacity: 0.3; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }

.hero-art { position: relative; aspect-ratio: 1/1; }
.big-egg {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64%; aspect-ratio: 0.82 / 1; background: var(--green);
  border-radius: var(--egg); display: grid; place-items: center;
}
.big-egg .growth { width: 58%; height: auto; }
.float-egg { position: absolute; border-radius: var(--egg); }
.e-yellow { width: 25%; aspect-ratio: 0.82/1; background: var(--yellow); top: 2%; right: 5%; }
.e-navy { width: 19%; aspect-ratio: 0.82/1; background: var(--navy); bottom: 5%; left: 3%; }
.e-green-sm { width: 12%; aspect-ratio: 0.82/1; background: var(--green); top: 12%; left: 12%; }
@media (max-width: 840px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* Give the egg art a definite width: its children are all position:absolute,
     so without an explicit width the aspect-ratio collapses to 0 on mobile. */
  .hero-art { width: min(320px, 70vw); max-width: none; aspect-ratio: 1 / 1; margin-inline: auto; order: -1; }
}

/* Chevron strip */
.chev { width: 100%; height: 26px; display: block; }

/* ============================================================ PRESENTATION */
.present { padding-block: clamp(4rem, 8vw, 7rem); }
.present-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem,5vw,4.5rem); align-items: start; }
.present h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700; }
.present h2 .g { color: var(--green); }
.present .body { font-size: clamp(1.05rem,1.5vw,1.2rem); color: var(--navy-soft); }
.present .body .btn { margin-top: 1.8rem; }
@media (max-width: 840px) { .present-grid { grid-template-columns: 1fr; gap: 1.4rem; } }

/* ============================================================ SERVICE CARDS */
.services { padding-bottom: clamp(4rem, 8vw, 7rem); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem,2.5vw,1.8rem); }
.card {
  position: relative; border-radius: var(--radius-lg); padding: clamp(1.8rem,3vw,2.8rem);
  overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card.cream { background: var(--cream); border: 2px solid var(--line); }
.card.green { background: var(--green); color: var(--cream); }
.card:hover { transform: translateY(-6px); }
.card.cream:hover { box-shadow: 0 26px 50px rgba(10,39,57,0.12); }
.card.green:hover { box-shadow: 0 26px 50px rgba(1,180,115,0.32); }
.card .ic { width: 76px; height: 76px; margin-bottom: 1.5rem; }
.card .tag { font-family: var(--font-head); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.card.cream .tag { color: var(--green-700); }
.card.green .tag { color: var(--navy); }
.card h3 { font-size: clamp(1.5rem,2.4vw,2rem); margin-top: 0.5rem; font-weight: 700; }
.card p { margin-top: 0.85rem; font-size: 1.02rem; }
.card.cream p { color: var(--navy-soft); }
.card.green p { color: rgba(253,252,247,0.92); }
.card .corner-egg { position: absolute; width: 150px; height: 175px; right: -36px; bottom: -44px; opacity: 0.16; }
.card.cream .corner-egg { background: var(--green); }
.card.green .corner-egg { background: var(--cream); opacity: 0.14; }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }

/* ============================================================ VALUE / PROPUESTA DE VALOR */
.value { padding-block: clamp(4rem, 8vw, 7rem); }
.value-head { max-width: 62ch; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.value-head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; }
.value-head .lead { margin-top: 1.1rem; font-size: clamp(1.1rem, 1.7vw, 1.32rem); color: var(--navy-soft); }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 2.5vw, 1.8rem); margin-bottom: clamp(1.2rem, 2.5vw, 1.8rem); }
.vcard { background: var(--cream); border: 2px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 2.6vw, 2.2rem); }
.vcard .vicon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: rgba(1,180,115,0.12); color: var(--green-700); margin-bottom: 1rem; }
.vcard .vicon svg { width: 26px; height: 26px; }
.vcard h3 { font-size: 1.3rem; font-weight: 700; }
.vcard p { margin-top: 0.6rem; color: var(--navy-soft); font-size: 1.02rem; }
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.benefit { border-radius: var(--radius-lg); padding: clamp(1.8rem, 3vw, 2.5rem); }
.benefit.emp { background: var(--navy); color: var(--cream); }
.benefit.pro { background: var(--green); color: var(--cream); }
.benefit h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 700; }
.benefit ul { list-style: none; margin-top: 1.1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.benefit li { position: relative; padding-left: 1.9rem; font-size: 1.02rem; color: rgba(253,252,247,0.92); }
.benefit li::before { content: ""; position: absolute; left: 0; top: 0.28em; width: 15px; height: 17px; background: var(--yellow); border-radius: var(--egg); }
@media (max-width: 720px) { .value-grid, .benefits-grid { grid-template-columns: 1fr; } }

/* ============================================================ COMMUNITY / COMUNIDAD */
.community { padding-block: clamp(4rem, 8vw, 7rem); background: var(--cream-2); border-block: 1px solid var(--line-2); }
.community .head { max-width: 56ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.community h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; }
.community .head p { margin-top: 1rem; color: var(--navy-soft); font-size: 1.12rem; }
.comm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.4rem); }
.comm-card { background: var(--cream); border: 2px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 2.4vw, 1.9rem); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.comm-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(10,39,57,0.1); }
.comm-card .cicon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: rgba(1,180,115,0.12); color: var(--green-700); margin-bottom: 0.9rem; }
.comm-card .cicon svg { width: 24px; height: 24px; }
.comm-card h3 { font-size: 1.16rem; font-weight: 700; }
.comm-card p { margin-top: 0.4rem; font-size: 0.96rem; color: var(--navy-soft); }
@media (max-width: 840px) { .comm-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .comm-grid { grid-template-columns: 1fr; } }

/* ============================================================ MODEL / PRICING */
.model { padding-block: clamp(4.5rem,9vw,8rem); background: var(--cream-2); border-block: 1px solid var(--line-2); }
.model .head { max-width: 52ch; margin-bottom: clamp(2.5rem,5vw,3.5rem); }
.model h2 { font-size: clamp(2rem,4.2vw,3.2rem); font-weight: 700; }
.model h2 .g { color: var(--green); }
.model .head p { margin-top: 1rem; color: var(--navy-soft); font-size: 1.12rem; }
.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem,2.5vw,1.8rem); }
.price { background: var(--cream); border: 2px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.8rem,3vw,2.6rem); display: flex; flex-direction: column; }
.price .pct { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem,5vw,3.6rem); color: var(--green); line-height: 1; letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 0.4rem; }
.price .pct .unit { font-size: 0.92rem; font-weight: 600; color: var(--navy-faint); font-family: var(--font-body); letter-spacing: 0; }
.price h3 { font-size: 1.45rem; margin-top: 0.6rem; font-weight: 700; }
.price p { margin-top: 0.85rem; color: var(--navy-soft); font-size: 1rem; }
.price .guarantee { margin-top: 1.4rem; padding-top: 1.3rem; border-top: 2px dashed var(--line); display: flex; gap: 0.7em; align-items: flex-start; font-size: 0.96rem; color: var(--navy); font-weight: 500; }
.price .guarantee .gic { flex: none; width: 30px; height: 34px; margin-top: 1px; }
@media (max-width: 720px) { .model-grid { grid-template-columns: 1fr; } }

/* ============================================================ FINAL CTA (green) */
.final { background: var(--green); color: var(--cream); padding-block: clamp(5rem,11vw,9rem); position: relative; overflow: hidden; }
.final .pattern { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }
.final-inner { position: relative; z-index: 2; text-align: center; max-width: 720px; margin-inline: auto; }
.final h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(3.6rem,12vw,8.5rem); letter-spacing: -0.04em; color: var(--cream); line-height: 0.95; }
.final h2 .ex { color: var(--yellow); }
.final p { margin-top: 1.4rem; color: rgba(253,252,247,0.94); font-size: clamp(1.15rem,1.8vw,1.4rem); line-height: 1.55; max-width: 46ch; margin-inline: auto; font-weight: 500; }
.final .cta-row { margin-top: 2.4rem; display: flex; justify-content: center; gap: 0.85rem; flex-wrap: wrap; }

/* ============================================================ FOOTER */
.foot { background: var(--navy); color: rgba(253,252,247,0.72); padding-block: 2.6rem; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.foot .brand { color: var(--cream); }
.foot .brand .word { color: var(--cream); }
.foot .links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot .links a { color: rgba(253,252,247,0.72); text-decoration: none; font-size: 0.92rem; font-weight: 600; transition: color 0.2s; }
.foot .links a:hover { color: var(--yellow); }
.foot .social { display: flex; align-items: center; gap: 0.6rem; }
.foot .social .soc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px;
  background: rgba(253,252,247,0.08); color: rgba(253,252,247,0.78);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.foot .social .soc svg { width: 18px; height: 18px; display: block; }
.foot .social .soc:hover { background: var(--yellow); color: var(--navy); transform: translateY(-2px); }
.foot .links a[href^="tel:"], .foot .links a[href^="mailto:"] { color: var(--cream); }
.foot .copy { font-size: 0.85rem; color: rgba(253,252,247,0.5); flex-basis: 100%; padding-top: 1.2rem; margin-top: 0.4rem; border-top: 1px solid rgba(253,252,247,0.1); }

/* ============================================================ REVEAL */
.reveal { opacity: 1; transform: none; will-change: opacity, transform; }
.reveal.in { animation: revealUp 0.7s var(--ease); }
.reveal.d1.in { animation-delay: 0.08s; }
.reveal.d2.in { animation-delay: 0.16s; }
.reveal.d3.in { animation-delay: 0.24s; }
@keyframes revealUp { 0% { opacity: 0; transform: translateY(26px); } 100% { opacity: 1; transform: translateY(0); } }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float { animation: floaty 6s var(--ease) infinite; }
.float-slow { animation: floaty 8.5s var(--ease) infinite; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { animation: none !important; opacity: 1; transform: none; }
  .float, .float-slow { animation: none !important; }
  .hero .micro .stat .n.pop { animation: none !important; transform: none; opacity: 1; }
  html { scroll-behavior: auto; }
}
