/* ================================================================
   Dulce Monse, Una Luz de Esperanza A.C.
   Sitio estático para XAMPP / Apache
   Paleta: blanco, negro y rojo esperanza
   ================================================================ */

/* ---------- 1. Variables y normalización ---------- */
:root {
  --red: #c8103d;
  --red-dark: #93092d;
  --red-bright: #e21c4d;
  --red-soft: #fff0f4;
  --red-soft-2: #fde3ea;
  --black: #121212;
  --ink: #242424;
  --gray-800: #3f3f3f;
  --gray-700: #565656;
  --gray-500: #7b7b7b;
  --gray-300: #d7d7d7;
  --gray-200: #e9e9e9;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --success: #137a45;
  --danger: #b42318;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.12);
  --shadow-red: 0 18px 48px rgba(200, 16, 61, 0.22);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --container: 1180px;
  --header-height: 86px;
  --transition: 220ms ease;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--ink);
  font-family: "Montserrat", "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

p,
h1,
h2,
h3,
blockquote,
figure,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--black);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.15rem, 4vw, 4rem);
}

h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  background: var(--red);
  color: var(--white);
}

:focus-visible {
  outline: 3px solid rgba(200, 16, 61, 0.46);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(76px, 10vw, 132px) 0;
}

.section-kicker,
.eyebrow,
.small-label {
  margin-bottom: 0.7rem;
  color: var(--red);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.lead {
  color: var(--gray-800);
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.7;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 2. Botones ---------- */
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.88rem 1.45rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

.button-primary {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.button-primary:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
  box-shadow: 0 20px 50px rgba(147, 9, 45, 0.28);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.button-ghost:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

/* ---------- 3. Encabezado y navegación ---------- */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.site-header.scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  flex: 0 0 104px;
}

.brand img {
  width: auto;
  height: 78px;
  max-width: 100%;
  max-height: 78px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.6rem);
}

.site-nav a {
  position: relative;
  padding: 0.6rem 0;
  color: var(--gray-800);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--transition);
}

.site-nav a:not(.nav-donate)::after {
  position: absolute;
  bottom: 0.28rem;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right center;
  background: var(--red);
  content: "";
  transition: transform var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--red);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.site-nav .nav-donate {
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--red);
  color: var(--white);
  box-shadow: 0 9px 24px rgba(200, 16, 61, 0.2);
}

.site-nav .nav-donate:hover,
.site-nav .nav-donate.active {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--black);
  cursor: pointer;
}

.menu-toggle span {
  width: 21px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 4. Hero ---------- */
.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 64px) 0 80px;
  background-image: url("../img/hero-comunidad.jpg");
  background-position: center center;
  background-size: cover;
  color: var(--white);
}

.hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.69) 45%, rgba(0, 0, 0, 0.28) 78%, rgba(0, 0, 0, 0.35) 100%);
  content: "";
}

.hero::after {
  position: absolute;
  right: -11vw;
  bottom: -20vw;
  width: 55vw;
  height: 55vw;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(200, 16, 61, 0.12), 0 0 0 90px rgba(255, 255, 255, 0.05);
  content: "";
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(200, 16, 61, 0.06), transparent 52%, rgba(0, 0, 0, 0.15));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-right: min(12vw, 150px);
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.35rem;
  color: var(--white);
}

.hero .eyebrow::before {
  width: 48px;
  height: 3px;
  border-radius: 10px;
  background: var(--red-bright);
  content: "";
}

.hero h1 {
  max-width: 930px;
  margin-bottom: 1.35rem;
  color: var(--white);
  font-size: clamp(3rem, 7.2vw, 6.9rem);
  line-height: 0.98;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
  color: #ffb4c7;
  font-size: 0.58em;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 790px;
  margin-bottom: 0.55rem;
  color: var(--white);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.83);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.3rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-trust span::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffb4c7;
  content: "";
}

.scroll-indicator {
  position: absolute;
  z-index: 2;
  right: max(24px, 4vw);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-indicator svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- 5. Quiénes somos ---------- */
.about {
  background: var(--white);
}

.about::before {
  position: absolute;
  top: 0;
  left: 0;
  width: min(42vw, 520px);
  height: 8px;
  background: var(--red);
  content: "";
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(380px, 0.97fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.about-copy > p:not(.section-kicker) {
  color: var(--gray-700);
}

.about blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.4rem 1.45rem 1.4rem 1.75rem;
  border-left: 5px solid var(--red);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--red-soft);
  color: var(--black);
  font-size: clamp(1.12rem, 1.7vw, 1.35rem);
  font-weight: 750;
  line-height: 1.45;
}

.value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.value-list span {
  padding: 0.5rem 0.78rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--gray-800);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.about-media {
  position: relative;
  margin: 0;
}

.about-media::before {
  position: absolute;
  z-index: -1;
  top: -25px;
  right: -25px;
  width: 68%;
  height: 72%;
  border-radius: var(--radius-lg);
  background: var(--red-soft-2);
  content: "";
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: center;
  box-shadow: var(--shadow-md);
}

.about-media figcaption {
  position: absolute;
  right: -20px;
  bottom: -24px;
  display: grid;
  max-width: 360px;
  gap: 0.2rem;
  padding: 1.2rem 1.35rem;
  border-left: 5px solid var(--red);
  border-radius: var(--radius-md);
  background: var(--black);
  color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-md);
}

.about-media figcaption strong {
  color: var(--white);
  font-size: 1rem;
}

.about-media figcaption span {
  font-size: 0.86rem;
  line-height: 1.45;
}

/* ---------- 6. Servicios ---------- */
.services {
  overflow: hidden;
  background: var(--gray-100);
}

.services::after {
  position: absolute;
  top: 4%;
  right: -170px;
  width: 430px;
  height: 430px;
  border: 70px solid rgba(200, 16, 61, 0.055);
  border-radius: 50%;
  content: "";
}

.section-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  align-items: end;
  gap: 3rem;
  margin-bottom: clamp(2.8rem, 6vw, 5rem);
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  margin-bottom: 0.4rem;
  color: var(--gray-700);
  font-size: 1.05rem;
}

.services-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card {
  position: relative;
  grid-column: span 2;
  min-height: 350px;
  overflow: hidden;
  padding: 2rem 1.75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(200, 16, 61, 0.28);
  box-shadow: var(--shadow-md);
}

.service-card::after {
  position: absolute;
  right: -45px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--red-soft);
  content: "";
  transition: transform 350ms ease;
}

.service-card:hover::after {
  transform: scale(1.25);
}

.service-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 1.55rem;
  place-items: center;
  border-radius: 18px;
  background: var(--red-soft);
  color: var(--red);
}

.service-icon svg {
  width: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.service-number {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  color: var(--gray-300);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.service-card h3,
.service-card p {
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--gray-700);
  font-size: 0.95rem;
}

.service-featured {
  grid-column: span 4;
  min-height: 305px;
  padding-right: min(32vw, 370px);
  border-color: transparent;
  background: var(--black);
  color: var(--white);
}

.service-featured::before {
  position: absolute;
  top: -25%;
  right: -4%;
  width: 330px;
  height: 330px;
  border: 40px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(200, 16, 61, 0.22);
  content: "";
}

.service-featured::after {
  background: rgba(200, 16, 61, 0.65);
}

.service-featured h3 {
  color: var(--white);
}

.service-featured p {
  color: rgba(255, 255, 255, 0.74);
}

.service-featured .service-icon {
  background: var(--red);
  color: var(--white);
}

.service-featured .service-number {
  color: rgba(255, 255, 255, 0.16);
}

.service-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.86rem !important;
}

/* ---------- 7. Galería de trabajo ---------- */
.work {
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

.work::before {
  position: absolute;
  top: -230px;
  left: -240px;
  width: 520px;
  height: 520px;
  border: 70px solid rgba(200, 16, 61, 0.17);
  border-radius: 50%;
  content: "";
}

.section-heading-light h2,
.section-heading-light .section-kicker {
  color: var(--white);
}

.section-heading-light .section-kicker {
  color: #ff9bb4;
}

.section-heading-light > p {
  color: rgba(255, 255, 255, 0.68);
}

.photo-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-auto-rows: 275px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.photo-card {
  position: relative;
  grid-column: span 4;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #2a2a2a;
}

.photo-wide {
  grid-column: span 8;
}

.photo-tall {
  grid-column: span 4;
  grid-row: span 2;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0, 1), filter 400ms ease;
}

.photo-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.82) 100%);
  content: "";
}

.photo-card:hover img {
  transform: scale(1.055);
  filter: saturate(1.04) contrast(1.03);
}

.photo-card figcaption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 0.1rem;
  padding: 1.3rem 1.4rem;
}

.photo-card figcaption strong {
  color: var(--white);
  font-size: 1.04rem;
}

.photo-card figcaption span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}


/* ---------- 7B. Galería multimedia ampliada ---------- */
.work-gallery-link {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.media-library {
  overflow: hidden;
  background: linear-gradient(180deg, var(--gray-100), var(--white) 46%, var(--gray-100));
}

.media-library::before {
  position: absolute;
  top: 120px;
  right: -170px;
  width: 360px;
  height: 360px;
  border: 55px solid rgba(200, 16, 61, 0.07);
  border-radius: 50%;
  content: "";
}

.media-summary {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: -1.2rem 0 2rem;
}

.media-summary span {
  padding: 0.58rem 0.9rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.88);
  color: var(--gray-700);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.media-summary strong {
  color: var(--red);
}

.gallery-toolbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-button {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--gray-800);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

.filter-button:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 16, 61, 0.4);
  color: var(--red);
}

.filter-button.is-active {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.gallery-status {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.extended-photo-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.gallery-item[hidden] {
  display: none !important;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 16, 61, 0.25);
  box-shadow: var(--shadow-md);
}

.gallery-open {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  background: #171717;
  cursor: zoom-in;
}

.gallery-open img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0, 1), filter var(--transition);
}

.gallery-item:hover .gallery-open img {
  transform: scale(1.025);
  filter: saturate(1.03) contrast(1.02);
}

.gallery-zoom {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.gallery-zoom svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.gallery-item figcaption {
  display: grid;
  flex: 1;
  gap: 0.38rem;
  align-content: start;
  padding: 1rem 1rem 1.15rem;
}

.gallery-item figcaption strong,
.video-card figcaption strong {
  color: var(--black);
  font-size: 1rem;
  line-height: 1.3;
}

.gallery-item figcaption > span:last-child,
.video-card figcaption > span:last-child {
  color: var(--gray-700);
  font-size: 0.82rem;
  line-height: 1.55;
}

.gallery-tag {
  justify-self: start;
  padding: 0.25rem 0.52rem;
  border-radius: var(--radius-pill);
  background: var(--red-soft);
  color: var(--red-dark) !important;
  font-size: 0.68rem !important;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.button-outline {
  border-color: rgba(200, 16, 61, 0.32);
  background: var(--white);
  color: var(--red-dark);
  box-shadow: var(--shadow-sm);
}

.button-outline:hover {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red);
}

.video-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.65fr);
  gap: 2rem;
  align-items: end;
  margin: clamp(4rem, 8vw, 7rem) 0 1.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--gray-300);
}

.video-heading h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.video-heading > p {
  margin: 0;
  color: var(--gray-700);
}

.video-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.video-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.video-stage {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  background: #000;
}

.gallery-video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.video-duration {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  padding: 0.25rem 0.52rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.72);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  pointer-events: none;
}

.video-card figcaption {
  display: grid;
  gap: 0.42rem;
  padding: 1.1rem 1.1rem 1.25rem;
}

.media-privacy-note {
  max-width: 980px;
  margin: 2rem auto 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--red-soft);
  color: var(--gray-700);
  font-size: 0.84rem;
}

.bank-number {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.qr-frame img {
  object-fit: contain;
}

.media-lightbox {
  width: min(calc(100% - 24px), 1180px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0d0d0d;
  color: var(--white);
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.58);
}

.media-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(8px);
}

.lightbox-shell {
  position: relative;
  min-height: min(84vh, 850px);
}

.lightbox-figure {
  display: grid;
  min-height: min(84vh, 850px);
  grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
  margin: 0;
}

.lightbox-media {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  background: #050505;
}

.lightbox-media img {
  max-width: 100%;
  max-height: min(84vh, 850px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-figure figcaption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.6rem);
  background: #151515;
}

.lightbox-figure h2 {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.lightbox-figure figcaption > p:not(.small-label):not(.lightbox-counter) {
  color: rgba(255, 255, 255, 0.72);
}

.lightbox-counter {
  margin-top: 1.3rem;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.78rem;
  font-weight: 700;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.66);
  color: var(--white);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.lightbox-close {
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
}

.lightbox-nav svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.lightbox-prev {
  left: 14px;
}

.lightbox-next {
  right: 374px;
}

@media (max-width: 1060px) {
  .extended-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .gallery-toolbar,
  .video-heading {
    grid-template-columns: 1fr;
  }

  .gallery-status {
    white-space: normal;
  }

  .extended-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lightbox-figure {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .lightbox-media {
    min-height: 58vh;
  }

  .lightbox-media img {
    max-height: 58vh;
  }

  .lightbox-figure figcaption {
    padding: 1.4rem 1.5rem 1.7rem;
  }

  .lightbox-next {
    right: 14px;
  }
}

@media (max-width: 620px) {
  .extended-photo-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .gallery-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-button {
    width: 100%;
  }

  .media-summary {
    margin-top: -0.6rem;
  }

  .media-summary span {
    width: 100%;
  }

  .lightbox-nav {
    top: 34vh;
  }
}

@media (max-width: 400px) {
  .gallery-filters {
    grid-template-columns: 1fr;
  }
}

/* ---------- 8. Transparencia fiscal y bancaria ---------- */
.transparency {
  overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, #fafafa 42%, var(--gray-100) 100%);
}

.transparency::before {
  position: absolute;
  top: 8%;
  left: -210px;
  width: 430px;
  height: 430px;
  border: 64px solid rgba(200, 16, 61, 0.045);
  border-radius: 50%;
  content: "";
}

.verification-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: -1.2rem 0 clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.verification-item {
  display: grid;
  align-content: center;
  gap: 0.18rem;
  min-width: 0;
  padding: 1.35rem 1.5rem;
}

.verification-item + .verification-item {
  border-left: 1px solid var(--gray-200);
}

.verification-item span {
  color: var(--gray-500);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.verification-item strong {
  color: var(--black);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.verification-item .verification-positive {
  color: var(--success);
}

.verification-item small {
  color: var(--gray-700);
  font-size: 0.76rem;
  line-height: 1.45;
}

.document-group {
  position: relative;
  z-index: 1;
}

.document-group + .document-group {
  margin-top: clamp(4.5rem, 9vw, 7.5rem);
  padding-top: clamp(3.4rem, 7vw, 5rem);
  border-top: 1px solid var(--gray-300);
}

.document-group-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: end;
  gap: clamp(1.4rem, 4vw, 3rem);
  margin-bottom: 2rem;
}

.document-group-heading h3 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.document-group-heading > p {
  margin-bottom: 0.25rem;
  color: var(--gray-700);
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem;
}

.document-card,
.bank-verification-card,
.bank-evidence-card {
  min-width: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-md);
}

.document-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.7vw, 2rem);
}

.document-card-heading,
.bank-evidence-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.document-card-heading {
  justify-content: flex-start;
}

.document-card-heading > div:last-child,
.bank-evidence-heading > div {
  min-width: 0;
}

.document-card-heading h3,
.bank-evidence-heading h3 {
  margin: 0;
  font-size: clamp(1.28rem, 2.1vw, 1.7rem);
  overflow-wrap: anywhere;
}

.document-card-heading .small-label,
.bank-evidence-heading .small-label {
  margin-bottom: 0.2rem;
}

.document-icon {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  place-items: center;
  border-radius: 18px;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 12px 25px rgba(200, 16, 61, 0.2);
}

.document-icon svg {
  width: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.document-meta {
  display: grid;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}

.document-meta > div {
  display: grid;
  grid-template-columns: minmax(125px, 0.72fr) minmax(0, 1.28fr);
  gap: 0.8rem;
  padding: 0.78rem 0.9rem;
  background: var(--white);
}

.document-meta > div:nth-child(even) {
  background: var(--gray-100);
}

.document-meta > div + div {
  border-top: 1px solid var(--gray-200);
}

.document-meta dt {
  color: var(--gray-500);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.document-meta dd {
  margin: 0;
  color: var(--black);
  font-size: 0.86rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.document-preview {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  margin-bottom: 1.1rem;
  padding: 0.85rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: #ededed;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.7);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.document-preview:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 16, 61, 0.4);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.78), var(--shadow-sm);
}

.document-preview img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.document-preview-portrait img {
  max-height: 520px;
}

.document-preview-bank-portrait img {
  max-height: 455px;
}

.document-preview-bank-landscape {
  min-height: 210px;
}

.document-preview-bank-landscape img {
  max-height: 260px;
}

.document-preview-label {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  max-width: calc(100% - 1.6rem);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(18, 18, 18, 0.86);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  backdrop-filter: blur(6px);
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: auto;
}

.document-action {
  min-height: 44px;
  flex: 1 1 142px;
  padding: 0.72rem 0.95rem;
  font-size: 0.78rem;
  line-height: 1.2;
  text-align: center;
}

.document-pages {
  margin-top: 1.2rem;
  border-top: 1px solid var(--gray-200);
}

.document-pages summary {
  position: relative;
  padding: 1rem 2rem 0.2rem 0;
  color: var(--red-dark);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
}

.document-pages summary::marker {
  color: var(--red);
}

.document-page-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.document-page {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: #ededed;
}

.document-page img {
  width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: contain;
}

.document-page figcaption {
  padding-top: 0.55rem;
  color: var(--gray-700);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.document-download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.document-download-list a {
  flex: 1 1 180px;
  padding: 0.68rem 0.8rem;
  border: 1px solid rgba(200, 16, 61, 0.25);
  border-radius: var(--radius-sm);
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.document-download-list a:hover {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.bank-verification-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: 1.5rem;
}

.bank-verification-card,
.bank-evidence-card {
  padding: clamp(1.25rem, 2.7vw, 2rem);
}

.bank-verification-card h3 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.verified-bank-details {
  display: grid;
  margin-bottom: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}

.verified-bank-details > div {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  background: var(--white);
}

.verified-bank-details > div:nth-child(even) {
  background: var(--gray-100);
}

.verified-bank-details > div + div {
  border-top: 1px solid var(--gray-200);
}

.verified-bank-details dt {
  color: var(--gray-500);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.verified-bank-details dd {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  margin: 0;
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.verified-bank-details dd span {
  min-width: 0;
}

.ownership-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: #ecf8f1;
  color: var(--gray-800);
}

.ownership-note svg {
  width: 25px;
  flex: 0 0 25px;
  fill: none;
  stroke: var(--success);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.ownership-note p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.bank-evidence-list {
  display: grid;
  min-width: 0;
  gap: 1.5rem;
}

.file-type-badge {
  flex: 0 0 auto;
  padding: 0.35rem 0.58rem;
  border-radius: var(--radius-pill);
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.bank-evidence-description {
  margin: 0 0 1rem;
  color: var(--gray-700);
  font-size: 0.88rem;
}

.document-integrity-note {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--white);
  color: var(--gray-700);
  box-shadow: var(--shadow-sm);
  font-size: 0.84rem;
}

/* ---------- 9. Donaciones ---------- */
.donation {
  overflow: hidden;
  background: linear-gradient(135deg, #fff 0%, var(--red-soft) 54%, #fff 100%);
}

.donation-glow {
  position: absolute;
  top: -180px;
  right: -140px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 16, 61, 0.14), rgba(200, 16, 61, 0) 68%);
}

.donation-heading {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.donation-heading h2 {
  margin-bottom: 0.8rem;
}

.donation-heading p:last-child {
  color: var(--gray-700);
  font-size: 1.05rem;
}

.donation-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 1.5rem;
}

.bank-card,
.qr-card {
  padding: clamp(1.5rem, 3vw, 2.35rem);
  border: 1px solid rgba(200, 16, 61, 0.13);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.7rem;
}

.card-heading h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
}

.card-heading .small-label {
  margin-bottom: 0.18rem;
}

.card-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border-radius: 18px;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 12px 25px rgba(200, 16, 61, 0.21);
}

.card-icon svg {
  width: 33px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.bank-details {
  display: grid;
  gap: 0;
  margin-bottom: 1.4rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.bank-details > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--white);
}

.bank-details > div:nth-child(even) {
  background: var(--gray-100);
}

.bank-details > div + div {
  border-top: 1px solid var(--gray-200);
}

.bank-details dt {
  color: var(--gray-700);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bank-details dd {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0;
  color: var(--black);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.bank-details dd span {
  min-width: 0;
}

.copy-button {
  flex: 0 0 auto;
  padding: 0.38rem 0.65rem;
  border: 1px solid rgba(200, 16, 61, 0.24);
  border-radius: var(--radius-pill);
  background: var(--red-soft);
  color: var(--red-dark);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  transition: background var(--transition), color var(--transition), opacity var(--transition);
}

.copy-button:hover:not(:disabled) {
  background: var(--red);
  color: var(--white);
}

.copy-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.bank-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--red-soft);
  color: var(--gray-800);
}

.bank-alert svg {
  width: 24px;
  flex: 0 0 24px;
  fill: none;
  stroke: var(--red);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.bank-alert p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
}

.bank-alert a {
  color: var(--red-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.qr-card {
  display: flex;
  flex-direction: column;
}

.qr-frame {
  width: min(100%, 350px);
  margin: 0 auto 1.2rem;
  padding: 0.8rem;
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  background: var(--white);
  box-shadow: inset 0 0 0 5px var(--gray-100), 0 13px 32px rgba(0, 0, 0, 0.08);
}

.qr-frame img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: cover;
}

.qr-caption {
  margin: auto 0 0;
  color: var(--gray-700);
  text-align: center;
  font-size: 0.92rem;
}

.qr-caption strong {
  color: var(--black);
}

.donation-disclaimer {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 1.5rem auto 0;
  color: var(--gray-700);
  font-size: 0.82rem;
  text-align: center;
}

/* ---------- 9. Contacto y formulario ---------- */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(430px, 1.15fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 7rem);
}

.contact-info > p:not(.section-kicker) {
  color: var(--gray-700);
  font-size: 1.03rem;
}

.contact-channels {
  display: grid;
  gap: 0.8rem;
  margin: 2rem 0;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.045);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.contact-channel:hover {
  transform: translateX(5px);
  border-color: rgba(200, 16, 61, 0.3);
  box-shadow: var(--shadow-sm);
}

.contact-channel > span:last-child {
  display: grid;
  min-width: 0;
  gap: 0.05rem;
}

.contact-channel small {
  color: var(--gray-500);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-channel strong {
  color: var(--black);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.social-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
}

.social-icon svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.social-icon .fill-dot {
  fill: currentColor;
  stroke: none;
}

.contact-note {
  padding: 1.1rem 1.2rem;
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--gray-100);
}

.contact-note strong {
  color: var(--black);
}

.contact-note p {
  margin-top: 0.3rem;
  color: var(--gray-700);
  font-size: 0.86rem !important;
  line-height: 1.55;
}

.contact-form {
  padding: clamp(1.5rem, 4vw, 2.7rem);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  box-shadow: var(--shadow-md);
}

.form-heading {
  margin-bottom: 1.8rem;
}

.form-heading h3 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}

.form-heading p:last-child {
  color: var(--gray-700);
  font-size: 0.86rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.form-field label {
  color: var(--black);
  font-size: 0.85rem;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--black);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-field input,
.form-field select {
  min-height: 52px;
  padding: 0 0.9rem;
}

.form-field textarea {
  min-height: 150px;
  padding: 0.85rem 0.9rem;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(200, 16, 61, 0.1);
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fff8f7;
}

.field-error {
  min-height: 1em;
  color: var(--danger);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.field-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  color: var(--gray-500);
  font-size: 0.72rem;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--gray-700);
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.5;
}

.check-field input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  accent-color: var(--red);
}

.inline-link,
.footer-privacy {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.checkbox-error {
  display: block;
  margin: 0.35rem 0 0.9rem 1.55rem;
}

.form-submit {
  width: 100%;
  margin-top: 0.2rem;
}

.form-submit svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.form-status {
  min-height: 1.4rem;
  margin: 0.8rem 0 0;
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
}

/* ---------- 10. Pie de página ---------- */
.site-footer {
  padding: 70px 0 25px;
  background: #0d0d0d;
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.65fr 0.85fr;
  gap: 3rem;
  padding-bottom: 3.2rem;
}

.footer-brand img {
  width: min(220px, 100%);
  margin-bottom: 1rem;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.footer-brand p {
  max-width: 480px;
  font-size: 0.9rem;
}

.footer-title {
  margin-bottom: 1.1rem;
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav {
  display: grid;
  gap: 0.55rem;
}

.footer-nav a,
.site-footer address a {
  transition: color var(--transition);
}

.footer-nav a:hover,
.site-footer address a:hover {
  color: #ff9bb4;
}

.site-footer address {
  font-style: normal;
  line-height: 2;
}

.footer-bottom {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 1.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.74rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-privacy {
  color: #ff9bb4;
  font-size: inherit;
  white-space: nowrap;
}

.footer-note {
  justify-self: end;
  max-width: 520px;
  text-align: right;
}

/* ---------- 11. Diálogo, regreso al inicio y estados ---------- */
.back-to-top {
  position: fixed;
  z-index: 900;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 48px;
  height: 48px;
  transform: translateY(20px);
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}

.back-to-top.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--red-dark);
}

.back-to-top svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.privacy-dialog {
  width: min(calc(100% - 32px), 680px);
  max-height: min(82vh, 720px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.3);
}

.privacy-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(5px);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.7rem 1.8rem 1.2rem;
  border-bottom: 1px solid var(--gray-200);
}

.dialog-header h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
}

.dialog-header .small-label {
  margin-bottom: 0.2rem;
}

.dialog-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--black);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.dialog-content {
  overflow: auto;
  padding: 1.6rem 1.8rem 0.5rem;
}

.dialog-content p {
  color: var(--gray-700);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.8rem 1.7rem;
}

.noscript-message {
  position: fixed;
  z-index: 3000;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--black);
  color: var(--white);
  text-align: center;
}

/* ---------- 12. Animaciones progresivas ---------- */
.js .reveal {
  transform: translateY(28px);
  opacity: 0;
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0, 1);
}

.js .reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* ---------- 13. Diseño responsivo ---------- */
@media (max-width: 1060px) {
  :root {
    --header-height: 78px;
  }

  .brand {
    flex-basis: 92px;
  }

  .brand img {
    height: 68px;
    max-height: 68px;
  }

  .site-nav {
    gap: 0.85rem;
  }

  .site-nav a {
    font-size: 0.84rem;
  }

  .about-grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 3.5rem;
  }

  .service-card {
    grid-column: span 3;
  }

  .service-featured {
    grid-column: span 6;
  }

  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  .js .menu-toggle {
    display: flex;
  }

  .header-inner {
    position: relative;
  }

  .brand {
    flex-basis: 88px;
  }

  .js .site-nav {
    position: fixed;
    z-index: 1001;
    top: var(--header-height);
    right: 0;
    bottom: auto;
    left: 0;
    display: flex;
    width: 100%;
    height: calc(100dvh - var(--header-height));
    transform: translateX(105%);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    padding: 2rem 20px 4rem;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transition: transform 300ms ease, opacity 300ms ease;
  }

  .js .site-nav.open {
    transform: translateX(0);
    opacity: 1;
  }

  .js .site-nav a {
    padding: 1.05rem 0.2rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: 1.08rem;
  }

  .js .site-nav a::after {
    display: none;
  }

  .js .site-nav .nav-donate {
    margin-top: 1.2rem;
    padding: 1rem;
    border: 0;
    text-align: center;
  }

  .hero-content {
    padding-right: 0;
  }

  .about-grid,
  .donation-grid,
  .contact-grid,
  .document-grid,
  .bank-verification-grid {
    grid-template-columns: 1fr;
  }

  .verification-strip {
    grid-template-columns: 1fr;
  }

  .verification-item + .verification-item {
    border-top: 1px solid var(--gray-200);
    border-left: 0;
  }

  .document-group-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .about-media {
    width: min(100%, 680px);
    margin-inline: auto;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .photo-grid {
    grid-auto-rows: 250px;
  }

  .photo-card,
  .photo-wide {
    grid-column: span 6;
  }

  .photo-tall {
    grid-column: span 6;
    grid-row: span 2;
  }

  .donation-grid {
    max-width: 760px;
    margin-inline: auto;
  }

  .qr-card {
    min-height: auto;
  }

  .contact-info {
    max-width: 720px;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 0.7fr;
  }

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    grid-template-columns: 1fr auto;
  }

  .footer-note {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 76px 0;
  }

  .hero {
    min-height: 760px;
    padding-top: calc(var(--header-height) + 52px);
    background-position: 53% center;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.56));
  }

  .hero h1 {
    font-size: clamp(2.85rem, 15vw, 4.8rem);
  }

  .hero h1 span {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.54em;
    line-height: 1.12;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .scroll-indicator {
    display: none;
  }

  .about-media::before {
    right: -10px;
  }

  .about-media figcaption {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: none;
    margin: -25px 14px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-featured {
    grid-column: auto;
    min-height: auto;
    padding-right: 1.5rem;
  }

  .service-featured::before {
    right: -160px;
  }

  .photo-grid {
    display: grid;
    grid-auto-rows: 285px;
    grid-template-columns: 1fr;
  }

  .photo-card,
  .photo-wide,
  .photo-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .bank-details > div,
  .document-meta > div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .document-card,
  .bank-verification-card,
  .bank-evidence-card {
    padding: 1.15rem;
  }

  .document-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .document-action {
    width: 100%;
  }

  .document-preview {
    padding: 0.55rem;
  }

  .document-preview-label {
    right: 0.55rem;
    bottom: 0.55rem;
    max-width: calc(100% - 1.1rem);
  }

  .bank-details dd {
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .footer-note,
  .footer-privacy {
    justify-self: start;
    text-align: left;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 430px) {
  .brand img {
    height: 62px;
    max-height: 62px;
  }

  .hero-trust {
    gap: 0.45rem;
  }

  .hero-trust span {
    padding: 0.42rem 0.62rem;
    font-size: 0.71rem;
  }

  .service-card,
  .bank-card,
  .qr-card,
  .contact-form,
  .document-card,
  .bank-verification-card,
  .bank-evidence-card {
    border-radius: 20px;
  }

  .card-heading {
    align-items: flex-start;
  }

  .copy-button {
    padding-inline: 0.55rem;
  }
}

/* ---------- 14. Preferencias de movimiento y contraste ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    transform: none;
    opacity: 1;
  }
}

@media (forced-colors: active) {
  .button,
  .service-card,
  .bank-card,
  .qr-card,
  .contact-form,
  .contact-channel,
  .document-card,
  .bank-verification-card,
  .bank-evidence-card {
    border: 1px solid CanvasText;
  }
}
