/* =========================================================
   Corporación Inclusión Sin Límites — hoja de estilos global
   ========================================================= */

:root{
  --purple-900:#3d2f63;
  --purple-800:#4d3b7a;
  --purple-700:#6a52a3;
  --purple-600:#8069b8;
  --purple-500:#9b84c9;
  --purple-300:#c6b8e3;
  --purple-150:#e7defa;
  --purple-100:#f3eefb;
  --purple-50:#faf8fd;
  --amber:#f2a93c;
  --amber-dark:#d98a1c;
  --rose:#e8637c;
  --ink:#2c2440;
  --ink-soft:#5c5470;
  --white:#ffffff;
  --shadow-sm: 0 2px 10px rgba(61,47,99,.08);
  --shadow-md: 0 10px 30px rgba(61,47,99,.14);
  --shadow-lg: 0 20px 50px rgba(61,47,99,.20);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --maxw: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:'Nunito', -apple-system, Segoe UI, sans-serif;
  color:var(--ink);
  background:var(--white);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3,h4{
  font-family:'Poppins', 'Nunito', sans-serif;
  color:var(--purple-900);
  line-height:1.2;
  margin:0 0 .5em;
}
p{ margin:0 0 1em; }
a{ color:var(--purple-700); text-decoration:none; }
img{ max-width:100%; display:block; }
.container{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }
section{ position:relative; }

/* -------- utility -------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'Poppins',sans-serif; font-weight:600; font-size:.78rem;
  letter-spacing:.14em; text-transform:uppercase; color:var(--purple-600);
  background:var(--purple-100); padding:7px 16px; border-radius:999px;
  margin-bottom:16px;
}
.eyebrow::before{ content:''; width:7px; height:7px; border-radius:50%; background:var(--amber); }
.section-title{ font-size:clamp(1.7rem,3.2vw,2.5rem); max-width:720px; }
.section-lead{ color:var(--ink-soft); max-width:640px; font-size:1.05rem; }
.center{ text-align:center; margin-left:auto; margin-right:auto; }
.pad{ padding:88px 0; }
.pad-sm{ padding:56px 0; }
.bg-soft{ background:linear-gradient(180deg,var(--purple-50),var(--white)); }
.bg-purple{ background:var(--purple-900); color:var(--purple-100); }
.bg-purple h2, .bg-purple h3{ color:var(--white); }
.grid{ display:grid; gap:28px; }
.grid-2{ grid-template-columns:1fr 1fr; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
@media(max-width:900px){ .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr; } }
@media(min-width:601px) and (max-width:900px){ .grid-3,.grid-4{ grid-template-columns:1fr 1fr; } }

/* -------- buttons -------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:'Poppins',sans-serif; font-weight:600; font-size:.95rem;
  padding:14px 28px; border-radius:999px; border:2px solid transparent;
  cursor:pointer; transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-3px); }
.btn-primary{ background:var(--amber); color:var(--purple-900); box-shadow:var(--shadow-sm); }
.btn-primary:hover{ box-shadow:var(--shadow-md); background:var(--amber-dark); }
.btn-outline{ border-color:rgba(255,255,255,.6); color:var(--white); }
.btn-outline:hover{ background:rgba(255,255,255,.12); }
.btn-ghost{ border-color:var(--purple-300); color:var(--purple-700); background:var(--white); }
.btn-ghost:hover{ background:var(--purple-100); }
.btn-rose{ background:var(--rose); color:var(--white); box-shadow:var(--shadow-sm); }
.btn-rose:hover{ box-shadow:var(--shadow-md); }
.btn[disabled]{ opacity:.75; cursor:not-allowed; }
.btn-block{ width:100%; }

/* -------- navbar -------- */
.navbar{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.88);
  border-bottom:1px solid rgba(61,47,99,.08);
}
/* the frosted-glass blur lives on a pseudo-element (not on .navbar itself)
   because backdrop-filter on an ancestor makes browsers create a new
   containing block for its position:fixed descendants (like .nav-links,
   the mobile menu panel) — that was shrinking the fixed mobile menu down
   to the height of the navbar instead of covering the screen, and letting
   it silently sit on top of and block the hamburger button. */
.navbar::before{
  content:''; position:absolute; inset:0; z-index:-1;
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
}
.nav-inner{ display:flex; align-items:center; justify-content:space-between; padding:12px 24px; max-width:var(--maxw); margin:0 auto; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:44px; width:auto; }
.brand-text{ font-family:'Poppins',sans-serif; line-height:1.15; }
.brand-text strong{ display:block; font-size:.92rem; color:var(--purple-900); }
.brand-text span{ display:block; font-size:.68rem; letter-spacing:.05em; color:var(--purple-500); }
.nav-links{ display:flex; align-items:center; gap:6px; list-style:none; margin:0; padding:0; }
.nav-links a{
  display:inline-block; padding:10px 14px; border-radius:999px; font-weight:700;
  font-family:'Poppins',sans-serif; font-size:.86rem; color:var(--ink);
  transition:background .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active{ background:var(--purple-100); color:var(--purple-700); }
.nav-cta{ margin-left:6px; }
.nav-toggle{ display:none; }
.nav-toggle-btn{ display:none; background:none; border:none; cursor:pointer; padding:8px; }
.nav-toggle-btn span{ display:block; width:26px; height:3px; margin:5px 0; background:var(--purple-900); border-radius:3px; transition:.3s; }

/* -------- navbar social / WhatsApp shortcut -------- */
.nav-social{ display:flex; align-items:center; gap:8px; margin-left:8px; }
.nav-social-link{
  width:32px; height:32px; border-radius:50%; background:var(--purple-100); color:var(--purple-700);
  display:flex; align-items:center; justify-content:center; font-family:'Poppins',sans-serif;
  font-weight:700; font-size:.7rem; transition:.2s; flex:0 0 auto;
}
.nav-social-link:hover{ background:var(--amber); color:var(--purple-900); transform:translateY(-2px); }
.nav-social-wa{ background:#25D366; color:#fff; font-size:1rem; }
.nav-social-wa:hover{ background:#1ebe5b; color:#fff; }

@media(max-width:980px){
  .nav-toggle-btn{ display:block; }
  .nav-links{
    position:fixed; inset:70px 0 0 0; background:var(--white); flex-direction:column;
    align-items:stretch; padding:20px; gap:4px; overflow-y:auto;
    transform:translateY(-110%); transition:transform .35s ease; box-shadow:var(--shadow-md);
  }
  .nav-links a{ padding:16px 18px; font-size:1.02rem; }
  .nav-toggle:checked ~ .nav-links{ transform:translateY(0); }
  .nav-cta{ margin:10px 0 0; }
  .nav-social{ margin:16px 0 0; justify-content:center; }
}

/* -------- hero -------- */
.hero{
  position:relative; color:var(--white); overflow:hidden;
  min-height:88vh; display:flex; align-items:center;
}
.hero::before{
  content:''; position:absolute; inset:0;
  background:linear-gradient(120deg, rgba(61,47,99,.92), rgba(106,82,163,.72));
  z-index:1;
}
.hero-bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hero-inner{ position:relative; z-index:2; padding:120px 0 90px; }
.hero h1{ color:var(--white); font-size:clamp(2.1rem,5vw,3.6rem); max-width:820px; }
.hero p.lead{ color:rgba(255,255,255,.92); font-size:1.15rem; max-width:600px; }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-top:28px; }
.hero-badges{ display:flex; gap:28px; margin-top:56px; flex-wrap:wrap; }
.hero-badges div{ font-family:'Poppins',sans-serif; }
.hero-badges strong{ display:block; font-size:1.5rem; color:var(--amber); }
.hero-badges span{ font-size:.8rem; color:rgba(255,255,255,.8); }
.floaty{ animation:floaty 5s ease-in-out infinite; }
@keyframes floaty{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-14px);} }

/* page header (non-home hero) */
.page-hero{
  padding:150px 0 70px; background:linear-gradient(160deg,var(--purple-900),var(--purple-700));
  color:var(--white); text-align:center; overflow:hidden; position:relative;
}
.page-hero::after{
  content:''; position:absolute; width:480px; height:480px; border-radius:50%;
  background:radial-gradient(circle, rgba(242,169,60,.28), transparent 70%);
  right:-140px; top:-160px;
}
.page-hero h1{ color:var(--white); font-size:clamp(1.9rem,4vw,3rem); }
.page-hero p{ color:rgba(255,255,255,.88); max-width:640px; margin:0 auto; }
.crumb{ font-family:'Poppins',sans-serif; font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; color:var(--amber); }

/* -------- cards -------- */
.card{
  background:var(--white); border-radius:var(--radius-md); padding:30px;
  box-shadow:var(--shadow-sm); border:1px solid rgba(61,47,99,.06);
  transition:transform .3s ease, box-shadow .3s ease;
}
.card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); }
.card .icon{
  width:56px; height:56px; border-radius:16px; background:var(--purple-100);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px; font-size:1.5rem;
}
.card h3{ font-size:1.15rem; margin-bottom:8px; }
.card p{ color:var(--ink-soft); font-size:.95rem; margin-bottom:0; }

.pill-list{ list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.pill-list li{
  display:flex; gap:14px; align-items:flex-start; background:var(--white);
  border-radius:var(--radius-sm); padding:16px 18px; box-shadow:var(--shadow-sm);
}
.pill-list .dot{ flex:0 0 auto; width:34px; height:34px; border-radius:50%; background:var(--purple-100); color:var(--purple-700); display:flex; align-items:center; justify-content:center; font-family:'Poppins',sans-serif; font-weight:700; font-size:.85rem; }

/* -------- gallery -------- */
.gallery{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.gallery a{ display:block; border-radius:var(--radius-sm); overflow:hidden; aspect-ratio:1/1; box-shadow:var(--shadow-sm); }
.gallery img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.gallery a:hover img{ transform:scale(1.08); }
@media(max-width:900px){ .gallery{ grid-template-columns:repeat(3,1fr);} }
@media(max-width:600px){ .gallery{ grid-template-columns:repeat(2,1fr);} }

/* -------- reveal animation --------
   Progressive enhancement: content is visible by default so it never
   depends on JavaScript running. Only once the "js" class is present
   on <html> (added by an inline script) do reveal elements start
   hidden and animate in via IntersectionObserver. */
.reveal{ opacity:1; transform:none; }
.js .reveal{ opacity:0; transform:translateY(28px); transition:opacity .7s ease, transform .7s ease; }
.js .reveal.in{ opacity:1; transform:translateY(0); }
.reveal-delay-1.in{ transition-delay:.1s; }
.reveal-delay-2.in{ transition-delay:.2s; }
.reveal-delay-3.in{ transition-delay:.3s; }
.reveal-delay-4.in{ transition-delay:.4s; }

/* -------- footer -------- */
footer{ background:var(--purple-900); color:rgba(255,255,255,.82); padding:70px 0 26px; }
footer h4{ color:var(--white); font-size:1rem; margin-bottom:16px; }
footer a{ color:rgba(255,255,255,.78); }
footer a:hover{ color:var(--amber); }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; }
@media(max-width:860px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media(max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-brand{ display:flex; gap:12px; align-items:center; margin-bottom:14px; }
.footer-brand img{ height:46px; }
.footer-brand strong{ display:block; color:var(--white); font-family:'Poppins',sans-serif; }
.social-row{ display:flex; gap:10px; margin-top:16px; }
.social-row a{
  width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center; transition:.25s;
}
.social-row a:hover{ background:var(--amber); color:var(--purple-900); }
.footer-links{ list-style:none; margin:0; padding:0; display:grid; gap:10px; font-size:.92rem; }
.footer-bottom{
  margin-top:50px; padding-top:22px; border-top:1px solid rgba(255,255,255,.12);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:.82rem; color:rgba(255,255,255,.6);
}
.footer-bottom a{ color:rgba(255,255,255,.85); font-weight:700; }

/* -------- misc components -------- */
.badge-soft{ display:inline-block; background:var(--purple-100); color:var(--purple-700); font-family:'Poppins',sans-serif; font-weight:700; font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; padding:6px 14px; border-radius:999px; }
.divider-wave{ height:64px; background:var(--white); }
hr.soft{ border:none; border-top:1px solid var(--purple-150); margin:36px 0; }

.tabs{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:36px; }
.tab-btn{
  font-family:'Poppins',sans-serif; font-weight:700; font-size:.86rem; color:var(--purple-700);
  background:var(--white); border:2px solid var(--purple-150); padding:12px 20px; border-radius:999px;
  cursor:pointer; transition:.25s;
}
.tab-btn:hover{ border-color:var(--purple-500); }
.tab-btn.active{ background:var(--purple-700); border-color:var(--purple-700); color:var(--white); }
.tab-panel{ display:none; }
.tab-panel.active{ display:block; animation:fadein .5s ease; }
@keyframes fadein{ from{ opacity:0; transform:translateY(10px);} to{ opacity:1; transform:translateY(0);} }

.activity-block{ display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:center; }
.activity-block img{ border-radius:var(--radius-lg); box-shadow:var(--shadow-md); }
@media(max-width:860px){ .activity-block{ grid-template-columns:1fr; } .activity-block .img-wrap{ order:-1; } }

.doc-card{ display:flex; align-items:center; gap:16px; background:var(--white); border:1px solid var(--purple-150); border-radius:var(--radius-md); padding:20px 22px; box-shadow:var(--shadow-sm); transition:.25s; }
.doc-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-4px); }
.doc-card .file-ico{ flex:0 0 auto; width:50px; height:50px; border-radius:12px; background:var(--purple-100); color:var(--purple-700); display:flex; align-items:center; justify-content:center; font-family:'Poppins',sans-serif; font-weight:800; font-size:.72rem; }
.doc-card .meta strong{ display:block; font-family:'Poppins',sans-serif; font-size:.98rem; color:var(--purple-900); }
.doc-card .meta span{ font-size:.82rem; color:var(--ink-soft); }
.doc-card .go{ margin-left:auto; color:var(--purple-700); font-weight:800; font-size:1.3rem; }

.video-card{ background:var(--white); border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-sm); }
.video-frame{ position:relative; padding-top:56.25%; background:var(--purple-900); }
.video-frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.video-card .video-info{ padding:20px 22px; }
.video-card h3{ font-size:1.05rem; margin-bottom:6px; }

.book-panel{ display:grid; grid-template-columns:.8fr 1.2fr; gap:48px; align-items:center; background:var(--white); border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); padding:44px; }
.book-panel img{ border-radius:var(--radius-md); box-shadow:var(--shadow-md); transform:rotate(-2deg); }
@media(max-width:860px){ .book-panel{ grid-template-columns:1fr; padding:28px; } }

.donate-option{ background:var(--white); border-radius:var(--radius-md); padding:30px; box-shadow:var(--shadow-sm); border:2px solid transparent; text-align:center; }
.donate-amounts{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin:18px 0 22px; }
.amount-chip{ font-family:'Poppins',sans-serif; font-weight:700; background:var(--purple-100); color:var(--purple-700); border:2px solid transparent; padding:10px 18px; border-radius:999px; cursor:pointer; transition:.2s; }
.amount-chip:hover, .amount-chip.sel{ background:var(--purple-700); color:var(--white); }

.soon-tag{ display:inline-flex; align-items:center; gap:6px; font-family:'Poppins',sans-serif; font-weight:700; font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; background:var(--purple-100); color:var(--purple-600); padding:5px 12px; border-radius:999px; margin-bottom:10px; }

.toast{
  position:fixed; left:50%; bottom:28px; transform:translate(-50%,140%);
  background:var(--purple-900); color:var(--white); padding:16px 26px; border-radius:14px;
  font-family:'Poppins',sans-serif; font-weight:600; font-size:.9rem; box-shadow:var(--shadow-lg);
  transition:transform .4s ease; z-index:999; max-width:90vw; text-align:center;
}
.toast.show{ transform:translate(-50%,0); }

.stat-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
@media(max-width:760px){ .stat-row{ grid-template-columns:1fr 1fr; } }
.stat-card{ text-align:center; }
.stat-card .ico{ width:60px; height:60px; margin:0 auto 14px; border-radius:50%; background:rgba(255,255,255,.1); display:flex; align-items:center; justify-content:center; font-size:1.4rem; }
.stat-card p{ color:rgba(255,255,255,.82); font-size:.92rem; margin:0; }

.founder-card{ display:flex; gap:20px; align-items:center; background:var(--purple-50); border-radius:var(--radius-md); padding:26px; }
.founder-card .av{ width:64px; height:64px; border-radius:50%; background:var(--purple-700); color:#fff; display:flex; align-items:center; justify-content:center; font-family:'Poppins',sans-serif; font-weight:700; font-size:1.3rem; flex:0 0 auto; }

/* -------- historia / testimonios cards (Nosotros) -------- */
.story-card{ background:var(--white); border-radius:var(--radius-md); padding:28px; box-shadow:var(--shadow-sm); border:1px solid rgba(61,47,99,.06); height:100%; }
.story-card .icon{ width:50px; height:50px; border-radius:14px; background:var(--purple-100); display:flex; align-items:center; justify-content:center; margin-bottom:16px; font-size:1.3rem; }
.story-card h3{ font-size:1.08rem; margin-bottom:10px; }
.story-card p{ color:var(--ink-soft); font-size:.94rem; margin-bottom:0; }
.story-card blockquote{ margin:0 0 12px; padding-left:14px; border-left:3px solid var(--amber); color:var(--purple-900); font-style:italic; font-size:.98rem; }
.story-card .story-tag{ display:inline-block; font-family:'Poppins',sans-serif; font-weight:700; font-size:.68rem; letter-spacing:.06em; text-transform:uppercase; color:var(--purple-500); margin-bottom:2px; }

/* -------- zoom / lightbox (imagen de la ruta en Inicio) -------- */
.zoomable{ position:relative; cursor:zoom-in; display:inline-block; width:100%; }
.zoomable:focus-visible{ outline:3px solid var(--amber); outline-offset:4px; border-radius:28px; }
.zoom-hint{
  position:absolute; right:14px; bottom:14px; background:rgba(61,47,99,.86); color:#fff;
  font-family:'Poppins',sans-serif; font-weight:600; font-size:.76rem; padding:7px 14px;
  border-radius:999px; pointer-events:none; display:flex; align-items:center; gap:6px;
}
.lightbox-overlay{
  position:fixed; inset:0; background:rgba(44,36,64,.92); z-index:1000;
  display:flex; align-items:center; justify-content:center; padding:32px;
  opacity:0; pointer-events:none; transition:opacity .25s ease;
}
.lightbox-overlay.show{ opacity:1; pointer-events:auto; }
.lightbox-overlay img{ max-width:92vw; max-height:88vh; border-radius:18px; box-shadow:var(--shadow-lg); }
.lightbox-close{
  position:absolute; top:22px; right:26px; width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,.12); color:#fff; border:none; font-size:1.4rem; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:.2s;
}
.lightbox-close:hover{ background:rgba(255,255,255,.24); }
