:root {
  --brand-1: #b91c1c;
  /* rojo primario */
  --brand-2: #ef4444;
  /* rojo acento */
  --ink: #0f172a;
  /* texto principal */
  --muted: #6b7280;
  /* texto secundario */
  --bg: #ffffff;
  --card: #f8fafc;
  --ring: rgba(185, 28, 28, .35);
  --max-w: 1160px;
  --radius: 14px;
  --shadow: 0 10px 20px rgba(0, 0, 0, .06);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--brand-1);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px;
}

.container.narrow {
  max-width: 900px;
}

/* Header */
.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  background: #fff;
  border: 2px solid var(--brand-1);
  padding: 8px 12px;
  border-radius: 10px;
  z-index: 1000;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffffcc;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav_ctas {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .2px;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--brand-1);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow);
}

nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  font-weight: 600;
  color: #111827;
}

nav a:hover {
  color: var(--brand-1);
}

.cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--brand-1);
  background: var(--brand-1);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.btn.secondary {
  background: #fff;
  color: var(--brand-1);
}

.btn:hover {
  filter: brightness(.98);
}

/* Hero */
.hero {
  padding: 64px 0 24px;
  background: radial-gradient(1000px 400px at 50% -200px, rgba(239, 68, 68, .15), transparent);
}

.hero-grid {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 10px;
}

.hero p {
  color: #334155;
  margin: 0 0 18px;
  font-size: 1.05rem;
}

.hero-fig {
  display: grid;
  gap: 14px;
  width: 50%;
}

.hero-description {
  width: 50%;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.thumb {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section blocks */
section {
  padding: 42px 0;
}

.eyebrow {
  display: inline-block;
  font-weight: 800;
  color: var(--brand-1);
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: 8px;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  margin: 0 0 10px;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 22px;
}

.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid #eef2f7;
}

.card h3 {
  margin: 8px 0 8px;
  font-size: 1.1rem;
  color: var(--brand-1);
}
.card img {
  width: 100%;
}

.card a {
  position: relative;
}

#mision .card a::after, #alianzas .card a::after, #donar .card a::after {
  content: "🔗";
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 4px 6px;
  border-radius: 6px;
}

/* Icons (inline SVG as background) */
.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  margin-right: 10px;
  background: #fff;
  border: 1px solid #fee2e2;
  box-shadow: var(--shadow);
}

.row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.row p {
  margin: 6px 0 0;
}

/* Impact */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.kpi {
  background: linear-gradient(180deg, #fff, #fff);
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  text-align: center;
}

.kpi .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-1);
}

.bar {
  height: 10px;
  background: #fee2e2;
  border-radius: 999px;
  overflow: hidden;
}

.bar>span {
  display: block;
  height: 100%;
  background: var(--brand-1);
}

/* Partners */
.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  align-items: center;
}

.logo-card {
  background: #fff;
  border: 1px dashed #fca5a5;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  place-items: center;
  height: 84px;
}

/* Testimonials */
.quote {
  background: #fff;
  border-left: 6px solid var(--brand-1);
  padding: 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* Donate */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.tier {
  background: #fff;
  border: 1px solid #fee2e2;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.tier h3 {
  margin: 8px 0;
  color: var(--brand-1);
}

.tier .tier__bottom {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.tier .tier__subbottom {
  margin-top: 32px;
}

.amounts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #fca5a5;
  background: #fff;
  font-weight: 700;
}

.secure {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #065f46;
  font-weight: 600;
}

/* Contact */
form {
  display: grid;
  gap: 12px;
}

input,
textarea {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 1rem;
}

input:focus,
textarea:focus {
  outline: 3px solid var(--ring);
  border-color: var(--brand-1);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--brand-1);
  color: #fff;
  margin-top: 36px;
}

footer a {
  color: #fff;
}

.foot {
  display: grid;
  gap: 16px;
  grid-template-columns: 2fr 1.3fr 1.3fr;
}

.copyright {
  border-top: 1px solid #ef4444;
  opacity: .9;
  margin-top: 16px;
  padding-top: 14px;
  color: white;
}

/* Utilities */
.center {
  text-align: center;
}

.spaced {
  margin-top: 8px;
}

.tag {
  font-size: .78rem;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 700;
  color: #991b1b;
}

.hidden {
  display: none;
}

.paypal-form form {
  display: flex;
  justify-content: center;
}

.card.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.card .thumb {
  width: 180px;
  /* all logos same box size */
  height: 180px;
}

.thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  /* keeps proportions, no cropping */
}

#alianzas .thumb img {
  width: 160px;
  /* all logos same box size */
  height: 160px;
}

#tienda .cta {
  display: flex;
  justify-content: center;
}

.contacto_contenido {
  gap: 8px;
  display: flex;
  flex-direction: row;
}

.contacto_contenido .card {
  flex: 1;
}

#language-switcher {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

@media (min-width:769px) and (max-width:900px) {
  .hero-fig, .hero-description {
    width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr
  }
  .thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  .foot {
    grid-template-columns: 1fr;
  }

  nav ul {
    display: none;
  }
}

@media (max-width:768px) {
  .hero-fig, .hero-description {
    width: 100%;
  }

  .hero-grid {
    flex-direction: column;
  }
  .thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
  .foot {
    grid-template-columns: 1fr;
  }

  nav ul {
    display: none;
  }

  .nav {
    gap: 0;
  }

  .contacto_contenido {
    flex-direction: column;
  }
}

@media (max-width:576px) {
  .hero-fig, .hero-description {
    width: 100%;
  }

  .container.nav {
    flex-direction: column;
  }

  .nav_ctas {
    margin-top: 12px;
  }
}
