/* =========================================================
   Fundación Berakhah — sitio web
   ========================================================= */

/* Self-hosted fonts (SIL Open Font License, see assets/fonts) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-serif-display-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Serif Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-serif-display-italic-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Official logo colors */
  --logo-navy: #042869;
  --logo-blue: #084dae;
  --logo-sky: #64baf0;
  --logo-teal: #039aa2;
  --logo-green: #619c1c;
  --logo-orange: #efa200;
  --logo-gold: #e8a417;
  --logo-yellow: #f0d25c;
  --logo-magenta: #c70267;

  --ink: var(--logo-navy);
  --text: #3a4766;
  --muted: #5e6a84;
  --navy: var(--logo-navy);
  --navy-700: var(--logo-blue);
  --blue: var(--logo-blue);
  --tint: #f4f7fc;
  --tint-2: #e8f0fb;
  --line: #e1e7f1;
  /* Deepest shade of the turquoise figure: keeps 4.5:1 contrast with white text. */
  --accent: #00828a;
  --accent-hover: #006b72;
  --accent-soft: #e3f5f6;
  --accent-line: #b3e0e3;
  --gold: var(--logo-gold);
  --success: #3f7518;
  --white: #fff;

  /* Logo silhouettes, left to right. */
  --brand-stripe: linear-gradient(
    90deg,
    var(--logo-teal) 0 25%,
    var(--logo-green) 25% 50%,
    var(--logo-orange) 50% 75%,
    var(--logo-magenta) 75% 100%
  );

  --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-sans:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgb(15 29 64 / 0.05);
  --shadow:
    0 1px 2px rgb(15 29 64 / 0.04), 0 14px 34px -12px rgb(15 29 64 / 0.14);
  --shadow-lg:
    0 2px 6px rgb(15 29 64 / 0.05), 0 30px 60px -20px rgb(15 29 64 / 0.22);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 120px);
  --header-h: 76px;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

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

img,
video,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  line-height: 1.12;
  text-wrap: balance;
}

h1,
h2,
.display,
.title-xl {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1,
.title-xl {
  font-size: clamp(2.6rem, 1.8rem + 3.2vw, 4.25rem);
}

.display,
.title-xl {
  margin: 0 0 0.5em;
  color: var(--ink);
  line-height: 1.12;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2rem, 1.45rem + 2.1vw, 3.1rem);
}

h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 650;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.22rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--navy-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

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

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: #ffefc2;
  color: var(--ink);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stripe {
  height: 4px;
  background: var(--brand-stripe);
}

/* ---------- Botones y enlaces ---------- */

.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-1px);
}
.btn:active {
  transform: none;
}
.btn .icon {
  width: 20px;
  height: 20px;
}

.btn--accent {
  --btn-bg: var(--accent);
  box-shadow: 0 10px 22px -10px rgb(0 130 138 / 0.45);
}

.btn--accent:hover {
  --btn-bg: var(--accent-hover);
  box-shadow: 0 14px 26px -12px rgb(0 130 138 / 0.55);
}

.btn--primary:hover {
  --btn-bg: var(--navy-700);
}

.btn--outline {
  --btn-bg: #fff;
  --btn-fg: var(--navy);
  --btn-border: #cbd5e6;
}

.btn--outline:hover {
  --btn-border: var(--navy-700);
  --btn-fg: var(--navy-700);
}

.btn--sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.95rem;
}
.btn--lg {
  min-height: 56px;
  padding: 0 30px;
  font-size: 1.05rem;
}
.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy-700);
  text-decoration: none;
}

.link-arrow .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}
.link-arrow:hover .icon {
  transform: translateX(4px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* ---------- Tipografía de apoyo ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--navy-700);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.28rem);
  line-height: 1.65;
  color: var(--text);
}

.display {
  font-size: clamp(3rem, 1.6rem + 5.2vw, 5.4rem);
  line-height: 1;
  margin-bottom: 24px;
}

.display em,
.title-xl em,
h1 em,
h2 em {
  font-style: italic;
  color: var(--accent);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px -18px rgb(15 29 64 / 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}
.brand img {
  width: 50px;
  height: 50px;
}

.brand-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.32rem;
  line-height: 1.1;
}

.brand-tag {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: block;
  padding: 10px 13px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.nav-link:hover {
  background: var(--tint);
  color: var(--navy-700);
}

.nav-link[aria-current="page"] {
  color: var(--navy-700);
  font-weight: 650;
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  border-radius: 2px;
  background: var(--ink);
  transition:
    transform 0.25s,
    opacity 0.2s;
}

.nav-toggle span {
  top: 50%;
  margin-top: -1px;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  left: 0;
  margin-left: 0;
}
.nav-toggle span::before {
  transform: translateY(-6px);
}
.nav-toggle span::after {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] span::before {
  transform: rotate(45deg);
  background: var(--ink);
}
.nav-toggle[aria-expanded="true"] span::after {
  transform: rotate(-45deg);
  background: var(--ink);
}

/* Tighter links so the desktop nav still fits next to the brand just above the hamburger breakpoint. */
@media (min-width: 1080px) and (max-width: 1199.98px) {
  .header-inner {
    gap: 12px;
  }
  .nav-link {
    padding-inline: 8px;
  }
  .nav-link[aria-current="page"]::after {
    left: 8px;
    right: 8px;
  }
}

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-h) - 4px);
    height: calc(100dvh - var(--header-h) - 4px);
    padding: 8px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid var(--line);
    background: #fff;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition:
      opacity 0.25s ease,
      transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
      visibility 0s linear 0.35s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition:
      opacity 0.25s ease,
      transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list li {
    border-bottom: 1px solid var(--line);
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 2px;
    border-radius: 0;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: -0.01em;
  }

  .nav-link::before {
    content: "";
    order: 2;
    width: 9px;
    height: 9px;
    border-top: 2px solid #c3cddd;
    border-right: 2px solid #c3cddd;
    transform: rotate(45deg);
  }

  .nav-link:hover {
    background: none;
    color: var(--accent);
  }
  .nav-link[aria-current="page"] {
    color: var(--accent);
    font-weight: 400;
  }
  .nav-link[aria-current="page"]::before {
    border-color: var(--accent);
  }
  .nav-link[aria-current="page"]::after {
    display: none;
  }

  .site-nav.is-open .nav-list li,
  .site-nav.is-open .nav-extra {
    animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .site-nav.is-open .nav-list li:nth-child(2) {
    animation-delay: 0.04s;
  }
  .site-nav.is-open .nav-list li:nth-child(3) {
    animation-delay: 0.08s;
  }
  .site-nav.is-open .nav-list li:nth-child(4) {
    animation-delay: 0.12s;
  }
  .site-nav.is-open .nav-list li:nth-child(5) {
    animation-delay: 0.16s;
  }
  .site-nav.is-open .nav-list li:nth-child(6) {
    animation-delay: 0.2s;
  }
  .site-nav.is-open .nav-extra {
    animation-delay: 0.26s;
  }

  .site-nav .nav-extra {
    display: grid;
    gap: 12px;
    margin-top: auto;
    padding-top: 32px;
  }
}

.nav-extra {
  display: none;
}

.nav-extra-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-extra-links {
  display: grid;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.nav-extra-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.nav-extra-links .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 460px) {
  .brand img {
    width: 42px;
    height: 42px;
  }
  .brand-name {
    font-size: 1.12rem;
  }
  .brand-tag {
    display: none;
  }
  .header-cta {
    padding: 0 14px;
  }
}

/* ---------- Secciones ---------- */

.section {
  padding-block: var(--section);
}
.section--tint {
  background: #fff;
  border-block: 1px solid var(--line);
}
.section--tight {
  padding-block: clamp(56px, 7vw, 88px);
}
.section--flush-top {
  padding-top: 0;
}

.section-head {
  max-width: 740px;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.section-head > p:not(.eyebrow) {
  font-size: 1.125rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.section-head--split > div {
  max-width: 640px;
}

.split {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--wide-media {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

@media (min-width: 700px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.grid--narrow {
  max-width: 900px;
  margin-inline: auto;
}

/* ---------- Hero (inicio) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 80px) clamp(96px, 10vw, 140px);
  background: #fff;
}

.hero-grid {
  display: grid;
  gap: clamp(48px, 6vw, 72px);
  align-items: center;
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.02fr 0.98fr;
  }
}

.hero-content > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-content > :nth-child(2) {
  animation-delay: 0.06s;
}
.hero-content > :nth-child(3) {
  animation-delay: 0.12s;
}
.hero-content > :nth-child(4) {
  animation-delay: 0.18s;
}
.hero-content > :nth-child(5) {
  animation-delay: 0.24s;
}

.hero .lead {
  max-width: 34em;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.97rem;
}

.hero-contact .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.hero-contact a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.hero-contact a:hover {
  color: var(--accent);
}

.hero-media {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  aspect-ratio: 1 / 1.04;
  width: min(100%, 600px);
  margin-inline: auto;
  /* Transform-only so the hero photo counts as painted (LCP) while the intro plays. */
  animation: lift 1s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--tint-2);
  box-shadow: var(--shadow-lg);
}

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

.hero-photo-main {
  grid-column: 4 / 13;
  grid-row: 1 / 11;
  animation: float 9s ease-in-out infinite;
}

.hero-photo-main img {
  animation: hero-pan 18s ease-in-out infinite alternate;
}

.hero-photo-alt {
  grid-column: 1 / 7;
  grid-row: 7 / 13;
  z-index: 1;
  border: 6px solid #fff;
  /* Opposite phase to the main photo, for depth. */
  animation: float 9s ease-in-out -4.5s infinite;
}

.hero-photo-alt img {
  object-position: 50% 30%;
  animation: hero-pan 14s ease-in-out -7s infinite alternate-reverse;
}

.hero-note {
  grid-column: 1 / 8;
  grid-row: 2 / 5;
  align-self: center;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 290px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  line-height: 1.45;
  animation: float 6s ease-in-out 1.2s infinite;
}

.hero-note p {
  margin: 0;
  color: var(--text);
}
.hero-note strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.hero-note-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.hero-note-icon .icon {
  width: 24px;
  height: 24px;
}

.hero-seal {
  grid-column: 10 / 13;
  grid-row: 10 / 13;
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: clamp(84px, 13vw, 112px);
  aspect-ratio: 1;
  padding: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
}

@media (max-width: 599.98px) {
  .hero-media {
    aspect-ratio: 4 / 5;
  }
  .hero-photo-main {
    grid-column: 1 / 13;
    grid-row: 1 / 11;
  }
  .hero-photo-alt {
    display: none;
  }

  .hero-note {
    grid-column: 1 / 13;
    grid-row: 10 / 13;
    align-self: end;
    justify-self: center;
    max-width: calc(100% - 32px);
  }

  .hero-seal {
    grid-column: 9 / 13;
    grid-row: 1 / 4;
    align-self: start;
    justify-self: end;
    width: 76px;
    margin: 14px 14px 0 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

@keyframes hero-pan {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.1) translate(-2%, -1.5%);
  }
}

/* ---------- Cifras ---------- */

.stats-wrap {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * clamp(56px, 6vw, 80px));
}

.stats {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.stat {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px clamp(22px, 3vw, 36px);
}

.stat + .stat {
  border-top: 1px solid var(--line);
}

@media (min-width: 820px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat + .stat {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

.stat-value {
  flex: none;
  min-width: 1.6em;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 2rem + 1.6vw, 3.4rem);
  line-height: 1;
}

.stat-label {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.45;
}
.stat-label strong {
  display: block;
  color: var(--ink);
  font-weight: 650;
}

/* ---------- Tarjetas ---------- */

.card {
  height: 100%;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #d6deeb;
}

.card h3 {
  margin-bottom: 10px;
}
.card p {
  color: var(--text);
}
.card .tag + h3 {
  margin-top: 14px;
}
.card-link {
  margin-top: 18px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: var(--tint-2);
  color: var(--navy-700);
}

.card-icon .icon {
  width: 28px;
  height: 28px;
}

.tone-red {
  background: #fdebf3;
  color: #b0095f;
}
.tone-orange {
  background: #fff3dc;
  color: #8f5c00;
}
.tone-gold {
  background: #fdf6d8;
  color: #7a6300;
}
.tone-green {
  background: #eef6e2;
  color: #3f7518;
}
.tone-teal {
  background: #e1f5f5;
  color: #05707a;
}
.tone-blue {
  background: #e8f0fb;
  color: #084dae;
}

/* ---------- Video ---------- */

.video {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: var(--tint-2);
  box-shadow: var(--shadow-lg);
  -webkit-user-select: none;
  user-select: none;
}

.video:focus {
  outline: none;
}
.video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--tint-2);
}
.video.has-started video {
  cursor: pointer;
}
.video.is-idle,
.video.is-idle video {
  cursor: none;
}

/* Matches the visible area of a 16:9 video with black bars baked in (1920x988 of 1080). */
.video--letterboxed {
  aspect-ratio: 1920 / 988;
}

.video-play {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.js .video-play {
  display: grid;
}
.video.is-playing .video-play,
.video.is-ended .video-play {
  display: none;
}
.video.has-started .video-play-label {
  display: none;
}

.video-play-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  box-shadow:
    0 0 0 10px rgb(255 255 255 / 0.35),
    0 18px 40px -10px rgb(15 29 64 / 0.4);
  transition: transform 0.25s;
}

.video-play-icon .icon {
  width: 32px;
  height: 32px;
}
.video-play:hover .video-play-icon {
  transform: scale(1.07);
}

.video-play-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.94);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Control bar */

.vp-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: 16px;
  background: rgb(255 255 255 / 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 12px 30px -12px rgb(15 29 64 / 0.4);
  color: var(--ink);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.video.has-started .vp-bar {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.video.has-started.is-idle .vp-bar,
.video.is-ended .vp-bar {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.vp-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.vp-btn:hover {
  background: var(--tint-2);
  color: var(--navy-700);
}
.vp-btn .icon {
  width: 20px;
  height: 20px;
}
.vp-toggle .icon {
  width: 18px;
  height: 18px;
}

.vp-btn .i-pause,
.vp-btn .i-muted,
.vp-btn .i-exit-fs,
.video.is-playing .vp-toggle .i-play,
.video.is-muted .vp-mute .i-sound,
.video.is-fullscreen .vp-fs .i-enter-fs {
  display: none;
}

.video.is-playing .vp-toggle .i-pause,
.video.is-muted .vp-mute .i-muted,
.video.is-fullscreen .vp-fs .i-exit-fs {
  display: block;
}

.vp-time {
  flex: none;
  padding: 0 6px 0 2px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vp-sep {
  margin: 0 4px;
  color: #a3aec2;
}
.vp-duration {
  color: var(--muted);
}

/* Timeline */

.vp-seek {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 60px;
  height: 40px;
  margin: 0 6px;
  cursor: pointer;
  touch-action: none;
}

.vp-seek:focus-visible {
  outline: none;
}

.vp-track {
  position: relative;
  width: 100%;
  height: 5px;
  border-radius: 5px;
  background: #dce3ee;
  transition:
    height 0.15s ease,
    box-shadow 0.15s ease;
}

.vp-seek:hover .vp-track,
.vp-seek.is-dragging .vp-track {
  height: 7px;
}
.vp-seek:focus-visible .vp-track {
  box-shadow: 0 0 0 3px rgb(8 77 174 / 0.3);
}

.vp-buffer,
.vp-progress {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: inherit;
}

.vp-buffer {
  width: calc(var(--buffer, 0) * 100%);
  background: #bccadf;
}

.vp-progress {
  width: calc(var(--progress, 0) * 100%);
  background: linear-gradient(90deg, var(--logo-sky), var(--accent));
}

.vp-thumb {
  position: absolute;
  top: 50%;
  left: calc(var(--progress, 0) * 100%);
  width: 15px;
  height: 15px;
  margin: -7.5px 0 0 -7.5px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgb(15 29 64 / 0.3);
  transform: scale(0);
  transition: transform 0.15s ease;
}

.vp-seek:hover .vp-thumb,
.vp-seek:focus-visible .vp-thumb,
.vp-seek.is-dragging .vp-thumb {
  transform: scale(1);
}

.vp-tooltip {
  position: absolute;
  bottom: calc(100% + 2px);
  left: calc(var(--hover, 0) * 100%);
  padding: 4px 9px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 18px -6px rgb(15 29 64 / 0.35);
  opacity: 0;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.vp-seek:hover .vp-tooltip,
.vp-seek.is-dragging .vp-tooltip {
  opacity: 1;
}

/* Volume */

.vp-volume {
  display: flex;
  flex: none;
  align-items: center;
}

.vp-vol {
  width: 0;
  height: 5px;
  margin: 0;
  border-radius: 5px;
  background: linear-gradient(
    90deg,
    var(--navy-700) calc(var(--vol, 1) * 100%),
    #dce3ee 0
  );
  opacity: 0;
  cursor: pointer;
  transition:
    width 0.2s ease,
    opacity 0.2s ease,
    margin 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.vp-volume:hover .vp-vol,
.vp-vol:focus-visible {
  width: 76px;
  margin: 0 8px 0 2px;
  opacity: 1;
}
.vp-vol:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgb(8 77 174 / 0.3);
}

.vp-vol::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  border: 3px solid var(--navy-700);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgb(15 29 64 / 0.3);
  -webkit-appearance: none;
  appearance: none;
}

.vp-vol::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 3px solid var(--navy-700);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgb(15 29 64 / 0.3);
}

@media (hover: none) {
  .vp-vol {
    display: none;
  }
  .vp-thumb {
    transform: scale(1);
  }
}

/* Buffering */

.vp-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 14px 34px -12px rgb(15 29 64 / 0.4);
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.video.is-waiting .vp-loading {
  opacity: 1;
  transform: none;
}

.vp-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: conic-gradient(
    var(--logo-magenta),
    var(--logo-gold),
    var(--logo-yellow),
    var(--logo-green),
    var(--logo-teal),
    var(--logo-sky),
    var(--logo-blue),
    var(--logo-magenta)
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 5px),
    #000 calc(100% - 4.5px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 5px),
    #000 calc(100% - 4.5px)
  );
  animation: loader-spin 1s linear infinite paused;
}

.video.is-waiting .vp-spinner {
  animation-play-state: running;
}

/* End screen */

.vp-end {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(255 255 255 / 0.74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0s linear 0.35s;
}

.video.is-ended .vp-end {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}

.vp-end-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 440px;
  transform: translateY(10px);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.video.is-ended .vp-end-card {
  transform: none;
}

.vp-end-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.9rem;
  line-height: 1.15;
}

.vp-end-text {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}
.vp-end-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.vp-end-actions .btn {
  min-height: 44px;
}

/* Compact player (phones, narrow columns) */

@container (max-width: 460px) {
  .vp-bar {
    left: 8px;
    right: 8px;
    bottom: 8px;
    gap: 0;
    padding: 3px 4px;
    border-radius: 14px;
  }
  .vp-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .vp-time {
    padding: 0 2px;
    font-size: 0.74rem;
  }
  .vp-sep {
    margin: 0 2px;
  }
  .vp-seek {
    min-width: 40px;
    height: 36px;
    margin: 0 6px;
  }
  .vp-volume:hover .vp-vol {
    width: 0;
    margin: 0;
    opacity: 0;
  }
  .vp-loading {
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
  }
  .vp-spinner {
    width: 38px;
    height: 38px;
  }
  .vp-end {
    padding: 12px;
  }
  .vp-end-title {
    font-size: 1.25rem;
  }
  .vp-end-text {
    display: none;
  }
  .vp-end-actions {
    gap: 8px;
    margin-top: 4px;
  }
  .vp-end-actions .btn {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.88rem;
  }
  .vp-end-actions .icon {
    width: 17px;
    height: 17px;
  }
}

/* Fullscreen */

.video:fullscreen {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.video:fullscreen video {
  object-fit: contain;
  background: #fff;
}

.video--letterboxed:fullscreen video {
  width: min(100vw, calc(100vh * 1920 / 988));
  height: auto;
  aspect-ratio: 1920 / 988;
  object-fit: cover;
}

.video:fullscreen .vp-bar {
  left: 0;
  right: 0;
  bottom: 28px;
  width: min(920px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Ofertas (padrinos y productos) ---------- */

.offer {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.offer:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.offer--featured {
  border-color: var(--accent-line);
  box-shadow:
    0 0 0 4px var(--accent-soft),
    var(--shadow);
}

.offer-media {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--tint);
}
.offer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.offer:hover .offer-media img {
  transform: scale(1.04);
}

.offer-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 26px 28px 28px;
}

.offer-body h3 {
  margin: 0;
}
.offer-body p {
  margin: 0;
}
.offer-body .btn {
  margin-top: auto;
}

.price {
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 2.3rem;
  line-height: 1;
}

.price small {
  margin-left: 4px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag--blue {
  background: var(--tint-2);
  color: var(--navy-700);
}
.tag--green {
  background: #eef6e2;
  color: var(--success);
}
.tag .icon {
  width: 14px;
  height: 14px;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sizes li {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 650;
}

/* ---------- Galería ---------- */

.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 170px;
  gap: 14px;
}

.mosaic a:nth-child(1) {
  grid-column: span 2;
}
.mosaic a:nth-child(2),
.mosaic a:nth-child(3) {
  grid-row: span 2;
}

@media (min-width: 860px) {
  .mosaic {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 230px;
    gap: 18px;
  }
  .mosaic a:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  .mosaic a:nth-child(2) {
    grid-column: 3;
    grid-row: 1 / 3;
  }
  .mosaic a:nth-child(3) {
    grid-column: 4;
    grid-row: 1 / 3;
  }
}

.gallery {
  columns: 3 260px;
  column-gap: 18px;
}
.gallery a {
  margin-bottom: 18px;
  break-inside: avoid;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tint-2);
  cursor: zoom-in;
}

.mosaic .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item img {
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(15 29 64 / 0.06);
  pointer-events: none;
}

.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.92);
  color: var(--navy-700);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.25s,
    transform 0.25s;
}

.zoom-hint .icon {
  width: 18px;
  height: 18px;
}
.gallery-item:hover .zoom-hint,
.gallery-item:focus-visible .zoom-hint {
  opacity: 1;
  transform: none;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 72px clamp(16px, 7vw, 96px);
  background: rgb(255 255 255 / 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lightbox.is-open {
  display: grid;
  animation: fade 0.25s ease both;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  width: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition:
    color 0.2s,
    transform 0.2s;
}

.lightbox-btn:hover {
  color: var(--accent);
  transform: scale(1.05);
}
.lightbox-close {
  top: 16px;
  right: 16px;
}
.lightbox-prev {
  left: clamp(10px, 2vw, 24px);
  top: 50%;
  margin-top: -25px;
}
.lightbox-next {
  right: clamp(10px, 2vw, 24px);
  top: 50%;
  margin-top: -25px;
}

.lightbox-count {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- Encabezado de páginas internas ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px);
  background: #fff;
}

.page-hero-grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

@media (min-width: 980px) {
  .page-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.page-hero-grid > div > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.page-hero-grid > div > :nth-child(2) {
  animation-delay: 0.05s;
}
.page-hero-grid > div > :nth-child(3) {
  animation-delay: 0.1s;
}
.page-hero-grid > div > :nth-child(4) {
  animation-delay: 0.15s;
}
.page-hero-grid > div > :nth-child(5) {
  animation-delay: 0.2s;
}

.page-hero--compact {
  padding-bottom: clamp(44px, 5vw, 64px);
}

.page-hero-copy {
  max-width: 780px;
  margin-inline: auto;
}
.page-hero-copy > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.page-hero-copy > :nth-child(2) {
  animation-delay: 0.05s;
}
.page-hero-copy > :nth-child(3) {
  animation-delay: 0.1s;
}
.page-hero-copy > :nth-child(4) {
  animation-delay: 0.15s;
}
.page-hero-copy > :nth-child(5) {
  animation-delay: 0.2s;
}

.page-hero .lead {
  max-width: 36em;
}

.page-hero--center {
  text-align: center;
}
.page-hero--center .lead {
  margin-inline: auto;
}
.page-hero--center .breadcrumb,
.page-hero--center .actions,
.page-hero--center .chips {
  justify-content: center;
}

.page-hero-media {
  aspect-ratio: 4 / 3;
  animation: lift 1s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes lift {
  from {
    transform: translateY(24px);
  }
  to {
    transform: none;
  }
}

.page-hero-media--upper img {
  object-position: 50% 35%;
}

.page-hero-media--top img {
  object-position: 50% 15%;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb [aria-current] {
  color: var(--ink);
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.chips .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* ---------- Cita / lema ---------- */

.quote {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.quote .eyebrow {
  justify-content: center;
}

.quote-mark {
  display: block;
  height: 56px;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 7rem;
  line-height: 1;
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.2rem);
  line-height: 1.08;
}

.quote-text {
  max-width: 640px;
  margin: 22px auto 0;
  font-size: 1.15rem;
}

.quote-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  margin-top: 28px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 0.95rem;
}

.quote-meta .hebrew {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 600;
}

/* ---------- Carta del director ---------- */

.letter {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}

@media (min-width: 980px) {
  .letter {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .letter-aside {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

.letter-body {
  max-width: 720px;
}
.letter-body p {
  font-size: 1.1rem;
  line-height: 1.85;
}

.letter-closing {
  margin-top: 28px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.7rem !important;
  line-height: 1.3 !important;
}

.letter-aside {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.letter-photo {
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
  border: 4px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 2px var(--tint-2),
    var(--shadow);
}

.letter-name {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  font-size: 1.08rem;
}
.letter-role {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.signature {
  width: 190px;
  margin: 18px auto 0;
}

.letter-aside .btn {
  margin-top: 24px;
}

/* ---------- Misión / visión ---------- */

.mv-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: clamp(32px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.mv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--accent);
}

.mv-card--alt::before {
  background: var(--navy-700);
}
.mv-card h2 {
  margin-bottom: 16px;
}
.mv-card p {
  font-size: 1.15rem;
  line-height: 1.8;
}

/* ---------- Comedores ---------- */

.comedores {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .comedores {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .comedores {
    grid-template-columns: repeat(3, 1fr);
  }
}

.comedor {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.comedor:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.comedor-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.comedor h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
}

.comedor p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.4;
}

.comedor p .icon {
  width: 16px;
  height: 16px;
}

.place-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.place-list li {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--tint-2);
  color: var(--navy-700);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- Donaciones ---------- */

.donate-grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 940px) {
  .donate-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.donate-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.donate-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.donate-card-head h2 {
  margin: 12px 0 0;
  font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.3rem);
}
.donate-card-head img {
  flex: none;
  width: auto;
  height: 64px;
  object-fit: contain;
}
.donate-card-head .bank-logo {
  width: min(168px, 40vw);
  height: auto;
  margin-top: 8px;
}

@media (max-width: 520px) {
  .donate-card-head {
    flex-direction: column-reverse;
    gap: 14px;
  }
  .donate-card-head img {
    height: 52px;
  }
  .donate-card-head .bank-logo {
    height: auto;
    margin-top: 0;
  }
}

.donate-grid > * {
  min-width: 0;
}

.donate-number {
  display: block;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 2rem + 2.4vw, 3.6rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.copy-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.details {
  display: grid;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.details > div {
  display: grid;
  gap: 6px;
  padding: 16px 20px;
}
.details > div + div {
  border-top: 1px solid var(--line);
}
.details .field-label {
  margin: 0;
}

.details dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.details dd > span {
  overflow-wrap: anywhere;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border: 1px solid #cbd5e6;
  border-radius: 999px;
  background: #fff;
  color: var(--navy-700);
  font: 600 0.88rem/1 var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s,
    background-color 0.2s;
}

.copy-btn:hover {
  border-color: var(--navy-700);
}
.copy-btn .icon {
  width: 16px;
  height: 16px;
}
.copy-btn .i-done {
  display: none;
}

.copy-btn.is-copied {
  border-color: #cfe5b5;
  background: #f1f8e7;
  color: var(--success);
}
.copy-btn.is-copied .i-copy {
  display: none;
}
.copy-btn.is-copied .i-done {
  display: block;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  counter-increment: step;
  line-height: 1.55;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.88rem;
  font-weight: 700;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.note .icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--success);
}

.donate-hint {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding: 18px 20px;
  border: 1px solid var(--accent-line);
  border-radius: 18px;
  background: #fff;
  font-size: 0.97rem;
  line-height: 1.55;
}

.donate-card .steps {
  margin-bottom: 28px;
}
.donate-hint .card-icon {
  flex: none;
  width: 46px;
  height: 46px;
  margin: 0;
  border-radius: 14px;
  background: #fff;
}
.donate-hint .card-icon .icon {
  width: 22px;
  height: 22px;
}
.donate-hint p {
  margin: 0;
}
.donate-hint strong {
  color: var(--ink);
}

.trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 760px;
  margin: 36px auto 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.55;
  text-align: center;
}

.trust .icon {
  width: 24px;
  height: 24px;
  color: var(--success);
}
.trust strong {
  color: var(--ink);
}

.contact-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: break-word;
}

.contact-list a:hover {
  color: var(--accent);
}
.contact-list .icon {
  width: 18px;
  height: 18px;
  color: var(--navy-700);
}

/* ---------- Preguntas frecuentes ---------- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin-inline: auto;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.faq details[open] {
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.25s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.faq summary:focus-visible {
  border-radius: 18px;
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--text);
}

.faq-answer p {
  margin: 0;
}

@media (max-width: 639.98px) {
  .faq summary {
    padding: 18px 18px;
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }
}

/* ---------- Bloque de datos bancarios (proyectos) ---------- */

.info-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.info-box img {
  width: 130px;
  margin-bottom: 8px;
}
.info-box strong {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}
.info-box span {
  color: var(--muted);
  font-size: 0.92rem;
}

.poster {
  width: min(100%, 460px);
  margin-inline: auto;
}

.poster .gallery-item {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ---------- Revista ---------- */

.viewer {
  overflow: hidden;
  max-width: 900px;
  height: min(88vh, 1180px);
  min-height: 520px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.viewer iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.viewer-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* ---------- Llamado a donar ---------- */

.cta-band {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
  overflow: hidden;
  padding: clamp(36px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: var(--brand-stripe);
}

@media (min-width: 900px) {
  .cta-band {
    grid-template-columns: 1.35fr 1fr;
  }
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 300px;
  height: 300px;
  background: url("../img/logo-320.png") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

.cta-band h2 {
  margin-bottom: 14px;
}
.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-verse {
  color: var(--text);
  font-size: 1.1rem;
  font-style: italic;
}
.cta-verse span {
  font-style: normal;
  font-weight: 600;
  color: var(--navy-700);
}
.cta-verse--plain {
  font-style: normal;
}

.cta-actions {
  display: grid;
  gap: 16px;
  justify-items: start;
}

@media (min-width: 900px) {
  .cta-actions {
    justify-items: end;
    text-align: right;
  }
}

.cta-yappy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text);
  font-size: 0.97rem;
}

.cta-yappy img {
  width: 34px;
  height: auto;
}
.cta-yappy strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 0.97rem;
}

.footer-grid {
  display: grid;
  gap: 40px;
  padding-block: clamp(48px, 6vw, 72px) 40px;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.35fr 0.8fr 1.1fr 1fr;
  }
}

.footer-brand p {
  max-width: 340px;
  margin-top: 18px;
  color: var(--muted);
}
.footer-brand .brand img {
  width: 60px;
  height: 60px;
}

.footer-title {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  color: var(--text);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--accent);
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-contact .icon {
  width: 18px;
  height: 18px;
  color: var(--navy-700);
}

.footer-donate p {
  margin: 0 0 6px;
  color: var(--muted);
}
.footer-donate strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.footer-donate .btn {
  margin-top: 14px;
}

.social {
  display: flex;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy-700);
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.social a:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}
.social .icon {
  width: 19px;
  height: 19px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 22px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Pantalla de carga ---------- */

@property --hole {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

.loader {
  display: none;
}

.js .loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #fff;
  /* Failsafe: hides itself even if the script never runs. */
  animation: loader-failsafe 0.4s ease 6s forwards;
}

.loader-stage {
  display: grid;
  justify-items: center;
  text-align: center;
}

.loader-emblem {
  position: relative;
  width: clamp(176px, 44vw, 220px);
  aspect-ratio: 1;
}

.loader-emblem::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(232 164 23 / 0.3), transparent 68%);
  animation: loader-breathe 2.6s ease-in-out infinite;
}

.loader-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.loader-people {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: loader-spin 16s linear infinite;
}

.loader-arcs circle {
  fill: none;
  stroke: var(--c);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 0 360;
  animation: loader-draw 0.5s cubic-bezier(0.6, 0, 0.2, 1) both;
  animation-delay: calc(0.15s + var(--i) * 0.08s);
}

.loader-heads circle {
  fill: var(--c);
  transform-box: fill-box;
  transform-origin: center;
  animation: loader-pop 0.5s cubic-bezier(0.3, 1.7, 0.5, 1) both;
  animation-delay: calc(0.4s + var(--i) * 0.08s);
}

.loader-arcs :nth-child(1),
.loader-heads :nth-child(1) {
  --c: var(--logo-magenta);
  --i: 0;
}
.loader-arcs :nth-child(2),
.loader-heads :nth-child(2) {
  --c: var(--logo-gold);
  --i: 1;
}
.loader-arcs :nth-child(3),
.loader-heads :nth-child(3) {
  --c: var(--logo-yellow);
  --i: 2;
}
.loader-arcs :nth-child(4),
.loader-heads :nth-child(4) {
  --c: var(--logo-green);
  --i: 3;
}
.loader-arcs :nth-child(5),
.loader-heads :nth-child(5) {
  --c: var(--logo-teal);
  --i: 4;
}
.loader-arcs :nth-child(6),
.loader-heads :nth-child(6) {
  --c: var(--logo-sky);
  --i: 5;
}
.loader-arcs :nth-child(7),
.loader-heads :nth-child(7) {
  --c: var(--logo-blue);
  --i: 6;
}

.loader-seal {
  position: absolute;
  inset: 19%;
  width: 62%;
  height: 62%;
  border-radius: 50%;
  box-shadow: 0 14px 34px -12px rgb(15 29 64 / 0.4);
  animation: loader-seal 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.loader-motto {
  margin: 30px 0 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.35rem);
  line-height: 1.15;
  clip-path: inset(-20% 100% -20% 0);
  animation: loader-write 1s cubic-bezier(0.65, 0, 0.35, 1) 0.4s forwards;
}

.loader-motto em {
  color: var(--accent);
}

.loader-name {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0;
  animation: loader-fade 0.6s ease 0.9s forwards;
}

.loader-bar {
  width: 168px;
  height: 3px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--line);
}

.loader-bar span {
  display: block;
  height: 100%;
  background: var(--brand-stripe);
  clip-path: inset(0 calc(100% - var(--p, 0) * 100%) 0 0);
  transition: clip-path 0.45s ease;
}

/* Later pages in the same visit: short branded transition. */
.loader-quick .loader-arcs circle,
.loader-quick .loader-heads circle,
.loader-quick .loader-seal {
  animation: none;
}
.loader-quick .loader-arcs circle {
  stroke-dasharray: 36 324;
}
.loader-quick .loader-people {
  animation-duration: 3s;
}
.loader-quick .loader-motto,
.loader-quick .loader-name,
.loader-quick .loader-bar {
  display: none;
}

.loader.is-leaving {
  pointer-events: none;
  -webkit-mask-image: radial-gradient(
    circle at 50% 45%,
    transparent var(--hole),
    #000 calc(var(--hole) + 12%)
  );
  mask-image: radial-gradient(
    circle at 50% 45%,
    transparent var(--hole),
    #000 calc(var(--hole) + 12%)
  );
  animation: loader-iris 1s cubic-bezier(0.7, 0, 0.2, 1) forwards;
}

.loader.is-leaving .loader-stage {
  animation: loader-out 0.55s cubic-bezier(0.5, 0, 0.75, 0) forwards;
}
.loader-quick .loader.is-leaving {
  animation-duration: 0.7s;
}
.loader-quick .loader.is-leaving .loader-stage {
  animation-duration: 0.4s;
}

.is-loading .hero-content > *,
.is-loading .hero-media,
.is-loading .hero-note,
.is-loading .page-hero-grid > div > *,
.is-loading .page-hero-media,
.is-loading .page-hero-copy > * {
  animation-play-state: paused;
}

@keyframes loader-failsafe {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes loader-fade {
  to {
    opacity: 1;
  }
}
@keyframes loader-write {
  to {
    clip-path: inset(-20% 0 -20% 0);
  }
}
@keyframes loader-pop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

@keyframes loader-draw {
  0% {
    stroke-dasharray: 0 360;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    stroke-dasharray: 36 324;
    opacity: 1;
  }
}

@keyframes loader-seal {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-14deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes loader-breathe {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes loader-out {
  to {
    opacity: 0;
    transform: scale(1.14);
    filter: blur(6px);
  }
}

@keyframes loader-iris {
  0% {
    --hole: 0%;
  }
  80% {
    opacity: 1;
  }
  100% {
    --hole: 150%;
    opacity: 0;
    visibility: hidden;
  }
}

/* ---------- Ajustes para móviles ---------- */

.rail-dots {
  display: none;
}

@media (max-width: 699.98px) {
  .rail {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 6px var(--gutter) 22px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .rail::-webkit-scrollbar {
    display: none;
  }
  .rail > * {
    scroll-snap-align: start;
  }
  .rail .offer:hover {
    transform: none;
  }

  .rail-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
  }

  .rail-dots span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #cfd8e6;
    transition:
      width 0.3s,
      background-color 0.3s;
  }

  .rail-dots span.is-active {
    width: 22px;
    background: var(--accent);
  }

  .grid-3,
  .grid-4 {
    gap: 14px;
  }

  .grid-3 > .card,
  .grid-4 > .card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 16px;
    align-content: start;
    padding: 20px;
  }

  .grid-3 > .card > *,
  .grid-4 > .card > * {
    grid-column: 2;
  }

  .grid-3 > .card > .card-icon,
  .grid-4 > .card > .card-icon {
    grid-column: 1;
    grid-row: 1 / span 4;
    width: 48px;
    height: 48px;
    margin: 0;
    border-radius: 14px;
  }

  .card .card-icon .icon {
    width: 24px;
    height: 24px;
  }
  .card h3 {
    margin-bottom: 6px;
    font-size: 1.1rem;
  }
  .card .tag {
    justify-self: start;
  }
  .card .tag + h3 {
    margin-top: 10px;
  }
  .card-link {
    margin-top: 12px;
  }
}

@media (max-width: 639.98px) {
  :root {
    --header-h: 64px;
    --section: 64px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .hero {
    padding-top: 28px;
  }
  .page-hero {
    padding-top: 24px;
  }
  .page-hero-media {
    aspect-ratio: 3 / 2;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 28px;
  }
  .actions .btn {
    width: 100%;
  }

  .chips {
    gap: 8px;
  }
  .chips li {
    padding: 8px 14px;
    font-size: 0.88rem;
  }

  .eyebrow {
    gap: 10px;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
  }
  .eyebrow::before {
    width: 22px;
  }

  .contact-list a {
    font-size: 0.98rem;
  }

  .section-head {
    margin-bottom: 32px;
  }
  .section-head > p:not(.eyebrow) {
    font-size: 1.05rem;
  }

  .stat {
    gap: 16px;
    padding: 20px 22px;
  }

  .video-play-icon {
    width: 68px;
    height: 68px;
  }
  .video-play-icon .icon {
    width: 26px;
    height: 26px;
  }
  .video-play-label {
    left: 12px;
    bottom: 12px;
    font-size: 0.8rem;
  }

  .mosaic {
    gap: 10px;
    grid-auto-rows: 150px;
  }
  .mosaic .gallery-item {
    border-radius: 16px;
  }

  .gallery {
    columns: 2;
    column-gap: 10px;
  }
  .gallery a {
    margin-bottom: 10px;
  }
  .gallery .gallery-item {
    border-radius: 14px;
  }
  .zoom-hint {
    display: none;
  }

  .comedores {
    gap: 10px;
  }
  .comedor {
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
  }
  .comedor-num {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 1.15rem;
  }

  .quote-meta {
    padding: 14px 18px;
    border-radius: 18px;
  }

  .letter-body p {
    font-size: 1.05rem;
    line-height: 1.8;
  }
  .letter-aside {
    padding: 28px 22px;
  }

  .mv-card {
    padding: 28px 24px;
  }

  .cta-band {
    padding: 34px 22px;
    text-align: center;
  }
  .cta-band .eyebrow {
    justify-content: center;
  }
  .cta-actions {
    justify-items: stretch;
  }
  .cta-actions .btn {
    width: 100%;
  }
  .cta-yappy {
    justify-content: center;
  }
  .cta-band::after {
    right: -60px;
    bottom: -70px;
    width: 200px;
    height: 200px;
  }

  .donate-card {
    padding: 24px 20px;
  }
  .copy-field {
    padding: 18px;
  }
  .details > div {
    padding: 14px 16px;
  }

  .lightbox {
    padding: 64px 12px 100px;
  }
  .lightbox img {
    max-height: calc(100vh - 180px);
    max-height: calc(100dvh - 180px);
  }
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 24px;
    margin-top: 0;
  }
  .lightbox-prev {
    left: 20px;
  }
  .lightbox-next {
    right: 20px;
  }
  .lightbox-count {
    bottom: 38px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 20px;
  }
  .footer-brand,
  .footer-grid > :nth-child(3) {
    grid-column: 1 / -1;
  }
  .footer-grid > :nth-child(3) {
    order: 4;
  }
  .footer-donate {
    order: 3;
  }
  .footer-donate .btn {
    padding: 0 14px;
  }
  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 359.98px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-3 > .card,
  .grid-4 > .card {
    display: block;
  }

  .grid-3 > .card > .card-icon,
  .grid-4 > .card > .card-icon {
    margin-bottom: 14px;
  }
}

/* ---------- Animación de aparición ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}

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

@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;
  }

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