/* ==========================================================
   Econode - brand stylesheet (Bootstrap 5 companion)
   All custom classes are prefixed "en-" to avoid clashes.
   ========================================================== */

:root {
  /* Brand palette (sampled from logo + deck) */
  --en-paper: #F3EFE7;      /* page background */
  --en-paper-tint: #EAE4D8; /* alternate section background */
  --en-sage: #66905B;       /* logo green */
  --en-sage-soft: #86A97F;  /* deck heading green */
  --en-forest: #2C4228;     /* dark band background */
  --en-ink: #1E221D;        /* body text */
  --en-muted: #5B6157;      /* secondary text */
  --en-rule: #D3CBBB;       /* thin lines */

  --en-font-head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --en-font-body: "Lexend", "Segoe UI", Roboto, Arial, sans-serif;

  --en-nav-h: 76px;

  /* Bootstrap overrides */
  --bs-body-font-family: var(--en-font-body);
  --bs-body-color: var(--en-ink);
  --bs-body-bg: var(--en-paper);
  --bs-link-color: var(--en-sage);
  --bs-link-hover-color: var(--en-forest);
}

html { scroll-padding-top: var(--en-nav-h); }

body {
  font-family: var(--en-font-body);
  font-weight: 300;
  line-height: 1.65;
  color: var(--en-ink);
  background: var(--en-paper) url("../img/paper.jpg") repeat;
  background-size: 1152px auto;
}

::selection { background: var(--en-sage-soft); color: #fff; }

a { text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--en-sage);
  outline-offset: 3px;
}

/* ---------- Typography ---------- */
.en-h2 {
  font-family: var(--en-font-head);
  font-weight: 900;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--en-sage-soft);
  margin-bottom: 1.5rem;
}

.en-h3 {
  font-family: var(--en-font-body);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.en-statement {
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.3;
  max-width: 30ch;
  margin-bottom: 1rem;
}
.en-statement-sm { font-size: clamp(1.2rem, 2vw, 1.5rem); max-width: 26ch; }

.en-lead {
  font-size: 1.15rem;
  color: var(--en-muted);
  max-width: 58ch;
}

/* ---------- Buttons ---------- */
.en-btn-primary,
.en-btn-ghost,
.en-btn-client {
  font-weight: 500;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.en-btn-primary { background: var(--en-sage); color: #fff; border: 1px solid var(--en-sage); }
.en-btn-primary:hover { background: var(--en-forest); border-color: var(--en-forest); color: #fff; }

.en-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); }
.en-btn-ghost:hover { background: #fff; color: var(--en-forest); }

.en-btn-client {
  padding: 0.45rem 1.1rem;
  font-size: 0.95rem;
  border: 1px solid currentColor;
  color: inherit;
}
.en-btn-client:hover { background: var(--en-sage); border-color: var(--en-sage); color: #fff; }

/* ---------- Navbar ---------- */
.en-nav {
  min-height: var(--en-nav-h);
  padding-top: env(safe-area-inset-top, 0px);
  color: #fff;
  transition: background-color .3s, box-shadow .3s, color .3s;
}

.en-nav .nav-link { color: inherit; font-weight: 400; opacity: .9; }
.en-nav .nav-link:hover { opacity: 1; color: inherit; }
.en-nav .navbar-toggler { color: inherit; border: 0; font-size: 1.8rem; }

/* Animated burger menu */
.en-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.en-burger:focus-visible {
  outline: 3px solid var(--en-sage);
  outline-offset: 3px;
}
.en-burger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease, width .3s ease;
  transform-origin: center;
}
/* Open state: rotate top & bottom bars into an X, hide middle */
.en-burger[aria-expanded="true"] .en-burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.en-burger[aria-expanded="true"] .en-burger-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.en-burger[aria-expanded="true"] .en-burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.en-nav-logo { height: 38px; width: auto; }
.en-nav-logo-dark { display: none; }

/* State after scrolling (added by main.js) */
.en-nav.is-scrolled {
  background: rgba(243, 239, 231, .96);
  box-shadow: 0 1px 0 var(--en-rule);
  color: var(--en-ink);
}
.en-nav.is-scrolled .en-nav-logo-light { display: none; }
.en-nav.is-scrolled .en-nav-logo-dark { display: inline; }

@media (max-width: 991.98px) {
  .en-nav .navbar-collapse {
    background: var(--en-paper);
    color: var(--en-ink);
    margin: 0.5rem -0.75rem 0;
    padding: 1rem 1.25rem 1.25rem;
    border-radius: 0 0 12px 12px;
  }
}

/* ---------- Hero ---------- */
.en-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: var(--en-forest) url("../img/hero-poster.jpg") center / cover no-repeat;
}
.en-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.en-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,28,18,.35) 0%, rgba(20,28,18,0) 30%, rgba(20,28,18,.65) 100%);
}
.en-hero-content {
  position: relative;
  padding-bottom: clamp(3rem, 9vh, 6rem);
}
.en-hero-title {
  font-family: var(--en-font-head);
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 8.5rem);
  line-height: .88;
  letter-spacing: -0.05em;
  margin-bottom: 1.5rem;
}
.en-hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 400;
  max-width: 40ch;
  margin-bottom: 2rem;
}

@media (prefers-reduced-motion: reduce) {
  .en-hero-video { display: none; }
}

/* ---------- Sections ---------- */
.en-section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.en-section-tint { background-color: rgba(214, 205, 186, .35); }

.en-section-forest {
  background: var(--en-forest);
  color: #EEF2EA;
}
.en-section-forest .en-h2 { color: #fff; }
.en-section-forest .en-lead { color: rgba(238, 242, 234, .8); }
.en-section-forest a { color: #CFE3C8; }

/* Problem points: rule on top, no cards */
.en-point { border-top: 2px solid var(--en-sage-soft); padding-top: 1.25rem; }
.en-point p { color: var(--en-muted); }
.en-questions { list-style: none; padding: 0; margin: 0; }
.en-questions li {
  font-weight: 500;
  padding: .45rem 0;
  border-bottom: 1px solid var(--en-rule);
}

/* Econode pillars */
.en-pillar {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,.18);
}
.en-pillar:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.en-pillar .en-h3 {
  font-family: var(--en-font-head);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.en-pillar-formula { color: var(--en-sage-soft); font-weight: 500; margin-bottom: .4rem; }
.en-pillar p:last-child { margin-bottom: 0; color: rgba(238,242,234,.8); }
.en-forest-icon { width: 120px; opacity: .25; margin-top: 2rem; }

/* Approach steps (a real sequence -> numbered) */
.en-steps {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
}
.en-steps::before {
  content: "";
  position: absolute;
  top: 1.6rem;
  left: 1.6rem;
  right: 0;
  height: 2px;
  background: var(--en-rule);
}
.en-step { position: relative; }
.en-step p { color: var(--en-muted); }
.en-step-n {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--en-sage);
  color: #fff;
  font-family: var(--en-font-head);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 767.98px) {
  .en-steps { grid-template-columns: 1fr; }
  .en-steps::before { top: 0; bottom: 0; left: 1.6rem; right: auto; width: 2px; height: auto; }
  .en-step { padding-left: 4.5rem; }
  .en-step-n { position: absolute; left: 0; top: 0; }
}

/* Data sources */
.en-sources-title { color: var(--en-sage); margin-bottom: 1rem; }
.en-sources { margin: 0; }
.en-sources > div {
  display: grid;
  grid-template-columns: minmax(7rem, 38%) 1fr;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--en-rule);
}
.en-sources dt { font-family: var(--en-font-head); font-weight: 800; letter-spacing: -0.01em; }
.en-sources dd { margin: 0; color: var(--en-muted); }

/* Roadmap timeline */
.en-timeline {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 2px solid var(--en-ink);
}
.en-tl-item { position: relative; padding-top: 1.75rem; }
.en-tl-item p:last-child { color: var(--en-muted); }
.en-tl-dot {
  position: absolute;
  top: -9px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--en-paper);
  border: 2px solid var(--en-ink);
}
.en-tl-status { font-size: .9rem; color: var(--en-muted); margin-bottom: .35rem; }
.en-tl-item.is-current .en-tl-dot { background: var(--en-sage); border-color: var(--en-sage); box-shadow: 0 0 0 6px rgba(102,144,91,.2); }
.en-tl-item.is-current .en-tl-status { color: var(--en-sage); font-weight: 600; }
@media (max-width: 991.98px) {
  .en-timeline { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
}
@media (max-width: 575.98px) {
  .en-timeline { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--en-ink); padding-left: 1.75rem; }
  .en-tl-item { padding-top: 0; }
  .en-tl-dot { top: .3rem; left: calc(-1.75rem - 9px); }
}

/* Team */
.en-person { margin: 0; }
.en-person img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1.25rem;
}
.en-person .en-h3 { margin-bottom: .1rem; }
.en-person-role { color: var(--en-sage); font-weight: 500; margin-bottom: .2rem; }
.en-person p:last-child { color: var(--en-muted); }
.en-quote {
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.5;
  border-left: 3px solid var(--en-sage-soft);
  padding-left: 1.5rem;
  margin: 0;
}

/* Contact */
.en-contact-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.en-contact-list li { padding: .4rem 0; font-size: 1.1rem; }
.en-contact-list i { color: var(--en-sage-soft); margin-right: .5rem; }
#contacto{margin-bottom : 0px; padding-bottom: 40px;}

.en-form .form-label { font-weight: 500; font-size: .95rem; }
.en-form .form-control {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: 8px;
  padding: .75rem 1rem;
}
.en-form .form-control:focus {
  background: rgba(255,255,255,.1);
  border-color: var(--en-sage-soft);
  box-shadow: 0 0 0 .2rem rgba(134,169,127,.35);
  color: #fff;
}

/* Footer */
.en-footer { padding: 3.5rem 0 2rem; border-top: 1px solid var(--en-rule); }
.en-footer-logo { width: 100%; max-width: 280px; }
.en-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem 1.75rem;
}
.en-footer-links a { color: var(--en-ink); text-decoration: none; }
.en-footer-links a:hover { color: var(--en-sage); text-decoration: underline; }
.en-footer-copy { margin: 4rem 10% 0; font-size: .9rem; color: #ffff; }
@media (max-width: 767.98px) {
  .en-footer-links { justify-content: flex-start; }
}


/* ---------- Data-source carousel ---------- */
.en-sources-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.en-sources-heading .en-h2 { margin-bottom: 1rem; }
.en-sources-controls { display: flex; gap: .6rem; flex-shrink: 0; }
.en-source-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--en-rule);
  border-radius: 50%;
  background: transparent;
  color: var(--en-forest);
  font-size: 1.15rem;
  transition: background .2s, color .2s, border-color .2s;
}
.en-source-arrow:hover { background: var(--en-forest); color: #fff; border-color: var(--en-forest); }
.en-source-panel {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid rgba(91, 97, 87, .14);
  border-radius: 14px;
  background: rgba(255,255,255,.38);
  box-shadow: 0 18px 50px rgba(44,66,40,.055);
}
.en-source-panel-top, .en-source-panel-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.en-source-kicker {
  color: var(--en-sage);
  font-weight: 600;
  font-size: .95rem;
}
.en-source-count {
  color: var(--en-muted);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}
.en-source-slides { margin: 1.5rem 0 2rem; }
.en-source-slide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  animation: en-source-enter .45s ease both;
}
.en-source-slide[hidden] { display: none; }
.en-source-card {
  min-height: 220px;
  padding: 1.35rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-top: 1px solid var(--en-rule);
  border-bottom: 1px solid var(--en-rule);
}
.en-source-mark {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-bottom: 1.15rem;
  border-radius: 18px 18px 18px 5px;
  background: var(--en-forest);
  color: #fff;
  font-family: var(--en-font-head);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -.04em;
}
.mark-ine, .mark-gbif { background: #47728a; }
.mark-dgt, .mark-ersar { background: #7c8b56; }
.mark-ipma, .mark-cop { background: #426f9c; }
.mark-icnf, .mark-gfw { background: #55764a; }
.mark-eea { background: #315d86; }
.mark-wri { background: #3d7d72; }
.mark-encore { background: #8a9a5b; }
.en-source-card h3 {
  font-family: var(--en-font-head);
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 .35rem;
}
.en-source-card p {
  color: var(--en-muted);
  font-size: .92rem;
  line-height: 1.45;
  margin: 0 0 1rem;
}
.en-source-origin {
  margin-top: auto;
  color: var(--en-sage);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.en-source-panel-bottom { padding-top: 1.2rem; border-top: 1px solid var(--en-rule); }
.en-source-dots { display: flex; gap: .55rem; }
.en-source-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #c4c8bb;
  transition: width .25s, background .25s;
}
.en-source-dots button.is-active { width: 25px; background: var(--en-sage); }
.en-source-caption { color: var(--en-muted); font-size: .8rem; text-align: right; }
@keyframes en-source-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 767.98px) {
  .en-sources-heading { align-items: flex-start; }
  .en-source-slide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .en-source-card { min-height: 205px; padding: 1rem .65rem; }
  .en-source-mark { width: 56px; height: 56px; }
  .en-source-caption { max-width: 55%; }
}
@media (max-width: 420px) {
  .en-source-panel-bottom { align-items: flex-start; flex-direction: column; }
  .en-source-caption { max-width: none; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .en-source-slide { animation: none; }
}
