/* =============================================================================
   styles.css — Teletón Paraguay USA · Premium cinematic public site
   Paleta:
     - base       #050717 (midnight)
     - ruby red   #E63946 (acento rojo Paraguay)
     - sky blue   #1D4ED8 (acento azul Paraguay)
     - glass      rgba(0, 0, 0, 0.04) + backdrop-blur 18px
   Tipografía:
     - Instrument Serif (display, italic) — distintivo, awwwards-grade
     - Manrope (body)
   ============================================================================= */

:root {
  --base:      #FFFFFF;
  --base2:     #F9FAFB;
  --ink:       #54595F;
  --muted:     #7A7A7A;
  --line:      rgba(0, 0, 0, 0.08);
  --ruby:      #00ADEF;
  --ruby-deep: #0088BC;
  --sky:       #F7931D;
  --sky-light: #F9B259;
  --glass:     rgba(0, 0, 0, 0.03);
  --glass-strong: rgba(0, 0, 0, 0.06);
}

* { -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body { background: var(--base); color: var(--ink); }

::selection { background: rgba(0, 173, 239, 0.35); color: #fff; }

/* =============================================================================
   AMBIENT BACKGROUND (fixed, behind everything)
   ============================================================================= */
.ambient-bg {
  display: none;
}
.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(140px);
  opacity: 0.55;
  will-change: transform;
}
.orb-red {
  width: 680px; height: 680px;
  top: -180px; left: -200px;
  background: radial-gradient(circle, rgba(0, 173, 239, 0.85) 0%, rgba(0, 173, 239, 0) 70%);
  animation: orb-float-red 22s ease-in-out infinite;
}
.orb-blue {
  width: 760px; height: 760px;
  bottom: -260px; right: -240px;
  background: radial-gradient(circle, rgba(247, 147, 29, 0.7) 0%, rgba(29, 78, 216, 0) 70%);
  animation: orb-float-blue 26s ease-in-out infinite;
}
@keyframes orb-float-red {
  0%,100% { transform: translate(0, 0) scale(1); }
  50%     { transform: translate(60px, 80px) scale(1.08); }
}
@keyframes orb-float-blue {
  0%,100% { transform: translate(0, 0) scale(1); }
  50%     { transform: translate(-80px, -60px) scale(1.05); }
}
.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.06; mix-blend-mode: overlay;
}

body > *:not(.ambient-bg) { position: relative; z-index: 1; }

/* =============================================================================
   NAVBAR — sticky, auto-hide on scroll, glassmorphism, compact
   ============================================================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s ease,
    backdrop-filter 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}
/* Estado inicial transparente sobre el hero */
#navbar .navbar-inner {
  height: 5rem; /* 80px */
  transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Al hacer scroll: glassmorphism + compactar */
#navbar.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
#navbar.scrolled .navbar-inner { height: 4rem; /* 64px */ }
#navbar.scrolled .brand-tag { opacity: 0.65; }

/* Auto-hide al scrollear hacia abajo */
#navbar.hidden-up { transform: translateY(-105%); }

/* Barra de progreso de scroll */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.04);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#navbar.scrolled .scroll-progress { opacity: 1; }
.scroll-progress > span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--ruby) 0%, var(--sky-light) 100%);
  box-shadow: 0 0 12px rgba(224, 49, 49, 0.6);
  transition: width 0.1s linear;
}

/* Indicador de sección activa en nav desktop */
.nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after { width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand-dots {
  display: inline-flex; gap: 4px; align-items: center;
  padding: 4px 6px; border-radius: 9999px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line);
}
.brand-dots .d { width: 7px; height: 7px; border-radius: 9999px;  }
.brand-dots .d-r { color: var(--ruby);     background: var(--ruby); }
.brand-dots .d-b { color: var(--sky-light); background: var(--sky-light); }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-tag {
  margin-top: 3px;
  font-size: 0.58rem; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
}

.nav-link {
  position: relative;
  color: rgba(17, 24, 39, 0.7);
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -8px;
  height: 1px; width: 0;
  background: linear-gradient(90deg, var(--ruby), var(--sky-light));
  transition: width 0.4s ease;
}
.nav-link:hover::after { width: 100%; }

.lang-button {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.lang-button:hover { border-color: var(--ruby); background: rgba(0, 173, 239, 0.08); }

.lang-menu {
  position: absolute; right: 0; top: 100%; margin-top: 0.6rem;
  width: 11rem;
  z-index: 60;
  background: rgba(243, 244, 246, 0.95);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
}
.lang-menu li button {
  width: 100%; text-align: left;
  padding: 0.7rem 1rem;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink); font-size: 0.85rem;
  transition: background 0.2s ease;
}
.lang-menu li button:hover { background: rgba(0, 0, 0, 0.05); }
.lang-menu li button.active { color: var(--ruby); font-weight: 600; }
.lang-menu li button.active::after { content: "✓"; }

/* =============================================================================
   HAMBURGUESA + MENÚ MÓVIL
   ============================================================================= */
.nav-burger {
  position: relative;
  width: 42px; height: 42px;
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav-burger:hover { background: rgba(0, 173, 239, 0.08); border-color: var(--ruby); }
.nav-burger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.7,0.2,0.2,1), opacity 0.25s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-backdrop {
  position: fixed; inset: 0;
  background: rgba(2, 4, 14, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 40;
}
.mobile-backdrop.is-open { opacity: 1; pointer-events: auto; }

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(86vw, 360px);
  background: linear-gradient(180deg, rgba(243, 244, 246, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-left: 1px solid var(--line);
  box-shadow: -25px 0 60px -20px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 45;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-inner {
  display: flex; flex-direction: column;
  padding: 6rem 1.75rem 2rem;
  gap: 0.35rem;
}
.mobile-link {
  position: relative;
  display: block;
  padding: 1rem 0;
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.75rem;
  font-weight: 400;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transform: translateX(20px);
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s ease,
    color 0.25s ease;
}
.mobile-menu.is-open .mobile-link {
  transform: translateX(0); opacity: 1;
}
/* Stagger reveal */
.mobile-menu.is-open .mobile-link:nth-child(1) { transition-delay: 0.10s; }
.mobile-menu.is-open .mobile-link:nth-child(2) { transition-delay: 0.18s; }
.mobile-menu.is-open .mobile-link:nth-child(3) { transition-delay: 0.26s; }
.mobile-menu.is-open .mobile-link:nth-child(4) { transition-delay: 0.34s; }
.mobile-menu.is-open .btn-cta { transition-delay: 0.45s; }
.mobile-link::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 0; height: 1px;
  background: var(--ruby);
  transform: translateY(-50%);
  transition: width 0.35s ease;
}
.mobile-link:hover { color: var(--ruby); padding-left: 0.85rem; }
.mobile-link:hover::before { width: 0.5rem; }
.mobile-link.is-active { color: var(--ruby); }

/* Bloquear scroll del body cuando el menú móvil está abierto */
body.menu-open { overflow: hidden; }

@media (min-width: 768px) {
  .mobile-menu, .mobile-backdrop { display: none; }
}

/* =============================================================================
   HERO
   ============================================================================= */
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 80%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 30%);
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.65rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 0.45rem 0.95rem;
  font-weight: 600;
}
.dot-pulse {
  width: 7px; height: 7px; border-radius: 9999px;
  background: var(--ruby);
  box-shadow: 0 0 16px var(--ruby);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 12ch;
}
.hero-title .hero-word {
  display: inline-block;
  background: linear-gradient(135deg, var(--ruby) 0%, var(--ruby-deep) 55%, var(--sky-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 2rem;
  max-width: 38rem;
  font-size: clamp(0.98rem, 1.3vw, 1.18rem);
  line-height: 1.65;
  color: var(--ink);
  font-weight: 400;
}

/* Hero stats (flotantes) */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 5rem;
  max-width: 38rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.hero-stat .num {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-stat .num span {
  background: linear-gradient(135deg, var(--ruby) 0%, var(--ruby-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-left: 2px;
}
.hero-stat .lab {
  margin-top: 0.4rem;
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute; bottom: 1.6rem; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.hero-scroll .line {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, transparent, var(--ink) 80%, transparent);
  animation: scroll-line 2.5s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scroll-line {
  0%,100% { transform: scaleY(0.3); opacity: 0.3; }
  50%     { transform: scaleY(1);   opacity: 0.9; }
}

/* =============================================================================
   BUTTONS
   ============================================================================= */
.btn-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--ruby) 0%, var(--ruby-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 30px -10px rgba(0, 173, 239, 0.6);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(0, 173, 239, 0.8); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 1rem 1.7rem;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600;
  border-radius: 9999px;
  color: #fff;
  background: linear-gradient(135deg, var(--ruby) 0%, var(--ruby-deep) 100%);
  position: relative; overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
  box-shadow: 0 18px 50px -15px rgba(0, 173, 239, 0.65);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-light) 100%);
  opacity: 0; transition: opacity 0.35s ease;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary > * { position: relative; z-index: 1; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 1rem 1.5rem;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 500;
  border-radius: 9999px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.btn-ghost:hover { border-color: var(--sky-light); background: rgba(247, 147, 29, 0.08); }

/* =============================================================================
   SECTIONS
   ============================================================================= */
.section-block { padding: 9rem 0; position: relative; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.65rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--ruby); font-weight: 700;
}
.section-title {
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  font-weight: 400; line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
}

/* Glass card primitive */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.mission-flag {
  display: inline-flex; gap: 2px; border-radius: 4px; overflow: hidden;
  box-shadow: 0 0 30px -5px rgba(0, 173, 239, 0.5);
}
.mission-flag .band { width: 28px; height: 5px; }
.mission-flag .red   { background: var(--ruby); }
.mission-flag .white { background: #f8fafc; }
.mission-flag .blue  { background: var(--sky); }

.mission-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  padding-top: 2rem; border-top: 1px solid var(--line);
}
.ms-num {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400; letter-spacing: -0.02em;
  color: var(--ink);
}
.ms-num span {
  background: linear-gradient(135deg, var(--ruby) 0%, var(--sky-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ms-lab {
  margin-top: 0.4rem;
  font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}

/* Timeline Tabs Filter */
.timeline-tabs-container {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 3rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}
.tl-tab-btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--line);
  color: rgba(17, 24, 39, 0.7);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}
.tl-tab-btn:hover {
  border-color: var(--ruby);
  color: var(--ink);
  background: rgba(0, 173, 239, 0.05);
  transform: translateY(-1px);
}
.tl-tab-btn.active {
  background: linear-gradient(135deg, var(--ruby) 0%, var(--ruby-deep) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(0, 173, 239, 0.6);
}

.timeline-section { position: relative; }
.tl-axis-line {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(0, 173, 239, 0.5) 15%,
    rgba(247, 147, 29, 0.5) 50%,
    rgba(0, 173, 239, 0.3) 85%,
    transparent 100%
  );
  box-shadow: 0 0 24px rgba(0, 173, 239, 0.4);
}
.tl-axis-line::before {
  content: ""; position: absolute; inset: -2px; left: -2px; right: -2px;
  background: inherit;
  filter: blur(8px);
  opacity: 0.7;
}
@media (max-width: 1023px) {
  .tl-axis-line { left: 16px; transform: none; }
}

.tl-list { display: flex; flex-direction: column; gap: 6rem; padding: 1rem 0; }
.tl-skeleton .bar {
  height: 240px; max-width: 480px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.05) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: tl-shimmer 1.5s linear infinite;
  border-radius: 22px;
}
@keyframes tl-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.tl-item {
  position: relative;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tl-item.visible { opacity: 1; transform: none; }

@media (min-width: 1024px) {
  .tl-item { display: grid; grid-template-columns: 1fr 88px 1fr; align-items: center; gap: 0; }
  .tl-item.right .tl-card { grid-column: 3; }
  .tl-item.left  .tl-card { grid-column: 1; }
  .tl-item.left  .tl-card .tl-card-body { text-align: right; }
  .tl-item.left  .tl-meta { justify-content: flex-end; }
  .tl-item.left  .tl-location { justify-content: flex-end; }
  .tl-item .tl-axis-dot-wrap { grid-column: 2; display: flex; justify-content: center; }
}
@media (max-width: 1023px) {
  .tl-item { padding-left: 3rem; }
  .tl-axis-dot-wrap { position: absolute; left: 0; top: 24px; }
}

.tl-axis-dot {
  position: relative;
  width: 16px; height: 16px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--ruby) 0%, var(--sky-light) 100%);
  box-shadow: 0 0 0 6px rgba(0, 173, 239, 0.12), 0 0 24px rgba(0, 173, 239, 0.6);
}
.tl-axis-dot::after {
  content: ""; position: absolute; inset: -10px;
  border: 1px solid rgba(0, 173, 239, 0.25);
  border-radius: 9999px;
  animation: tl-ring 3s ease-out infinite;
}
@keyframes tl-ring {
  0%   { opacity: 0.7; transform: scale(0.8); }
  100% { opacity: 0;   transform: scale(1.7); }
}

.tl-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease, box-shadow 0.5s ease;
  position: relative;
}
.tl-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0, 173, 239, 0) 0%, rgba(247, 147, 29, 0) 100%);
  pointer-events: none; opacity: 0;
  transition: opacity 0.5s ease;
}
.tl-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 173, 239, 0.3);
  box-shadow: 0 32px 70px -25px rgba(0, 173, 239, 0.35), 0 0 0 1px rgba(0, 173, 239, 0.15);
}
.tl-card:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(0, 173, 239, 0.08) 0%, rgba(247, 147, 29, 0.05) 100%);
}

.tl-img-wrap { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.tl-img-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.4) 100%);
  pointer-events: none;
}
.tl-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tl-card:hover .tl-img { transform: scale(1.06); }

.tl-card-body { padding: 1.6rem 1.7rem 1.8rem; }
.tl-meta {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  font-weight: 700;
  background: linear-gradient(135deg, var(--ruby) 0%, var(--sky-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tl-meta-dot {
  width: 5px; height: 5px; border-radius: 9999px;
  background: linear-gradient(135deg, var(--ruby), var(--sky-light));
  box-shadow: 0 0 10px var(--ruby);
}
.tl-title {
  margin-top: 0.85rem;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.tl-desc {
  margin-top: 0.85rem;
  color: rgba(0, 0, 0, 0.65);
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 300;
}
.tl-location {
  margin-top: 1.2rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.tl-location svg { color: var(--ruby); }

/* =============================================================================
   SPONSORS
   ============================================================================= */
.sponsors-section { background: linear-gradient(180deg, transparent 0%, rgba(243, 244, 246, 0.6) 100%); }

.tier {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2.3rem 2rem 2.5rem;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease, box-shadow 0.5s ease;
  overflow: hidden;
}
.tier::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 173, 239, 0.1) 0%, transparent 60%);
  pointer-events: none; opacity: 0; transition: opacity 0.5s ease;
}
.tier:hover { transform: translateY(-6px); border-color: rgba(0, 0, 0, 0.18); }
.tier:hover::before { opacity: 1; }

.tier.featured {
  background: linear-gradient(180deg, rgba(0, 173, 239, 0.08) 0%, rgba(247, 147, 29, 0.06) 100%);
  border-color: rgba(0, 173, 239, 0.4);
  transform: translateY(-12px);
  box-shadow: 0 30px 70px -20px rgba(0, 173, 239, 0.35),
              0 0 0 1px rgba(0, 173, 239, 0.2),
              0 0 60px -10px rgba(247, 147, 29, 0.25);
}
.tier.featured::after {
  content: attr(data-badge);
  position: absolute; top: 1.2rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem; letter-spacing: 0.35em; text-transform: uppercase;
  font-weight: 800;
  background: linear-gradient(135deg, var(--ruby) 0%, var(--sky-light) 100%);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  box-shadow: 0 8px 24px -6px rgba(0, 173, 239, 0.6);
}

.tier-logo {
  width: 64px; height: 64px;
  margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--line);
  padding: 8px;
  overflow: hidden;
}
.tier-logo img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 173, 239, 0.2));
}
.tier.featured .tier-logo {
  border-color: rgba(0, 173, 239, 0.4);
  background: linear-gradient(135deg, rgba(0, 173, 239, 0.08), rgba(247, 147, 29, 0.05));
}

.tier-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--line);
}
.tier-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tier-name {
  margin-top: 1.5rem;
  font-size: 0.65rem; letter-spacing: 0.35em; text-transform: uppercase;
  font-weight: 700;
  color: var(--ruby);
}
.tier.featured .tier-name {
  background: linear-gradient(135deg, var(--ruby) 0%, var(--sky-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.tier-price {
  margin-top: 1.2rem;
  font-family: "Instrument Serif", serif;
  font-style: italic; font-weight: 400;
  font-size: clamp(2.8rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.tier-price small {
  font-family: "Manrope", sans-serif;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  font-weight: 600; margin-left: 0.5rem;
}

.tier-benefits {
  margin-top: 1.8rem;
  display: flex; flex-direction: column; gap: 0.85rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.tier-benefits li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.92rem; color: rgba(0, 0, 0, 0.78);
  font-weight: 300; line-height: 1.5;
}
.tier-benefits li svg { color: var(--ruby); flex-shrink: 0; margin-top: 4px; }
.tier.featured .tier-benefits li svg {
  color: var(--sky-light);
}

.tier-cta {
  margin-top: 2rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.tier-cta:hover {
  color: var(--ruby);
  border-bottom-color: var(--ruby);
}
.tier.featured .tier-cta {
  background: linear-gradient(135deg, var(--ruby) 0%, var(--sky-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  border-bottom-color: var(--ruby);
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.footer {
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(243, 244, 246, 0.95) 100%);
  border-top: 1px solid var(--line);
}
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--ruby) 0%, #fff 50%, var(--sky) 100%);
}
.footer-h {
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink); font-weight: 700;
}
.footer-link {
  color: rgba(0, 0, 0, 0.65);
  transition: color 0.3s ease;
}
.footer-link:hover { color: var(--ruby); }

.social-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.social-btn:hover {
  border-color: var(--ruby);
  background: rgba(0, 173, 239, 0.1);
  transform: translateY(-2px);
}

.footer-bar { border-top: 1px solid var(--line); }

/* =============================================================================
   SCROLL REVEAL (Intersection Observer + transition)
   ============================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 640px) {
  .section-block { padding: 6rem 0; }
  .hero-stats { grid-template-columns: 1fr; gap: 1.25rem; }
  .mission-stats { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* =============================================================================
   HISTORIAS DE VIDA — Story Cards
   ============================================================================= */
.story-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.4s ease,
    box-shadow 0.5s ease;
  opacity: 0;
  transform: translateY(36px);
}
.story-card.visible { opacity: 1; transform: none; }
.story-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 173, 239, 0.3);
  box-shadow: 0 28px 60px -20px rgba(0, 173, 239, 0.3);
}

.story-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.story-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.story-card:hover .story-img-wrap img { transform: scale(1.06); }
.story-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(255, 255, 255, 0.85) 100%);
  pointer-events: none;
}

.story-body { padding: 1.5rem 1.7rem 1.8rem; }

.story-quote {
  position: relative;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.45;
  color: var(--ink);
  padding-left: 1rem;
  border-left: 2px solid var(--ruby);
  margin-bottom: 1.2rem;
}

.story-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}
.story-role {
  margin-top: 0.25rem;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.story-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(0, 173, 239, 0.1) 0%, rgba(247, 147, 29, 0.08) 100%);
}
.story-placeholder-icon {
  color: rgba(248, 250, 252, 0.15);
}
