/* ─── TIPO GENERAL ─── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--green-dark); margin-bottom: 1rem;
}
.eyebrow::before { content: ''; display: block; width: 20px; height: 2px; background: var(--green); flex-shrink: 0; }
.eyebrow.center::before { display: none; }
h1, h2, h3 { font-family: 'Inter', sans-serif; letter-spacing: -0.02em; color: var(--text-main); }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.15; }
h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.lead { font-size: 1.05rem; line-height: 1.8; color: var(--text-sub); font-weight: 400; }
.prose { font-size: 0.97rem; line-height: 1.82; color: var(--text-sub); }
.prose p + p { margin-top: 1rem; }
.prose strong { color: var(--text-main); font-weight: 600; }

/* ─── SECCIÓN GENÉRICA ─── */
.section { padding: 7rem 2.5rem; }
.section-inner { max-width: 1180px; margin: 0 auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.three-col { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.four-col { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--mid-gray); border-radius: 12px; overflow: hidden; border: 1px solid var(--mid-gray); }

/* ─── STATS ─── */
#stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--off-white); }
.stats-row { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); }
.stat-box { padding: 2.5rem 1.8rem; text-align: center; border-right: 1px solid var(--border); }
.stat-box:last-child { border-right: none; }
.stat-num { font-family: 'Inter', sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--green-dark); display: block; line-height: 1; letter-spacing: -0.03em; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); display: block; line-height: 1.5; font-weight: 400; }

/* ─── NOSOTROS ─── */
#nosotros { background: var(--white); }
.timeline { margin-top: 2.5rem; padding-left: 1.8rem; border-left: 2px solid var(--mid-gray); display: flex; flex-direction: column; gap: 1.5rem; }
.tl { position: relative; }
.tl::before { content: ''; position: absolute; left: -2.4rem; top: 0.2rem; width: 10px; height: 10px; border-radius: 50%; background: var(--white); border: 2.5px solid var(--green); }
.tl-yr { font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 0.2rem; }
.tl-tx { font-size: 0.95rem; color: var(--text-sub); line-height: 1.6; }

/* ─── SEGMENTOS ─── */
#segmentos { background: var(--off-white); }
.seg-header { text-align: center; max-width: 600px; margin: 0 auto 4rem; }
.seg-header .eyebrow { justify-content: center; }

/* ─── HUMEDAL ─── */
#humedal { background: var(--white); }

/* ─── GALERÍA AVES ─── */
#galeria { background: var(--off-white); }
.galeria-header { text-align: center; max-width: 600px; margin: 0 auto 3.5rem; }
.galeria-header .eyebrow { justify-content: center; }
.galeria-cta { text-align: center; margin-top: 3rem; }
.galeria-cta p { font-size: 0.95rem; color: var(--text-sub); margin-bottom: 1.2rem; }

/* ─── PRENSA ─── */
#prensa { background: var(--off-white); }

/* ─── CONTACTO ─── */
#contacto { background: var(--white); border-top: 1px solid var(--border); }

/* ─── FOOTER ─── */
footer { background: var(--off-white); border-top: 1px solid var(--border); padding: 3rem 2.5rem; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; }
.footer-brand svg { height: 32px; }
.footer-tagline { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.8rem; max-width: 320px; line-height: 1.6; }
.footer-right { text-align: right; }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); display: block; margin-bottom: 0.8rem; }
.footer-links { display: flex; gap: 1.5rem; justify-content: flex-end; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--green-dark); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  #hero { grid-template-columns: 1fr; }
  .hero-right { aspect-ratio: 16/9; min-height: 350px; }
  .two-col { grid-template-columns: 1fr; gap: 3.5rem; }
  .four-col { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-box:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  #hero { grid-template-columns: 1fr; }
  .hero-left { min-height: 60vh; padding: 4rem 1.5rem; }
  .hero-right { min-height: 40vh; order: -1; } /* Image on top on mobile */
  .section { padding: 5rem 1.5rem; }
  footer { padding: 3rem 1.5rem; }
  .four-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .aves-grid { grid-template-columns: 1fr 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .footer-right { text-align: left; }
  .footer-links { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .aves-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-box { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-box:last-child { border-bottom: none; }
}

/* ─── POPUPSTY BAR ─── */
.popupsty-bar {
  background: #111;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.popupsty-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
}
.popupsty-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
  filter: brightness(1.2);
}
.popupsty-logo:hover { opacity: 1; transform: scale(1.04); }
.popupsty-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  text-align: center;
  letter-spacing: 0.02em;
}
.popupsty-url {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.popupsty-url:hover { color: var(--gold); }

/* ─── GALERÍA MODAL ─── */
.gal-modal-fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin: auto;
}
.gal-modal-caption {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
  text-align: center;
}

/* ─── MODAL PRONTO ─── */
.pronto-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.pronto-modal[hidden] { display: none; }
.pronto-modal.pm-open .pronto-backdrop {
  animation: pmFadeIn 0.3s ease forwards;
}
.pronto-modal.pm-open .pronto-box {
  animation: pmSlideUp 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.pronto-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(6px);
}
@keyframes pmFadeIn { from{opacity:0} to{opacity:1} }

.pronto-box {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, #0d1f10 0%, #142a17 100%);
  border: 1px solid rgba(58,170,53,0.25);
  border-radius: 20px;
  padding: 3.5rem 3rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(58,170,53,0.1);
  opacity: 0;
  transform: translateY(30px);
}
@keyframes pmSlideUp {
  from { opacity:0; transform: translateY(30px); }
  to   { opacity:1; transform: translateY(0); }
}

.pronto-close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 1.4rem;
  line-height: 1;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.pronto-close:hover { background: rgba(58,170,53,0.3); color: #fff; }

.pronto-logo {
  height: 44px;
  width: auto;
  margin-bottom: 1.8rem;
  filter: brightness(1.1);
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.pronto-badge {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ff4444;
  box-shadow: 0 0 8px #ff4444;
  animation: blink 1.2s infinite;
  margin-bottom: 1.2rem;
  font-size: 0;
}
.pronto-title {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, #52c44d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pronto-sub {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}
