/* ==========================================================================
   Fundación Amigos por Siempre — Crowe Colombia
   Identidad oficial: Azul Marino #011E41 & Ámbar #D7761D
   ========================================================================== */

:root {
  --navy: #011E41;
  --navy-deep: #00132B;
  --navy-mid: #0A2E5C;
  --navy-tint: #EEF3F9;

  --amber: #D7761D;
  --amber-hover: #BA6112;
  --amber-soft: #E89445;
  --amber-tint: #FDF3E7;
  --amber-border: #F3D1AE;

  --white: #FFFFFF;
  --bg-warm: #FAF8F5;
  --bg-cool: #F4F6FA;
  --ink: #0C1B2E;
  --ink-body: #334155;
  --ink-muted: #5B6B7F;
  --border: #E2E8F0;
  --border-warm: #EDE6DC;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(1, 30, 65, 0.05);
  --shadow-md: 0 12px 32px rgba(1, 30, 65, 0.09);
  --shadow-lg: 0 22px 54px rgba(1, 30, 65, 0.14);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;

  --container: 1180px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--ink-body);
  background-color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Tipografía y Utilidades Editoriales
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.eyebrow--light {
  color: #F4B172;
}

.eyebrow--light::before {
  background: #F4B172;
}

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.section-title--light {
  color: var(--white);
}

.section-lead {
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  color: var(--ink-body);
  line-height: 1.75;
  max-width: 68ch;
}

.section-lead--light {
  color: rgba(255, 255, 255, 0.84);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--amber);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(215, 118, 29, 0.32);
}

.btn-primary:hover {
  background-color: var(--amber-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(215, 118, 29, 0.42);
}

.btn-navy {
  background-color: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(1, 30, 65, 0.22);
}

.btn-navy:hover {
  background-color: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(1, 30, 65, 0.3);
}

.btn-ghost-light {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(6px);
}

.btn-ghost-light:hover {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-navy {
  background-color: transparent;
  color: var(--navy);
  border-color: rgba(1, 30, 65, 0.25);
}

.btn-outline-navy:hover {
  background-color: var(--navy-tint);
  border-color: var(--navy);
  transform: translateY(-1px);
}

/* ==========================================================================
   Header / Banner Principal
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(1, 30, 65, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(1, 30, 65, 0.99);
  box-shadow: 0 10px 30px rgba(0, 14, 34, 0.28);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-group {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo-fundacion {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.24);
}

.brand-logo-crowe {
  height: 22px;
  width: auto;
  object-fit: contain;
  opacity: 0.92;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
  margin-left: 10px;
  padding: 10px 22px;
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  align-items: center;
  justify-content: center;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--navy-deep);
  z-index: 999;
  padding: 28px 24px 40px;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer.is-open {
  display: flex;
}

.mobile-drawer a {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer .btn-primary {
  margin-top: 16px;
  border-bottom: none;
  justify-content: center;
}

/* ==========================================================================
   Hero Principal
   ========================================================================== */

.hero {
  position: relative;
  background-color: var(--navy);
  color: var(--white);
  overflow: hidden;
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 35%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    96deg,
    rgba(1, 30, 65, 0.96) 0%,
    rgba(1, 30, 65, 0.90) 40%,
    rgba(1, 30, 65, 0.56) 72%,
    rgba(1, 30, 65, 0.28) 100%
  );
}

.hero-glow {
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 118, 29, 0.22) 0%, transparent 68%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 84px 0 64px;
}

.hero-copy {
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.85rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 18px;
}

.hero-slogan {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  color: #F6B97E;
  line-height: 1.3;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-slogan::before {
  content: '';
  width: 40px;
  height: 3px;
  background: var(--amber);
  border-radius: 3px;
  flex-shrink: 0;
}

.hero-desc {
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
  margin-bottom: 34px;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Barra inferior de pilares del Hero */
.hero-pillars {
  position: relative;
  z-index: 2;
  background: rgba(0, 19, 43, 0.72);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero-pillar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.25s var(--ease);
}

.hero-pillar-item:last-child {
  border-right: none;
}

.hero-pillar-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hero-pillar-num {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--amber);
  background: rgba(215, 118, 29, 0.16);
  border: 1px solid rgba(215, 118, 29, 0.35);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-pillar-text strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--white);
}

.hero-pillar-text span {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.68);
}

/* ==========================================================================
   Secciones Generales
   ========================================================================== */

.section {
  padding: 96px 0;
}

.section--warm {
  background-color: var(--bg-warm);
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
}

.section--cool {
  background-color: var(--bg-cool);
}

.section--white {
  background-color: var(--white);
}

/* ¿Quiénes somos? */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.about-quote {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--amber-tint);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.about-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--navy);
  line-height: 1.5;
}

.about-quote span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--amber-hover);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.values-stack {
  display: grid;
  gap: 18px;
}

.value-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--amber-border);
}

.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy-tint);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-icon--amber {
  background: var(--amber-tint);
  color: var(--amber);
}

.value-icon svg {
  width: 24px;
  height: 24px;
}

.value-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.value-card p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ¿Qué hacemos? */
.what-header {
  max-width: 780px;
  margin: 0 auto 52px;
  text-align: center;
}

.what-header .eyebrow {
  justify-content: center;
}

.what-header .section-lead {
  margin: 0 auto;
}

.impact-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.impact-pillar-card {
  background: var(--white);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.impact-pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 0 0 4px 4px;
  transition: background-color 0.25s var(--ease);
}

.impact-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.impact-pillar-card:hover::before {
  background: var(--amber);
}

.impact-pillar-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 10px;
}

.impact-pillar-card h3 {
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.impact-pillar-card p {
  font-size: 0.94rem;
  color: var(--ink-muted);
  line-height: 1.68;
  margin-bottom: 18px;
}

.impact-pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}

.impact-pillar-link:hover {
  color: var(--amber);
}

/* ==========================================================================
   ¿Cómo lo hacemos? — Red de Fundaciones (Bloque Insignia)
   ========================================================================== */

.how-intro {
  margin-bottom: 54px;
}

.red-showcase {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 48px;
}

.red-top-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
}

.red-copy {
  padding: 46px 46px 38px;
}

.program-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--navy-tint);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.program-pill--amber {
  background: var(--amber-tint);
  color: var(--amber-hover);
}

.red-copy h3 {
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  margin-bottom: 16px;
}

.red-copy p {
  font-size: 0.98rem;
  color: var(--ink-body);
  line-height: 1.75;
  margin-bottom: 22px;
}

.how-work-box {
  background: var(--bg-warm);
  border: 1px solid var(--border-warm);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 22px;
}

.how-work-box h4 {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.how-work-box p {
  font-size: 0.93rem;
  color: var(--ink-body);
  margin-bottom: 0;
}

.red-photo {
  position: relative;
  min-height: 360px;
}

.red-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Eventos realizados dentro de Red de Fundaciones */
.red-events-band {
  background: var(--navy);
  color: var(--white);
  padding: 38px 46px 42px;
}

.red-events-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.red-events-header h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.red-events-header p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.event-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.event-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(215, 118, 29, 0.65);
  transform: translateY(-2px);
}

.event-num {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F6B97E;
  margin-bottom: 8px;
}

.event-card h5 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}

/* ==========================================================================
   Otros Programas: Mujeres Que Cuentan & Voluntariado Corporativo
   ========================================================================== */

.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.program-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.program-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-tint);
}

.program-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.program-card:hover .program-media img {
  transform: scale(1.04);
}

.program-body {
  padding: 32px 32px 34px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.program-body h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.2;
}

.program-body p {
  font-size: 0.96rem;
  color: var(--ink-body);
  line-height: 1.74;
  margin-bottom: 22px;
  flex: 1;
}

.program-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.program-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-cool);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Consejo Directivo (Fondo blanco puro para integración invisible del arte)
   ========================================================================== */

.board-section {
  background-color: var(--white);
  padding: 96px 0 88px;
  border-top: 1px solid var(--border);
}

.board-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 44px;
}

.board-header .eyebrow {
  justify-content: center;
}

.board-header .section-lead {
  margin: 0 auto;
}

.board-stage {
  background: var(--white);
  max-width: 1140px;
  margin: 0 auto;
  padding: 8px 0 18px;
}

.board-image-wrap {
  width: 100%;
  background: var(--white);
}

.board-image {
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.board-members-list {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 22px;
  list-style: none;
}

.board-members-list li {
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-cool);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Sección Dona
   ========================================================================== */

.donate-section {
  background: linear-gradient(135deg, var(--navy) 0%, #052855 60%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 92px 0;
  position: relative;
  overflow: hidden;
}

.donate-section::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 118, 29, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.donate-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.donate-options {
  display: grid;
  gap: 16px;
}

.donate-option-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  backdrop-filter: blur(8px);
}

.donate-option-card h3 {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.donate-option-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.donate-option-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.62;
}

.donate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.donate-note {
  margin-top: 18px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.68);
}

/* ==========================================================================
   Sección Contacto
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-list {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-warm);
  border: 1px solid var(--border-warm);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon--amber {
  background: var(--amber);
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

.contact-item-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  word-break: break-word;
}

.contact-item-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--amber-hover);
  background: none;
  border: none;
  padding: 0;
}

.contact-item-sub:hover {
  text-decoration: underline;
}

.contact-topics {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.topic-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--white);
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.topic-link:hover {
  border-color: var(--amber);
  background: var(--amber-tint);
  transform: translateX(4px);
}

.topic-link strong {
  display: block;
  font-size: 0.96rem;
  color: var(--navy);
}

.topic-link > div > span {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.topic-link .topic-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-tint);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease);
}

.topic-link:hover .topic-arrow {
  background: var(--amber);
  color: var(--white);
}

/* ==========================================================================
   Footer & Franja Discreta de Información Legal
   ========================================================================== */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 64px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 48px;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.footer-logo-fundacion {
  height: 62px;
  width: auto;
}

.footer-logo-crowe {
  height: 24px;
  width: auto;
  opacity: 0.88;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: #F4B172;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 38ch;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: #F4B172;
}

.footer-contact-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

.footer-contact-text a:hover {
  color: #F4B172;
  text-decoration: underline;
}

/* Barra inferior de Información Legal (deliberadamente discreta y de bajo perfil) */
.footer-legal-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0 24px;
  background: rgba(0, 12, 28, 0.45);
}

.footer-legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.44);
}

.legal-links-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.legal-label {
  color: rgba(255, 255, 255, 0.36);
  font-weight: 600;
}

.legal-link {
  color: rgba(255, 255, 255, 0.46);
  transition: color 0.2s var(--ease);
}

.legal-link:hover {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
}

.legal-sep {
  color: rgba(255, 255, 255, 0.22);
}

/* Toast de copia */
.copy-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  background: var(--navy);
  color: var(--white);
  border: 1px solid rgba(215, 118, 29, 0.6);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Página Dedicada: Transparencia y Estados Financieros (/transparencia)
   ========================================================================== */

.legal-page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 48px;
  border-bottom: 3px solid var(--amber);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 22px;
  transition: color 0.2s var(--ease);
}

.back-link:hover {
  color: var(--white);
}

.legal-page-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.legal-page-hero p {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 68ch;
}

.transparency-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.year-tab {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  transition: border-color 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.year-tab:hover {
  border-color: var(--navy);
}

.year-tab.is-active,
.year-tab[aria-selected="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.doc-category {
  margin-bottom: 44px;
}

.doc-category-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.doc-category-sub {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.doc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.doc-card:hover {
  border-color: rgba(1, 30, 65, 0.28);
  box-shadow: var(--shadow-sm);
}

.doc-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.doc-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.doc-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.doc-badge--ready {
  background: #E6F6EE;
  color: #146C43;
}

.doc-badge--pending {
  background: var(--bg-cool);
  color: var(--ink-muted);
}

.doc-card p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.doc-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.doc-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber-hover);
}

.doc-action-link:hover {
  text-decoration: underline;
}

.habeas-box {
  background: var(--bg-warm);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  margin-top: 24px;
}

.habeas-box h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.habeas-box p {
  font-size: 0.9rem;
  color: var(--ink-body);
  line-height: 1.72;
  margin-bottom: 10px;
}

.habeas-box p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Animación sutil de entrada al scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
  .about-grid,
  .red-top-grid,
  .donate-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .red-photo {
    min-height: 300px;
  }

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

@media (max-width: 980px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 860px) {

  .hero-pillars-grid,
  .impact-pillars,
  .events-grid,
  .programs-grid,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .hero-pillar-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-pillar-item:last-child {
    border-bottom: none;
  }

  .red-copy,
  .red-events-band {
    padding: 30px 24px;
  }

  .section {
    padding: 68px 0;
  }

  .board-members-list {
    display: grid;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 70px;
  }

  .brand-logo-fundacion {
    height: 42px;
  }

  .brand-logo-crowe {
    height: 18px;
  }

  .hero-content {
    padding: 58px 0 46px;
  }

  .hero-actions .btn,
  .donate-actions .btn {
    width: 100%;
  }

  .contact-card {
    padding: 26px 20px;
  }
}

/* ==========================================================================
   Landing Page Dedicada: Red de Fundaciones (/red-de-fundaciones)
   ========================================================================== */

.rf-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 38px;
}

.rf-benefit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.rf-benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--amber-border);
}

.rf-benefit-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--navy-tint);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rf-benefit-num--amber {
  background: var(--amber-tint);
  color: var(--amber-hover);
}

.rf-benefit-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}

.rf-benefit-card p {
  font-size: 0.91rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.rf-membership-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: stretch;
}

.rf-pricing-card {
  background: linear-gradient(145deg, var(--navy) 0%, #052855 65%, var(--navy-deep) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 38px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rf-pricing-card::after {
  content: '';
  position: absolute;
  right: -90px;
  top: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 118, 29, 0.24) 0%, transparent 70%);
  pointer-events: none;
}

.rf-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(215, 118, 29, 0.2);
  border: 1px solid rgba(246, 185, 126, 0.4);
  color: #F6B97E;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.rf-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0 8px;
}

.rf-price-amount {
  font-size: clamp(2.4rem, 4.2vw, 3.25rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}

.rf-price-period {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.rf-price-desc {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  line-height: 1.6;
}

.rf-checklist {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.rf-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
}

.rf-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(215, 118, 29, 0.24);
  color: #F6B97E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.rf-member-login {
  margin-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.rf-member-login a {
  color: #F6B97E;
  font-weight: 700;
  text-decoration: underline;
}

.rf-steps-card {
  background: var(--white);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.rf-steps-list {
  display: grid;
  gap: 18px;
}

.rf-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.rf-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rf-step-item strong {
  display: block;
  font-size: 0.96rem;
  color: var(--navy);
  margin-bottom: 3px;
}

.rf-step-item p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.58;
}

.rf-workshops-box {
  background: var(--bg-warm);
  border: 1px solid var(--border-warm);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 20px;
}

.rf-workshops-box h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.rf-workshops-box ul {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--ink-body);
}

@media (max-width: 1024px) {
  .rf-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rf-membership-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .rf-benefits-grid {
    grid-template-columns: 1fr;
  }
  .rf-pricing-card,
  .rf-steps-card {
    padding: 28px 22px;
  }
}

/* ==========================================================================
   Módulo de Acceso y Registro con Google / Correo (Red de Fundaciones)
   ========================================================================== */

.rf-auth-section {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.rf-auth-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  align-items: start;
}

.rf-auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--amber);
  border-radius: var(--radius-lg);
  padding: 32px 32px 34px;
  box-shadow: var(--shadow-md);
}

.rf-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg-cool);
  padding: 5px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.rf-auth-tab {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.rf-auth-tab.is-active {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(1, 30, 65, 0.18);
}

.btn-google {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #CBD5E1;
  background: var(--white);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-google:hover {
  background: var(--bg-cool);
  border-color: var(--navy);
  transform: translateY(-1px);
}

.btn-google:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.rf-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-subtle);
}

.rf-divider::before,
.rf-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.rf-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rf-form-full {
  grid-column: span 2;
}

.rf-field-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 5px;
}

.rf-field-input {
  width: 100%;
  background: var(--bg-cool);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--ink);
  font-family: inherit;
  outline: none;
}

.rf-field-input:focus {
  background: var(--white);
  border-color: var(--navy);
}

.rf-habeas-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 18px;
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.rf-habeas-label input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
  flex-shrink: 0;
}

.rf-habeas-label a {
  color: var(--amber-hover);
  font-weight: 700;
  text-decoration: underline;
}

.rf-alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  line-height: 1.55;
  margin-bottom: 16px;
  display: none;
}

.rf-alert.is-visible {
  display: block;
}

.rf-alert--error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.rf-alert--info {
  background: var(--amber-tint);
  border: 1px solid var(--amber-border);
  color: var(--navy);
}

.rf-alert--success {
  background: #E7F6EE;
  border: 1px solid #BEE5CF;
  color: #14532D;
}

.rf-aux-row {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0 16px;
}

.rf-text-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--amber-hover);
}

.rf-text-btn:hover {
  text-decoration: underline;
}

.rf-session-card {
  background: var(--bg-warm);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 16px;
}

.rf-security-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.77rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.rf-reg-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  background: linear-gradient(155deg, var(--navy) 0%, #052652 60%, var(--navy-deep) 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  margin: 18px 0;
  box-shadow: var(--shadow-md);
}

.rf-reg-qr-box img {
  width: 224px;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.rf-reg-qr-meta {
  width: 100%;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.rf-reg-qr-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.04em;
  margin: 4px 0 10px;
}

@media (max-width: 960px) {
  .rf-auth-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .rf-auth-card {
    padding: 24px 18px;
  }
  .rf-form-grid {
    grid-template-columns: 1fr;
  }
  .rf-form-full {
    grid-column: span 1;
  }
  .rf-reg-qr-box img {
    width: 196px;
  }
}

/* ==========================================================================
   La Fundación en Acción — Destacado Home (Pasarela de Fotos) & /noticias
   ========================================================================== */

.action-showcase {
  background: var(--white);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 36px;
  position: relative;
}

.action-showcase::before {
  content: '';
  display: block;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--navy) 0%, var(--amber) 55%, var(--amber-soft) 100%);
}

.action-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: stretch;
}

.action-media-col {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  min-width: 0;
}

.carousel-stage {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #06142A;
  aspect-ratio: 16 / 10;
  width: 100%;
  min-width: 0;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.carousel-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.22s var(--ease);
}

.carousel-counter {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(1, 19, 43, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.carousel-zoom-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(1, 19, 43, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  z-index: 2;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.carousel-zoom-btn:hover {
  background: var(--amber);
  border-color: var(--amber);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(1, 19, 43, 0.76);
  backdrop-filter: blur(8px);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  z-index: 2;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.carousel-nav:hover {
  background: var(--amber);
  border-color: var(--amber);
  transform: translateY(-50%) scale(1.06);
}

.carousel-nav--prev {
  left: 12px;
}

.carousel-nav--next {
  right: 12px;
}

.carousel-caption {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
  padding: 0 4px;
  min-height: 2.5em;
}

.carousel-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.carousel-thumb {
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: #06142A;
  aspect-ratio: 16 / 10;
  width: 100%;
  min-width: 0;
  opacity: 0.68;
  transition: border-color 0.2s var(--ease), opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.carousel-thumb:hover {
  opacity: 0.94;
  border-color: rgba(255, 255, 255, 0.45);
}

.carousel-thumb.is-active {
  opacity: 1;
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(215, 118, 29, 0.35);
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.action-copy-col {
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  background: linear-gradient(180deg, var(--white) 0%, #FDFBF7 100%);
}

.action-copy-col h3 {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.action-verbatim {
  font-size: 0.98rem;
  color: var(--ink-body);
  line-height: 1.76;
  margin-bottom: 22px;
}

.action-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.action-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Página dedicada /noticias */

.news-featured-card {
  background: var(--white);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.news-featured-head {
  padding: 36px 40px 28px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--white) 100%);
}

.news-featured-head h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 28ch;
}

.news-featured-text {
  font-size: 1.04rem;
  color: var(--ink-body);
  line-height: 1.8;
  max-width: 76ch;
}

.news-featured-body {
  padding: 32px 40px 40px;
}

.news-gallery-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 18px;
}

.news-gallery-heading h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy);
}

.news-gallery-heading span {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.news-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.news-photo-card {
  margin: 0;
  background: var(--bg-warm);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

.news-photo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--amber-border);
}

.news-photo-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #06142A;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}

.news-photo-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}

.news-photo-card:hover .news-photo-trigger img {
  transform: scale(1.03);
}

.news-photo-caption {
  padding: 14px 16px;
  font-size: 0.86rem;
  color: var(--ink-body);
  line-height: 1.52;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.news-photo-num {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--amber-hover);
  background: var(--amber-tint);
  border: 1px solid var(--amber-border);
  border-radius: 6px;
  padding: 2px 7px;
  margin-top: 2px;
}

.news-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.news-event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-event-card h3 {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.35;
}

.news-event-card p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.62;
}

.news-cta-band {
  margin-top: 36px;
  background: linear-gradient(135deg, var(--navy) 0%, #052652 60%, var(--navy-deep) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 38px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-md);
}

.news-cta-band h3 {
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}

.news-cta-band p {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 56ch;
}

/* Lightbox accesible en alta nitidez */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 3200;
  background: rgba(1, 14, 34, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-overlay.is-open {
  display: flex;
}

.lightbox-dialog {
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--white);
}

.lightbox-counter {
  font-size: 0.84rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.lightbox-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s var(--ease);
}

.lightbox-close:hover {
  background: var(--amber);
  border-color: var(--amber);
}

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #040E1E;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.lightbox-stage img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  text-align: center;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
  padding: 0 8px;
}

@media (max-width: 1024px) {
  .action-showcase-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .action-copy-col {
    padding: 32px 28px;
  }
}

@media (max-width: 860px) {
  .news-gallery-grid,
  .news-events-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .news-featured-head,
  .news-featured-body {
    padding: 26px 22px;
  }
  .news-cta-band {
    padding: 28px 22px;
  }
}

@media (max-width: 560px) {
  .action-media-col {
    padding: 16px 16px 18px;
  }
  .action-copy-col {
    padding: 24px 18px 26px;
  }
  .carousel-thumbs {
    gap: 6px;
  }
  .carousel-nav {
    width: 36px;
    height: 36px;
  }
  .action-actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    padding: 12px 16px;
    font-size: 0.88rem;
  }
  .lightbox-overlay {
    padding: 14px;
  }
}
