/* CDISES — hoja de estilo complementaria a Tailwind (mismo sistema que teatroescuela.cl) */

:root {
  --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-spring: cubic-bezier(0.34, 1.35, 0.64, 1);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Feedback táctil estilo iOS/macOS: todo elemento interactivo "cede" levemente al presionar */
a, button { -webkit-tap-highlight-color: transparent; }
.btn-primary, .btn-secondary, .programa-card, .eje-card, .footer-social,
.mobile-nav-link, .header-cta, .tier-card, .timeline-node, .whatsapp-fab {
  transition: transform .18s var(--ease-apple), box-shadow .18s var(--ease-apple), background .18s var(--ease-apple), color .18s var(--ease-apple), border-color .18s var(--ease-apple), opacity .18s var(--ease-apple);
}
.btn-primary:active, .btn-secondary:active, .header-cta:active, .whatsapp-fab:active {
  transform: scale(0.96);
}
.programa-card:active, .eje-card:active, .tier-card:active {
  transform: scale(0.985);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 247, 247, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(26,26,26,0.06);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #5A5550;
  transition: color .15s ease;
  white-space: nowrap;
}
.nav-link:hover { color: #1A1A1A; }
.nav-link.active { color: #d5375d; }

/* Header responsivo con CSS propio (no depende de que cargue el CDN de Tailwind) */
.desktop-nav { display: none; }
.mobile-toggle { display: inline-flex; }
.mobile-menu { display: none; border-top: 1px solid rgba(26,26,26,0.06); background: #F7F7F7; }
.mobile-menu.open { display: block; }
.header-cta { display: none; }

@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
  .mobile-toggle { display: none; }
  .mobile-menu { display: none !important; }
}
@media (min-width: 640px) {
  .header-cta { display: inline-flex; }
}
.mobile-nav-link {
  padding: 0.65rem 0.25rem;
  font-weight: 600;
  color: #5A5550;
  border-bottom: 1px solid rgba(26,26,26,0.06);
}
.mobile-nav-link.active { color: #d5375d; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #d5375d;
  color: #F7F7F7;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.btn-primary:hover { background: #b82a4d; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(0.96); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #1A1A1A;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.35rem;
  border-radius: 999px;
  border: 2px solid #1A1A1A;
  transition: all .15s ease;
}
.btn-secondary:hover { background: #1A1A1A; color: #F7F7F7; }

.eje-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(39, 176, 210, 0.12);
  color: #1a7a94;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}
.eje-pill.terracota { background: rgba(213,55,93,0.12); color: #a82348; }
.eje-pill.naranja   { background: rgba(251,132,10,0.18); color: #b35c00; }
.eje-pill.verde     { background: rgba(109,187,59,0.15); color: #4d8a1f; }

.programa-card {
  background: #fff;
  border: 1px solid rgba(26,26,26,0.07);
  border-radius: 1.4rem;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(26,26,26,0.03);
}
.programa-card:hover { box-shadow: 0 16px 32px rgba(26,26,26,0.07); transform: translateY(-2px); }

.eje-card {
  position: relative;
  border-radius: 1.6rem;
  padding: 2.25rem;
  color: #F7F7F7;
  overflow: hidden;
}
.eje-card:hover { transform: translateY(-3px); }
.eje-card.bienestar { background: linear-gradient(135deg, #27b0d2, #1a7a94); }
.eje-card.arte { background: linear-gradient(135deg, #d5375d, #a82348); }
.eje-card.espacio { background: linear-gradient(135deg, #5A5550, #1A1A1A); }

.timeline-item { position: relative; padding-left: 2.25rem; padding-bottom: 2.25rem; border-left: 2px solid rgba(213,55,93,0.25); }
.timeline-item:last-child { border-left: 2px solid transparent; padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 0.15rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #d5375d;
  border: 2px solid #F7F7F7;
}

.footer-social {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(247,247,247,0.08);
  color: #F7F7F7;
  transition: background .15s ease;
}
.footer-social:hover { background: rgba(247,247,247,0.18); }

.whatsapp-fab {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 60;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(37,211,102,0.35);
  transition: transform .15s ease;
}
.whatsapp-fab:hover { transform: scale(1.06); }

.stat-num { font-size: 2.25rem; font-weight: 800; color: #d5375d; line-height: 1; }
.stat-label { font-size: 0.82rem; color: #5A5550; margin-top: 0.35rem; }

/* Chips de filtro — línea de tiempo navegable */
.tl-chip {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(26,26,26,0.12);
  color: #5A5550;
  background: #fff;
  transition: transform .18s var(--ease-apple), background .18s var(--ease-apple), color .18s var(--ease-apple), border-color .18s var(--ease-apple);
}
.tl-chip:hover { border-color: #d5375d; color: #1A1A1A; }
.tl-chip:active { transform: scale(0.95); }
.tl-chip.is-active { background: #1A1A1A; color: #F7F7F7; border-color: #1A1A1A; }
.tl-chip .tl-count { opacity: 0.6; font-weight: 600; }
