:root {
  --blue-900: #0d2c6c;
  --blue-700: #1f4fa8;
  --blue-100: #eaf1ff;
  --white: #ffffff;
  --text-dark: #16233f;
  --text-muted: #4c5f87;
  --shadow: 0 18px 45px rgba(13, 44, 108, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--blue-100);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  color: var(--blue-900);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.3px;
  font-size: 1.15rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
}

.nav-donate {
  background: var(--blue-700);
  color: var(--white);
  padding: 0.55rem 1rem;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.25rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-900);
  margin: 5px 0;
}

.hero {
  background: linear-gradient(155deg, var(--blue-100), #f8fbff 55%, var(--white));
  padding: 5.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.kicker {
  color: var(--blue-700);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.hero-text p {
  color: var(--text-muted);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  padding: 0.85rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(130deg, var(--blue-700), var(--blue-900));
  box-shadow: var(--shadow);
}

.btn-secondary {
  color: var(--blue-900);
  background: var(--white);
  border: 1px solid #cedcff;
}

.hero-card {
  background: var(--white);
  border: 1px solid #dbe6ff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.hero-card p {
  color: var(--text-muted);
}

.donate {
  background: var(--blue-900);
  color: var(--white);
  text-align: center;
  padding: 3.6rem 0;
}

.donate p {
  margin: 0.2rem auto 1.4rem;
  max-width: 68ch;
  color: #d6e2ff;
}

.about,
.galeria,
.contact {
  padding: 4rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about p {
  color: var(--text-muted);
}

.about-points {
  display: grid;
  gap: 1rem;
}

.about-points article {
  border: 1px solid #dbe6ff;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: #fcfdff;
}

.about-points p {
  margin-bottom: 0;
}

.galeria {
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.galeria-intro {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.galeria-pasarela {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  scroll-snap-type: x mandatory;
}

.obra-card {
  background: var(--white);
  border: 1px solid #dbe6ff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.obra-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.obra-info {
  padding: 0.9rem 1rem 1.1rem;
}

.obra-info h3 {
  margin-bottom: 0.4rem;
}

.obra-info p {
  margin: 0;
  color: var(--text-muted);
}

.contact {
  background: #f8fbff;
}

.contact-intro {
  color: var(--text-muted);
}

.contact-form {
  max-width: 650px;
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #cddcff;
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #bdd2ff;
  border-color: #9dbdff;
}

.form-message {
  min-height: 1.3rem;
  margin: 0.2rem 0 0;
  font-weight: 500;
}

.form-message.success {
  color: #0b7a3a;
}

.form-message.error {
  color: #b0192b;
}

.site-footer {
  border-top: 1px solid #dce6ff;
  padding: 1.25rem 0;
  text-align: center;
  color: var(--text-muted);
}

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
}

@media (max-width: 850px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .galeria-pasarela {
    grid-auto-columns: minmax(84%, 84%);
  }

  .hero {
    padding-top: 4.3rem;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 72px;
    right: 4%;
    left: 4%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #dbe6ff;
    background: var(--white);
    box-shadow: var(--shadow);
    gap: 0.8rem;
  }

  nav.open {
    display: flex;
  }

  .whatsapp-float {
    right: 0.7rem;
    bottom: 0.7rem;
    font-size: 0.92rem;
    padding: 0.68rem 0.9rem;
  }
}
