/* GPADELTIA — hoja de estilos estática (sin frameworks, sin backend) */

:root {
  --navy-deep: #0b2545;
  --navy: #123c6b;
  --surface: #f5f7fa;
  --surface-alt: #e2e8f0;
  --background: #ffffff;
  --foreground: #0b2545;
  --card: #ffffff;
  --muted: #f1f4f8;
  --muted-foreground: #5b6b82;
  --accent: #e08e45;
  --accent-foreground: #241a0d;
  --border: #e2e6ed;
  --radius: 0.5rem;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.link-inline { color: var(--accent); font-weight: 500; text-decoration: none; transition: text-decoration-color .15s ease; }
.link-inline:hover { text-decoration: underline; text-underline-offset: 3px; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .wrap { padding: 0 2rem; } }

.font-display { font-family: var(--font-display); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  background: var(--muted);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}
.eyebrow.on-dark { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }

/* ===== Header ===== */
header.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: all .2s ease;
  background: transparent;
}
header.site-header.scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  transition: color .2s ease;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: var(--surface);
  padding: .5rem;
  overflow: hidden;
  flex-shrink: 0;
  transition: background-color .2s ease;
}
/* Once the header itself turns near-white on scroll, the mark's own
   off-white backing is no longer needed and just reads as a mismatched box. */
header.site-header.scrolled .brand-mark { background: transparent; }
.brand-logo { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
nav.main-nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { nav.main-nav { display: flex; } }
nav.main-nav a.link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color .2s ease;
}
nav.main-nav a.link:hover { color: var(--foreground); }

/* Before scrolling the header is transparent over the dark hero image,
   so brand/nav/menu-toggle need light colors until .scrolled kicks in. */
header.site-header:not(.scrolled) .brand { color: #fff; }
header.site-header:not(.scrolled) nav.main-nav a.link { color: rgba(255,255,255,.85); }
header.site-header:not(.scrolled) nav.main-nav a.link:hover { color: #fff; }
header.site-header:not(.scrolled) .menu-toggle { color: #fff; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: .5rem;
  padding: .6rem 1.1rem;
  font-size: .875rem;
  font-weight: 600;
  border: none;
}
.btn-accent { background: var(--accent); color: var(--accent-foreground); }
.btn-accent:hover { filter: brightness(1.05); }
.btn-outline { border: 1px solid rgba(255,255,255,.25); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); }

.menu-toggle {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  color: var(--foreground);
  transition: color .2s ease;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--background);
}
.mobile-nav.open { display: block; }
.mobile-nav .wrap { display: flex; flex-direction: column; gap: .25rem; padding-top: 1rem; padding-bottom: 1rem; }
.mobile-nav a.link { padding: .5rem .75rem; border-radius: .5rem; font-size: .875rem; font-weight: 500; }
.mobile-nav a.link:hover { background: var(--muted); }
.mobile-nav .btn { justify-content: center; margin-top: .5rem; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
}
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .85;
}
.hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11,37,69,.72), rgba(11,37,69,.52) 60%, rgba(11,37,69,.85));
}
.hero-inner {
  position: relative;
  padding: 8rem 0 5rem;
}
@media (min-width: 640px) { .hero-inner { padding: 10rem 0 5rem; } }
@media (min-width: 1024px) { .hero-inner { padding: 12rem 0 7rem; } }
.hero h1 {
  margin: 1.5rem 0 0;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 48rem;
  text-shadow: 0 2px 16px rgba(11,37,69,.9), 0 1px 4px rgba(0,0,0,.6);
}
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }
.hero h2 {
  margin: 1rem 0 0;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  max-width: 40rem;
  color: rgba(255,255,255,.85);
  text-shadow: 0 2px 12px rgba(11,37,69,.9), 0 1px 3px rgba(0,0,0,.6);
}
@media (min-width: 640px) { .hero h2 { font-size: 1.375rem; } }
.hero p { margin-top: 1.5rem; max-width: 42rem; color: rgba(255,255,255,.8); font-size: 1rem; text-shadow: 0 1px 8px rgba(11,37,69,.85); }
@media (min-width: 640px) { .hero p { font-size: 1.125rem; } }
.hero .cta-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }

/* ===== Stats strip ===== */
.stats {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-cell { background: var(--surface); padding: 2rem 1.5rem; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--navy-deep); }
@media (min-width: 640px) { .stat-value { font-size: 1.875rem; } }
.stat-label { margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); }

/* ===== Generic sections ===== */
section { padding: 5rem 0; }
@media (min-width: 640px) { section { padding: 7rem 0; } }
.section-border { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
h2.section-title {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1.15;
  color: var(--foreground);
}
@media (min-width: 640px) { h2.section-title { font-size: 2.25rem; } }
.section-lede { margin-top: 1rem; color: var(--muted-foreground); max-width: 42rem; }
.max-w-2 { max-width: 42rem; }

/* Quienes somos */
.grid-12 { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .grid-12 { grid-template-columns: 4fr 8fr; } }
.body-copy { color: var(--muted-foreground); font-size: 1rem; line-height: 1.7; }
.body-copy p { margin: 0 0 1.1rem; }
.feature-cards { margin-top: 2rem; display: grid; gap: 1rem; }
@media (min-width: 640px) { .feature-cards { grid-template-columns: repeat(3, 1fr); } }
.feature-card { border: 1px solid var(--border); border-radius: .75rem; background: var(--card); padding: 1rem; }
.feature-card .ico { color: var(--accent); }
.feature-card .t { margin-top: .75rem; font-family: var(--font-display); font-weight: 600; font-size: .875rem; }
.feature-card .d { margin-top: .25rem; font-size: .875rem; color: var(--muted-foreground); }

/* Timeline */
.timeline-img-wrap { position: relative; margin-top: 2.5rem; overflow: hidden; border-radius: 1rem; border: 1px solid var(--border); }
.timeline-img-wrap img { height: 16rem; width: 100%; object-fit: cover; filter: saturate(1.3) brightness(1.12) contrast(1.03); }
@media (min-width: 640px) { .timeline-img-wrap img { height: 20rem; } }
.timeline-list { margin-top: 3rem; display: grid; gap: 1.5rem; list-style: none; padding: 0; }
@media (min-width: 768px) { .timeline-list { grid-template-columns: repeat(3, 1fr); } }
.timeline-item { border: 1px solid var(--border); border-radius: .75rem; background: var(--card); padding: 1.5rem; }
.timeline-item .head { display: flex; align-items: center; gap: .75rem; }
.timeline-item .ico-box {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .75rem;
  background: var(--navy-deep); color: #fff;
}
.timeline-item .tag { font-family: var(--font-display); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.timeline-item h3 { margin: 1rem 0 0; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.timeline-item p { margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); line-height: 1.6; }

/* Soluciones */
.solutions-grid { margin-top: 3rem; display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .solutions-grid { grid-template-columns: repeat(3, 1fr); } }
.solution-card { border: 1px solid var(--border); border-radius: .75rem; background: var(--card); overflow: hidden; display: flex; flex-direction: column; }
.solution-card.featured { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; box-shadow: 0 10px 30px rgba(11,37,69,.25); }
.solution-card img { height: 11rem; width: 100%; object-fit: cover; }
.solution-card .body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
@media (min-width: 640px) { .solution-card .body { padding: 2rem; } }
.solution-card .ico-box { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .75rem; background: var(--navy-deep); color: #fff; }
.solution-card.featured .ico-box { background: var(--accent); color: var(--accent-foreground); }
.solution-card .kicker { margin-top: 1.5rem; font-family: var(--font-display); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.solution-card h3 { margin: .5rem 0 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
.solution-card p { margin-top: 1rem; flex: 1; font-size: .875rem; line-height: 1.6; color: var(--muted-foreground); }
.solution-card.featured p { color: rgba(255,255,255,.8); }

/* Para quien / audiences */
.audience-img-wrap { position: relative; margin-top: 2.5rem; overflow: hidden; border-radius: 1rem; border: 1px solid var(--border); }
.audience-img-wrap img { height: 14rem; width: 100%; object-fit: cover; filter: saturate(1.3) brightness(1.1) contrast(1.03); }
@media (min-width: 640px) { .audience-img-wrap img { height: 18rem; } }
.audience-img-wrap .overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(11,37,69,.45), rgba(11,37,69,.1), transparent); }
.audience-img-wrap .caption { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1.5rem; }
.audience-img-wrap .caption p { max-width: 28rem; font-size: .875rem; font-weight: 500; color: #fff; margin: 0; text-shadow: 0 1px 8px rgba(11,37,69,.9), 0 1px 3px rgba(0,0,0,.6); }
.audience-tabs { margin-top: 2.5rem; display: grid; gap: .5rem; }
@media (min-width: 640px) { .audience-tabs { grid-template-columns: repeat(3, 1fr); } }
.audience-tab {
  display: flex; align-items: center; gap: .75rem;
  border: 1px solid var(--border); border-radius: .5rem;
  background: var(--card); padding: .75rem 1rem;
  font-size: .875rem; font-weight: 600; text-align: left;
  color: var(--foreground);
}
.audience-tab.active { border-color: var(--navy-deep); background: var(--navy-deep); color: #fff; }
.audience-panel { margin-top: 2rem; border: 1px solid var(--border); border-radius: .75rem; background: var(--card); padding: 1.5rem; }
@media (min-width: 640px) { .audience-panel { padding: 2.5rem; } }
.audience-panel-inner { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 768px) { .audience-panel-inner { grid-template-columns: auto 1fr; } }
.audience-panel .ico-box { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: .75rem; background: var(--navy-deep); color: #fff; }
.audience-panel h3 { margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.audience-panel p { margin-top: .75rem; max-width: 42rem; font-size: 1rem; line-height: 1.7; color: var(--muted-foreground); }

/* Confianza / badges */
.badges { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .75rem; padding: 0; list-style: none; }
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--card); padding: .5rem 1rem;
  font-size: .875rem; font-weight: 500;
}
.badge:hover { border-color: rgba(11,37,69,.4); background: var(--muted); }
.badge .ico { color: var(--accent); }

.examples-banner { margin-top: 1.5rem; overflow: hidden; border-radius: 1rem; border: 1px solid var(--border); background: var(--navy-deep); }
.examples-banner img { height: 14rem; width: 100%; object-fit: cover; opacity: .8; }
@media (min-width: 640px) { .examples-banner img { height: 16rem; } }
.examples-grid { margin-top: 1.5rem; display: grid; gap: 1rem; }
@media (min-width: 640px) { .examples-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .examples-grid { grid-template-columns: repeat(4, 1fr); } }
.example-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: .75rem; background: var(--card); padding: 1.25rem; transition: transform .15s ease; }
.example-card:hover { transform: translateY(-2px); border-color: rgba(11,37,69,.4); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.example-card .ico-box { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .5rem; background: var(--navy-deep); color: #fff; }
.example-card .tag { margin-top: 1rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.example-card .title { margin-top: .25rem; font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.example-card .cta { margin-top: 1rem; display: inline-flex; align-items: center; gap: .375rem; font-size: .875rem; font-weight: 500; color: var(--navy-deep); }

/* Hacia donde vamos */
.future-section { position: relative; overflow: hidden; background: var(--navy-deep); color: #fff; }
.future-grid { position: relative; display: grid; gap: 2rem; }
@media (min-width: 1024px) { .future-grid { grid-template-columns: 4fr 8fr; } }
.future-section p.lede { font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,.8); }
@media (min-width: 640px) { .future-section p.lede { font-size: 1.125rem; } }
.future-section strong { color: #fff; }
.future-chips { margin-top: 2rem; display: grid; gap: 1rem; }
@media (min-width: 640px) { .future-chips { grid-template-columns: repeat(3, 1fr); } }
.future-chip { border: 1px solid rgba(255,255,255,.1); border-radius: .5rem; background: rgba(255,255,255,.05); padding: .75rem 1rem; font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.9); }
.future-chip .ico { color: var(--accent); margin-bottom: .5rem; }
.funding-logos-card { background: #fff; border-radius: .75rem; padding: 1.25rem 1.5rem; display: flex; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.funding-logos-card img { max-width: 100%; height: auto; display: block; }

/* Contact */
.contact-section { background: var(--navy-deep); color: #fff; }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info p { margin-top: 1rem; max-width: 28rem; color: rgba(255,255,255,.7); }
.contact-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; font-size: .875rem; }
.contact-list li { display: flex; align-items: flex-start; gap: .75rem; }
.contact-list .ico { color: var(--accent); margin-top: .1rem; }
.contact-form { border: 1px solid rgba(255,255,255,.1); border-radius: .75rem; background: rgba(255,255,255,.05); padding: 1.5rem; backdrop-filter: blur(4px); }
@media (min-width: 640px) { .contact-form { padding: 2rem; } }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .375rem; font-size: .875rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; border-radius: .5rem; border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05); padding: .6rem .75rem; font-size: .875rem; color: #fff;
  font-family: inherit;
}
.field select option { background: var(--navy-deep); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(224,142,69,.4);
}
.form-note { margin-top: 0; font-size: .75rem; color: rgba(255,255,255,.5); }
.form-note a { text-decoration: underline; text-underline-offset: 2px; }
.form-note a:hover { color: #fff; }
.submit-ok { display: flex; min-height: 24rem; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.submit-ok .check { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 999px; background: var(--accent); color: var(--accent-foreground); font-size: 1.25rem; }
.submit-ok h3 { margin-top: 1rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.submit-ok p { margin-top: .5rem; max-width: 20rem; font-size: .875rem; color: rgba(255,255,255,.7); }

/* Footer */
footer.site-footer { border-top: 1px solid var(--border); background: var(--navy-deep); color: #fff; }
.footer-grid { padding: 3.5rem 0; display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { grid-column: span 1; }
@media (min-width: 768px) { .footer-brand { grid-column: span 2; } }
.footer-brand .brand { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
.footer-brand p { margin-top: 1rem; max-width: 28rem; font-size: .875rem; color: rgba(255,255,255,.7); }
.footer-col h3 { font-family: var(--font-display); font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.footer-col ul { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; color: rgba(255,255,255,.7); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 0; font-size: .875rem; color: rgba(255,255,255,.6); }
.footer-bottom a { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom a:hover { color: #fff; }

/* Legal pages */
.legal-main { padding: 8rem 0 5rem; }
@media (min-width: 640px) { .legal-main { padding: 10rem 0 5rem; } }
.legal-wrap { max-width: 48rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .legal-wrap { padding: 0 1.5rem; } }
.back-link { display: inline-flex; align-items: center; gap: .375rem; font-size: .875rem; font-weight: 500; color: var(--muted-foreground); }
.back-link:hover { color: var(--foreground); }
.legal-wrap h1 { margin-top: 1rem; font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; }
@media (min-width: 640px) { .legal-wrap h1 { font-size: 2.25rem; } }
.legal-body { margin-top: 2.5rem; font-size: .9375rem; line-height: 1.75; color: var(--muted-foreground); }
.legal-body h2 { margin-top: 2.5rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--foreground); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin: .75rem 0; }
.legal-body ul { margin: .75rem 0; padding-left: 1.5rem; list-style: disc; }
.legal-body li { margin: .4rem 0; }
.legal-body a { color: var(--navy-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal-body strong { color: var(--foreground); }

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.ico { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
