/* ==========================================================================
   Leamos un Libro — estilos MVP
   Paleta inspirada en logo + Manual de Comunicación
   ========================================================================== */

:root {
  --green: #008c5a;
  --green-dark: #006b45;
  --green-soft: #4d7a4d;
  --violet: #803790;
  --magenta: #a12a8d;
  --fuchsia: #c83aaf;
  --yellow: #f4b83f;
  --yellow-dark: #d99a1f;
  --ink: #1e1e1e;
  --cream: #faf9f6;
  --cream-2: #f1f1ee;
  --white: #ffffff;
  --muted: #5c5c57;
  --border: rgba(30, 30, 30, 0.1);
  --shadow: 0 12px 40px rgba(30, 30, 30, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  --container: 1120px;
  --header-h: 76px;
  --focus: 0 0 0 3px rgba(128, 55, 144, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.4s;
  --dur: 0.6s;
  --dur-slow: 0.9s;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
  scrollbar-width: thin;
  scrollbar-color: #803790 #f1f1ee;
}

body {
  scrollbar-width: thin;
  scrollbar-color: #803790 #f1f1ee;
}

/* Scrollbar (Chrome, Edge, Safari) */
* {
  scrollbar-width: thin;
  scrollbar-color: #803790 #f1f1ee;
}

::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

::-webkit-scrollbar-track {
  background: #f1f1ee;
}

::-webkit-scrollbar-thumb {
  background-color: #803790;
  border-radius: 999px;
  border: 3px solid #f1f1ee;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #a12a8d;
}

::-webkit-scrollbar-corner {
  background: #f1f1ee;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(0, 140, 90, 0.08), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(128, 55, 144, 0.08), transparent 55%),
    var(--cream);
}

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

a {
  color: var(--violet);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--magenta);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

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

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2rem, 760px);
}

.center {
  text-align: center;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

.h3-soft {
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 1.5rem;
}

.h-card {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.donate-band {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(128, 55, 144, 0.1), rgba(244, 184, 63, 0.18));
  border: 1px solid rgba(128, 55, 144, 0.18);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.donate-band h3 {
  margin-top: 0;
}

.donate-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .donate-band {
    grid-template-columns: 1fr;
  }

  .donate-band__actions {
    justify-content: flex-start;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 0 0 0.75rem;
}

.eyebrow--on-dark {
  color: var(--yellow);
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
}

.note {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}

.text-link {
  font-weight: 700;
  color: var(--green-dark);
  position: relative;
  transition: color var(--dur-fast) var(--ease);
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.text-link:hover {
  color: var(--violet);
}

.text-link:hover::after {
  transform: scaleX(1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--dur) var(--ease),
    background var(--dur-fast) ease,
    color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    box-shadow var(--dur) ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.22) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform var(--dur-slow) var(--ease);
  z-index: -1;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--violet);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--magenta);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(128, 55, 144, 0.22);
}

.btn--secondary {
  background: var(--green);
  color: var(--white);
}

.btn--secondary:hover {
  background: var(--green-dark);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 140, 90, 0.2);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
}

.btn--yellow:hover {
  background: var(--yellow-dark);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(244, 184, 63, 0.25);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(30, 30, 30, 0.2);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--violet);
  color: var(--violet);
  background: rgba(128, 55, 144, 0.05);
  box-shadow: 0 8px 20px rgba(128, 55, 144, 0.08);
}

.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: transparent;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand:hover .brand__logo {
  transform: rotate(-3deg) scale(1.03);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand__short {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--violet);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.4s ease;
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--fuchsia));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}

.site-nav__list a:hover,
.site-nav__list a.is-active {
  color: var(--violet);
}

.site-nav__list a:hover::after,
.site-nav__list a.is-active::after {
  transform: scaleX(1);
}

.site-nav__cta .btn {
  min-height: 42px;
  padding-inline: 1rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 4rem;
  overflow: clip;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 60% 40% 55% 45%;
  filter: blur(2px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}

.blob--green {
  width: 280px;
  height: 280px;
  background: rgba(0, 140, 90, 0.18);
  top: 5%;
  left: -4%;
}

.blob--violet {
  width: 220px;
  height: 220px;
  background: rgba(128, 55, 144, 0.16);
  top: 20%;
  right: 5%;
  animation-delay: -3s;
}

.blob--yellow {
  width: 160px;
  height: 160px;
  background: rgba(244, 184, 63, 0.25);
  bottom: 8%;
  left: 35%;
  animation-delay: -6s;
}

.scribble {
  position: absolute;
  color: var(--fuchsia);
  opacity: 0.35;
  width: 180px;
  bottom: 12%;
  right: 18%;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero__title {
  color: var(--violet);
}

.hero__lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 500;
  margin: 0 0 1rem;
}

.hero__text {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.hero__actions,
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.section__cta {
  margin-top: 1.75rem;
}

.hero__figure {
  margin: 0;
  position: relative;
}

.hero__figure img {
  width: 100%;
  border-radius: 28px 28px 28px 80px;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero__caption {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.page-hero {
  padding: 3rem 0 1rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(241, 241, 238, 0.7), rgba(250, 249, 246, 0.2));
}

.section--compact {
  padding: 3rem 0;
}

.section--why {
  padding-top: 2rem;
}

.section__intro {
  max-width: 40rem;
  margin-bottom: 2rem;
}

/* Cards & grids */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.85s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.85s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 0.85s ease,
    background-color 0.85s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -30% -50% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 55, 144, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(128, 55, 144, 0.1);
  border-color: rgba(128, 55, 144, 0.18);
}

.card:hover::after {
  opacity: 1;
}

.card--soft {
  background: rgba(255, 255, 255, 0.72);
}

.card--green {
  border-top: 4px solid var(--green);
}

.card--green:hover {
  box-shadow: 0 14px 34px rgba(0, 140, 90, 0.12);
  border-color: rgba(0, 140, 90, 0.22);
}

.card--violet {
  border-top: 4px solid var(--violet);
}

.card--yellow {
  border-top: 4px solid var(--yellow);
}

.card--yellow:hover {
  box-shadow: 0 14px 34px rgba(244, 184, 63, 0.16);
}

.approach-band {
  margin-top: 1.5rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(128, 55, 144, 0.08), rgba(0, 140, 90, 0.08));
  border: 1px solid rgba(128, 55, 144, 0.12);
}

.approach-band h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  color: var(--violet);
}

.approach-band p {
  margin: 0;
  color: var(--ink);
}

.pillar-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.35rem;
}

.card--link h3 a {
  color: inherit;
  text-decoration: none;
}

.card--link h3 a:hover {
  color: var(--violet);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.split__media img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.7s ease;
}

.split__media:hover img {
  transform: scale(1.02);
  box-shadow: 0 16px 36px rgba(30, 30, 30, 0.12);
}

.how-grid {
  margin-top: 2rem;
}

.program-grid {
  display: grid;
  gap: 1.5rem;
}

.program-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition:
    transform 0.85s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.85s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 0.85s ease;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 140, 90, 0.1);
  border-color: rgba(0, 140, 90, 0.2);
}

.program-card__media {
  overflow: hidden;
}

.program-card__media img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.program-card:hover .program-card__media img {
  transform: scale(1.03);
}

.program-card__body {
  padding: 1.35rem 1.35rem 1.35rem 0;
}

.cta-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, var(--violet), var(--green-dark));
  color: var(--white);
  border-radius: 28px;
  padding: 2rem;
  overflow: hidden;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.cta-band:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(128, 55, 144, 0.2);
}

.cta-band a {
  color: inherit;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.92);
}

.cta-band__media img {
  border-radius: 20px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.cta-band:hover .cta-band__media img {
  transform: scale(1.02);
}

.social-buttons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.5s ease,
    color 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.55s ease;
}

.social-btn:hover {
  border-color: transparent;
  color: var(--white);
  background: linear-gradient(135deg, var(--violet), var(--fuchsia));
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(128, 55, 144, 0.2);
}

.plain-list,
.numbered-list,
.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.plain-list li,
.numbered-list li,
.timeline-list li {
  margin: 0;
  padding: 0;
}

.numbered-list li,
.timeline-list li + li {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.timeline-list p {
  margin: 0.35rem 0 0;
}

.team-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  transition:
    transform 0.85s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.85s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 0.85s ease;
}

.team-card__photo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.75rem;
  background: var(--cream-2);
}

.article-body {
  font-size: 1.08rem;
  line-height: 1.75;
}

.article-body p {
  margin: 0 0 1rem;
}

.team-card:hover {
  transform: translateY(-3px);
  border-color: rgba(128, 55, 144, 0.2);
  box-shadow: 0 12px 28px rgba(128, 55, 144, 0.08);
}

.team-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  transition: color 0.85s ease;
}

.team-card:hover h3 {
  color: var(--violet);
}

.team-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.news-placeholder {
  min-height: 160px;
  border-style: dashed;
}

.mt-lg {
  margin-top: 2rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row label {
  font-weight: 700;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--violet);
}

.field-error {
  margin: 0;
  color: #9b1c1c;
  font-size: 0.9rem;
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  margin: 1rem 0;
}

.alert--success {
  background: rgba(0, 140, 90, 0.12);
  border: 1px solid rgba(0, 140, 90, 0.3);
}

.alert--error {
  background: rgba(155, 28, 28, 0.08);
  border: 1px solid rgba(155, 28, 28, 0.25);
}

.contact-aside__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

/* Footer */
.site-footer {
  background: linear-gradient(160deg, var(--violet) 0%, #6a2d78 55%, var(--magenta) 100%);
  color: rgba(255, 255, 255, 0.92);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--yellow);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
}

.site-footer__logo {
  width: 72px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  background: transparent;
  margin-bottom: 0.85rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}

.site-footer__tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer__heading {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow);
  margin-bottom: 0.9rem;
}

.site-footer__links,
.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}

/* Reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-slow) ease, transform var(--dur-slow) var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/*
  data-reveal pisaba las transitions de las cards (solo opacity/transform).
  Al hacerse visible, restauramos hover suave completo.
*/
.card[data-reveal].is-visible,
.program-card[data-reveal].is-visible,
.team-card[data-reveal].is-visible {
  transition:
    transform 0.85s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.85s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 0.85s ease,
    background-color 0.85s ease,
    opacity 0.9s ease;
}

.card[data-reveal].is-visible:hover,
.program-card[data-reveal].is-visible:hover,
.team-card[data-reveal].is-visible:hover {
  transform: translateY(-4px);
}

.team-card[data-reveal].is-visible:hover {
  transform: translateY(-3px);
}

/* Cursor stroke / trazo (desktop) */
.cursor-stroke {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

body.has-cursor-stroke {
  cursor: auto;
}

/* Carrusel: ocultar controles en desktop */
.card-carousel__controls {
  display: none;
}

@media (min-width: 761px) {
  .card-carousel__controls {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card:hover,
  .program-card:hover,
  .btn:hover,
  .social-btn:hover,
  .team-card:hover,
  .cta-band:hover {
    transform: none;
  }

  .cursor-stroke {
    display: none !important;
  }
}

/* Hero image hover */
.hero__figure img {
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__figure:hover img {
  transform: scale(1.015);
}

.site-footer__links a,
.social-list a {
  display: inline-block;
  transition: color 0.25s ease, transform 0.25s ease;
}

.site-footer__links a:hover,
.social-list a:hover {
  transform: translateX(3px);
}

/* Responsive */
@media (max-width: 960px) {
  .hero__grid,
  .split,
  .program-card,
  .cta-band,
  .contact-layout,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .card-grid--3 {
    grid-template-columns: 1fr 1fr;
  }

  .program-card__body {
    padding: 0 1.25rem 1.25rem;
  }

  .site-nav__cta {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header__nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1.25rem;
    display: none;
  }

  .site-header__nav.is-open {
    display: block;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0.25rem;
  }

  .site-nav__list a {
    display: block;
    padding: 0.7rem 0.2rem;
  }

  .site-nav__cta {
    display: block;
    margin-top: 0.5rem;
  }

  .site-nav__cta .btn {
    width: 100%;
  }

  /* Carrusel mobile de cards */
  .card-carousel {
    position: relative;
  }

  .card-carousel__track.card-grid,
  .card-carousel__track.program-grid,
  .card-carousel__track.team-grid,
  .card-grid--2,
  .card-grid--3,
  .team-grid,
  .program-grid {
    display: flex;
    grid-template-columns: none;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    padding-bottom: 0.35rem;
    margin-inline: -1rem;
    padding-inline: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .card-grid--2::-webkit-scrollbar,
  .card-grid--3::-webkit-scrollbar,
  .team-grid::-webkit-scrollbar,
  .program-grid::-webkit-scrollbar,
  .card-carousel__track::-webkit-scrollbar {
    display: none;
  }

  .card-grid--2 > *,
  .card-grid--3 > *,
  .team-grid > *,
  .program-grid > *,
  .card-carousel__track > * {
    flex: 0 0 min(82vw, 300px);
    scroll-snap-align: center;
  }

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

  .program-card__body {
    padding: 1rem 1.1rem 1.2rem;
  }

  .card-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .card-carousel__btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(128, 55, 144, 0.25);
    background: var(--white);
    color: var(--violet);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .card-carousel__btn:hover,
  .card-carousel__btn:focus-visible {
    background: var(--violet);
    color: var(--white);
    transform: scale(1.05);
  }

  .card-carousel__dots {
    display: flex;
    gap: 0.4rem;
    align-items: center;
  }

  .card-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(128, 55, 144, 0.25);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
  }

  .card-carousel__dot.is-active {
    width: 22px;
    background: linear-gradient(90deg, var(--violet), var(--fuchsia));
  }

  .hero {
    padding-top: 2rem;
  }
}
