:root {
  --primary: #0d6e63;
  --primary-dark: #0a544c;
  --accent: #e8a33d;
  --ink: #1f2933;
  --muted: #5b6b78;
  --bg: #f6f8f7;
  --card: #ffffff;
  --border: #e2e8e6;
  --success: #12855f;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(13, 110, 99, 0.08);
  --max: 1080px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--ink);
}
a {
  color: var(--primary);
}
img {
  max-width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo {
  font-size: 1.6rem;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.lang-toggle {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}
.lang-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.05s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--primary-dark);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}
.btn-block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0a544c 100%);
  color: #fff;
  padding: 3.5rem 1.2rem 4rem;
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin: 0 0 1rem;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 auto 1.2rem;
  max-width: 620px;
}
.hero-location {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.8rem;
}
.hero-cta {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
.section {
  padding: 3rem 1.2rem;
}
.section-alt {
  background: #eef3f1;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
}
.container-narrow {
  max-width: 620px;
}
.section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 1.2rem;
}
.section-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.4rem;
}
.prose p {
  margin: 0 0 1rem;
  color: #37474f;
  font-size: 1.05rem;
}

/* ---------- Meta / progreso ---------- */
.meta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  max-width: 640px;
}
.meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}
.meta-raised {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.meta-goal {
  color: var(--muted);
}
.progress {
  height: 14px;
  background: #e3ebe8;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  transition: width 0.6s ease;
}
.meta-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.9rem 0 0;
}
.uso-title {
  margin: 2.2rem 0 1rem;
}
.uso-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}
.uso-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  font-size: 1.02rem;
}
.uso-list li span:first-child {
  font-size: 1.3rem;
}

/* ---------- Donar ---------- */
.donar-subtitle {
  color: var(--muted);
  margin: 0 0 1.4rem;
}
.donate-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.field-label {
  font-weight: 600;
  margin: 0 0 0.7rem;
}
.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.amount-btn {
  padding: 0.9rem 0.4rem;
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  color: var(--ink);
}
.amount-btn:hover {
  border-color: var(--primary);
}
.amount-btn.selected {
  border-color: var(--primary);
  background: #e6f2ef;
  color: var(--primary-dark);
}
.custom-amount {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.custom-amount label {
  font-size: 0.9rem;
  color: var(--muted);
}
.custom-amount input {
  padding: 0.8rem 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1.1rem;
  outline: none;
}
.custom-amount input:focus {
  border-color: var(--primary);
}
.sumup-card {
  margin-top: 1.2rem;
}
.donate-status {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
}
.donate-status.error {
  background: #fdecec;
  color: #b42318;
}
.donate-status.info {
  background: #eef6f4;
  color: var(--primary-dark);
}
.donate-success {
  text-align: center;
  padding: 1.5rem 1rem;
}
.success-icon {
  font-size: 2.6rem;
}
.donar-fallback {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 1.2rem;
}

/* ---------- Galería ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  background: #dbe6e2;
  border: 2px dashed #b6c8c2;
  border-radius: 12px;
  color: #7a8f88;
}

/* ---------- Contacto ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
}
.contact-card:hover {
  border-color: var(--primary);
}
.contact-card span:first-child {
  font-size: 1.6rem;
}
.contact-card strong {
  display: block;
}
.contact-card small {
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cbd5d1;
  text-align: center;
  padding: 2rem 1.2rem 5rem;
  font-size: 0.92rem;
}
.footer-small {
  color: #90a2a0;
  font-size: 0.82rem;
  margin-top: 0.4rem;
}

/* ---------- Botón flotante (móvil) ---------- */
.floating-donate {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: var(--accent);
  color: #3a2a06;
  font-weight: 800;
  text-decoration: none;
  padding: 0.9rem 2.4rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  display: none;
}

@media (max-width: 620px) {
  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .floating-donate {
    display: block;
  }
}
