/* ===== RESET ===== */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Inter',sans-serif;
  background:#f5f6f7;
  color:#333;
  overflow-x:hidden;
}

/* ===== NAVBAR ===== */

.nav{
  position:sticky;
  top:0;
  z-index:1000;

  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:18px 70px;

  background:rgba(255,255,255,.75);
  backdrop-filter:blur(12px);

  box-shadow:0 5px 20px rgba(0,0,0,.05);
  transition:.3s;
}

.nav.scrolled{
  background:rgba(255,255,255,.95);
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

/* LOGO */
.logo img{
  height:80px;
  width:auto;
  display:block;
}

/* MENU */
.menu{
  display:flex;
  gap:35px;
}

.menu a{
  position:relative;
  text-decoration:none;
  color:#333;
  font-size:18px;
  font-weight:600;
  transition:.25s;
}

.menu a:hover{
  color:#5b2c83;
}

.menu a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;

  width:0%;
  height:2px;

  background:#5b2c83;
  transition:.25s;
}

.menu a:hover::after{
  width:100%;
}

/* ===== HERO ===== */

.hero{
display:flex;
justify-content:space-between;
align-items:center;
gap:40px;
padding:50px 60px;
min-height:560px;

background:
linear-gradient(
90deg,
rgba(255,255,255,.60) 8%,
rgba(255,255,255,.10)
),
url('img/amigos-tresss2.png')
center/cover no-repeat;

position:relative;
}

/* TEXTO */

.hero-text{
  max-width:620px;
}

.hero-text h1{
  font-size:72px;
  line-height:1.05;
  margin-bottom:20px;
}

.c1{color:#183153;}
.c2{color:#2BBBAD;}
.c3{color:#729B5C;}

.hero-text p{
  max-width:550px;
  line-height:1.8;
  font-size:18px;
  color:#444;
  margin-bottom:30px;
}

/* BOTONES */

.hero-buttons{
  display:flex;
  gap:15px;
}

.btn{
  border:none;
  border-radius:12px;
  padding:16px 28px;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  transition:.25s;
}

.primary{
  background:#5b2c83;
  color:white;
  box-shadow:0 10px 25px rgba(91,44,131,.25);
}

.primary:hover{
  transform:translateY(-2px);
}

.outline{
  background:transparent;
  border:2px solid #5b2c83;
  color:#5b2c83;
}

.outline:hover{
  background:#5b2c83;
  color:white;
}

/* ===== DONATION BOX ===== */

.box{
  width:380px;
  background:rgba(255,255,255,.95);

  backdrop-filter:blur(15px);

  border-radius:24px;
  padding:30px;

  box-shadow:
  0 20px 60px rgba(0,0,0,.12);

  flex-shrink:0;
}

.box h3{
  font-size:28px;
  text-align:center;
  margin-bottom:10px;
}

.donation-subtitle{
  text-align:center;
  color:#666;
  margin-bottom:25px;
}

/* MONTOS */

.amounts{
display:grid;
grid-template-columns:repeat(5,minmax(0,1fr));
gap:10px;
width:100%;
}

.amounts button{
border:none;
border-radius:12px;
background:#f2f2f2;
padding:14px 8px;
cursor:pointer;
font-weight:600;
transition:.25s;
min-width:0;
font-size:14px;
overflow:hidden;
text-overflow:ellipsis;
}

.amounts button:hover{
  background:#ececec;
}

.amounts button.active{
  background:#5b2c83;
  color:white;
}

/* CUSTOM */

#customAmount{
  width:100%;
  padding:15px;

  border-radius:12px;
  border:1px solid #ddd;

  margin-top:15px;
  display:none;

  font-size:15px;
}

/* BOTON DONAR */

.main{
  width:100%;
  border:none;
  margin-top:18px;

  background:#5b2c83;
  color:white;

  padding:16px;
  border-radius:14px;

  font-size:15px;
  font-weight:700;

  cursor:pointer;
  transition:.25s;
}

.main:hover{
  transform:translateY(-2px);
}

/* CHECKBOX */

.donation-option{
  margin-top:18px;
}

.checkbox-container{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;

  cursor:pointer;
  font-size:14px;
  color:#555;
}

.checkbox-container input{
  display:none;
}

.checkmark{
  width:18px;
  height:18px;

  border:2px solid #5b2c83;
  border-radius:5px;

  position:relative;
}

.checkbox-container input:checked + .checkmark{
  background:#5b2c83;
}

.checkbox-container input:checked + .checkmark::after{
  content:"";
  position:absolute;

  left:5px;
  top:1px;

  width:4px;
  height:8px;

  border:solid white;
  border-width:0 2px 2px 0;

  transform:rotate(45deg);
}

/* TARJETAS */

.cards{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:12px;
margin-top:24px;
align-items:center;
}

.cards img{
width:100%;
max-width:75px;
height:38px;
object-fit:contain;
display:block;
margin:auto;
transition:.25s;
filter:grayscale(.1);
}

.cards img:hover{
transform:scale(1.08);
filter:none;
}

/* ===== FEATURES ===== */

.features{
position:relative;
display:flex;
justify-content:space-between;
gap:2px;
padding:40px 50px;
background:white;
}

.features::before{
content:"";
position:absolute;
top:0;
left:50%;
transform:translateX(-50%);
width:92%;
height:20px;
background:linear-gradient(
90deg,
transparent,
rgba(91,44,131,.18),
rgba(91,44,131,.35),
rgba(91,44,131,.18),
transparent
);
}

.feature{
  display:flex;
  gap:15px;
  flex:1;
}

.icon{
min-width:70px;
width:70px;
height:70px;
display:flex;
align-items:center;
justify-content:center;
flex-shrink:0;
background:none;
border-radius:0;
overflow:visible;
}

.icon img{
width:58px;
height:58px;
object-fit:contain;
display:block;
filter:drop-shadow(0 2px 6px rgba(0,0,0,.12));
transition:.25s;
}

.icon img:hover{
transform:scale(1.08);
}

.feature h4{
  margin-bottom:6px;
  color: #0D5C63;
}

.feature p{
  color:#666;
  line-height:1.5;
}

/* ===== CARDS ===== */

.cards-section{
position:relative;
padding:70px;
background:#f5f6f7;
}

.cards-section::before{
content:"";
position:absolute;
top:0;
left:50%;
transform:translateX(-50%);
width:92%;
height:20px;
background:linear-gradient(
90deg,
transparent,
rgba(91,44,131,.18),
rgba(91,44,131,.35),
rgba(91,44,131,.18),
transparent
);
}

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:25px;
}

.card{
  background:white;
  border-radius:24px;
  overflow:hidden;

  box-shadow:
  0 10px 30px rgba(0,0,0,.08);

  transition:.25s;
}

.card:hover{
  transform:translateY(-8px);
}

.card img{
  width:100%;
  height:220px;
  object-fit:cover;
}

.card-content{
  padding:22px;
}

.card-content h4{
  margin-bottom:10px;
  color: #0D5C63;
}

/* ===== FOOTER ===== */

.footer{
background:#0D5C63;
color:white;
padding:35px 70px;

display:flex;
justify-content:space-between;
align-items:center;
gap:30px;
flex-wrap:wrap;
}

.footer-text{
font-size:18px;
font-weight:500;
}

.footer-logo{
display:flex;
justify-content:center;
align-items:center;
flex:1;
}

.footer-logo img{
height:50px;
width:auto;
display:block;
opacity:.95;
transition:.25s;
}

.footer-logo img:hover{
transform:scale(1.03);
opacity:1;
}

.footer button{
border:none;
background:#F1C40F;
padding:15px 22px;
border-radius:12px;
cursor:pointer;
font-weight:700;
transition:.25s;
}

.footer button:hover{
transform:translateY(-2px);
}

/* ===== RESPONSIVE ===== */

@media(max-width:991px){

  .hero{
    flex-direction:column;
    text-align:center;
  }

  .hero-buttons{
    justify-content:center;
  }

  .grid{
    grid-template-columns:1fr 1fr;
  }

  .features{
    flex-direction:column;
  }
}

@media(max-width:768px){

.nav{
padding:20px;
flex-direction:column;
gap:20px;
}

.menu{
gap:18px;
flex-wrap:wrap;
justify-content:center;
}

.menu a{
font-size:14px;
}

.hero{
padding:50px 20px;
flex-direction:column;
text-align:center;
gap:30px;
}

.hero-text h1{
font-size:48px;
}

.hero-buttons{
justify-content:center;
flex-wrap:wrap;
}

.box{
width:100%;
max-width:100%;
padding:22px;
}

/* FIX MAKE A DONATION */
.amounts{
grid-template-columns:repeat(3,1fr);
gap:8px;
}

.amounts button{
font-size:13px;
padding:12px 6px;
min-width:0;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}

/* OTHER más ancho */
.amounts button[data-amount="custom"]{
grid-column:span 2;
}

.cards{
grid-template-columns:repeat(2,1fr);
gap:10px;
}

.cards img{
max-width:65px;
height:34px;
}

.features{
flex-direction:column;
padding:35px 25px;
gap:25px;
}

.feature{
align-items:flex-start;
}

.icon{
width:60px;
height:60px;
min-width:60px;
}

.icon img{
width:50px;
height:50px;
}

.grid{
grid-template-columns:1fr;
}

.footer{
flex-direction:column;
gap:20px;
text-align:center;
}

.footer-logo img{
height:55px;
}

/* MODAL MOBILE FIX */
.modal,
.learnModal{
width:100%;
max-width:100%;
padding:28px 22px;
border-radius:20px;
max-height:none;
overflow:visible;
margin:auto;
}

#overlay,
#learnOverlay{
align-items:flex-start;
overflow-y:auto;
padding:30px 15px;
-webkit-overflow-scrolling:touch;
}

.modal h2,
.learnModal h2{
font-size:28px;
}

.modal p,
.learnModal p{
font-size:15px;
line-height:1.7;
}
}

/* ===== LEARN MORE MODAL ===== */

#learnOverlay{
position:fixed;
top:0;
left:0;
width:100vw;
height:100vh;
display:none;
justify-content:center;
align-items:flex-start;
overflow-y:auto;
padding:30px 15px;
background:rgba(0,0,0,.65);
backdrop-filter:blur(18px);
-webkit-backdrop-filter:blur(18px);
-webkit-overflow-scrolling:touch;
z-index:9999;
}

#overlay{
position:fixed;
top:0;
left:0;
width:100vw;
height:100vh;
display:none;
justify-content:center;
align-items:flex-start;
overflow-y:auto;
padding:30px 15px;
background:rgba(0,0,0,.65);
backdrop-filter:blur(18px);
-webkit-backdrop-filter:blur(18px);
-webkit-overflow-scrolling:touch;
z-index:9999;
}

.modal{
position:relative;
width:700px;
max-width:95%;
margin:auto;

background:#fff;
color:#111;

padding:40px;
border-radius:24px;

border:1px solid rgba(91,44,131,.18);

box-shadow:
0 25px 70px rgba(0,0,0,.20),
0 0 30px rgba(91,44,131,.08);

animation:zoomIn .25s ease;
}

.learnModal{
position:relative;
width:750px;
max-width:95%;
margin:auto;

background:#fff;
color:#111;

padding:40px;
border-radius:24px;

border:1px solid rgba(91,44,131,.18);

box-shadow:
0 25px 70px rgba(0,0,0,.20),
0 0 30px rgba(91,44,131,.08);

animation:zoomIn .25s ease;
}

.learnModal h2{
font-size:34px;
font-weight:700;
color:#5b2c83;
margin-bottom:18px;
text-align:center;
}

.learnModal p{
font-size:17px;
line-height:1.8;
color:#444;
text-align:justify;
}

/* ===== BOTONES DE CERRAR MODALES (LA "X") ===== */

#learnClose, 
#closeBtn {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
  color: #777;
  transition: .2s;
  line-height: 1;
}

#learnClose:hover, 
#closeBtn:hover {
  color: #5b2c83;
  transform: scale(1.1);
}