/* Paleta de la fundación */
:root{
  --turq:#04CDEB;       /* principal */
  --turq-d:#0792A8;     /* texto/enlaces sobre blanco (contraste AA) */
  --turq-dd:#065A68;
  --green:#24D83D;      /* vida y crecimiento */
  --green-d:#12902A;
  --yellow:#FFE500;     /* esperanza */
  --ink:#10323A;
  --muted:#4B6870;
  --soft:#EFFBFD;
  --soft-y:#FFFBE0;
  --radius:20px;
  --shadow:0 12px 34px rgba(6,90,104,.14);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{font-family:'Nunito',system-ui,sans-serif;color:var(--ink);background:#fff;line-height:1.65;font-size:17px;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:var(--turq-d)}
h1,h2,h3{font-family:'Fraunces',Georgia,serif;line-height:1.15;font-weight:700}
h2{font-size:clamp(1.7rem,3.6vw,2.5rem);margin-bottom:1rem}
h3{font-size:1.35rem;margin-bottom:.5rem}
p{margin-bottom:1rem}
.wrap{width:min(1160px,100% - 40px);margin-inline:auto}
.skip{position:absolute;left:-999px;top:0;background:#fff;padding:.6rem 1rem;z-index:99}
.skip:focus{left:10px;top:10px}
section{position:relative}

.eyebrow{display:inline-block;font-weight:800;letter-spacing:.12em;text-transform:uppercase;font-size:.8rem;color:var(--yellow);margin-bottom:.9rem}
.eyebrow.dark{color:var(--green-d)}
.accent{color:var(--turq-d)}

/* Botones */
.btn{display:inline-block;padding:.85rem 1.6rem;border-radius:999px;font-weight:800;text-decoration:none;font-size:1rem;transition:transform .2s,box-shadow .2s,background .2s;border:2px solid transparent;cursor:pointer}
.btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.18)}
.btn-sm{padding:.5rem 1.1rem;font-size:.95rem}
.btn-primary{background:var(--turq);color:#06353d}
.btn-yellow{background:var(--yellow);color:#3a3300}
.btn-ghost{border-color:#fff;color:#fff;background:transparent}
.btn-ghost:hover{background:rgba(255,255,255,.15)}
:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);box-shadow:0 2px 14px rgba(6,90,104,.1)}
.header-in{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.4rem 0}
.brand img{height:62px;width:auto}
.nav{display:flex;align-items:center;gap:1.4rem}
.nav a:not(.btn){color:var(--ink);text-decoration:none;font-weight:700;font-size:.97rem;position:relative}
.nav a:not(.btn)::after{content:"";position:absolute;left:0;bottom:-4px;height:3px;width:0;background:var(--green);border-radius:3px;transition:width .25s}
.nav a:not(.btn):hover::after{width:100%}
.nav-toggle{display:none;background:none;border:0;width:44px;height:44px;cursor:pointer}
.nav-toggle span{display:block;height:3px;width:26px;background:var(--turq-d);margin:5px auto;border-radius:3px;transition:.25s}

/* Hero */
.hero{color:#fff;min-height:min(86vh,720px);display:flex;align-items:center;padding:5rem 0 7rem;overflow:hidden;background:var(--turq-dd)}
.hero-bg{position:absolute;inset:0;background:
  linear-gradient(100deg,rgba(4,140,160,.93) 0%,rgba(4,160,185,.78) 45%,rgba(4,205,235,.25) 100%),
  url(img/foto-2.jpg) center 35%/cover}
.hero-in{position:relative;max-width:1160px}
.hero h1{font-size:clamp(2.2rem,5.6vw,4rem);max-width:15ch;margin-bottom:1.2rem;text-shadow:0 2px 14px rgba(0,0,0,.2)}
.hl{color:var(--yellow)}
.lead{font-size:clamp(1.05rem,2vw,1.3rem);max-width:46ch;margin-bottom:1.8rem}
.hero-cta{display:flex;gap:.9rem;flex-wrap:wrap}
.wave{position:absolute;bottom:-1px;left:0;width:100%;height:70px}

/* Intro */
.intro{padding:4rem 0 5rem}
.intro-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:3.5rem;align-items:center}
.quote{font-family:'Fraunces',serif;font-size:1.25rem;color:var(--turq-dd);border-left:5px solid var(--yellow);padding-left:1.1rem;margin-top:1.4rem}
.intro-photos{position:relative;height:440px}
.intro-photos img{position:absolute;border-radius:var(--radius);object-fit:cover;box-shadow:var(--shadow);border:6px solid #fff}
.intro-photos img:first-child{width:74%;height:280px;top:0;right:0}
.intro-photos img:last-child{width:68%;height:250px;bottom:0;left:0}

/* Quiénes somos */
.quienes{padding:5rem 0;background:var(--soft)}
.quienes-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:3.5rem;align-items:center}
.quienes-img{position:relative}
.quienes-img img{border-radius:var(--radius);box-shadow:var(--shadow);aspect-ratio:4/3;object-fit:cover;width:100%}
.badge-float{position:absolute;left:16px;top:16px;display:inline-flex;align-items:center;gap:.45rem;background:var(--yellow);color:#3a3300;font-weight:800;font-size:.9rem;padding:.45rem 1rem .45rem .8rem;border-radius:999px;box-shadow:0 6px 16px rgba(0,0,0,.25)}
.badge-float::before{content:"";width:16px;height:16px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1.1L12 21l7.8-7.5 1-1.1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1.1L12 21l7.8-7.5 1-1.1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E") center/contain no-repeat}
.chips{list-style:none;display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem}
.chips li{background:#fff;border:2px solid var(--turq);color:var(--turq-dd);font-weight:700;padding:.45rem 1rem;border-radius:999px;font-size:.95rem}
.chips li:nth-child(even){border-color:var(--green)}

.familia-fin{text-align:center;line-height:0;margin-top:-2.6rem;position:relative;z-index:1}
.familia-fin img{width:min(260px,62vw);height:auto;display:block;margin:0 auto}

/* Misión y visión */
.mv{padding:5rem 0}
.section-head{max-width:760px;margin:0 auto 3rem;text-align:center}
.section-head .sub{color:var(--muted);font-size:1.1rem}
.mv-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.8rem}
.mv-card{padding:2.8rem 2.6rem;border-radius:24px;box-shadow:var(--shadow);position:relative;overflow:hidden;color:#fff;transition:transform .3s,box-shadow .3s}
.mv-card:hover{transform:translateY(-6px);box-shadow:0 22px 44px rgba(6,90,104,.22)}
.mv-card.mision{background:linear-gradient(150deg,#0788a0 0%,#056173 55%,#04505f 100%)}
.mv-card.vision{background:linear-gradient(150deg,#14912c 0%,#0e741f 55%,#0a5e1b 100%)}
/* círculos decorativos */
.mv-card::before,.mv-card::after{content:"";position:absolute;border-radius:50%;pointer-events:none}
.mv-card::before{width:260px;height:260px;right:-90px;top:-90px;background:rgba(255,255,255,.08)}
.mv-card::after{width:150px;height:150px;right:30px;bottom:-70px;background:rgba(255,229,0,.18)}
.mv-card>*{position:relative;z-index:1}
.mv-top{display:flex;align-items:center;gap:.9rem;margin-bottom:1.4rem}
.mv-card .ico{width:54px;height:54px;border-radius:50%;background:var(--yellow);color:#3a3300;display:grid;place-items:center;flex:none;box-shadow:0 6px 16px rgba(0,0,0,.2)}
.mv-tag{font-weight:800;letter-spacing:.14em;text-transform:uppercase;font-size:.82rem;color:var(--yellow)}
.mv-card svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mv-card h3{font-size:clamp(1.45rem,2.6vw,1.9rem);line-height:1.2;color:#fff;margin-bottom:1.1rem;max-width:20ch}
.mv-card p{margin:0;font-size:1.08rem;line-height:1.8;color:#f1fbfd;max-width:52ch}
.mv-card p strong{color:var(--yellow);font-weight:800}
.ayuda-card svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Edad dorada */
.edad{padding:5.5rem 0;background:linear-gradient(135deg,var(--turq-dd),#0a7f94);color:#fff;overflow:hidden}
.edad h2{color:#fff}
.hl-y{color:var(--yellow);display:block}
.edad-grid{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center}
.edad p{color:#e8fbff}
.edad .btn{margin-top:.6rem}
.edad-photos{position:relative;height:470px}
.edad-photos img{position:absolute;object-fit:cover;border-radius:var(--radius);box-shadow:0 18px 40px rgba(0,0,0,.35);border:6px solid #fff}
.edad-photos .p1{width:80%;height:320px;top:0;left:0}
.edad-photos .p2{width:66%;height:230px;bottom:0;right:0}

/* Labor social */
.labor{padding:5.5rem 0}
.labor-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.2rem;align-items:stretch}
.labor-grid figure{position:relative;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);min-height:380px}
.labor-grid img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s}
.labor-grid figure:hover img{transform:scale(1.06)}
.labor-grid figcaption{position:absolute;left:0;right:0;bottom:0;padding:2.5rem 1rem 1rem;color:#fff;font-weight:800;background:linear-gradient(transparent,rgba(5,45,55,.88))}

/* Galería */
.galeria{padding:5rem 0;background:var(--soft-y)}
.gal-grid{columns:4;column-gap:1rem}
.gal-item{display:block;width:100%;margin-bottom:1rem;border:0;padding:0;background:none;cursor:zoom-in;border-radius:16px;overflow:hidden;break-inside:avoid;box-shadow:0 6px 18px rgba(0,0,0,.12)}
.gal-item img{width:100%;height:auto;transition:transform .5s}
.gal-item:hover img{transform:scale(1.05)}

/* Cómo ayudar */
.ayudar{padding:5.5rem 0;background:linear-gradient(160deg,#12902A,#1ec03a);color:#fff;overflow:hidden}
.ayudar h2{color:#fff}
.section-head.light .sub{color:#eaffed}
.ayuda-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.2rem}
.ayuda-card{background:#fff;color:var(--ink);padding:1.8rem 1.5rem;border-radius:var(--radius);box-shadow:0 14px 30px rgba(0,50,10,.25);transition:transform .25s}
.ayuda-card:hover{transform:translateY(-6px)}
.ayuda-card .ico{width:56px;height:56px;border-radius:50%;background:var(--yellow);color:#3a3300;display:grid;place-items:center;margin-bottom:1rem}
.ayuda-card p{color:var(--muted);margin:0}
.ayuda-foot{text-align:center;margin-top:2.6rem}
.ayuda-foot p{font-family:'Fraunces',serif;font-size:1.3rem;max-width:40ch;margin:0 auto 1.4rem}

/* Contacto */
.contacto{padding:5.5rem 0}
.contacto-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:3rem;align-items:stretch}
.datos{list-style:none;display:grid;gap:1.1rem;margin-top:1.5rem}
.datos li{display:flex;gap:1rem;align-items:flex-start}
.d-ico{flex:none;width:46px;height:46px;border-radius:14px;background:var(--turq);display:grid;place-items:center;color:#06353d}
.d-ico svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.datos a{font-weight:700}
.mapa{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);min-height:380px;border:5px solid var(--yellow)}
.mapa iframe{width:100%;height:100%;border:0;min-height:380px}

/* Footer */
.site-footer{background:var(--soft);color:var(--ink)}
.foot-stripe{display:flex;height:8px}
.foot-stripe span{flex:1}
.foot-stripe span:nth-child(1){background:var(--turq)}
.foot-stripe span:nth-child(2){background:var(--green)}
.foot-stripe span:nth-child(3){background:var(--yellow)}
.foot-grid{display:grid;grid-template-columns:1.5fr .8fr 1.2fr 1.1fr;gap:2.5rem;padding:3.4rem 0 2.6rem}
.foot-brand img{height:96px;width:auto;margin-bottom:1rem}
.foot-brand p{color:var(--muted);max-width:34ch}
.foot-brand .nit{font-weight:800;color:var(--turq-dd);margin:0}
.foot-col h4{font-family:'Fraunces',serif;font-size:1.15rem;color:var(--turq-dd);margin-bottom:1rem;position:relative;padding-bottom:.6rem}
.foot-col h4::after{content:"";position:absolute;left:0;bottom:0;width:36px;height:4px;border-radius:4px;background:var(--green)}
.foot-col a:not(.btn){display:block;color:var(--ink);text-decoration:none;padding:.18rem 0}
.foot-col p a:not(.btn){display:inline;padding:0}
.foot-col a:not(.btn):hover{color:var(--turq-d);text-decoration:underline}
.foot-col p{color:var(--ink);margin-bottom:.8rem}
.foot-help p{color:var(--muted)}
.foot-bar{background:var(--turq-dd);color:#d7f3f8;font-size:.92rem}
.foot-bar-in{display:flex;justify-content:space-between;gap:.4rem 2rem;flex-wrap:wrap;padding:1rem 0}
.foot-bar p{margin:0}

/* WhatsApp */
.wa-fab{position:fixed;right:18px;bottom:18px;width:58px;height:58px;border-radius:50%;background:#25D366;color:#fff;display:grid;place-items:center;box-shadow:0 8px 22px rgba(0,0,0,.3);z-index:60;transition:transform .2s}
.wa-fab:hover{transform:scale(1.08)}
.wa-fab svg{width:32px;height:32px}

/* Lightbox */
.lightbox{position:fixed;inset:0;background:rgba(3,25,30,.92);display:grid;place-items:center;z-index:100;padding:20px}
.lightbox[hidden]{display:none}
.lightbox img{max-height:90vh;max-width:94vw;border-radius:12px}
.lb-close{position:absolute;top:14px;right:22px;background:none;border:0;color:#fff;font-size:2.6rem;cursor:pointer;line-height:1}

/* Animación de entrada */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}.reveal{opacity:1;transform:none;transition:none}
  .btn,.ayuda-card,.labor-grid img,.gal-item img{transition:none}
}

/* Responsive */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}

/* Laptops pequeñas / tabletas grandes */
@media (max-width:1100px){
  .nav{gap:1rem}
  .intro-grid,.quienes-grid,.edad-grid,.contacto-grid{gap:2.5rem}
  .foot-grid{gap:2rem}
}

/* Tabletas: se mantienen 2 columnas donde caben */
@media (max-width:980px){
  h2{font-size:clamp(1.6rem,3.8vw,2.1rem)}
  .labor-grid,.ayuda-grid{grid-template-columns:repeat(2,1fr)}
  .gal-grid{columns:3}
  .foot-grid{grid-template-columns:1fr 1fr}
  .intro-photos{height:390px}
  .edad-photos{height:420px}
  .edad-photos .p1{height:290px}.edad-photos .p2{height:210px}
  .mv-card{padding:2.2rem 1.8rem}
}

/* Menú tipo hamburguesa */
@media (max-width:900px){
  .nav-toggle{display:block}
  .nav{position:absolute;top:100%;left:0;right:0;background:#fff;flex-direction:column;align-items:stretch;padding:1rem 20px 1.4rem;gap:.2rem;box-shadow:0 14px 24px rgba(0,0,0,.12);display:none;max-height:calc(100vh - 70px);overflow-y:auto}
  .nav.open{display:flex}
  .nav a:not(.btn){padding:.85rem 0;border-bottom:1px solid #e4f3f6}
  .nav a:not(.btn)::after{display:none}
  .nav .btn{text-align:center;margin-top:.6rem;padding:.8rem 1.2rem}
  .nav-toggle[aria-expanded=true] span:nth-child(1){transform:translateY(8px) rotate(45deg)}
  .nav-toggle[aria-expanded=true] span:nth-child(2){opacity:0}
  .nav-toggle[aria-expanded=true] span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
}

/* Tabletas pequeñas y celulares grandes: una columna */
@media (max-width:760px){
  .intro-grid,.quienes-grid,.edad-grid,.contacto-grid,.mv-grid{grid-template-columns:1fr}
  .intro,.quienes,.mv,.edad,.labor,.galeria,.ayudar,.contacto{padding-block:4rem}
  .intro-photos,.edad-photos{max-width:560px;margin-inline:auto;width:100%}
  .quienes-img{max-width:620px;margin-inline:auto}
  .mv-card{padding:2.4rem 2rem}
  .section-head{margin-bottom:2.2rem}
  .hero{min-height:0;padding:4.5rem 0 6.5rem}
  .mapa,.mapa iframe{min-height:320px}
}

/* Celulares */
@media (max-width:560px){
  body{font-size:16px}
  .wrap{width:min(1160px,100% - 32px)}
  .gal-grid{columns:2;column-gap:.7rem}
  .gal-item{margin-bottom:.7rem}
  .labor-grid,.ayuda-grid{grid-template-columns:1fr}
  .labor-grid figure{min-height:300px}
  .hero{padding:3.5rem 0 6rem}
  .hero-cta{flex-direction:column;align-items:stretch}
  .hero-cta .btn{text-align:center}
  .intro-photos{height:340px}
  .intro-photos img:first-child{height:210px}.intro-photos img:last-child{height:190px}
  .edad-photos{height:400px}
  .edad-photos .p1{height:250px}.edad-photos .p2{height:190px}
  .edad .btn,.ayuda-foot .btn{display:block;text-align:center}
  .mv-card{padding:2rem 1.5rem}
  .mv-card p{font-size:1.02rem}
  .ayuda-card{padding:1.5rem 1.3rem}
  .datos li{gap:.8rem}
  .brand img{height:52px}
  .familia-fin img{width:min(220px,60vw)}
  .foot-grid{grid-template-columns:1fr;gap:1.8rem;padding:2.6rem 0 2rem}
  .foot-col a:not(.btn){padding:.4rem 0}
  .foot-col p a:not(.btn){padding:.4rem 0}
  .foot-bar-in{flex-direction:column;text-align:center;padding:1rem 0 4.6rem}
  .wa-fab{width:54px;height:54px;right:14px;bottom:14px}
}

/* Celulares muy pequeños */
@media (max-width:380px){
  .wrap{width:min(1160px,100% - 28px)}
  h2{font-size:1.55rem}
  .hero h1{font-size:2rem}
  .badge-float{font-size:.8rem;left:12px;top:12px}
  .chips li{font-size:.88rem}
  .brand img{height:46px}
}

/* Celulares en horizontal (poca altura) */
@media (max-height:480px) and (orientation:landscape){
  .hero{min-height:0;padding:3rem 0 5rem}
  .site-header{position:static}
}
