/*
Theme Name: LibreInnova
Description: Tema a medida para libreinnova.com — landing bilingüe (ES/EN), construido a partir del mockup aprobado.
Author: LibreInnova
Version: 1.0
Text Domain: libreinnova
*/

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

:root {
  --verde:     #2d6a4f;
  --verde-mid: #40916c;
  --verde-l:   #52b788;
  --verde-xl:  #b7e4c7;
  --verde-bg:  #f0faf4;
  --tierra:    #c4753a;
  --tierra-l:  #e8956a;
  --blanco:    #ffffff;
  --ink:       #1a2e22;
  --ink-mid:   #3d5a47;
  --ink-soft:  #7a9d87;
  --border:    #d4e8db;
  --surface:   #f5faf7;
  --radius:    10px;
  --radius-lg: 18px;
  --shadow:    0 4px 20px rgba(26,46,34,.09);
  --shadow-lg: 0 16px 56px rgba(26,46,34,.14);
  --display:   'Playfair Display', Georgia, serif;
  --body:      'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--blanco); line-height: 1.6; overflow-x: hidden; }

/* ── LANG BAR ── */
.lang-bar {
  background: var(--verde); padding: 6px 5vw;
  display: flex; justify-content: space-between; align-items: center;
}
.lang-bar-left { color: rgba(255,255,255,.65); font-size: .75rem; letter-spacing: .04em; }
.lang-bar-left strong { color: rgba(255,255,255,.9); }
.lang-btns { display: flex; gap: 6px; }
.lang-btn {
  background: none; border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.6);
  padding: 3px 10px; border-radius: 100px; font-size: .73rem; cursor: pointer;
  font-family: var(--body); transition: all .2s;
}
.lang-btn.active, .lang-btn:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.5); color: #fff; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 5vw; height: 70px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-box {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; color: #fff; font-size: 1rem;
  letter-spacing: -.03em; flex-shrink: 0; overflow: hidden;
}
.nav-logo-box img, .footer-logo-box img { width: 100%; height: 100%; object-fit: cover; }
.nav-name {
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  color: var(--ink); line-height: 1.1; letter-spacing: -.02em;
}
.nav-name span { display: block; font-size: .67rem; font-weight: 400; font-family: var(--body); color: var(--ink-soft); letter-spacing: .07em; text-transform: uppercase; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--ink-mid); text-decoration: none; font-size: .87rem; font-weight: 400; transition: color .2s; }
.nav-links a:hover { color: var(--verde); }
.nav-cta {
  background: var(--verde); color: #fff; padding: .55rem 1.3rem;
  border-radius: var(--radius); font-size: .87rem; font-weight: 500;
  text-decoration: none; transition: background .2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--verde-mid); }

/* ── HERO ── */
.hero {
  min-height: 94vh;
  background:
    linear-gradient(160deg, #163d29 0%, #2d6a4f 50%, #3f8d68 100%);
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 2rem;
  padding: 5rem 5vw 5rem; position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 75% 55%, rgba(45,106,79,.25) 0%, transparent 60%),
    radial-gradient(ellipse 35% 45% at 10% 75%, rgba(196,117,58,.12) 0%, transparent 55%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 80px;
  background: var(--blanco); clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-text { position: relative; z-index: 1; }

.hero-flag-pill {
  display: inline-block; margin-bottom: 1.1rem;
  padding: 5px 14px; border-radius: 100px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85); font-size: .78rem; font-weight: 500;
}

.hero h1 {
  font-family: var(--display); font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 700; line-height: 1.08; color: #fff;
  letter-spacing: -.02em; margin-bottom: 1.25rem;
}
.hero h1 .italic { font-style: italic; font-weight: 400; color: var(--verde-xl); }
.hero h1 .tierra { color: var(--tierra-l); }
.hero-sub { color: rgba(255,255,255,.65); font-size: 1.05rem; line-height: 1.75; max-width: 470px; margin-bottom: 2rem; }
.hero-sub strong { color: rgba(255,255,255,.9); font-weight: 500; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-verde {
  background: var(--verde-l); color: var(--ink); padding: .9rem 1.85rem;
  border-radius: var(--radius); font-size: .95rem; font-weight: 600;
  text-decoration: none; transition: all .2s;
  box-shadow: 0 4px 24px rgba(82,183,136,.3);
}
.btn-verde:hover { background: #fff; transform: translateY(-2px); }
.btn-ghost-hero {
  background: transparent; color: rgba(255,255,255,.85); padding: .9rem 1.85rem;
  border-radius: var(--radius); font-size: .95rem; font-weight: 400;
  text-decoration: none; border: 1px solid rgba(255,255,255,.2); transition: all .2s;
}
.btn-ghost-hero:hover { background: rgba(255,255,255,.08); }
.hero-trust {
  display: flex; gap: 1.5rem; margin-top: 2.25rem; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.5); font-size: .8rem; }
.trust-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--verde-l); flex-shrink: 0; }

/* ── HERO VISUAL: España → LatAm ── */
.hero-visual { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
.bridge-visual-wrap { position: relative; width: 100%; max-width: 480px; }
.bridge-svg-container { width: 100%; aspect-ratio: 1; position: relative; }
.bridge-canvas { width: 100%; height: 100%; }


/* ── SECTIONS ── */
section { padding: 6rem 5vw; }
.max-w { max-width: 1200px; margin: 0 auto; }
.label {
  font-size: .74rem; font-weight: 600; color: var(--verde-mid);
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: .6rem;
}
.section-title {
  font-family: var(--display); font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 700; color: var(--ink); line-height: 1.15;
  letter-spacing: -.02em; max-width: 640px;
}
.section-title em { font-style: italic; color: var(--verde); font-weight: 400; }
.section-body { color: var(--ink-mid); font-size: 1rem; line-height: 1.75; max-width: 540px; margin-top: .85rem; }

/* ── POR QUÉ LATAM ── */
.latam-bg { background: var(--surface); }
.latam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.latam-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.lstat {
  background: var(--blanco); border-radius: var(--radius-lg); padding: 1.5rem;
  border: 1px solid var(--border); text-align: center;
  transition: all .3s;
}
.lstat:hover { border-color: var(--verde-l); box-shadow: var(--shadow); }
.lstat-val {
  font-family: var(--display); font-size: 2.2rem; font-weight: 700;
  color: var(--verde); line-height: 1;
}
.lstat-lbl { font-size: .78rem; color: var(--ink-soft); margin-top: 6px; line-height: 1.4; }
.latam-points { list-style: none; display: flex; flex-direction: column; gap: .9rem; margin-top: 1.5rem; }
.latam-points li { display: flex; align-items: flex-start; gap: 12px; font-size: .92rem; color: var(--ink-mid); line-height: 1.6; }
.v-check { width: 22px; height: 22px; border-radius: 50%; background: var(--verde-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; font-size: .7rem; color: var(--verde); font-weight: 700; }

/* ── FASES: ATERRIZA → CONSTITUYE → OPERA ── */
.fases-bg { background: var(--blanco); }
.fases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 3.5rem; position: relative; }
.fases-grid::before {
  content: '';
  position: absolute; top: 3rem; left: 16.66%; right: 16.66%; height: 2px;
  background: linear-gradient(90deg, var(--verde-l), var(--tierra-l), var(--verde-l));
  opacity: .3;
}
.fase {
  text-align: center; padding: 2rem 1.5rem;
  position: relative;
}
.fase-num {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; position: relative; z-index: 1;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: #fff;
}
.fase:nth-child(1) .fase-num { background: var(--verde); box-shadow: 0 0 0 6px rgba(45,106,79,.12); }
.fase:nth-child(2) .fase-num { background: var(--tierra); box-shadow: 0 0 0 6px rgba(196,117,58,.12); }
.fase:nth-child(3) .fase-num { background: var(--verde-mid); box-shadow: 0 0 0 6px rgba(64,145,108,.12); }
.fase-tag {
  display: inline-block; padding: 3px 12px; border-radius: 100px;
  font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: .75rem;
}
.fase:nth-child(1) .fase-tag { background: rgba(45,106,79,.1); color: var(--verde); }
.fase:nth-child(2) .fase-tag { background: rgba(196,117,58,.1); color: var(--tierra); }
.fase:nth-child(3) .fase-tag { background: rgba(64,145,108,.1); color: var(--verde-mid); }
.fase h3 { font-family: var(--display); font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-bottom: .6rem; }
.fase p { font-size: .87rem; color: var(--ink-mid); line-height: 1.65; }
.fase-items { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.fase-items li { font-size: .8rem; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.fase-items li::before { content: '→'; color: var(--verde-l); font-size: .75rem; }

/* ── SERVICIOS ── */
.servicios-bg { background: var(--surface); }
.servicios-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 3.5rem; }
.servicios-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.svc-card {
  border-radius: var(--radius-lg); padding: 2.25rem 2rem;
  border: 1.5px solid var(--border); background: var(--blanco);
  transition: all .3s; position: relative; overflow: hidden;
}
.svc-card::after {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--verde), var(--verde-l));
  transform: scaleY(0); transform-origin: top; transition: transform .3s;
}
.svc-card:hover { border-color: var(--verde-l); box-shadow: var(--shadow); transform: translateY(-3px); }
.svc-card:hover::after { transform: scaleY(1); }
.svc-icon { font-size: 1.75rem; margin-bottom: 1rem; }
.svc-card h3 { font-family: var(--display); font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: .55rem; }
.svc-card p { font-size: .87rem; color: var(--ink-mid); line-height: 1.65; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 1rem; }
.stag { padding: 3px 9px; border-radius: 100px; font-size: .7rem; font-weight: 500; background: var(--verde-bg); color: var(--verde); border: 1px solid var(--verde-xl); }

/* ── MERCADOS ── */
.mercados-bg { background: var(--blanco); }
.mercados-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.mercado-card {
  border-radius: var(--radius-lg); padding: 1.75rem 1.5rem;
  border: 1.5px solid var(--border); background: var(--blanco);
  text-align: center; transition: all .3s;
}
.mercado-card:hover { border-color: var(--verde-l); box-shadow: var(--shadow); transform: translateY(-3px); }
.mercado-flag { font-size: 2.2rem; margin-bottom: .75rem; display: block; }
.mercado-card h4 { font-family: var(--display); font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.mercado-card p { font-size: .8rem; color: var(--ink-mid); line-height: 1.55; }

/* ── POR QUÉ LIBREINNOVA ── */
.why-bg { background: linear-gradient(160deg, #163d29 0%, #2d6a4f 100%); }
.why-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.why-title { color: #fff; }
.why-label { color: var(--verde-l); }
.why-body { color: rgba(255,255,255,.6); }
.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.why-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: all .3s;
}
.why-card:hover { background: rgba(255,255,255,.1); border-color: rgba(82,183,136,.3); }
.why-card-icon { font-size: 1.5rem; margin-bottom: .75rem; }
.why-card h4 { font-family: var(--display); font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: .4rem; }
.why-card p { font-size: .8rem; color: rgba(255,255,255,.5); line-height: 1.6; }

/* ── QUIÉNES SOMOS ── */
.founder-bg { background: var(--blanco); padding-top: 4.5rem; padding-bottom: 4.5rem; }
.founder-inner { display: flex; align-items: center; gap: 2.5rem; max-width: 720px; margin: 0 auto; }
.founder-avatar {
  flex-shrink: 0; width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-mid) 100%);
  color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -.02em; overflow: hidden;
}
.founder-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.founder-name { font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: var(--ink); margin: .3rem 0 0; }
.founder-role { font-size: .85rem; color: var(--verde-mid); font-weight: 600; margin: .15rem 0 .75rem; }
.founder-bio { font-size: .92rem; color: var(--ink-mid); line-height: 1.7; }
.founder-linkedin {
  display: inline-flex; align-items: center; gap: 7px; margin-top: .9rem;
  color: var(--verde-mid); font-size: .83rem; font-weight: 600; text-decoration: none;
}
.founder-linkedin:hover { color: var(--verde); text-decoration: underline; }
@media (max-width: 640px) {
  .founder-inner { flex-direction: column; text-align: center; gap: 1.25rem; }
}

/* ── CTA ── */
.cta-section {
  background: var(--surface); padding: 7rem 5vw;
  text-align: center; position: relative; overflow: hidden;
}
.cta-inner {
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-mid) 100%);
  border-radius: 24px; padding: 5rem 3rem;
  max-width: 800px; margin: 0 auto;
  position: relative; overflow: hidden;
  box-shadow: 0 24px 64px rgba(45,106,79,.3);
}
.cta-inner::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 65%);
  border-radius: 50%;
}
.cta-inner h2 {
  font-family: var(--display); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; color: #fff; letter-spacing: -.02em; margin-bottom: .85rem;
  position: relative;
}
.cta-inner h2 em { font-style: italic; font-weight: 400; }
.cta-inner p { color: rgba(255,255,255,.7); font-size: 1rem; margin-bottom: 2.25rem; position: relative; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }
.btn-blanco { background: #fff; color: var(--verde); padding: .9rem 2rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; font-size: .95rem; transition: all .2s; }
.btn-blanco:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.15); }
.btn-ghost-cta { background: transparent; color: #fff; padding: .9rem 2rem; border-radius: var(--radius); font-weight: 400; text-decoration: none; font-size: .95rem; border: 1px solid rgba(255,255,255,.3); transition: all .2s; }
.btn-ghost-cta:hover { background: rgba(255,255,255,.1); }

/* ── LEAD FORM ── */
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 auto; max-width: 640px; text-align: left; }
.lead-field { display: flex; flex-direction: column; gap: .35rem; }
.lead-field.full { grid-column: 1 / -1; }
.lead-field label { font-size: .78rem; color: rgba(255,255,255,.7); font-weight: 500; }
.lead-field label .req { color: var(--tierra-l); }
.lead-field input, .lead-field textarea, .lead-field select {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius); padding: .65rem .85rem; color: #fff;
  font-family: var(--body); font-size: .92rem; width: 100%;
  -webkit-appearance: none; appearance: none;
}
.lead-field input::placeholder, .lead-field textarea::placeholder { color: rgba(255,255,255,.45); }
.lead-field textarea { resize: vertical; min-height: 84px; }
.lead-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='rgba(255,255,255,0.7)'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.24a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center; background-size: 1.1rem;
  padding-right: 2.25rem;
}
.lead-field select option { color: var(--ink); background: #fff; }
.cta-inner input:focus-visible, .cta-inner textarea:focus-visible, .cta-inner select:focus-visible {
  outline: 3px solid #fff; outline-offset: 2px; background-color: rgba(255,255,255,.18);
}
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-submit-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .25rem; }
.lead-submit-btn { border: none; cursor: pointer; }
.lead-submit-btn:disabled { opacity: .6; cursor: default; }
.lead-status { font-size: .85rem; }
.lead-status.success { color: #d7f3e3; }
.lead-status.error { color: #ffd9bd; }
.lead-divider-row { display: flex; align-items: center; gap: 1rem; max-width: 640px; margin: 2.5rem auto 1.75rem; color: rgba(255,255,255,.4); font-size: .82rem; }
.lead-divider-row::before, .lead-divider-row::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.15); }

/* ── FOOTER ── */
footer { background: var(--ink); color: var(--ink-soft); padding: 4rem 5vw 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: .75rem; }
.footer-logo-box {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; color: #fff; font-size: .85rem;
}
.footer-logo-name { font-family: var(--display); font-size: 1.05rem; font-weight: 700; color: rgba(255,255,255,.85); }
.footer-brand p { color: #3d5a47; font-size: .82rem; line-height: 1.7; max-width: 270px; }
.footer-col h5 { color: rgba(255,255,255,.6); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { color: #3d5a47; text-decoration: none; font-size: .82rem; transition: color .2s; }
.footer-col a:hover { color: var(--verde-l); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.footer-bottom p { font-size: .76rem; color: #2a4030; }
.footer-bottom a { color: #2a4030; text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: var(--verde-l); }

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--ink); border-top: 1px solid rgba(82,183,136,.25);
  padding: 1.25rem 5vw; display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  transform: translateY(100%); transition: transform .4s ease;
}
#cookie-banner.visible { transform: translateY(0); }
.cookie-text p { color: #7a9d87; font-size: .82rem; line-height: 1.6; }
.cookie-text a { color: var(--verde-l); text-decoration: underline; }
.cookie-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.btn-ck-a { background: var(--verde-l); color: var(--ink); padding: .55rem 1.2rem; border-radius: 8px; border: none; font-size: .84rem; font-weight: 600; cursor: pointer; font-family: var(--body); }
.btn-ck-c { background: transparent; color: #7a9d87; padding: .55rem 1.2rem; border-radius: 8px; border: 1px solid #2a4030; font-size: .84rem; cursor: pointer; font-family: var(--body); }
.btn-ck-r { background: transparent; color: #3d5a47; border: none; font-size: .79rem; cursor: pointer; text-decoration: underline; font-family: var(--body); }

/* ── LEGAL MODAL ── */
#legal-modal {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: rgba(10,25,16,.85); backdrop-filter: blur(4px);
  align-items: flex-start; justify-content: center; padding: 2rem 1rem; overflow-y: auto;
}
#legal-modal.open { display: flex; }
.legal-box { background: var(--blanco); border-radius: var(--radius-lg); max-width: 700px; width: 100%; padding: 2rem 2.5rem; margin: auto; box-shadow: var(--shadow-lg); }
.legal-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.ltab { padding: 5px 13px; border-radius: 100px; font-size: .78rem; font-weight: 500; border: 1px solid var(--border); background: var(--surface); color: var(--ink-mid); cursor: pointer; font-family: var(--body); transition: all .2s; }
.ltab.active { background: var(--verde); color: #fff; border-color: var(--verde); }
.legal-content { display: none; }
.legal-content.active { display: block; }
.legal-content h2 { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 1rem; }
.legal-content h3 { font-size: .93rem; font-weight: 600; color: var(--ink); margin: 1.2rem 0 .4rem; }
.legal-content p, .legal-content li { font-size: .84rem; color: var(--ink-mid); line-height: 1.7; margin-bottom: .4rem; }
.legal-content ul { padding-left: 1.25rem; }
.legal-close-btn { display: block; margin: 1.75rem auto 0; background: var(--verde); color: #fff; padding: .6rem 1.75rem; border-radius: var(--radius); border: none; font-size: .88rem; font-weight: 500; cursor: pointer; font-family: var(--body); }

/* ── ACCESSIBILITY: focus visibility (WCAG 2.4.7 / 2.4.11) ── */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--tierra-l);
  outline-offset: 2px;
  border-radius: 4px;
}
.hero a:focus-visible, .why-bg a:focus-visible, .cta-inner a:focus-visible,
.hero button:focus-visible, .why-bg button:focus-visible, .cta-inner button:focus-visible {
  outline-color: #fff;
}

/* ── ACCESSIBILITY: minimum touch target size (WCAG 2.5.8, 24x24 CSS px) ── */
.lang-btn, .ltab, .btn-ck-a, .btn-ck-c, .btn-ck-r {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

/* ── NAV: mobile menu toggle ── */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; position: relative;
  width: 22px; height: 2px; background: var(--ink);
  transition: transform .2s, opacity .2s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); top: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .latam-grid, .why-inner, .servicios-intro { grid-template-columns: 1fr; }
  .servicios-grid, .fases-grid, .mercados-grid { grid-template-columns: 1fr; }
  .why-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fases-grid::before { display: none; }

  .nav-toggle { display: inline-flex; }
  nav .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
  }
  nav .nav-links.open { max-height: 320px; }
  nav .nav-links li { width: 100%; }
  nav .nav-links a { display: block; padding: .9rem 5vw; border-top: 1px solid var(--border); }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
.hero-text > * { animation: fadeUp .6s ease both; }
.hero-text > *:nth-child(1) { animation-delay: .1s; }
.hero-text > *:nth-child(2) { animation-delay: .22s; }
.hero-text > *:nth-child(3) { animation-delay: .36s; }
.hero-text > *:nth-child(4) { animation-delay: .5s; }
.hero-text > *:nth-child(5) { animation-delay: .62s; }
