:root {
  color-scheme: light dark;
}

.reto-page {
  --reto-accent: #38bdf8;
  --reto-accent-strong: #0ea5e9;
  --reto-accent-soft: rgba(14, 165, 233, 0.14);
  --reto-surface: rgba(255, 255, 255, 0.9);
  --reto-surface-strong: rgba(248, 250, 252, 0.85);
  --reto-surface-alt: rgba(15, 23, 42, 0.7);
  --reto-surface-glass: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(148, 197, 255, 0.35));
  --reto-text: #0f172a;
  --reto-muted: rgba(15, 23, 42, 0.68);
  --reto-border: rgba(148, 163, 184, 0.28);
  --reto-hero-image: url("https://images.unsplash.com/photo-1501612780327-45045538702b?auto=format&fit=crop&w=1800&q=80");
  --reto-gradient: radial-gradient(circle at top left, rgba(56, 189, 248, 0.3), transparent 55%),
    radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.26), transparent 60%),
    linear-gradient(180deg, rgba(241, 245, 249, 0.82), rgba(14, 165, 233, 0.15));
  --reto-nav-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  --reto-shadow-soft: 0 25px 45px -30px rgba(15, 23, 42, 0.45);
  --reto-shadow-strong: 0 30px 65px -25px rgba(15, 23, 42, 0.55);
  --reto-radius-md: 1.25rem;
  --reto-radius-lg: 2.25rem;
  --reto-radius-pill: 999px;
  --reto-max-width: min(1100px, 92vw);
  --reto-hero-height: clamp(520px, 78vh, 720px);
  --reto-ornament: rgba(255, 255, 255, 0.55);

  margin: 0;
  min-height: 100%;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  color: var(--reto-text);
  background: var(--reto-gradient);
  position: relative;
  overflow-x: hidden;
}

.reto-page[data-theme="dark"],
html[data-theme="dark"] .reto-page {
  --reto-text: #e2e8f0;
  --reto-muted: rgba(226, 232, 240, 0.78);
  --reto-surface: rgba(15, 23, 42, 0.82);
  --reto-surface-strong: rgba(15, 23, 42, 0.94);
  --reto-surface-alt: rgba(2, 6, 23, 0.92);
  --reto-border: rgba(148, 163, 184, 0.35);
  --reto-gradient: radial-gradient(circle at top left, rgba(14, 116, 144, 0.55), transparent 60%),
    radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.38), transparent 65%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(30, 64, 175, 0.65));
  --reto-nav-shadow: 0 18px 40px rgba(15, 23, 42, 0.5);
  --reto-shadow-soft: 0 25px 45px -30px rgba(15, 23, 42, 0.66);
  --reto-shadow-strong: 0 40px 80px -20px rgba(15, 23, 42, 0.8);
  --reto-ornament: rgba(56, 189, 248, 0.25);
}

.reto-page[data-reto="agua"] {
  --reto-accent: #22d3ee;
  --reto-accent-strong: #0284c7;
  --reto-accent-soft: rgba(14, 165, 233, 0.18);
  --reto-hero-image: url("https://images.unsplash.com/photo-1528825871115-3581a5387919?auto=format&fit=crop&w=2000&q=80");
  --reto-gradient: radial-gradient(circle at 10% 10%, rgba(45, 212, 191, 0.22), transparent 52%),
    radial-gradient(circle at 80% 12%, rgba(59, 130, 246, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(236, 254, 255, 0.95), rgba(14, 165, 233, 0.18));
}

.reto-page[data-reto="aire"] {
  --reto-accent: #f97316;
  --reto-accent-strong: #ea580c;
  --reto-accent-soft: rgba(249, 115, 22, 0.16);
  --reto-hero-image: url("https://images.unsplash.com/photo-1489515217757-5fd1be406fef?auto=format&fit=crop&w=2000&q=80");
  --reto-gradient: radial-gradient(circle at 12% 10%, rgba(249, 168, 37, 0.22), transparent 48%),
    radial-gradient(circle at 85% 15%, rgba(249, 115, 22, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(255, 248, 237, 0.92), rgba(249, 115, 22, 0.12));
}

.reto-page[data-reto="biodiversidad"] {
  --reto-accent: #4ade80;
  --reto-accent-strong: #16a34a;
  --reto-accent-soft: rgba(74, 222, 128, 0.18);
  --reto-hero-image: url("https://images.unsplash.com/photo-1529312266912-b33cfce2de10?auto=format&fit=crop&w=2000&q=80");
  --reto-gradient: radial-gradient(circle at 20% 15%, rgba(52, 211, 153, 0.28), transparent 54%),
    radial-gradient(circle at 80% 20%, rgba(134, 239, 172, 0.22), transparent 58%),
    linear-gradient(180deg, rgba(240, 253, 244, 0.94), rgba(34, 197, 94, 0.12));
}

.reto-page[data-reto="clima"] {
  --reto-accent: #60a5fa;
  --reto-accent-strong: #2563eb;
  --reto-accent-soft: rgba(96, 165, 250, 0.16);
  --reto-hero-image: url("https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=2000&q=80");
  --reto-gradient: radial-gradient(circle at 15% 15%, rgba(96, 165, 250, 0.28), transparent 50%),
    radial-gradient(circle at 80% 18%, rgba(37, 99, 235, 0.24), transparent 60%),
    linear-gradient(180deg, rgba(240, 249, 255, 0.95), rgba(37, 99, 235, 0.12));
}

.reto-page::before {
  content: "";
  position: fixed;
  inset: -30vh -40vw auto -40vw;
  height: 120vh;
  background: radial-gradient(circle at center, var(--reto-accent-soft), transparent 65%);
  z-index: -2;
  filter: blur(0);
  opacity: 0.8;
}

.reto-page::after {
  content: "";
  position: fixed;
  inset: auto -45vw -25vh 40vw;
  height: 80vh;
  background: radial-gradient(circle at center, rgba(148, 197, 255, 0.24), transparent 70%);
  z-index: -3;
}

.reto-skip-link {
  position: absolute;
  top: -100vh;
  left: 1.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--reto-accent-strong);
  color: #fff;
  border-radius: var(--reto-radius-pill);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.3s ease;
  z-index: 1000;
  box-shadow: 0 15px 35px -20px rgba(15, 23, 42, 0.4);
}

.reto-skip-link:focus-visible {
  top: 1.5rem;
}

.reto-header {
  position: sticky;
  top: 0;
  z-index: 900;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--reto-surface) 80%, transparent);
  box-shadow: var(--reto-nav-shadow);
}

.reto-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: 1.25rem clamp(1.75rem, 5vw, 4.25rem);
}

.reto-header__brand {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 600;
}

.reto-header__brand svg {
  width: 28px;
  height: 28px;
  color: var(--reto-accent-strong);
}

.reto-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  font-size: 0.95rem;
  color: var(--reto-muted);
}

.reto-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: color-mix(in srgb, var(--reto-accent-soft) 70%, transparent);
  border-radius: var(--reto-radius-pill);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.reto-breadcrumb {
  margin: 0;
  padding: 0.75rem clamp(1.75rem, 5vw, 4.25rem);
  background: color-mix(in srgb, var(--reto-accent-soft) 65%, transparent);
  list-style: none;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.reto-breadcrumb li {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--reto-muted);
}

.reto-breadcrumb li::after {
  content: "/";
  color: color-mix(in srgb, var(--reto-muted) 50%, transparent);
}

.reto-breadcrumb li:last-child::after {
  content: "";
}

.reto-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.reto-breadcrumb a:focus-visible,
.reto-header__brand:focus-visible,
.reto-pill:focus-visible,
.reto-header__meta a:focus-visible {
  outline: 3px solid var(--reto-accent-strong);
  outline-offset: 4px;
  border-radius: var(--reto-radius-pill);
}

.reto-hero {
  position: relative;
  min-height: var(--reto-hero-height);
  display: grid;
  align-items: center;
  gap: clamp(2rem, 6vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  padding: clamp(3rem, 6vw, 5rem) clamp(1.75rem, 7vw, 6rem);
  overflow: hidden;
}

.reto-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--reto-hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  mix-blend-mode: multiply;
  z-index: 0;
}

.reto-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0));
  z-index: 0;
}

.reto-hero__content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  display: grid;
  gap: 1.1rem;
}

.reto-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--reto-muted) 60%, var(--reto-accent-strong) 40%);
}

.reto-hero__badge::before {
  content: "";
  width: 38px;
  height: 2px;
  background: var(--reto-accent-strong);
  border-radius: 999px;
}

.reto-hero__title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.7rem, 6vw, 3.9rem);
  line-height: 1.05;
}

.reto-hero__summary {
  font-size: 1.05rem;
  color: var(--reto-muted);
}

.reto-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.reto-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--reto-radius-pill);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--reto-accent-strong) 55%, transparent);
  background: color-mix(in srgb, var(--reto-accent-soft) 65%, rgba(255, 255, 255, 0.85));
  color: var(--reto-accent-strong);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.reto-button:hover,
.reto-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -20px rgba(14, 116, 144, 0.5);
}

.reto-button.is-primary {
  background: linear-gradient(140deg, var(--reto-accent-strong), color-mix(in srgb, var(--reto-accent) 70%, white));
  color: #fff;
  box-shadow: 0 20px 38px -22px rgba(15, 118, 110, 0.55);
}

.reto-hero__stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 1.5rem;
}

.reto-stat {
  position: relative;
  padding: 1.1rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--reto-surface) 85%, transparent);
  border: 1px solid var(--reto-border);
  box-shadow: 0 20px 40px -28px rgba(15, 23, 42, 0.38);
  overflow: hidden;
}

.reto-stat::after {
  content: "";
  position: absolute;
  inset: auto 12% -50% auto;
  width: 65%;
  height: 65%;
  background: radial-gradient(circle, color-mix(in srgb, var(--reto-accent) 50%, transparent), transparent 70%);
  transform: rotate(-25deg);
  opacity: 0.75;
}

.reto-stat strong {
  font-size: 1.9rem;
  font-family: "Playfair Display", "Times New Roman", serif;
  display: block;
  color: var(--reto-text);
}

.reto-stat span {
  display: block;
  font-size: 0.95rem;
  color: var(--reto-muted);
}

.reto-hero__media {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: grid;
  place-items: center;
}

.reto-hero__visual {
  position: relative;
  width: min(420px, 90%);
  aspect-ratio: 4 / 5;
  border-radius: var(--reto-radius-lg);
  overflow: hidden;
  box-shadow: var(--reto-shadow-strong);
  background: color-mix(in srgb, rgba(255, 255, 255, 0.96) 65%, transparent);
  animation: floatY 8s ease-in-out infinite;
}

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

.reto-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.35));
  mix-blend-mode: multiply;
}

.reto-hero__ornament {
  position: absolute;
  inset: 8% 12% auto auto;
  width: clamp(120px, 24vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), transparent 65%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  opacity: 0.7;
  backdrop-filter: blur(4px);
  animation: floatX 9s ease-in-out infinite;
}

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

@keyframes floatX {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-12px, -10px) scale(1.05);
  }
}

.reto-main {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.25rem);
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.75rem, 7vw, 6rem) clamp(4rem, 8vw, 6.5rem);
}

.reto-section {
  position: relative;
  padding: clamp(2.5rem, 4vw, 3.5rem);
  border-radius: var(--reto-radius-lg);
  background: color-mix(in srgb, var(--reto-surface) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--reto-border) 80%, transparent);
  box-shadow: var(--reto-shadow-soft);
  overflow: hidden;
}

.reto-section::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 60%;
  background: radial-gradient(circle at top, color-mix(in srgb, var(--reto-accent) 35%, transparent), transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.reto-section header {
  margin-bottom: 1.5rem;
}

.reto-section h2 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 2.35rem);
  margin-bottom: 0.75rem;
}

.reto-section p,
.reto-section li {
  color: var(--reto-muted);
  font-size: 1.02rem;
}

.reto-grid-two {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.reto-figure {
  margin: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--reto-border) 65%, transparent);
  box-shadow: var(--reto-shadow-soft);
}

.reto-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.reto-figure figcaption {
  padding: 1rem 1.25rem;
  background: color-mix(in srgb, rgba(255, 255, 255, 0.9) 70%, transparent);
  font-size: 0.95rem;
  color: var(--reto-muted);
}

.reto-highlight {
  display: grid;
  gap: 0.85rem;
  background: color-mix(in srgb, var(--reto-accent-soft) 75%, transparent);
  padding: 1.35rem;
  border-radius: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--reto-accent-strong) 40%, transparent);
}

.reto-highlight strong {
  font-size: 1.1rem;
  color: var(--reto-text);
}

.reto-list {
  margin: 0;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.75rem;
}

.reto-impact-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.reto-impact {
  border-radius: 1.5rem;
  background: color-mix(in srgb, var(--reto-surface-strong) 85%, transparent);
  border: 1px solid color-mix(in srgb, var(--reto-border) 80%, transparent);
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
  box-shadow: 0 28px 50px -36px rgba(15, 23, 42, 0.55);
}

.reto-page [data-hover-card] {
  --pointer-x: 50%;
  --pointer-y: 50%;
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease,
    background 220ms ease;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y),
      color-mix(in srgb, var(--reto-accent) 25%, transparent) 0%, transparent 60%),
    color-mix(in srgb, var(--reto-surface) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--reto-border) 80%, transparent);
}

.reto-page [data-hover-card]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(140deg, color-mix(in srgb, var(--reto-accent-soft) 70%, transparent), transparent);
  opacity: 0;
  transition: opacity 220ms ease;
}

.reto-page [data-hover-card][data-hover-active='true'],
.reto-page [data-hover-card]:is(:hover, :focus-visible, :focus-within) {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 40px -30px rgba(15, 23, 42, 0.5);
  border-color: color-mix(in srgb, var(--reto-accent-strong) 45%, transparent);
}

.reto-page [data-hover-card][data-hover-active='true']::after,
.reto-page [data-hover-card]:is(:hover, :focus-visible, :focus-within)::after {
  opacity: 1;
}

.reto-impact h3 {
  font-size: 1.3rem;
  font-family: "Playfair Display", "Times New Roman", serif;
}

.reto-gallery {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.reto-gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  box-shadow: var(--reto-shadow-soft);
  border: 1px solid color-mix(in srgb, var(--reto-border) 75%, transparent);
}

.reto-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.reto-gallery figure:hover img,
.reto-gallery figure:focus-within img {
  transform: scale(1.05);
}

.reto-gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.75));
  color: #fff;
  font-size: 0.95rem;
}

.reto-quote {
  position: relative;
  padding: clamp(2rem, 5vw, 3.25rem);
  border-radius: var(--reto-radius-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--reto-accent-soft) 70%, transparent), rgba(255, 255, 255, 0.8));
  box-shadow: var(--reto-shadow-soft);
  display: grid;
  gap: 1rem;
}

.reto-quote blockquote {
  margin: 0;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.4;
  color: var(--reto-text);
}

.reto-quote cite {
  font-style: normal;
  color: var(--reto-muted);
}

.timeline {
  position: relative;
  margin: 0;
  padding-left: clamp(1.5rem, 5vw, 2.75rem);
  display: grid;
  gap: 1.4rem;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: clamp(0.65rem, 2.5vw, 1.2rem);
  top: 0.2rem;
  bottom: 0.2rem;
  width: 3px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--reto-accent) 60%, transparent), transparent);
}

.timeline-item {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem clamp(1rem, 3vw, 2.25rem);
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--reto-surface-strong) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--reto-border) 75%, transparent);
  box-shadow: 0 15px 35px -25px rgba(15, 23, 42, 0.4);
}

.timeline-item::before {
  content: attr(data-year);
  position: absolute;
  left: calc(-1.4rem - clamp(0.35rem, 1vw, 0.65rem));
  top: 1.4rem;
  padding: 0.4rem 0.65rem;
  background: color-mix(in srgb, var(--reto-accent-soft) 85%, transparent);
  color: var(--reto-accent-strong);
  border-radius: var(--reto-radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
}

.flip-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  perspective: 1200px;
}

.flip-card {
  position: relative;
}

.flip-card button {
  position: relative;
  width: 100%;
  padding: 1.5rem;
  border-radius: 1.35rem;
  border: none;
  background: color-mix(in srgb, var(--reto-surface-alt) 75%, transparent);
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: grid;
  gap: 1rem;
  min-height: 200px;
  border: 1px solid color-mix(in srgb, var(--reto-border) 80%, transparent);
  box-shadow: var(--reto-shadow-soft);
}

.flip-card button .card-face {
  display: block;
  transition: transform 280ms ease, opacity 280ms ease;
}

.flip-card button[aria-pressed="true"] .front {
  transform: translateY(-6px);
  opacity: 0;
}

.flip-card button[aria-pressed="true"] .back {
  transform: translateY(0);
  opacity: 1;
}

.flip-card button .back {
  opacity: 0;
  transform: translateY(8px);
  color: var(--reto-muted);
}

.map-section {
  display: grid;
  gap: 1.25rem;
}

.map-section #map,
.map-section [id^="map-"] {
  width: 100%;
  min-height: clamp(280px, 45vw, 420px);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--reto-border) 80%, transparent);
  box-shadow: var(--reto-shadow-soft);
}

.reto-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

footer {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 6vw, 4rem);
  text-align: center;
  color: var(--reto-muted);
  font-size: 0.95rem;
}

footer p {
  margin-bottom: 0.35rem;
  color: var(--reto-text);
}

@media (max-width: 960px) {
  .reto-header__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .reto-header__meta {
    justify-content: flex-start;
  }

  .reto-hero {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .reto-hero__media {
    justify-content: flex-start;
  }

  .timeline::before {
    left: 0.45rem;
  }

  .timeline-item {
    padding-left: 1.5rem;
  }

  .timeline-item::before {
    left: -1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reto-hero__visual,
  .reto-hero__ornament {
    animation: none;
  }

  .reto-page [data-hover-card] {
    transition: none;
  }
}

@media (pointer: coarse) {
  .reto-page [data-hover-card] {
    background: color-mix(in srgb, var(--reto-surface) 92%, transparent);
  }
}
