/* ═══════════════════════════════════════════
   style.css — Inicia Foundation
   ═══════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --azul-900: #0B2545;
  --azul-800: #13395E;
  --azul-700: #1A5276;
  --azul-500: #2E86C1;
  --azul-400: #3FA3D8;
  --azul-200: #A9D4F0;
  --azul-100: #D6EAF8;
  --azul-50:  #EBF5FB;
  --blanco:   #F8FBFE;
  --gris:     #5D7A8C;
  --texto:    #0D1F2D;
  --acento:   #F4A833;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;

  --max:  1140px;
  --r:    12px;
  --r-lg: 20px;
  --sombra: 0 8px 32px rgba(11,37,69,.10);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--sans); color: var(--texto); background: var(--blanco); line-height: 1.7; overflow-x: hidden; }
img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }
button { font-family: var(--sans); cursor: pointer; }

/* ── Utilidades ── */
.wrap     { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.section  { padding: 96px 0; }
.tag      {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 40px;
  background: var(--azul-100); color: var(--azul-700); margin-bottom: 20px;
}
.tag-w    { background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }
.h-sec    { font-family: var(--serif); font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.15; }
.sub      { font-size: 1.05rem; color: var(--gris); line-height: 1.8; }
.div      { width: 44px; height: 3px; background: var(--azul-500); border-radius: 2px; margin: 18px 0; }
.div-c    { margin: 18px auto; }

/* ── Botones ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: var(--r); font-size: 15px; font-weight: 500; border: 2px solid transparent; transition: all .2s; cursor: pointer; }
.btn-solid { background: var(--azul-500); color: #fff; }
.btn-solid:hover { background: var(--azul-700); transform: translateY(-1px); }
.btn-out   { background: transparent; color: var(--azul-500); border-color: var(--azul-500); }
.btn-out:hover { background: var(--azul-50); }
.btn-w     { background: #fff; color: var(--azul-700); }
.btn-w:hover { background: var(--azul-50); transform: translateY(-1px); }
.btn-wo    { background: transparent; color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.45); }
.btn-wo:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); }

/* ── Reveal ── */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.rv.in { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════
   LANG BAR
   ════════════════════════════════════════ */
.lang-bar {
  background: var(--azul-900); padding: 7px 28px;
  display: flex; justify-content: flex-end; align-items: center; gap: 4px;
}
.lang-btn {
  padding: 3px 10px; border-radius: 20px;
  border: 1px solid transparent; background: transparent;
  color: rgba(255,255,255,.5); font-size: 12px; font-weight: 500;
  transition: all .15s; cursor: pointer; font-family: var(--sans);
}
.lang-btn:hover  { color: #fff; border-color: rgba(255,255,255,.3); }
.lang-btn.active { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.25); }
.lang-sep { color: rgba(255,255,255,.2); font-size: 12px; }

/* ════════════════════════════════════════
   NAVEGACIÓN — siempre visible (sticky)
   ════════════════════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(248,251,254,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(46,134,193,.14);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(11,37,69,.09); }

.nav-i {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; max-width: var(--max); margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--azul-500); display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.logo-txt { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--azul-900); }
.logo-txt span { color: var(--azul-500); }

.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 400; color: var(--gris); transition: color .15s; }
.nav-links a:hover { color: var(--azul-500); }
.nav-cta { background: var(--azul-500) !important; color: #fff !important; padding: 8px 18px; border-radius: var(--r); }
.nav-cta:hover { background: var(--azul-700) !important; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.nav-burger span { width: 22px; height: 2px; background: var(--azul-800); border-radius: 2px; }

/* ── Menú móvil ── */
.mob-menu {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; position: fixed; inset: 0; background: var(--azul-900); z-index: 300; padding: 48px;
}
.mob-menu a { font-family: var(--serif); font-size: 1.7rem; color: #fff; }
.mob-menu a:hover { color: var(--azul-200); }
.mob-close { position: absolute; top: 24px; right: 28px; background: none; border: none; color: rgba(255,255,255,.6); font-size: 1.5rem; cursor: pointer; }

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.hero {
  min-height: 92vh; display: flex; align-items: center;
  background: linear-gradient(155deg, var(--azul-900) 0%, var(--azul-800) 45%, var(--azul-700) 100%);
  position: relative; overflow: hidden; padding: 80px 0;
}
.hero-circles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-circles span { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.06); }
.hero-circles span:nth-child(1) { width: 600px; height: 600px; top: -220px; right: -80px; }
.hero-circles span:nth-child(2) { width: 380px; height: 380px; bottom: -100px; left: -60px; border-color: rgba(255,255,255,.04); }
.hero-circles span:nth-child(3) { width: 180px; height: 180px; top: 38%; right: 14%; border-color: rgba(244,168,51,.14); }
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.065) 1px, transparent 1px);
  background-size: 36px 36px;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px;
  padding: 6px 16px; border-radius: 40px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06);
  font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.8);
}
.hero-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--acento); display: inline-block; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700; color: #fff; line-height: 1.08; margin-bottom: 22px;
}
.hero h1 em { color: var(--azul-200); font-style: italic; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.68); margin-bottom: 40px; max-width: 500px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
/* Panel de estadísticas */
.hero-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg); padding: 36px; backdrop-filter: blur(8px);
}
.hero-stats { display: flex; flex-direction: column; gap: 20px; }
.hero-stat  { display: flex; align-items: center; gap: 16px; }
.hero-stat-num { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: #fff; min-width: 64px; line-height: 1; }
.hero-stat-lbl { font-size: 14px; color: rgba(255,255,255,.6); }
.hero-stat-bar  { height: 4px; background: rgba(255,255,255,.12); border-radius: 2px; margin-top: 5px; }
.hero-stat-fill { height: 100%; border-radius: 2px; background: var(--azul-400); }
.hero-divider   { width: 1px; height: 48px; background: rgba(255,255,255,.1); margin: 2px 0; }

/* ════════════════════════════════════════
   FRANJA TICKER
   ════════════════════════════════════════ */
.franja { background: var(--azul-500); padding: 18px 0; overflow: hidden; }
.franja-track { display: flex; gap: 44px; animation: ticker 32s linear infinite; white-space: nowrap; }
.franja-track span { font-size: 14px; color: rgba(255,255,255,.85); }
.franja-track b   { color: var(--acento); margin: 0 4px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ════════════════════════════════════════
   QUIÉNES SOMOS
   ════════════════════════════════════════ */
.qs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.qs-visual { position: relative; }
.qs-img-wrap {
  aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden;
  background: var(--azul-50); border: 1px solid var(--azul-100);
  display: flex; align-items: center; justify-content: center;
}
/* Al añadir foto real: .qs-img-wrap img { width:100%; height:100%; object-fit:cover; } */
.qs-img-wrap svg { width: 160px; height: 160px; opacity: .35; }
.qs-float {
  position: absolute; background: #fff; border-radius: 14px;
  border: 1px solid var(--azul-100); padding: 16px 20px;
  box-shadow: var(--sombra);
}
.qs-float-1 { bottom: -20px; left: -20px; }
.qs-float-2 { top:  -20px; right: -20px; text-align: right; }
.qs-float strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--azul-500); line-height: 1; }
.qs-float span   { font-size: 12px; color: var(--gris); }
.pilares { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.pilar   { display: flex; gap: 16px; }
.pilar-ico {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px;
  background: var(--azul-100); display: flex; align-items: center; justify-content: center;
}
.pilar-ico svg { width: 20px; height: 20px; stroke: var(--azul-700); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pilar h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.pilar p  { font-size: 14px; color: var(--gris); }

/* ════════════════════════════════════════
   PROYECTOS
   ════════════════════════════════════════ */
.sec-arena { background: var(--azul-50); }
.proy-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; gap: 24px; flex-wrap: wrap; }
.proy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proy-card {
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--azul-100); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.proy-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(46,134,193,.13); }
.proy-top {
  height: 130px; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.proy-top svg { width: 54px; height: 54px; stroke: #fff; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.proy-pill {
  position: absolute; top: 14px; left: 14px;
  background: rgba(0,0,0,.22); color: #fff; border-radius: 40px;
  font-size: 11px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; padding: 3px 12px;
}
.proy-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.proy-body h3 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 10px; }
.proy-body p  { font-size: 14px; color: var(--gris); flex: 1; }

/* ════════════════════════════════════════
   GALERÍA
   ════════════════════════════════════════ */
.gal-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 12px; margin-top: 48px;
}
.gal-item {
  border-radius: 14px; overflow: hidden; background: var(--azul-100);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; transition: transform .2s;
}
/* Al añadir foto real: .gal-item img { width:100%; height:100%; object-fit:cover; } */
.gal-item svg { width: 48px; height: 48px; stroke: var(--azul-400); fill: none; stroke-width: 1.2; stroke-linecap: round; }
.gal-item:first-child { grid-row: 1 / 3; }
.gal-item:first-child svg { width: 72px; height: 72px; }
.gal-item:hover { transform: scale(1.02); }
.gal-overlay { position: absolute; inset: 0; background: var(--azul-900); opacity: 0; transition: opacity .25s; }
.gal-lbl {
  position: absolute; bottom: 14px; left: 14px; z-index: 1;
  font-size: 13px; font-weight: 500; color: #fff; opacity: 0; transition: opacity .25s;
}
.gal-item:hover .gal-overlay { opacity: .65; }
.gal-item:hover .gal-lbl     { opacity: 1; }

/* ════════════════════════════════════════
   COLABORAR + DONACIÓN
   ════════════════════════════════════════ */
.sec-oscura { background: var(--azul-900); }
.col-head   { text-align: center; margin-bottom: 56px; }
.col-head .h-sec { color: #fff; }
.col-head .sub   { color: rgba(255,255,255,.5); max-width: 560px; margin: 0 auto; }
.col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 52px; }
.col-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg); padding: 32px 26px; text-align: center;
  transition: background .2s, transform .2s;
  position: relative; overflow: hidden;
}
.col-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--azul-400); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.col-card:hover::before { transform: scaleX(1); }
.col-card:hover { background: rgba(255,255,255,.09); transform: translateY(-3px); }
.col-ico { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.08); margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; }
.col-ico svg { width: 26px; height: 26px; stroke: var(--azul-200); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.col-card h3 { font-family: var(--serif); font-size: 1.2rem; color: #fff; margin-bottom: 10px; }
.col-card p  { font-size: 14px; color: rgba(255,255,255,.5); margin-bottom: 22px; }

/* Bloque donación */
.don-bloque {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg); padding: 48px 52px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.don-bloque h2 { font-family: var(--serif); font-size: clamp(1.6rem,2.8vw,2.2rem); color: #fff; margin-bottom: 14px; }
.don-bloque p  { color: rgba(255,255,255,.55); font-size: 15px; margin-bottom: 8px; }
.don-sello     { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 6px 14px; border-radius: 40px; border: 1px solid rgba(255,255,255,.15); font-size: 12px; color: rgba(255,255,255,.5); }
.don-box  { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 28px; }
.don-lbl  { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.38); margin-bottom: 12px; }
.per-row  { display: flex; margin-bottom: 20px; }
.per-b    { flex: 1; padding: 9px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.5); font-size: 14px; transition: all .15s; font-family: var(--sans); cursor: pointer; }
.per-b:first-child { border-radius: var(--r) 0 0 var(--r); }
.per-b:last-child  { border-radius: 0 var(--r) var(--r) 0; }
.per-b.on { background: var(--azul-500); border-color: var(--azul-500); color: #fff; }
.cant-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.cant-b   { padding: 9px 18px; border-radius: var(--r); border: 1.5px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7); background: transparent; font-size: 15px; font-weight: 500; transition: all .15s; font-family: var(--sans); cursor: pointer; }
.cant-b:hover { border-color: var(--azul-400); color: var(--azul-200); }
.cant-b.on    { background: var(--acento); border-color: var(--acento); color: var(--azul-900); }
.don-ttl  { font-family: var(--serif); font-size: 2rem; color: #fff; margin-bottom: 20px; }
.don-ttl span { font-family: var(--sans); font-size: 1rem; color: rgba(255,255,255,.38); }

/* ════════════════════════════════════════
   CONTACTO
   ════════════════════════════════════════ */
.cto-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 72px; align-items: start; }
.cto-info { display: flex; flex-direction: column; gap: 26px; }
.cto-blq  { display: flex; gap: 14px; }
.cto-ico  { width: 44px; height: 44px; border-radius: 10px; background: var(--azul-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cto-ico svg { width: 20px; height: 20px; stroke: var(--azul-700); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cto-blq h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.cto-blq p  { font-size: 14px; color: var(--gris); }
.rrss   { display: flex; gap: 10px; margin-top: 8px; }
.rrss a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--azul-200); display: flex; align-items: center; justify-content: center; transition: all .15s; }
.rrss a svg { width: 18px; height: 18px; stroke: var(--azul-500); fill: none; stroke-width: 1.8; }
.rrss a:hover { background: var(--azul-100); border-color: var(--azul-500); }
/* Formulario */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fc2   { grid-column: span 2; }
.fg    { display: flex; flex-direction: column; gap: 6px; }
.fg label { font-size: 13px; font-weight: 500; color: var(--azul-800); }
.fg input, .fg textarea, .fg select {
  padding: 12px 14px; border: 1.5px solid var(--azul-100); border-radius: var(--r);
  font-family: var(--sans); font-size: 15px; color: var(--texto); background: #fff;
  transition: border-color .15s; outline: none; -webkit-appearance: none;
}
.fg input:focus, .fg textarea:focus { border-color: var(--azul-500); }
.fg textarea { resize: vertical; min-height: 120px; }
.fgrid > .btn { grid-column: span 2; justify-self: start; }
.aviso   { font-size: 12px; color: var(--gris); line-height: 1.6; }
.aviso a { color: var(--azul-500); text-decoration: underline; }

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
footer    { background: var(--azul-900); color: rgba(255,255,255,.65); padding: 64px 0 28px; }
.ft-grid  { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.ft-logo  { font-family: var(--serif); font-size: 1.35rem; color: #fff; margin-bottom: 12px; }
.ft-desc  { font-size: 14px; line-height: 1.75; margin-bottom: 20px; }
.ft-sello { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.15); border-radius: 40px; padding: 5px 14px; font-size: 12px; color: rgba(255,255,255,.42); }
.ft-col h5 { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.33); margin-bottom: 16px; }
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.ft-col ul a { font-size: 14px; transition: color .15s; }
.ft-col ul a:hover { color: #fff; }
.ft-bot   { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; opacity: .36; }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card  { display: none; }
  .qs-grid, .cto-grid, .don-bloque { grid-template-columns: 1fr; gap: 40px; }
  .proy-grid, .col-grid { grid-template-columns: 1fr 1fr; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .don-bloque { padding: 32px; }
}
@media (max-width: 600px) {
  .proy-grid, .col-grid, .ft-grid, .fgrid { grid-template-columns: 1fr; }
  .fc2, .fgrid > .btn { grid-column: span 1; }
  .gal-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 180px); }
  .gal-item:first-child { grid-row: auto; }
  .section { padding: 64px 0; }
}
