/* ============================================================
   EDITAR AQUÍ: colores, tipografías y espaciados generales
   ============================================================ */
:root {
  --ink: #2e2c2f; /* azul noche - texto principal */
  --paper: #f0e2e7; /* crema cálido - fondo */
  --paper-soft: #e8dce0; /* crema un poco más oscuro para franjas */
  --forest: #178c97; /* verde bosque - acento "crecimiento" */
  --gold: #c17817; /* dorado - acento "logro" */
  --brick: #b20d30; /* ladrillo - acento cálido / CTA */
  --white: #ffffff;
  --line: rgba(20, 33, 58, 0.14);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Work Sans", -apple-system, sans-serif;
  --mono: "IBM Plex Mono", monospace;

  --maxw: 1160px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 32px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.postulate p {
  color: rgba(20, 33, 58, 0.75);
  margin-bottom: 24px;
  font-size: 15px;
}

.postulate a {
  text-decoration: underline;
}
/* ---------- HEADER ---------- */
header {
  top: 0;
  background: #c177174e;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
  position: sticky;
  gap: 2rem;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #c177174e;
  backdrop-filter: blur(6px);
  z-index: -1;
}

.logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  transform: 0.2s ease;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo span {
  color: var(--forest);
  padding-right: 10px;
}

.nav-list {
  display: flex;
  list-style-type: none;
  gap: 3em;
}

.nav-list li a {
  font-family: var(--serif);
  font-size: 16px;
}

.abrir-menu,
.cerrar-menu {
  display: none;
}

body button {
  font-family: var(--sans);
  padding: 2px;
}
@media (max-width: 850px) {
  header {
    padding: 1rem 2rem;
    justify-content: space-between;
  }

  .abrir-menu,
  .cerrar-menu {
    display: block;
    border: none;
    background: none;
    font-size: 30px;
    align-items: center;
    cursor: pointer;
  }

  .abrir-menu {
    color: var(--ink);
  }

  .cerrar-menu {
    color: var(--paper);
  }
  .nav {
    position: fixed;
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--ink);
    padding: 2rem;
    gap: 2rem;
    z-index: 100;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5);
  }

  .nav.visible {
    opacity: 1;
    visibility: visible;
    top: 0;
    right: 0;
    bottom: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
  }

  .nav-list li a {
    color: var(--paper);
  }

  .btn-solid {
    border: 2px solid var(--paper);
  }
}
/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 4px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.2s ease,
    color 0.2s ease;
}
.btn-solid {
  background: var(--ink);
  color: var(--paper);
}
.btn-solid:hover {
  background: var(--brick);
  border-color: var(--brick);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.btn-border {
  border: 2px solid var(--ink);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0px 0 0px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 56px;
  align-items: center;
  padding: 20px;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
}
.hero h1 em {
  font-style: normal;
  color: var(--forest);
}
.hero h1 .accent {
  font-style: normal;
  color: var(--brick);
}
.hero p {
  margin-top: 22px;
  font-size: 18px;
  max-width: 46ch;
  color: rgba(20, 33, 58, 0.78);
}

.hero-ctas {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- SECTION GENERIC ---------- */
.section-soft {
  background: var(--paper-soft);
}
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(28px, 3.2vw, 40px);
}

/* ---------- QUIENES SOMOS ---------- */
#quienes-somos {
  background: var(--paper-soft);
  padding: 20px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}
.about-text p {
  font-size: 16.5px;
  color: rgba(20, 33, 58, 0.82);
}
.about-text p:first-of-type {
  font-size: 19px;
  color: var(--ink);
}

.fact-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 0px;
}
.fact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  padding: 20px 22px;
  border-radius: 2px;
}
.fact-card strong {
  font-family: var(--serif);
  font-size: 22px;
  display: block;
  margin-bottom: 4px;
  color: var(--brick);
}
.fact-card span {
  font-size: 14.5px;
  color: rgba(20, 33, 58, 0.72);
}
.fact-source {
  font-size: 12px;
  color: rgba(20, 33, 58, 0.5);
  margin-top: 6px;
}

.historia {
  text-align: left;
}

.historia p em {
  font-weight: 600;
  color: var(--forest);
  font-style: normal;
}

/* ---------- VIDEO ---------- */
#video {
  padding-top: 4px;
}
.TituloVideo {
  font-family: var(--serif);
  color: var(--ink);
  font-size: clamp(1.5rem, 5vw, 2rem);
}
.video-container {
  display: flex;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  padding: 20px;
  width: 100%;
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink);
  color: rgba(251, 246, 236, 0.75);
}
.footer-grid {
  align-items: start;
  display: grid;
  justify-content: space-between;
  font-size: 14px;
  grid-template-columns: auto auto;
  grid-template-rows: 30% auto;
  grid-template-areas:
    "social-row footer-links"
    "footer-dir footer-links";
}
.footer-grid strong {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(251, 246, 236, 0.16);
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(251, 246, 236, 0.5);
}

@media (max-width: 640px) {
  .footer-grid {
    padding: 15px;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "social-row"
      "footer-dir"
      "footer-links";
    align-items: center;
    gap: 15px;
  }
  .footer-links,
  .footer-dir,
  .social-row{
    justify-content: center;
  }

.footer-grid strong {
  margin-bottom: 3px;
}
}

/* focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}

/* ============================================================
   DONACION
   ============================================================ */
.donacion h1 {
  font-size: 30px;
  margin-bottom: 14px;
}
.qr-code {
  margin-top: 20px;
  width: 100%;
  height: auto;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-code img {
  width: 70%;
  height: auto;
}
.donation-buttons {
  margin-top: 20px;
  display: grid;
  gap: 12px;
  max-width: 420px;
}

/* \galeria */
.gallery {
  columns: 4 220px; /* cantidad máxima de columnas, ancho mínimo */
  column-gap: 12px;
  padding: 1.5rem;
}

.gallery img {
  width: 100%;
  margin-bottom: 12px;
  border-radius: 4px;
  break-inside: avoid; /* evita que una foto se corte entre columnas */
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 4px;
  object-fit: contain;
}

.lightbox-oculto,
.lightbox-ante,
.lightbox-sigue {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 10px;
  line-height: 1;
}

.lightbox-oculto {
  top: 20px;
  right: 30px;
  font-size: 2rem;
}

.lightbox-ante {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-sigue {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-ante:hover,
.lightbox-sigue:hover,
.lightbox-oculto:hover {
  color: var(--gold);
}

/* ---------- CONTACT ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
@media (max-width: 860px) {
  #video{
    padding-bottom: 10px;
  }
  .contact {
    padding: 10px;
    grid-template-columns: 1fr;

  }
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.field input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  border-radius: 2px;
  color: var(--ink);
}
.field input:focus {
  outline: none;
  border-color: var(--forest);
}
.social-row {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}
.social-row a {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}
.social-row a:hover {
  background: var(--ink);
  color: var(--paper);
}
