/* ═══════════════════════════════════════════════════════
   EcoSostenible Consulting S.A.S.
   Font: Manrope (Apple SF Pro equivalent - Google Fonts)
   Responsive: Mobile-first, zero visual conflicts
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ── TOKENS ──────────────────────────────────────────── */
:root {
  --ink:         #0A0A0B;
  --ink-soft:    #1C1C1E;
  --ink-mid:     #3A3A3C;
  --steel:       #6E6E73;
  --silver:      #AEAEB2;
  --mist:        #D1D1D6;
  --smoke:       #F5F5F7;
  --white:       #FFFFFF;
  --green:       #1B8A4A;
  --green-v:     #2AC764;
  --green-pale:  #EBF8F1;
  --green-dark:  #0D3D22;
  --green-deep:  #061A0F;
  --amber:       #D97706;
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  32px;
  --r-2xl: 48px;
  --f:     'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-h: 68px;
  --ease:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET ───────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
body { font-family: var(--f); line-height: 1.6; color: var(--ink); background: var(--white); overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { border: none; cursor: pointer; font: inherit; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font: inherit; }

/* ── LAYOUT ──────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .wrap { padding: 0 40px; } }
@media (min-width: 1200px) { .wrap { padding: 0 60px; } }

.sec { padding: 80px 0; }
.sec--dark  { background: var(--ink);        color: var(--white); }
.sec--green { background: var(--green-dark); color: var(--white); }
.sec--smoke { background: var(--smoke); }
@media (min-width: 768px) { .sec { padding: 120px 0; } }

/* ── TYPE ────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-v);
  margin-bottom: 14px;
}
.eyebrow--light { color: rgba(255,255,255,.5); }

.h1 { font-size: clamp(36px, 7vw, 80px); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; }
.h2 { font-size: clamp(28px, 4.5vw, 52px); font-weight: 800; line-height: 1.1;  letter-spacing: -.03em; }
.h3 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 700; line-height: 1.2;  letter-spacing: -.02em; }
.h4 { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }

.lead { font-size: clamp(16px, 2vw, 20px); font-weight: 400; line-height: 1.65; }
.body { font-size: 15px; line-height: 1.7; }
.caption { font-size: 13px; line-height: 1.5; }
.muted { color: var(--steel); }
.muted-lt { color: rgba(255,255,255,.55); }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .18s, color .18s, border-color .18s;
  cursor: pointer;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex-shrink: 0; transition: transform .22s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 2px 16px rgba(27,138,74,.30);
}
.btn-primary:hover { background: #167a40; box-shadow: 0 6px 24px rgba(27,138,74,.40); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.3);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--mist);
}
.btn-outline-dark:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.btn-ghost {
  background: var(--green-pale);
  color: var(--green);
}
.btn-ghost:hover { background: #d8f4e6; }

/* ── CHIPS / TAGS ────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.chip-light  { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.18); }
.chip-green  { background: var(--green-pale); color: var(--green); }

/* ── SCROLL-REVEAL ───────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
[data-reveal].on { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
[data-delay="4"] { transition-delay: .32s; }
[data-delay="5"] { transition-delay: .40s; }

/* ══════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .35s, border-color .35s, box-shadow .35s;
  border-bottom: 1px solid transparent;
}
.nav.stuck {
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-color: rgba(0,0,0,.07);
  box-shadow: 0 1px 12px rgba(0,0,0,.05);
}
.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--white);
  transition: color .35s;
  flex-shrink: 0;
  line-height: 1;
}
.nav.stuck .nav__logo { color: var(--ink); }
.nav__logo-icon {
  width: 34px; height: 34px;
  background: var(--green);
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Desktop links */
.nav__links {
  display: none;
  align-items: center;
  gap: 2px;
}
@media (min-width: 900px) { .nav__links { display: flex; } }
.nav__link {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.nav__link:hover { background: rgba(255,255,255,.1); color: var(--white); }
.nav.stuck .nav__link { color: var(--steel); }
.nav.stuck .nav__link:hover { background: var(--smoke); color: var(--ink); }

/* CTA */
.nav__cta { display: none; flex-shrink: 0; }
@media (min-width: 900px) { .nav__cta { display: inline-flex; } }

/* Hamburger */
.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  flex-shrink: 0;
}
@media (min-width: 900px) { .nav__burger { display: none; } }
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,.9);
  border-radius: 2px;
  transition: background .35s, transform .25s, opacity .25s;
}
.nav.stuck .nav__burger span { background: var(--ink); }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 899;
  display: flex;
  flex-direction: column;
  padding: 16px 0 32px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
  overflow-y: auto;
}
.nav__drawer.open {
  transform: none;
  opacity: 1;
  pointer-events: all;
}
.nav__drawer a {
  padding: 16px 28px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--smoke);
  transition: color .15s;
}
.nav__drawer a:hover { color: var(--green); }
.nav__drawer .drawer-cta {
  margin: 20px 28px 0;
  padding: 15px 24px;
  font-size: 16px;
  border-radius: 14px;
}

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--green-deep);
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* BG layers */
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 72px 72px;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  will-change: transform;
}
.hero__orb-1 { width: 55vw; height: 55vw; top: -12%; right: -8%;  background: radial-gradient(circle, rgba(27,138,74,.5) 0%, transparent 70%); }
.hero__orb-2 { width: 40vw; height: 40vw; bottom: -8%; left: 4%;  background: radial-gradient(circle, rgba(42,199,100,.2) 0%, transparent 70%); }
.hero__orb-3 { width: 22vw; height: 22vw; top: 35%; right: 22%;   background: radial-gradient(circle, rgba(217,119,6,.1) 0%, transparent 70%); }

/* Content */
.hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 0 72px;
  width: 100%;
}
.hero__chip { margin-bottom: 24px; }
.hero__title {
  color: var(--white);
  max-width: 820px;
  margin-bottom: 24px;
}
.hero__title em {
  font-style: normal;
  color: var(--green-v);
}
.hero__subtitle {
  color: rgba(255,255,255,.62);
  max-width: 500px;
  margin-bottom: 40px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 72px;
}
.hero__scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.hero__scroll-line {
  display: block;
  width: 40px; height: 1px;
  background: rgba(255,255,255,.3);
  animation: pulse-line 2.2s ease-in-out infinite;
}
@keyframes pulse-line {
  0%,100% { width: 40px; opacity: .3; }
  50%      { width: 72px; opacity: .7; }
}

/* ══════════════════════════════════════════════════════
   STATS
══════════════════════════════════════════════════════ */
.stats { background: var(--ink-soft); padding: 64px 0; }
.stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r-xl);
  overflow: hidden;
}
@media (min-width: 640px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--ink-soft);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background .25s;
}
.stat:hover { background: var(--ink); }
.stat__num {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  color: var(--green-v);
  line-height: 1;
  letter-spacing: -.04em;
}
.stat__lbl { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.45; }

/* ══════════════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════════════ */
.svc__head {
  display: grid;
  gap: 32px;
  margin-bottom: 56px;
}
@media (min-width: 768px) { .svc__head { grid-template-columns: 1fr 1fr; align-items: end; } }

.svc__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px)  { .svc__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .svc__grid { grid-template-columns: repeat(3, 1fr); } }

.svc-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .25s, box-shadow .25s, transform .3s var(--ease);
}
.svc-card:hover {
  border-color: var(--green);
  box-shadow: 0 12px 40px rgba(27,138,74,.1);
  transform: translateY(-3px);
}
.svc-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--green-pale);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background .25s;
}
.svc-card:hover .svc-card__icon { background: var(--green); }
.svc-card:hover .svc-card__icon svg * { stroke: #fff !important; }
.svc-card__icon svg { width: 22px; height: 22px; }
.svc-card__title { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.015em; }
.svc-card__body { font-size: 14px; color: var(--steel); line-height: 1.65; flex: 1; }
.svc-card__more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  transition: gap .2s;
  margin-top: auto;
}
.svc-card:hover .svc-card__more { gap: 9px; }

/* ══════════════════════════════════════════════════════
   PROCESS
══════════════════════════════════════════════════════ */
.proc__head { text-align: center; margin-bottom: 64px; }
.proc__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
}
@media (min-width: 900px) {
  .proc__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
  }
  .proc__grid::before {
    content: '';
    position: absolute;
    top: 30px; left: 12.5%; right: 12.5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green-v), transparent);
    pointer-events: none;
  }
}
.proc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.proc-step__num {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--mist);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--green);
  position: relative;
  z-index: 1;
  transition: background .25s, border-color .25s, transform .3s var(--ease-spring);
}
.proc-step:hover .proc-step__num {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  transform: scale(1.12);
}
.proc-step__title { font-size: 16px; font-weight: 700; color: var(--ink); }
.proc-step__body { font-size: 13px; color: var(--steel); line-height: 1.6; }

/* ══════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════ */
.about__inner {
  display: grid;
  gap: 48px;
}
@media (min-width: 900px) {
  .about__inner { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
}

/* Visual card */
.about__vis {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}
.about__vis-bg {
  width: 100%; height: 100%;
  border-radius: var(--r-2xl);
  background: linear-gradient(140deg, var(--green-dark) 0%, #0f5c32 100%);
  position: relative;
  overflow: hidden;
}
.about__vis-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 36px 36px;
}
.about__badge {
  position: absolute;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  z-index: 1;
  min-width: 150px;
}
.about__badge-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--green-v);
  line-height: 1;
  letter-spacing: -.04em;
}
.about__badge-lbl { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 3px; }
.about__badge--a { top: 24px; left: 24px; }
.about__badge--b { bottom: 24px; right: 24px; }
.about__badge--c {
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  text-align: center;
  min-width: 160px;
}
.about__badge--c .about__badge-num { font-size: 18px; color: var(--white); }

/* Pills */
.about__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.about__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--green-pale);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
}
.about__pill::before { content: '✓'; color: var(--green); font-weight: 800; }

/* ══════════════════════════════════════════════════════
   ODS
══════════════════════════════════════════════════════ */
.ods__head { text-align: center; margin-bottom: 52px; }
.ods__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .ods__grid { grid-template-columns: repeat(3, 1fr); } }
.ods-card {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-xl);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .25s, background .25s;
}
.ods-card:hover { border-color: var(--green-v); background: rgba(27,138,74,.07); }
.ods-card__badge { font-size: 40px; font-weight: 800; color: var(--green-v); letter-spacing: -.04em; line-height: 1; }
.ods-card__title { font-size: 17px; font-weight: 700; color: var(--white); }
.ods-card__body { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.6; }

/* ══════════════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════════════ */
.testi__head { text-align: center; margin-bottom: 52px; }
.testi__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .testi__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .testi__grid { grid-template-columns: repeat(3, 1fr); } }
.testi-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow .25s, transform .3s var(--ease);
}
.testi-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.07); transform: translateY(-3px); }
.testi-card__stars { color: var(--amber); font-size: 14px; letter-spacing: 2px; }
.testi-card__quote { font-size: 15px; line-height: 1.7; color: var(--ink-mid); font-style: italic; flex: 1; }
.testi-card__name { font-size: 14px; font-weight: 700; color: var(--ink); }
.testi-card__role { font-size: 12px; color: var(--steel); margin-top: 2px; }

/* ══════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════ */
.contact__head { text-align: center; margin-bottom: 64px; }
.contact__inner {
  display: grid;
  gap: 48px;
}
@media (min-width: 900px) { .contact__inner { grid-template-columns: 1fr 1.6fr; gap: 72px; align-items: start; } }

.contact__info { display: flex; flex-direction: column; gap: 28px; }
.contact__item { display: flex; gap: 14px; align-items: flex-start; }
.contact__icon {
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  background: var(--green-pale);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact__icon svg { width: 18px; height: 18px; }
.contact__lbl { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--silver); margin-bottom: 2px; }
.contact__val { font-size: 15px; color: var(--ink); line-height: 1.5; }

.contact__map {
  margin-top: 8px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--mist);
}
.contact__map iframe { display: block; width: 100%; height: 200px; border: 0; }

/* Form */
.form-wrap {
  background: var(--smoke);
  border-radius: var(--r-2xl);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 480px) { .form-wrap { padding: 48px 40px; } }
.form-row { display: grid; gap: 14px; }
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--ink-mid); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--mist);
  border-radius: var(--r-md);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder { color: var(--silver); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(27,138,74,.1);
}
.form-textarea { resize: vertical; min-height: 116px; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E6E73' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-submit { width: 100%; padding: 15px 24px; font-size: 15px; border-radius: var(--r-lg); }

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.footer { background: var(--green-deep); padding: 64px 0 0; }
.footer__main {
  display: grid;
  gap: 40px;
  padding-bottom: 48px;
}
@media (min-width: 768px) { .footer__main { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; } }

.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
}
.footer__tagline { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.6; max-width: 260px; }

.footer__socials { display: flex; gap: 8px; margin-top: 4px; }
.footer__social {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.5);
  transition: color .18s, border-color .18s, background .18s;
}
.footer__social:hover { color: var(--white); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); }

.footer__col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 14px;
}
.footer__links { display: flex; flex-direction: column; gap: 9px; }
.footer__lnk { font-size: 14px; color: rgba(255,255,255,.55); transition: color .18s; }
.footer__lnk:hover { color: var(--white); }

/* Bottom bar */
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer__copy { font-size: 12px; color: rgba(255,255,255,.28); line-height: 1.5; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.footer__legal-btn { font-size: 12px; color: rgba(255,255,255,.55); transition: color .18s; text-decoration: none; background: none; border: none; cursor: pointer; font-family: inherit; padding: 0; }
.footer__legal-btn:hover { color: rgba(255,255,255,.9); }

/* Educational disclaimer */
.footer__edu {
  border-top: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.25);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
}
.footer__edu strong { color: rgba(255,255,255,.9); font-weight: 600; }

/* ══════════════════════════════════════════════════════
   BACK-TO-TOP / TOAST
══════════════════════════════════════════════════════ */
.btt {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(27,138,74,.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s var(--ease);
  z-index: 800;
}
.btt.show { opacity: 1; pointer-events: all; transform: none; }
.btt:hover { transform: translateY(-3px) !important; }

.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
  z-index: 999;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.link-btn { background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; font-size: inherit; color: var(--green); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.link-btn:hover { color: var(--green-dark); }

/* ══════════════════════════════════════════════════════
   MODALES LEGALES
══════════════════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 14, .65);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal__box {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 700px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  overflow: hidden;
  animation: modalIn .25s var(--ease) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--mist);
  flex-shrink: 0;
}
.modal__title {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}
.modal__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--steel);
  padding: 4px;
  border-radius: 6px;
  transition: color .2s, background .2s;
  flex-shrink: 0;
  margin-top: 2px;
}
.modal__close:hover { color: var(--ink); background: var(--mist); }

.modal__body {
  overflow-y: auto;
  padding: 24px 28px;
  flex: 1;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-mid);
  overscroll-behavior: contain;
}
.modal__body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 22px 0 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--green-pale);
}
.modal__body h3:first-of-type { margin-top: 0; }
.modal__body ul {
  padding-left: 20px;
  margin: 8px 0;
}
.modal__body li { margin-bottom: 4px; }
.modal__body p { margin: 8px 0; }
.modal__meta {
  font-size: 12px;
  color: var(--steel);
  margin-bottom: 18px !important;
  font-style: italic;
}

.modal__footer {
  padding: 16px 28px;
  border-top: 1px solid var(--mist);
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}
.modal__btn {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 10px 28px;
  border-radius: 99px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.modal__btn:hover { background: var(--green-dark, #145f34); transform: translateY(-1px); }

@media (max-width: 480px) {
  .modal__header,
  .modal__body,
  .modal__footer { padding-left: 18px; padding-right: 18px; }
}
