/* ==========================================================================
   Andean Resource Ventures — Hoja de estilos
   Paleta inspirada en la bandera de Colombia (oro, azul, rojo)
   ========================================================================== */

:root {
  --gold:      #AD7F33;
  --gold-dark: #8F6726;
  --blue:      #123C8C;
  --blue-dark: #0D2C68;
  --red:       #D62828;
  --charcoal:  #1D1D1F;
  --ink:       #2B2B2B;
  --gray:      #5B6470;
  --line:      #E3E5E9;
  --bg:        #FFFFFF;
  --bg-alt:    #F2F3F5;
  --white:     #FFFFFF;
  --radius:    14px;
  --shadow:    0 10px 30px rgba(29,29,31,.08);
  --shadow-lg: 0 20px 50px rgba(29,29,31,.14);
  --maxw:      1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Anton", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; color-scheme: light; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { color: var(--charcoal); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h1, h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.14; }
h3 { font-size: 1.2rem; }
p  { margin-bottom: 1rem; color: var(--gray); }

/* Flag accent bar (reusable) */
.flagbar { height: 5px; width: 100%; display: flex; }
.flagbar span { flex: 1; }
.flagbar .c1 { background: var(--gold); }
.flagbar .c2 { background: var(--blue); }
.flagbar .c3 { background: var(--red); }

/* ============================= HEADER / NAV ============================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 24px; max-width: 1400px; margin: 0 auto;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { height: 54px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 0; list-style: none; flex-wrap: wrap; }
.nav__links a {
  position: relative; display: inline-block;
  color: var(--charcoal); font-weight: 600; font-size: .64rem; letter-spacing: 0; text-transform: uppercase;
  padding: 8px 7px; border-radius: 8px; white-space: nowrap; transition: all .18s;
}
.nav__links a:hover { background: var(--bg-alt); color: var(--gold-dark); }
.nav__links a.active { color: var(--gold-dark); }
.nav__links a.active::after {
  content: ""; position: absolute; left: 7px; right: 7px; bottom: 1px;
  height: 2px; border-radius: 2px;
  background: var(--gold);
}

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 1.7rem; color: var(--charcoal); line-height: 1;
}
.lang-switch {
  display: inline-block; font-weight: 800; font-size: .78rem; letter-spacing: .05em;
  color: var(--gold-dark); border: 2px solid var(--gold); border-radius: 8px;
  padding: 5px 11px; margin-left: 6px; transition: all .18s;
}
.lang-switch:hover { background: var(--gold); color: var(--white); }

/* ============================= HERO ============================= */
.hero {
  position: relative; color: var(--white);
  background-size: cover; background-position: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,12,.55), rgba(20,18,12,.72));
}
.hero__inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 100px 24px 110px; }
.hero h1 { color: var(--white); max-width: 18ch; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero h1 .accent { color: var(--gold); display: block; }
.hero .kicker {
  display: inline-block; letter-spacing: .18em; text-transform: uppercase;
  font-size: .78rem; font-weight: 700; color: var(--gold);
  margin-bottom: 18px;
}
.hero p.lead { color: rgba(255,255,255,.88); font-size: 1.18rem; max-width: 54ch; margin: 20px 0 30px; }
.hero .tagline { font-style: italic; color: var(--gold); font-weight: 600; margin-top: 8px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Page banner (interior pages) */
.banner { background: var(--bg); color: var(--charcoal); border-bottom: 1px solid var(--line); }
.banner__inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 44px; }
.banner h1 { color: var(--charcoal); }
.banner h1 .accent { color: var(--gold); }
.banner .kicker { color: var(--gold-dark); letter-spacing: .16em; text-transform: uppercase; font-size: .76rem; font-weight: 700; }
.banner p { color: var(--gray); max-width: 60ch; margin-top: 10px; }

/* Full-width featured photo band under a banner */
.feature-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 36px 0 0; position: relative; }
.feature-photo img { width: 100%; max-height: 420px; object-fit: cover; display: block; }

/* Visible caption overlay for single feature/split photos */
.media-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.6), transparent);
  color: #fff; font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; padding: 22px 18px 12px;
}

/* Tagline band (rule-flanked closing statement) */
.tagline-band { padding: 46px 0; background: var(--bg-alt); }
.tagline-band .wrap { display: flex; align-items: center; gap: 24px; justify-content: center; }
.tagline-band hr { flex: 1; max-width: 160px; border: none; border-top: 1px solid var(--gold); }
.tagline-band p {
  margin: 0; color: var(--charcoal); font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; font-size: .95rem; text-align: center; white-space: nowrap;
}
.tagline-band .accent { color: var(--gold-dark); }
@media (max-width: 700px) {
  .tagline-band p { white-space: normal; font-size: .82rem; }
  .tagline-band hr { max-width: 40px; }
}

/* ============================= BUTTONS ============================= */
.btn {
  display: inline-block; font-weight: 700; font-size: .95rem;
  padding: 13px 26px; border-radius: 10px; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn--gold { background: var(--gold); color: var(--charcoal); }
.btn--gold:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline { border-color: rgba(255,255,255,.75); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.14); color:#fff; transform: translateY(-2px); }
.btn--uppercase { text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.btn .arrow { margin-left: 8px; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); color:#fff; transform: translateY(-2px); box-shadow: var(--shadow); }

/* ============================= SECTIONS ============================= */
section.block { padding: 74px 0; }
section.block.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .kicker { color: var(--blue); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; font-size: .76rem; }
.section-head h2 { margin: 8px 0 12px; }

/* Grid of cards */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(18,60,140,.08); color: var(--blue); font-size: 1.5rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: .96rem; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: .9rem; }

/* Team grid (Quiénes Somos / About Us) */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.team-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .2s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card .photo { aspect-ratio: 4 / 5; background: var(--bg-alt); overflow: hidden; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.team-card .photo img.pos-top { object-position: center 20%; }
.team-card .body { padding: 24px 22px; }
.team-card h3 { margin-bottom: 2px; }
.team-card .role {
  display: block; color: var(--blue); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px;
}
.team-card p { font-size: .92rem; margin-bottom: 10px; }
.team-card p:last-child { margin-bottom: 0; }

/* Services row: 7-up icon/photo cards on desktop, compact list on mobile */
.svc-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; border-top: 1px solid var(--line); }
.svc-item {
  display: flex; flex-direction: column; padding: 28px 16px;
  border-right: 1px solid var(--line); text-align: center; transition: background .18s;
}
.svc-item:last-child { border-right: none; }
.svc-item:hover { background: var(--bg-alt); }
.svc-icon {
  width: 40px; height: 40px; margin: 0 auto 12px; color: var(--gold-dark);
}
.svc-icon svg { width: 100%; height: 100%; display: block; }
.svc-label {
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--charcoal); margin-bottom: 16px; line-height: 1.3;
}
.svc-label .n { color: var(--gold-dark); margin-right: 4px; }
.svc-photo { aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; margin-bottom: 12px; background: var(--bg-alt); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-desc { font-size: .82rem; color: var(--gray); margin-bottom: 0; }
.svc-chevron { display: none; }

@media (max-width: 940px) {
  .svc-row { display: flex; flex-direction: column; border-top: none; }
  .svc-item {
    flex-direction: row; align-items: center; gap: 14px; text-align: left;
    padding: 14px 4px; border-right: none; border-bottom: 1px solid var(--line);
  }
  .svc-icon { width: 26px; height: 26px; margin: 0; flex: 0 0 auto; }
  .svc-label { margin-bottom: 0; flex: 1 1 auto; font-size: .8rem; }
  .svc-photo {
    width: 54px; height: 54px; flex: 0 0 auto; aspect-ratio: auto; margin-bottom: 0;
    border-radius: 8px;
  }
  .svc-desc { display: none; }
  .svc-chevron { display: block; flex: 0 0 auto; color: var(--gold-dark); font-size: 1.3rem; line-height: 1; }
}

/* Photo grid (field photo galleries: biodiversity, field methods, etc.) */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.photo-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-alt); border: 1px solid var(--line); }
.photo-item .photo { aspect-ratio: 4 / 5; overflow: hidden; }
.photo-item .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo-item:hover .photo img { transform: scale(1.06); }
.photo-item .cap { padding: 10px 12px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--gray); }

@media (max-width: 940px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Feature list with checkmarks */
.feature-list { list-style: none; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.feature-list li::before {
  content: "✓"; flex: 0 0 24px; height: 24px; width: 24px; border-radius: 50%;
  background: rgba(173,127,51,.18); color: var(--gold-dark); font-weight: 800;
  display: grid; place-items: center; font-size: .85rem; margin-top: 2px;
}

/* "What this means for you" translator box */
.tldr { background: var(--bg-alt); border-left: 4px solid var(--gold); border-radius: 10px; padding: 18px 22px; }
.tldr .tldr-label { display: block; color: var(--gold-dark); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.tldr p { margin: 0; color: var(--charcoal); font-weight: 600; font-size: 1rem; }

/* Proof / credibility line */
.proof { font-size: .92rem; color: var(--gray); margin-top: 14px; }
.proof .chk { color: var(--gold-dark); font-weight: 800; }

/* Icon list: flat capability names as compact tiles */
.icon-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.icon-list li { display: flex; align-items: center; gap: 10px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.icon-list li .ic { font-size: 1.15rem; flex: 0 0 auto; }
@media (max-width: 640px) { .icon-list { grid-template-columns: 1fr; } }

/* Browse-by tag pills (display-only, e.g. commodity / stage) */
.tag-block { margin-top: 20px; }
.tag-block + .tag-block { margin-top: 18px; }
.tag-block-label { display: block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); margin-bottom: 8px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: .82rem; font-weight: 600; color: var(--charcoal); }

/* Horizontal workflow strip */
.workflow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0; }
.workflow .wf-step { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--charcoal); white-space: nowrap; }
.workflow .wf-arrow { color: var(--gold-dark); font-size: 1.2rem; padding: 0 8px; }
@media (max-width: 780px) {
  .workflow { flex-direction: column; }
  .workflow .wf-arrow { transform: rotate(90deg); padding: 2px 0; }
}

/* Two-column split */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.split .media {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: var(--bg-alt); border: 1px solid var(--line);
  min-height: 320px; display: grid; place-items: center; color: var(--gray);
  padding: 30px; text-align:center;
}
.split .media--photo { padding: 0; align-self: stretch; position: relative; }
.split .media--photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stats .num { font-size: 2.5rem; font-weight: 800; color: var(--blue); line-height: 1; }
.stats .num span { color: var(--gold); }
.stats .lbl { font-size: .9rem; color: var(--gray); margin-top: 6px; }

/* Process steps */
.steps { counter-reset: step; display: grid; gap: 22px; }
.steps .step { display: flex; gap: 18px; align-items: flex-start; }
.steps .step .n {
  counter-increment: step; flex: 0 0 44px; height: 44px; width: 44px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center;
}
.steps .step .n::before { content: counter(step); }

/* CTA band */
.cta {
  background: var(--bg-alt); border: 1px solid var(--line);
  color: var(--charcoal); border-radius: 18px; padding: 48px 40px; text-align: center; box-shadow: var(--shadow);
}
.cta h2 { color: var(--charcoal); }
.cta p { color: var(--gray); max-width: 56ch; margin: 10px auto 24px; }

/* ============================= CONTACT ============================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.info-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.info-item .ic {
  flex: 0 0 46px; height: 46px; width: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(18,60,140,.08); color: var(--blue); font-size: 1.2rem;
}
.info-item h4 { margin-bottom: 2px; }
.info-item p { margin: 0; font-size: .95rem; }

form.frm { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.frm label { display: block; font-weight: 600; font-size: .88rem; color: var(--charcoal); margin-bottom: 6px; }
.frm .field { margin-bottom: 18px; }
.frm input, .frm select, .frm textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .95rem; background: var(--bg); transition: border .18s, box-shadow .18s;
}
.frm input:focus, .frm select:focus, .frm textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,60,140,.12); background:#fff;
}
.frm textarea { resize: vertical; min-height: 120px; }
.frm .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================= WHATSAPP FLOAT ============================= */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.28); transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 26px rgba(0,0,0,.32); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; display: block; }
@media (max-width: 640px) {
  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
  .whatsapp-float svg { width: 27px; height: 27px; }
}

/* ============================= FOOTER ============================= */
.site-footer { background: var(--bg-alt); color: var(--gray); margin-top: 20px; border-top: 1px solid var(--line); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 24px 34px; max-width: var(--maxw); margin: 0 auto; }
.site-footer .brand-chip { margin-bottom: 16px; }
.site-footer img { height: 54px; width: auto; display: block; }
.site-footer h4 { color: var(--charcoal); font-size: .95rem; margin-bottom: 14px; letter-spacing: .04em; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--gray); font-size: .92rem; }
.site-footer a:hover { color: var(--gold-dark); }
.site-footer .bottom { border-top: 1px solid var(--line); padding: 18px 24px; text-align: center; font-size: .82rem; color: var(--gray); }

/* ============================= RESPONSIVE ============================= */
/* Nav collapses earlier than the rest of the layout: all 9 links + EN
   switch stay flat (no dropdown) at a compact size, which needs about
   1290px to lay out on one line without wrapping. */
@media (max-width: 1320px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    grid-template-columns: repeat(2, 1fr); gap: 10px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 14px 16px 20px;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav__links.open { display: grid; }
  .nav__links li { min-width: 0; }
  .nav__links a {
    display: flex; align-items: center; justify-content: center; text-align: center;
    font-size: .8rem; letter-spacing: 0; padding: 14px 10px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--bg-alt); min-height: 46px; min-width: 0;
    word-break: break-word; overflow-wrap: break-word; white-space: normal;
  }
  .nav__links a:hover { background: var(--bg-alt); border-color: var(--gold); }
  .nav__links a.active { background: var(--gold); color: #fff; border-color: var(--gold); }
  .nav__links a.active::after { display: none; }
  .lang-switch { margin-left: 0; width: 100%; padding: 14px 10px; }
}

@media (max-width: 940px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .frm .row2 { grid-template-columns: 1fr; }
}
