﻿/* Fundación Manada Libre y Feliz - Estilos base */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Quicksand:wght@600;700&display=swap');

:root {
  --bg-cream: #f7f0d8;
  --deep-navy: #243447;
  --warm-sun: #f6b15a;
  --soft-peach: #f1d2b6;
  --teal: #4ba7a2;
  --orange: #c45c2e;
  --text-main: #1f2a38;
  --card-shadow: 0 14px 40px rgba(31, 41, 55, 0.18);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background: linear-gradient(160deg, #fdfaf1 0%, #f6e8d8 35%, #f7f0d8 70%, #fefcf8 100%);
}

a { color: inherit; text-decoration: none; }

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.brand .title {
  font-family: 'Quicksand', 'Nunito', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.2px;
  color: #0f1b2b;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(36,52,71,0.12);
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 800;
  color: #0f1b2b;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: #0f1b2b;
  transition: all 0.25s ease;
}

.nav-links a:hover {
  background: rgba(75, 167, 162, 0.12);
  color: var(--orange);
}

.button,
button {
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: linear-gradient(120deg, var(--orange), #f8893e);
  color: white;
  box-shadow: 0 10px 30px rgba(196, 92, 46, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.secondary {
  background: linear-gradient(120deg, var(--teal), #7accc4);
  box-shadow: 0 10px 30px rgba(75, 167, 162, 0.28);
}

.button:hover,
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(196, 92, 46, 0.42);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 22px 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(75, 167, 162, 0.28), transparent 32%),
              radial-gradient(circle at 78% 12%, rgba(244, 163, 97, 0.24), transparent 30%),
              linear-gradient(145deg, rgba(255,255,255,0.7), rgba(255,255,255,0.15));
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 34px;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #dfe6ef;
  font-weight: 700;
  color: #0f1b2b;
  letter-spacing: 0.2px;
}

.hero h1 {
  font-family: 'Quicksand', 'Nunito', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 12px 0 10px;
  font-weight: 800;
  color: #0f1b2b;
}

.hero p.lead {
  font-size: 1.12rem;
  line-height: 1.75;
  margin: 0 0 18px;
  color: #1a2433;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
}

.pill {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(75, 167, 162, 0.18);
  color: #0f1b2b;
  font-weight: 700;
  border: 1px solid rgba(75,167,162,0.25);
}

.hero-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--card-shadow);
  position: relative;
}

.hero-card img {
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 22px 40px;
}

.section h2 {
  font-family: 'Quicksand', 'Nunito', sans-serif;
  font-size: 2.1rem;
  color: #0f1b2b;
  margin-bottom: 12px;
}

.section p.section-lead {
  max-width: 820px;
  color: #1a2433;
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 26px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: white;
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,0.035);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #0f1b2b;
  font-family: 'Nunito', sans-serif;
}

.card small { color: #6a7685; font-weight: 600; }

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(196, 92, 46, 0.12);
  color: var(--orange);
  font-weight: 700;
}

.program {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 10px 0;
}

.program .icon {
  height: 46px;
  width: 46px;
  border-radius: 14px;
  background: rgba(75, 167, 162, 0.16);
  display: grid;
  place-items: center;
  color: #0f1b2b;
  font-weight: 700;
}

.ribbon {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(75,167,162,0.14), rgba(244,177,90,0.18));
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  align-items: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.gallery img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: 0 10px 26px rgba(0,0,0,0.16);
}

.schedule-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.schedule-gallery img {
  height: 180px;
  aspect-ratio: auto;
}

.donate-banner {
  background: linear-gradient(120deg, rgba(196, 92, 46, 0.9), rgba(75, 167, 162, 0.9)), url('https://images.unsplash.com/photo-1464375117522-1311d6a5b81f?auto=format&fit=crop&w=1600&q=80') center/cover;
  border-radius: var(--radius-lg);
  padding: 30px;
  color: white;
  box-shadow: var(--card-shadow);
}

.donate-banner h3 { margin-top: 0; }

footer {
  margin-top: 60px;
  padding: 26px 22px 38px;
  background: #1f2a38;
  color: #e9edf3;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

footer a { color: #f6b15a; font-weight: 700; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal {
  background: white;
  border-radius: 18px;
  width: min(520px, 92vw);
  padding: 22px;
  box-shadow: var(--card-shadow);
  position: relative;
}

.modal h3 { margin-top: 6px; }

.modal .close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label { font-weight: 700; color: #0f1b2b; display: block; margin-bottom: 6px; }

input, select, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fdfbf7;
  font-size: 1rem;
}

.progress {
  height: 10px;
  width: 100%;
  border-radius: 999px;
  background: rgba(36,52,71,0.08);
  overflow: hidden;
  margin: 12px 0;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(120deg, var(--orange), #f8893e);
  transition: width 0.4s ease;
}

.success {
  background: rgba(75, 167, 162, 0.12);
  border: 1px solid rgba(75, 167, 162, 0.2);
  color: #0f1b2b;
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
  display: none;
}

.badge-light {
  display: inline-block;
  padding: 6px 10px;
  background: rgba(255,255,255,0.8);
  color: #0f1b2b;
  border-radius: 12px;
  font-weight: 700;
}

ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean li { padding: 6px 0; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255,255,255,0.95);
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    min-width: 210px;
  }
  .nav-links.show { display: flex; }
  .menu-toggle { display: inline-flex; }
  header { position: sticky; }
  .hero { padding: 90px 18px 64px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p.lead { font-size: 1rem; }
  .schedule-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .schedule-gallery img {
    height: 150px;
  }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.team-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,0.04);
}

.team-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.team-card .body {
  padding: 12px 14px 16px;
}

.team-card strong { color: #0f1b2b; }
.team-card small { color: #5c6675; }
