:root {
  --navy: #0c3a5e;
  --navy-deep: #071828;
  --ink: #163044;
  --muted: #5a6d7a;
  --paper: #f3f7fb;
  --white: #ffffff;
  --line: rgba(12, 58, 94, 0.12);
  --green: #2aa84a;
  --green-dark: #1e7a36;
  --green-soft: #8bc34a;
  --flow-a: #0c3a5e;
  --flow-b: #2aa84a;
  --flow-c: #8bc34a;
  --flow-wash: #e8f2f8;
  --shadow: 0 18px 40px rgba(12, 58, 94, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --chrome: 76px;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
html { scroll-behavior: auto; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--flow-wash);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 1.1s var(--ease);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 40; }

.chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: rgba(243, 247, 251, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease);
}
body[data-page="inicio"] .chrome {
  background: rgba(7, 24, 40, 0.28);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--chrome); gap: 16px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img {
  height: 52px; width: auto; max-width: 220px;
  object-fit: contain; border-radius: 8px;
  background: #fff;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.brand:hover img {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(12, 58, 94, 0.12);
}
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--navy);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body[data-page="inicio"] .menu-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.links { display: flex; gap: 18px; flex-wrap: wrap; }
.links a {
  text-decoration: none; color: var(--muted); font-size: 0.92rem;
  position: relative;
  transition: color 0.28s var(--ease), transform 0.28s var(--ease);
}
.links a:hover, .links a[aria-current="page"] { color: var(--navy); }
.links a:hover { transform: translateY(-2px); }
.links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 2px; background: var(--green); border-radius: 2px;
  transition: right 0.35s var(--ease);
}
.links a:hover::after,
.links a[aria-current="page"]::after {
  right: 0;
}
.links a[aria-current="page"]::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--green); border-radius: 2px;
}
body[data-page="inicio"] .links a { color: rgba(255, 255, 255, 0.78); }
body[data-page="inicio"] .links a:hover,
body[data-page="inicio"] .links a[aria-current="page"] { color: #fff; }
.langs { display: flex; gap: 6px; flex-shrink: 0; }
.langs button {
  border: 1px solid var(--line); background: transparent;
  padding: 5px 8px; border-radius: 999px; cursor: pointer;
  color: var(--muted); font-size: 0.75rem; letter-spacing: 0.04em;
  font-family: inherit;
}
.langs button[aria-pressed="true"] {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
body[data-page="inicio"] .langs button {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.22);
}
body[data-page="inicio"] .langs button[aria-pressed="true"] {
  background: #fff; color: var(--navy); border-color: #fff;
}

.rail {
  position: fixed; right: 14px; top: 50%; z-index: 35;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px;
}
.rail button {
  width: 8px; height: 8px; padding: 0; border: 0;
  border-radius: 999px; cursor: pointer;
  background: rgba(12, 58, 94, 0.28);
}
.rail button.is-on {
  height: 22px;
  background: var(--green);
}
body[data-page="inicio"] .rail button { background: rgba(255, 255, 255, 0.35); }
body[data-page="inicio"] .rail button.is-on { background: var(--green); }

.deck-viewport {
  position: relative;
  z-index: 1;
  height: 100dvh;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.deck-viewport::-webkit-scrollbar { display: none; }
.deck {
  display: flex;
  flex-wrap: nowrap;
  height: 100%;
  width: 500%;
}
.page {
  flex: 0 0 20%;
  width: 20%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--paper) 62%, transparent);
  backdrop-filter: blur(6px) saturate(1.04);
  -webkit-backdrop-filter: blur(6px) saturate(1.04);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  transition: background 1s var(--ease);
}
#inicio.page {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.page-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.hero-stage {
  position: relative;
  min-height: 100%;
  color: #fff;
  display: grid;
  place-items: end stretch;
}
.hero-slides, .hero-slide, .hero-slide img, .hero-veil {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-slide {
  opacity: 0;
  overflow: hidden;
  transition: opacity 2.4s cubic-bezier(0.33, 0.1, 0.25, 1);
}
.hero-slide.is-on { opacity: 1; z-index: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
  filter: brightness(0.78) saturate(0.92) contrast(0.98);
  transition: filter 1.15s var(--ease), transform 9s ease-out;
}
.page.is-on .hero-slide.is-on img {
  filter: brightness(1.12) saturate(1.05) contrast(1.02);
  transform: scale(1.03);
}
.hero-veil {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(7, 24, 40, 0.12) 0%, rgba(7, 24, 40, 0.1) 40%, rgba(7, 24, 40, 0.55) 100%),
    linear-gradient(90deg, rgba(7, 24, 40, 0.28) 0%, rgba(7, 24, 40, 0.08) 46%, transparent 78%);
}
.hero-frost {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 2;
  width: min(56rem, 100%);
  height: min(72vh, 640px);
  pointer-events: none;
  background:
    radial-gradient(ellipse 95% 85% at 12% 88%, rgba(7, 24, 40, 0.42) 0%, rgba(7, 24, 40, 0.14) 46%, transparent 78%),
    linear-gradient(100deg, rgba(7, 24, 40, 0.32) 0%, rgba(7, 24, 40, 0.12) 40%, transparent 78%);
  backdrop-filter: blur(5px) saturate(0.98);
  -webkit-backdrop-filter: blur(5px) saturate(0.98);
  -webkit-mask-image:
    linear-gradient(90deg, #000 0%, rgba(0,0,0,0.85) 24%, rgba(0,0,0,0.4) 52%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 28%, #000 100%);
  mask-image:
    linear-gradient(90deg, #000 0%, rgba(0,0,0,0.85) 24%, rgba(0,0,0,0.4) 52%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 28%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hero-copy, .hero-dots, .hero-hint { pointer-events: auto; }
.hero-copy {
  position: relative; z-index: 3;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 max(4.5rem, calc(env(safe-area-inset-bottom) + 3.5rem));
  max-width: 38rem;
  margin-left: max(16px, calc((100% - 1120px) / 2));
  text-shadow: 0 1px 18px rgba(7, 24, 40, 0.45);
}
.page.is-on .hero-copy {
  animation: page-rise 0.85s var(--ease) both;
}
.hero-copy.is-swap [data-hero-copy],
.hero-copy.is-swap [data-hero-lead] {
  animation: page-rise 0.55s var(--ease) both;
}
.hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(2.15rem, 5.4vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #fff;
  margin: 10px 0 16px;
  text-wrap: balance;
}
.hero-copy h1 .word-accent {
  font-style: normal;
  color: #7ee08f;
}
.kicker {
  color: var(--green-dark);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 650;
}
.kicker-light { color: #9be7b0; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 42ch; }
.lead-light { color: rgba(255, 255, 255, 0.86); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px; border-radius: 999px;
  text-decoration: none; font-weight: 650; font-size: 0.95rem; border: 0;
  transition: transform 0.28s var(--ease), background 0.28s var(--ease),
    box-shadow 0.28s var(--ease), border-color 0.28s var(--ease), color 0.28s var(--ease);
  will-change: transform;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(12, 58, 94, 0.18);
}
.btn:active { transform: translateY(-1px); }
.btn-main { background: var(--green); color: #fff; }
.btn-main:hover { background: var(--green-dark); box-shadow: 0 14px 32px rgba(42, 168, 74, 0.28); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); }
.btn-glass {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
.hero-dots {
  position: absolute; z-index: 4; left: 50%;
  bottom: max(1.1rem, calc(env(safe-area-inset-bottom) + 0.7rem));
  transform: translateX(-50%);
  display: flex; gap: 8px; align-items: center;
  background: rgba(7, 24, 40, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 10px;
  backdrop-filter: blur(12px);
}
.hero-dots button {
  width: 7px; height: 7px; padding: 0; border: 0;
  border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.38);
}
.hero-dots button.is-on {
  width: 20px;
  background: #fff;
}
.hero-hint {
  position: absolute; z-index: 4; right: max(18px, calc((100% - 1120px) / 2));
  bottom: max(1.15rem, calc(env(safe-area-inset-bottom) + 0.75rem));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.88);
  animation: pulseHint 2.4s ease-in-out infinite;
  text-align: right;
  max-width: 16ch;
}

.deck-next {
  display: flex;
  position: fixed;
  right: max(10px, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 52px;
  min-height: 88px;
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  background: rgba(12, 58, 94, 0.92);
  color: #fff;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 10px 28px rgba(7, 24, 40, 0.28);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), opacity 0.3s var(--ease);
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.deck-next:hover { background: var(--green); transform: translateY(-50%) translateX(-2px); }
.deck-next:active { transform: translateY(-50%) scale(0.97); }
.deck-next.is-end { opacity: 0.35; pointer-events: none; }
.deck-next:disabled { opacity: 0.35; pointer-events: none; cursor: default; }
.deck-next-arrow {
  font-size: 1.45rem;
  line-height: 1;
  animation: pulseHint 2.2s ease-in-out infinite;
}
.deck-next-label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.demo-chip {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 34;
  max-width: min(92vw, 420px);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.3;
  pointer-events: none;
}
body[data-page="inicio"] .demo-chip {
  background: rgba(7, 24, 40, 0.72);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
}

.contact-alert {
  margin: 0 0 1.1rem;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--green) 35%, var(--line));
  background: color-mix(in srgb, var(--green) 10%, #fff);
}
.contact-alert strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.contact-alert p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.page-hero {
  position: relative;
  min-height: min(46vh, 22rem);
  display: grid;
  align-items: end;
  overflow: hidden;
}
.page-hero .media-rotate,
.page-hero .media-rotate img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.page-hero .media-rotate img {
  object-fit: cover;
  transform: scale(1.12);
  filter: brightness(0.52) saturate(0.72) contrast(0.94);
  transition: opacity 2.6s cubic-bezier(0.33, 0.1, 0.25, 1),
    filter 1.2s var(--ease), transform 9s ease-out;
  opacity: 0;
  z-index: 0;
}
.page-hero .media-rotate img.is-on {
  opacity: 1;
  z-index: 1;
}
.page.is-on .page-hero .media-rotate img.is-on {
  filter: brightness(0.92) saturate(1.02) contrast(1.02);
  transform: scale(1.04);
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse 70% 60% at 28% 40%, rgba(255, 255, 255, 0.16), transparent 62%);
  transition: opacity 1.15s var(--ease);
}
.page.is-on .page-hero::after { opacity: 1; }
.page-hero-veil {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(7, 24, 40, 0.18) 0%, rgba(7, 24, 40, 0.58) 100%);
}
.page[data-page="sobre"] .page-hero-veil {
  background: linear-gradient(180deg, rgba(18, 42, 52, 0.16) 0%, rgba(12, 58, 94, 0.58) 100%);
}
.page[data-page="servicios"] .page-hero-veil {
  background: linear-gradient(180deg, rgba(10, 28, 48, 0.2) 0%, rgba(8, 36, 64, 0.64) 100%);
}
.page[data-page="donar"] .page-hero-veil {
  background: linear-gradient(180deg, rgba(16, 48, 32, 0.18) 0%, rgba(10, 52, 36, 0.58) 100%);
}
.page[data-page="contacto"] .page-hero-veil {
  background: linear-gradient(180deg, rgba(12, 24, 44, 0.22) 0%, rgba(7, 24, 40, 0.66) 100%);
}
.page-hero-frost {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70%;
  z-index: 1;
  pointer-events: none;
  backdrop-filter: blur(5px) saturate(0.98);
  -webkit-backdrop-filter: blur(5px) saturate(0.98);
  background: linear-gradient(180deg, transparent 0%, rgba(7, 24, 40, 0.18) 40%, rgba(7, 24, 40, 0.42) 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
}
.page-hero-copy {
  position: relative; z-index: 3;
  padding: calc(var(--chrome) + 28px) 0 28px;
  text-shadow: 0 1px 16px rgba(7, 24, 40, 0.4);
}
.page.is-on .page-hero-copy {
  animation: page-rise 0.8s var(--ease) 0.08s both;
}
.page-hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  color: #fff;
  letter-spacing: -0.03em;
  margin: 8px 0 0;
}

.page-body { padding: 40px 0 72px; }
h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  letter-spacing: -0.03em;
  margin: 8px 0 14px;
}
.prose { color: var(--muted); max-width: 62ch; }
.prose-lg { font-size: 1.08rem; margin-bottom: 28px; }
.about-prose { margin-bottom: 8px; }
.about-prose .prose-lg { margin-bottom: 1.1rem; }
.about-prose .prose-lg:last-child { margin-bottom: 28px; }
.social-link {
  color: var(--navy);
  font-weight: 650;
  text-decoration: none;
}
.social-link:hover { color: var(--green-dark); text-decoration: underline; }

.social-glow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 1rem 0 0.35rem;
}
.social-glow__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  background:
    radial-gradient(circle at 32% 28%, rgba(42, 168, 74, 0.55), transparent 55%),
    linear-gradient(145deg, #14507a 0%, var(--navy) 55%, #08263f 100%);
  border: 1px solid rgba(42, 168, 74, 0.45);
  box-shadow:
    0 0 0 1px rgba(12, 58, 94, 0.2),
    0 8px 18px rgba(12, 58, 94, 0.28),
    0 0 18px rgba(42, 168, 74, 0.22);
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    filter 0.28s var(--ease),
    border-color 0.28s var(--ease);
  will-change: transform, box-shadow;
}
.social-glow__btn::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(42, 168, 74, 0.35), transparent 68%);
  opacity: 0.55;
  z-index: -1;
  filter: blur(4px);
  transition: opacity 0.28s var(--ease), filter 0.28s var(--ease);
}
.social-glow__ico {
  display: block;
  width: 1.4rem;
  height: 1.4rem;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(8, 30, 48, 0.45));
  transform: translateZ(0);
  pointer-events: none;
}
.social-glow__btn--tiktok {
  background: #000;
  border-color: rgba(42, 168, 74, 0.5);
  overflow: hidden;
}
.social-glow__btn--tiktok .social-glow__ico {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  filter: none;
}
.social-glow__btn:hover,
.social-glow__btn:focus-visible {
  transform: translateY(-3px) scale(1.06);
  border-color: rgba(126, 224, 143, 0.85);
  box-shadow:
    0 0 0 1px rgba(42, 168, 74, 0.35),
    0 12px 26px rgba(12, 58, 94, 0.32),
    0 0 28px rgba(42, 168, 74, 0.55),
    0 0 48px rgba(42, 168, 74, 0.28);
  outline: none;
  filter: brightness(1.08);
}
.social-glow__btn:hover::after,
.social-glow__btn:focus-visible::after {
  opacity: 1;
  filter: blur(7px);
}
.social-glow__btn:active {
  transform: translateY(-1px) scale(1.02);
}
.social-glow__btn.is-pending {
  opacity: 0.42;
  filter: grayscale(0.35);
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(12, 58, 94, 0.12),
    0 6px 12px rgba(12, 58, 94, 0.16);
}
.social-glow__btn.is-pending::after { opacity: 0.2; }
.social-glow--panel { margin: 0.35rem 0 1.1rem; }

.foot-social {
  color: inherit;
  opacity: 0.85;
  text-decoration: none;
  font-weight: 600;
}
.foot-social:hover { opacity: 1; text-decoration: underline; }
.panel {
  background: var(--white); border-radius: 1.4rem; padding: 1.3rem;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.brand-panel {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: 18px;
  align-items: center;
  margin: 8px 0 40px;
}
.brand-panel img {
  width: 100%; height: auto; border-radius: 1rem;
  object-fit: cover;
}
.panel h2 { font-size: 1.15rem; margin-bottom: 8px; }
.panel p { color: var(--muted); font-size: 0.95rem; }
.panel a { color: var(--navy); font-weight: 650; }
.panel-gap { margin-top: 14px; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card .check-list {
  margin: 0.85rem 1.15rem 0;
  padding: 0;
  list-style: none;
}
.card .check-list-compact li {
  margin: 0.35rem 0;
  padding-left: 1.45rem;
  font-size: 0.88rem;
  line-height: 1.4;
}
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 1.25rem; padding: 0 0 1.25rem;
  min-height: 11rem;
  overflow: hidden;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.card-media .card-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 2.4s cubic-bezier(0.33, 0.1, 0.25, 1), transform 9s ease-out;
  z-index: 0;
}
.card-media .card-img.is-on {
  opacity: 1;
  z-index: 1;
  transform: scale(1);
}
.card:hover .card-media .card-img.is-on { transform: scale(1.04); }
.card-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s var(--ease);
}
.card:hover .card-img { transform: scale(1.04); }
.card-n {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--green-dark);
  margin: 1rem 1.15rem 12px;
  font-weight: 700;
}
.card h2 { font-size: 1.2rem; margin: 0 1.15rem 8px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0 1.15rem; }

.donate {
  background: var(--navy); color: #fff; border-radius: 1.5rem; padding: 2.1rem 1.6rem;
}
.donate p { color: #fff; opacity: 0.92; max-width: 48ch; }
.donate .btn-main { background: var(--green); margin-top: 4px; }
.donate-tag {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  color: #fff !important;
  opacity: 1 !important;
  margin: 0 0 1rem;
  max-width: 28ch;
}
.donate-fig {
  margin: 0 0 1.25rem;
  border-radius: 1rem;
  overflow: hidden;
  max-width: 420px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  aspect-ratio: 3 / 4;
}
.donate-fig .media-rotate {
  position: absolute;
  inset: 0;
}
.donate-fig .media-rotate img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 2.5s cubic-bezier(0.33, 0.1, 0.25, 1), transform 10s ease-out;
  transform: scale(1.06);
}
.donate-fig .media-rotate img.is-on {
  opacity: 1;
  transform: scale(1);
}
.note-on-dark { font-size: 0.86rem; opacity: 0.72; margin-top: 12px; }

.check-block {
  margin: 1.5rem 0 2rem;
  padding: 1.35rem 1.4rem;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(42, 168, 74, 0.08), rgba(12, 58, 94, 0.06));
  border: 1px solid rgba(12, 58, 94, 0.08);
}
.check-block h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  margin: 0 0 0.85rem;
  color: var(--navy);
}
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.check-list li {
  position: relative;
  padding-left: 1.85rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 0.34rem;
  top: 0.48rem;
  width: 0.32rem;
  height: 0.55rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check-list-compact li { font-weight: 500; font-size: 0.95rem; }

.book-block {
  margin: 1.5rem 0 2rem;
  padding: 1.35rem 1.25rem 1.45rem;
  border-radius: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
}
.book-block h2 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  color: var(--navy);
}
.book-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
  max-width: 28rem;
}
.book-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--navy);
}
.book-field input,
.book-field textarea {
  font: inherit;
  font-weight: 500;
  color: var(--ink, #132536);
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.book-field textarea { resize: vertical; min-height: 6rem; }
.book-field input:focus,
.book-field textarea:focus {
  outline: 2px solid rgba(42, 168, 74, 0.45);
  border-color: var(--green);
}
.book-error { color: #b42318 !important; }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0.75rem 0 2rem;
}
.audience-card {
  padding: 1.25rem 1.2rem;
  border-radius: 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
}
.audience-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--navy);
}
.audience-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.vol-block {
  display: grid;
  grid-template-columns: minmax(160px, 280px) 1fr;
  gap: 1.4rem;
  align-items: start;
  margin: 2rem 0 2.5rem;
  padding: 1.2rem;
  border-radius: 1.4rem;
  background: linear-gradient(160deg, #0c3a5e 0%, #0a2f4d 55%, #1a6b35 100%);
  color: #fff;
}
.vol-fig {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
  aspect-ratio: 3 / 4;
}
.vol-fig .media-rotate {
  position: absolute;
  inset: 0;
}
.vol-fig .media-rotate img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 2.5s cubic-bezier(0.33, 0.1, 0.25, 1), transform 10s ease-out;
  transform: scale(1.06);
}
.vol-fig .media-rotate img.is-on {
  opacity: 1;
  transform: scale(1);
}
.vol-copy .kicker { color: rgba(255, 255, 255, 0.7); }
.vol-copy h2 {
  font-family: "Fraunces", Georgia, serif;
  color: #fff;
  margin: 0.2rem 0 0.65rem;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
}
.vol-copy .prose { color: rgba(255, 255, 255, 0.88); margin-bottom: 0.9rem; }
.vol-copy .check-list li { color: #fff; }
.vol-copy .btn-main {
  margin-top: 1rem;
  background: var(--green);
  display: inline-flex;
}

.voice-block {
  margin-top: 1.5rem;
  padding: 1.6rem 1.4rem;
  border-radius: 1.35rem;
  background: linear-gradient(180deg, #0c3a5e 0%, #1a5a8a 100%);
  color: #fff;
}
.voice-block .kicker { color: rgba(255, 255, 255, 0.72); }
.voice-block h2 {
  font-family: "Fraunces", Georgia, serif;
  color: #fff;
  margin: 0.25rem 0 0.7rem;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  max-width: 28ch;
}
.voice-block .prose {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1rem;
  max-width: 52ch;
}
.voice-block .btn-main { background: var(--green); }
.voice-block .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.services-intro { margin-bottom: 1.25rem; max-width: 52ch; }

.partners {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px;
}
.partners-live { max-width: 52rem; }
.partner-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 5.5rem;
  padding: 1.1rem 1.15rem;
  border-radius: 1.15rem;
  text-decoration: none;
  color: inherit;
  background:
    radial-gradient(circle at 18% 20%, rgba(42, 168, 74, 0.14), transparent 55%),
    var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(12, 58, 94, 0.06);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.partner-card:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 168, 74, 0.45);
  box-shadow: 0 12px 28px rgba(12, 58, 94, 0.12);
}
.partner-card strong {
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.25;
}
.partner-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.ph {
  height: 72px; border: 1px dashed var(--line); border-radius: 1rem;
  display: grid; place-items: center; color: var(--muted); font-size: 0.78rem;
  background: var(--white);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.intent-block {
  margin-top: 1.4rem;
  padding: 1.2rem 1.15rem;
  border-radius: 1.2rem;
  background: color-mix(in srgb, var(--white) 82%, transparent);
  border: 1px solid var(--line);
}
.intent-block h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--navy);
  margin: 0.2rem 0 0.9rem;
}
.contact-channels {
  margin-top: 0.75rem;
}
.intent-block .note {
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 42ch;
  margin: 0.75rem 0 0.35rem;
}
.btn.is-pending,
a.social-link.is-pending {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
  text-decoration: none;
}
.stories-block {
  margin: 0.5rem 0 2rem;
  padding: 1.5rem 1.35rem;
  border-radius: 1.35rem;
  background: linear-gradient(145deg, rgba(12, 58, 94, 0.94), rgba(42, 168, 74, 0.55));
  color: #fff;
}
.stories-block .kicker { color: rgba(255, 255, 255, 0.72); }
.stories-block h2 {
  font-family: var(--display);
  color: #fff;
  margin: 0.2rem 0 0.7rem;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}
.stories-block .prose {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  max-width: 48ch;
}
.stories-block .btn-main { background: var(--green); }
.made-by {
  margin: 1.75rem 0 0.5rem;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.made-by a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.85;
  transition: color 0.22s var(--ease), opacity 0.22s var(--ease);
}
.made-by a:hover {
  color: var(--green-dark);
  opacity: 1;
  text-decoration: underline;
}
footer {
  padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem;
  background: var(--paper);
}
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@keyframes ken {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.18) translate3d(-2.2%, -1.4%, 0); }
}
@keyframes pulseHint {
  0%, 100% { opacity: 0.55; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(6px); }
}
@keyframes page-rise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes veil-sweep {
  0% { opacity: 0; transform: translateX(-120%); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateX(120%); }
}
.page-veil {
  position: fixed;
  inset: 0;
  z-index: 28;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(105deg, transparent 28%, rgba(42, 168, 74, 0.18) 46%, rgba(12, 58, 94, 0.28) 54%, transparent 72%);
  transform: translateX(-120%);
}
.page-veil.is-sweeping {
  animation: veil-sweep 0.7s cubic-bezier(0.25, 0.9, 0.3, 1);
}

@media (max-width: 860px) {
  .cards, .contact-grid, .partners, .brand-panel, .audience-grid, .vol-block { grid-template-columns: 1fr 1fr; }
  .nav { flex-wrap: wrap; padding: 8px 0 10px; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .links {
    display: none;
    width: 100%;
    order: 4;
    flex-direction: column;
    gap: 0;
    background: rgba(7, 24, 40, 0.94);
    border-radius: 14px;
    padding: 8px;
  }
  body[data-page="inicio"] .links { background: rgba(7, 24, 40, 0.88); }
  .chrome.is-open .links { display: flex; }
  .links a {
    color: #fff !important;
    padding: 10px 12px;
    border-radius: 10px;
  }
  .links a[aria-current="page"] { background: rgba(255, 255, 255, 0.1); }
  .links a[aria-current="page"]::after { display: none; }
  .hero-copy { max-width: none; margin-left: auto; }
  .hero-frost { width: 100%; height: min(80vh, 720px); }
  .hero-hint {
    display: block;
    right: 64px;
    bottom: max(4.5rem, calc(env(safe-area-inset-bottom) + 3.2rem));
    font-size: 0.68rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  }
  .deck-next { min-width: 56px; min-height: 96px; }
  .rail { right: 8px; top: calc(50% - 64px); }
  .demo-chip { bottom: max(8px, env(safe-area-inset-bottom)); font-size: 0.68rem; }
}
@media (max-width: 640px) {
  .cards, .contact-grid, .partners, .brand-panel, .audience-grid, .vol-block { grid-template-columns: 1fr; }
  .brand img { height: 44px; }
  .page-hero { min-height: 38vh; }
}
@media (prefers-reduced-motion: reduce) {
  .deck-viewport { scroll-behavior: auto; }
  .hero-hint, .page-veil, .flow-wash { animation: none !important; }
  .hero-slide, .hero-slide img, .page-hero .media-rotate img, .page-hero::after,
  .card, .card-img, .media-rotate img, .btn, .links a, .social-glow__btn { transition: none !important; }
  .card:hover, .btn:hover, .links a:hover, .social-glow__btn:hover { transform: none !important; }
  .card:hover .card-img { transform: none; }
  .page.is-on .hero-copy, .page.is-on .page-hero-copy { animation: none; }
  .hero-frost, .page-hero-frost {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .edit-flash { animation: none; outline: 2px solid #2aa84a; }
  .page { background: var(--paper); backdrop-filter: none; }
}

.edit-flash {
  animation: edit-flash 1.1s ease;
  border-radius: 4px;
}
@keyframes edit-flash {
  0% { box-shadow: 0 0 0 0 rgba(42, 168, 74, 0.55); background-color: rgba(126, 224, 143, 0.28); }
  100% { box-shadow: 0 0 0 12px rgba(42, 168, 74, 0); background-color: transparent; }
}

/* —— Ambient logo-flow ribbons (canvas) —— */
.flow-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--flow-wash);
  transition: background 1.2s var(--ease), opacity 0.9s var(--ease);
}
.flow-wash {
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(ellipse 70% 55% at 12% 18%, color-mix(in srgb, var(--flow-a) 14%, transparent), transparent 68%),
    radial-gradient(ellipse 55% 48% at 88% 28%, color-mix(in srgb, var(--flow-b) 12%, transparent), transparent 70%),
    radial-gradient(ellipse 60% 50% at 55% 92%, color-mix(in srgb, var(--flow-c) 10%, transparent), transparent 72%);
  animation: flow-drift 36s ease-in-out infinite alternate;
}
.flow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.92;
}

body[data-page="inicio"] {
  --flow-a: #0c3a5e;
  --flow-b: #2aa84a;
  --flow-c: #5bb8c9;
  --flow-wash: #eaf3f8;
}
body[data-page="inicio"] .flow-bg { opacity: 0.55; }
body[data-page="sobre"] {
  --flow-a: #0c3a5e;
  --flow-b: #2aa84a;
  --flow-c: #8bc34a;
  --flow-wash: #e8f4ef;
}
body[data-page="servicios"] {
  --flow-a: #0a2f4d;
  --flow-b: #1e7a36;
  --flow-c: #4db6c8;
  --flow-wash: #e8f1f7;
}
body[data-page="donar"] {
  --flow-a: #14532d;
  --flow-b: #2aa84a;
  --flow-c: #0c3a5e;
  --flow-wash: #eef8f1;
}
body[data-page="contacto"] {
  --flow-a: #0c3a5e;
  --flow-b: #2aa84a;
  --flow-c: #5a9ec8;
  --flow-wash: #eef4fa;
}

@keyframes flow-drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1.02); }
  to { transform: translate3d(1.5%, 1.5%, 0) scale(1.06); }
}

.audience-card, .check-block, .panel, .card {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.audience-card:hover, .check-block:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.panel a, .social-link, .foot-social, a[href^="mailto:"], a[data-link] {
  transition: color 0.28s var(--ease), transform 0.28s var(--ease), opacity 0.28s var(--ease);
}
.panel a:hover, .social-link:hover, .foot-social:hover {
  color: var(--green-dark);
  transform: translateY(-2px);
}
.langs button, .rail button, .menu-btn {
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease), height 0.25s var(--ease);
}
.langs button:hover, .menu-btn:hover {
  transform: translateY(-2px);
}
.rail button:hover {
  transform: scale(1.25);
  background: var(--green);
}

.chrome { z-index: 40; }
.rail { z-index: 35; }


.workshops { margin-top: 2.5rem; }
.workshops > h2 { margin: 0 0 0.75rem; }
.workshops-grid { margin-top: 1.25rem; }
.workshops .note { margin: 0.85rem 0 0; color: var(--muted); font-size: 0.9rem; }
.rail { display: none !important; }
