/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --green-dark:   #3a5a2e;
  --green-mid:    #5a7a44;
  --green-light:  #8aab5c;
  --green-pale:   #c8d8a8;
  --yellow:       #d4a017;
  --yellow-btn:   #c9a227;
  --text-dark:    #222;
  --text-body:    #444;
  --white:        #fff;
  --gray-bg:      #f5f5f0;
  --section-pad:  4rem 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: var(--text-body);
  background: var(--white);
}

h1,h2,h3,h4,h5,h6 { font-family: 'Montserrat', sans-serif; color: var(--text-dark); }
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.75rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { font-size: 1rem; line-height: 1.65; }
small { font-size: 0.75rem; }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white);
  border-bottom: 1px solid #e0e0d8;
  padding: 0.6rem 0;
}
.navbar-brand img { height: 52px; }
.navbar-brand .brand-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  line-height: 1.2;
  color: var(--green-dark);
  max-width: 160px;
}
.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark) !important;
  padding: 0.4rem 0.8rem !important;
  transition: color .2s;
}
.nav-link:hover { color: var(--green-mid) !important; }
.btn-donate {
  background: transparent;
  border: 2px solid #e84040;
  color: #e84040;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 20px;
  padding: 0.3rem 1rem;
  transition: all .2s;
}
.btn-donate:hover { background: #e84040; color: #fff; }
.flag-icon { width: 40px; border-radius: 3px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  background-image: url('../assets/hero-background.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30,55,20,.75) 10%, transparent 100%);
}
.hero-content { position: relative; z-index: 1; padding: 4rem 0; }
.hero h1 { color: var(--white); font-size: 2.5rem; font-weight: 800; line-height: 1.2; }
.btn-hero {
  background: var(--green-light);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  border: none;
  border-radius: 9px;
  padding: 0.3rem 1.8rem;
  margin-top: 1.5rem;
  transition: background .2s;
}
.btn-hero:hover { background: var(--green-dark); color: var(--white); }

/* ===== SECTION HEADERS (green band) ===== */
.section-header {
  background: var(--green-mid);
  padding: 0.6rem 0;
  margin-bottom: 2rem;
}
.section-header h2 { color: var(--white); margin: 0; font-size: 1.5rem; }

/* ===== ABOUT (Historia / Misión / Visión) ===== */
#about { padding: var(--section-pad); background: var(--white); }
.about-img-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.about-img-wrap img { width: 100%; height: 300px; object-fit: cover; border-radius: 8px; }
.about-text h3 { color: var(--green-dark); margin-top: 1rem; font-size: 1.1rem; }
.about-text p  { font-size: 0.9rem; }

/* ===== VOLUNTARIADOS ===== */
#voluntariados { 
  padding: var(--section-pad); background: var(--gray-bg); 
}
.vol-info{
  padding-left:5%;
  padding-right:5%;
}
.vol-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  text-align: center;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
}
.vol-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.vol-icon {
  width: 70px; height: 70px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.8rem; color: var(--white);
}
.vol-card h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.vol-card p  { font-size: 0.82rem; color: #666; }
.btn-vol {
  background: var(--green-light);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  border: none;
  border-radius: 4px;
  padding: 0.4rem 1.2rem;
  margin-top: 0.75rem;
  transition: background .2s;
  display: none; /* Initially hidden, will be shown when needed */
}
.btn-vol:hover { background: var(--green-dark); }
.vol-intro h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.vol-intro p  { font-size: 0.88rem; }

/* ===== ESTACIONES ===== */
#estaciones { padding: var(--section-pad); background: var(--white); }
.est-intro p { font-size: 0.9rem; max-width: 540px; }
.costa-rica-map img { max-width: 500px; }
.est-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.est-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.est-card img { width: 100%; height: 160px; object-fit: cover; }
.est-card-body { padding: 1rem; }
.est-card-body .location {
  font-size: 0.78rem; color: #888;
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 0.5rem;
}
.est-card-body ul { padding-left: 1rem; font-size: 0.82rem; margin: 0.5rem 0; }
.btn-detail {
  background: var(--green-light);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  border: none;
  border-radius: 4px;
  padding: 0.4rem 1.4rem;
  margin-top: 0.5rem;
  transition: background .2s;
  display: none; /* Initially hidden, will be shown when needed */
}
.btn-detail:hover { background: var(--green-dark); }

/* ===== DÓNDE MÁS ===== */
#donde { padding: var(--section-pad); background: var(--gray-bg); }
#donde .intro-text { font-size: 0.9rem; max-width: 600px; margin-bottom: 2rem; }
.place-card {
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  transition: transform .2s;
}
.place-card:hover { transform: translateY(-3px); }
.place-card img { width: 100%; height: 130px; object-fit: cover; }
.place-card .place-name {
  padding: 0.6rem 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
}
.place-card .place-loc {
  padding: 0 0.75rem 0.6rem;
  font-size: 0.75rem; color: #888;
  display: flex; align-items: center; gap: 4px;
}

/* ===== HISTORIAS ===== */
#historias { padding: var(--section-pad); background: var(--white); }
.story-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  height: 100%;
}
.story-card img { width: 100%; height: 180px; object-fit: cover; }
.story-card-body { padding: 1rem; }
.story-card-body h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.story-card-body p  { font-size: 0.82rem; color: #666; }

/* ===== CAROUSEL NAV ===== */
.carousel-btn {
  background: none;
  border: 2px solid var(--green-mid);
  color: var(--green-mid);
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .2s;
}
.carousel-img { 
  height: 300px; 
  object-fit: cover;
  object-position: top right; 
}

.carousel-btn:hover { background: var(--green-mid); color: var(--white); }

/* ===== FOOTER ===== */
footer {
  background: var(--white);
  border-top: 1px solid #e0e0d8;
  padding: 3rem 0 2rem;
}
.footer-logo img { height: 52px; }
.footer-social a {
  color: var(--green-dark);
  font-size: 1.3rem;
  margin-right: 0.6rem;
  transition: color .2s;
}
.footer-social a:hover { color: var(--green-light); }
.footer-col h5 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.35rem; }
.footer-col ul li a {
  font-size: 0.82rem;
  color: #666;
  text-decoration: none;
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--green-mid); }
.footer-contact p { font-size: 0.82rem; color: #666; margin: 0.2rem 0; }

/* ===== UTILITIES ===== */
.section-pad { padding: var(--section-pad); }
.text-green { color: var(--green-dark); }

/* Responsive tweaks */
@media (max-width: 767px) {
  .hero h1 { font-size: 1.8rem; }
  .costa-rica-map { display: none; }
}

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content > div {
  background: rgba(0, 0, 0, 0.30);
  padding: 35px;
  border-radius: 10px;
}

.hero-text {
  max-width: 580px;
  margin-bottom: 30px;

  font-family: "Open Sans", sans-serif;
  font-size: 1.15rem;
  line-height: 1.7;
  font-weight: 600;

  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}