@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700;800&display=swap');

:root {
  --teal: #4dab9a;
  --teal-dark: #3d9688;
  --teal-light: #e8f5f3;
  --coral: #E68A75;
  --coral-dark: #D07460;
  --gold: #C9A23A;
  --white: #ffffff;
  --off-white: #f8f7f5;
  --gray-light: #efefef;
  --gray-text: #5a6472;
  --dark: #1a2620;
  --nav-height: 68px;
  --radius: 14px;
  --shadow-sm: 0 2px 14px rgba(0,0,0,0.06);
  --shadow: 0 6px 28px rgba(0,0,0,0.10);
  --shadow-lg: 0 14px 50px rgba(0,0,0,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  background: var(--white);
  color: var(--dark);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(77,171,154,0.18);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  transition: box-shadow 0.3s, border-color 0.3s;
}
nav.scrolled { box-shadow: var(--shadow); border-bottom-color: transparent; }

.nav-logo img { height: 46px; width: auto; }

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.75rem; font-weight: 700;
  color: var(--dark); text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.09em;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); border-bottom-color: var(--teal); }

.nav-right { display: flex; align-items: center; gap: 1.2rem; }

.btn-dona {
  border: 2px solid var(--teal);
  color: var(--teal); background: transparent;
  padding: 0.38rem 1.4rem; font-family: 'Raleway', sans-serif;
  font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border-radius: 50px;
  transition: background 0.22s, color 0.22s, transform 0.2s;
}
.btn-dona:hover { background: var(--teal); color: white; transform: translateY(-1px); }

.nav-social-icons { display: flex; gap: 0.6rem; align-items: center; }
.nav-social-icons a { color: var(--dark); display: flex; align-items: center; font-size: 1.1rem; transition: color 0.2s; }
.nav-social-icons a:hover { color: var(--teal); }

/* floating social sidebar */
.social-sidebar {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 99; background: var(--teal);
  display: flex; flex-direction: column;
  border-radius: 8px 0 0 8px;
  overflow: hidden;
  box-shadow: -2px 0 12px rgba(77,171,154,0.25);
}
.social-sidebar a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  color: white; font-size: 1.1rem;
  transition: background 0.2s;
}
.social-sidebar a:hover { background: var(--teal-dark); }

/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; }
.mobile-menu { display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; background: white; border-bottom: 2px solid var(--teal); padding: 1.5rem 2rem; flex-direction: column; gap: 1rem; z-index: 98; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-weight: 600; color: var(--dark); text-decoration: none; font-size: 1rem; }
.mobile-menu a:hover { color: var(--teal); }

@media (max-width: 768px) {
  .nav-links, .nav-social-icons { display: none; }
  .hamburger { display: flex; }
  .btn-dona-desktop { display: none; }
  .social-sidebar { display: none; }
}

/* ── MAIN ── */
main { padding-top: var(--nav-height); }

/* ── BUTTONS ── */
.btn-teal {
  display: inline-block;
  background: var(--teal); color: white;
  border: 2px solid var(--teal);
  padding: 0.62rem 2.2rem;
  border-radius: 50px;
  font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.09em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.btn-teal:hover {
  background: var(--teal-dark); border-color: var(--teal-dark);
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(77,171,154,0.38);
}

.btn-outline-white {
  display: inline-block;
  background: transparent; color: white;
  border: 2px solid rgba(255,255,255,0.7);
  padding: 0.62rem 2.2rem;
  border-radius: 50px;
  font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.09em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}
.btn-outline-white:hover { background: white; color: var(--teal); border-color: white; transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  background: var(--teal);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}
footer img { height: 68px; margin-bottom: 0.8rem; }
footer p { font-size: 0.82rem; color: rgba(255,255,255,0.85); font-weight: 500; }
.footer-tagline { font-size: 0.88rem; color: rgba(255,255,255,0.8); margin-bottom: 1.2rem; font-style: italic; }
.footer-contact { display: flex; justify-content: center; align-items: center; gap: 0.75rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.footer-contact a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.82rem; font-weight: 600; transition: color 0.2s; }
.footer-contact a:hover { color: white; text-decoration: underline; }
.footer-sep { color: rgba(255,255,255,0.35); font-size: 0.9rem; }
.footer-social { display: flex; justify-content: center; gap: 0.7rem; margin-bottom: 1.6rem; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.15); color: white; transition: background 0.2s; }
.footer-social a:hover { background: rgba(255,255,255,0.28); }
.footer-copy { font-size: 0.73rem; color: rgba(255,255,255,0.45); margin-top: 0.4rem; }

/* ── SECTIONS ── */
section { padding: 60px 20px; }
.container { max-width: 1100px; margin: 0 auto; }

/* ── UTILITIES ── */
.section-label {
  display: block;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.55rem;
}

/* ── PAGE TITLES ── */
.page-title { text-align: center; padding: 64px 20px 44px; background: var(--teal-light); }
.page-title h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--dark); }
.page-title p { color: var(--gray-text); font-size: 0.95rem; margin-top: 0.8rem; }
.page-title .subtitle { color: var(--teal); font-size: 1.1rem; font-weight: 600; margin-top: 0.5rem; }

/* ── SCROLL FADE-IN ── */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── IMAGE HOVER ZOOM ── */
.obra-grid { overflow: hidden; }
.obra-grid img { border-radius: 3px; transition: transform 0.35s ease; }
.obra-grid img:hover { transform: scale(1.06); }
.foto-grid img { border-radius: 4px; transition: transform 0.35s ease, opacity 0.2s; }
.foto-grid img:hover { transform: scale(1.04); opacity: 1; }

/* ── OBRA WRAP ── */
.obra-wrap {
  max-width: 920px; margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ── TEAM CARD ── */
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

/* ── PARTE CARD HOVER ── */
.parte-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.parte-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.22); }

/* ── ALIADOS MARQUEE ── */
.aliados { padding: 60px 0 !important; }
.aliados-inner { padding: 0 20px; }
.aliados-marquee {
  overflow: hidden; position: relative;
  padding: 2rem 0; margin-top: 2rem;
}
.aliados-marquee::before, .aliados-marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 1; pointer-events: none; }
.aliados-marquee::before { left: 0; background: linear-gradient(to right, var(--white), transparent); }
.aliados-marquee::after { right: 0; background: linear-gradient(to left, var(--white), transparent); }
.aliados-track { display: flex; align-items: center; gap: 5rem; width: max-content; animation: marquee 30s linear infinite; }
.aliados-track img { height: 85px; width: auto; object-fit: contain; flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── BACK TO TOP ── */
.back-to-top { position: fixed; bottom: 2rem; left: 2rem; z-index: 99; width: 44px; height: 44px; background: var(--teal); color: white; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s, background 0.2s, box-shadow 0.2s; pointer-events: none; box-shadow: 0 4px 16px rgba(77,171,154,0.35); }
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--teal-dark); box-shadow: 0 6px 20px rgba(77,171,154,0.45); }
@media (max-width: 768px) { .back-to-top { bottom: 1.2rem; left: 1.2rem; } }

/* ── MISC ── */
.don-btn { border-radius: 10px; }
.form-group input, .form-group textarea { border-radius: 6px; }

/* ── INNER PAGE HERO ── */
.hero-banner {
  background: var(--teal);
  padding: 80px 20px 72px;
  text-align: center;
}
.hero-banner .section-label { color: rgba(255,255,255,0.72); }
.hero-banner h1 { font-size: clamp(2.2rem,5vw,3.2rem); font-weight: 800; color: var(--white); margin-top: 0.4rem; }
.hero-banner .hero-sub { color: rgba(255,255,255,0.8); font-size: 1rem; margin-top: 0.8rem; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.7; }
