/* ============================================
   CLINICA HIPHOP — Dark OLED Luxury x Urban
   Plugin: frontend-design-pro #10
   Fonts: Bebas Neue + DM Sans
   Accent: #FFD808
   ============================================ */

/* --- Tokens --- */
:root {
  --black: #000000;
  --bg: #030303;
  --surface: #0a0a0a;
  --elevated: #0f0f0f;
  --card: #111111;
  --gold: #FFD808;
  --gold-glow: rgba(255, 216, 8, 0.25);
  --gold-muted: rgba(255, 216, 8, 0.07);
  --white: #f5f5f5;
  --text-muted: rgba(255, 255, 255, 0.50);
  --text-subtle: rgba(255, 255, 255, 0.25);
  --border: rgba(255, 255, 255, 0.06);
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-w: 1200px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: var(--header-h);
  overflow-x: clip;
  width: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: clip;
  width: 100%;
  position: relative;
}
body.nav-open { overflow: hidden; }
a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--white); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.92;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.sec-header { margin-bottom: 56px; }
.sec-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  margin-bottom: 16px;
}
.sec-desc {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 0.95rem;
  max-width: 500px;
  line-height: 1.7;
}

/* --- HEADER --- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 99999;
  height: var(--header-h);
  background: #000;
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}
#site-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: #000;
  z-index: -1;
}
/* Compensate fixed header for pages without full-height hero */
#site-header + :not(.hero) {
  padding-top: var(--header-h);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  text-decoration: none;
}
.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: invert(1);
}

.logo-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 2px;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 4px;
}

.main-nav ul { list-style: none; display: flex; gap: 28px; align-items: center; }
.main-nav a {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 6px 0;
  position: relative;
  transition: color 0.3s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.main-nav a:hover { color: var(--gold); }
.main-nav a:hover::after { width: 100%; }

.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px); left: -16px;
  min-width: 260px;
  max-height: calc(100vh - var(--header-h) - 24px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  padding: 8px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s var(--ease-out);
  display: flex; flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.dropdown-menu::-webkit-scrollbar { width: 6px; }
.dropdown-menu::-webkit-scrollbar-track { background: transparent; }
.dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}
.dropdown-menu::-webkit-scrollbar-thumb:hover { background: #fff; }

/* Strip horizontal de imagenes verticales (ej. fotos de profe en showcase).
   Centra en desktop si caben, scroll snap horizontal en mobile, scrollbar dorado. */
.photo-strip {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding-bottom: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.photo-strip::-webkit-scrollbar { height: 6px; }
.photo-strip::-webkit-scrollbar-track { background: transparent; }
.photo-strip::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
.photo-strip::-webkit-scrollbar-thumb:hover { background: #fff; }
.photo-strip img {
  height: 500px;
  width: auto;
  border-radius: 8px;
  flex-shrink: 0;
  scroll-snap-align: start;
  object-fit: cover;
}
@media (max-width: 768px) {
  .photo-strip { justify-content: flex-start; }
  .photo-strip img { height: 420px; }
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { padding: 0; }
.dropdown-menu a { display: block; padding: 10px 24px; font-size: 0.68rem; }
.dropdown-menu a:hover { background: var(--gold-muted); }
.dropdown-menu a::after { display: none; }

.menu-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 28px; height: 1.5px; background: var(--gold); transition: all 0.3s; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* === SIDEBAR BACKDROP (mobile) === */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99990;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
}
.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.2) 0%,
      rgba(0,0,0,0.05) 35%,
      rgba(0,0,0,0.3) 65%,
      rgba(0,0,0,0.85) 100%),
    linear-gradient(90deg,
      rgba(0,0,0,0.5) 0%,
      transparent 55%);
  z-index: 1;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 clamp(20px, 5vw, 64px) 100px;
  max-width: 750px;
}

.hero-badge {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-title { margin-bottom: 0; }
.hero-line {
  display: block;
}
.hero-line--1 {
  font-size: clamp(2.5rem, 10vw, 11rem);
  color: var(--white);
  line-height: 0.85;
}
.hero-line--2 {
  font-size: clamp(2.5rem, 10vw, 11rem);
  color: var(--gold);
  line-height: 0.85;
  text-shadow: 0 0 80px var(--gold-glow), 0 0 160px rgba(255, 216, 8, 0.1);
}

.hero-slash {
  width: min(350px, 60vw);
  height: 3px;
  background: var(--gold);
  margin: 28px 0;
  transform-origin: left;
  transform: scaleX(0);
  box-shadow: 0 0 20px var(--gold-glow);
}

.hero-tagline {
  font-size: clamp(0.8rem, 1.3vw, 0.95rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-tagline strong { color: var(--gold); font-weight: 500; }

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 36px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  right: clamp(20px, 5vw, 48px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-subtle);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* === HERO SLIDER === */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
}
.hero-slide--active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.hero-slide .hero-bg,
.hero-slide .hero-overlay,
.hero-slide .hero-grain,
.hero-slide .hero-content {
  position: absolute;
}
.hero-slide .hero-bg { inset: 0; }
.hero-slide .hero-overlay { inset: 0; z-index: 1; }
.hero-slide .hero-grain { inset: 0; z-index: 2; }
.hero-slide .hero-content {
  bottom: 0;
  left: 0;
  z-index: 3;
  padding: 0 clamp(20px, 5vw, 64px) 100px;
  max-width: 750px;
}
@media (max-height: 750px) {
  .hero-slide .hero-content {
    top: var(--header-h);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 40px;
  }
  .hero-line--1, .hero-line--2 {
    font-size: clamp(2rem, 8vw, 5rem) !important;
  }
}

/* Dots navigation */
.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
  align-items: center;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.4s var(--ease-out);
}
.hero-dot:hover {
  border-color: var(--gold);
  background: rgba(255, 216, 8, 0.2);
}
.hero-dot--active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
  transform: scale(1.2);
}

/* Slide enter animations (driven by JS adding .hero-slide--animating) */
.hero-slide--active .hero-badge,
.hero-slide--active .hero-line,
.hero-slide--active .hero-slash,
.hero-slide--active .hero-tagline,
.hero-slide--active .hero-cta {
  /* Reset opacity for GSAP to animate */
}

/* Pause auto-rotate on hover */
.hero:hover .hero-dots {
  opacity: 1;
}

@media (max-width: 968px) {
  .hero-dots { bottom: 24px; }
  .hero-dot { width: 8px; height: 8px; }
}

/* === SECTIONS === */
.sec { padding: 120px 0; position: relative; background: var(--bg); }
.sec--black { background: var(--black); }
.sec--elevated { background: var(--elevated); }

/* === EXPERIENCE CARDS === */
.exp-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-auto-rows: auto;
  gap: 2px;
}

.exp-card {
  background: var(--black);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: background 0.5s var(--ease-out);
}

.exp-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
  z-index: 5;
}
.exp-card:hover { background: var(--card); }
.exp-card:hover::before { transform: scaleX(1); }

.exp-card--featured {
  grid-row: span 2;
}
.exp-card--featured .exp-card-visual { min-height: auto; }
.exp-card--featured h3 { font-size: 2.8rem; }

.exp-card-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.exp-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.7s;
  filter: brightness(0.95) saturate(1.1);
}
/* Modificador para flyers/afiches verticales que NO deben recortarse */
.exp-card-visual--poster {
  aspect-ratio: auto;
}
.exp-card-visual--poster img {
  height: auto;
  object-fit: contain;
}
.exp-card:hover .exp-card-visual img {
  transform: scale(1.03);
  filter: brightness(1.1) saturate(1.2);
}
.exp-card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}

.exp-card-body {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.exp-card--featured .exp-card-body {
  position: relative;
  background: var(--card);
  padding: 28px 24px;
}

.exp-card-type {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.exp-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}
.exp-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.exp-card-action {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.4s var(--ease-out), color 0.3s;
}
.exp-card:hover .exp-card-action { gap: 16px; color: var(--white); }

/* === PROF GRID (profesores cliniclass — patrón canónico reutilizable) === */
.prof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  margin-top: 48px;
}
.prof-card {
  display: flex;
  flex-direction: column;
}
.prof-card-media {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
}
.prof-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.prof-card:hover .prof-card-media img { transform: scale(1.04); }
.prof-card-time {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 16px;
}
.prof-card-style {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-top: 6px;
}
.prof-card-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-top: 10px;
}
.prof-card-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .prof-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .prof-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* === STATS TICKER (animated marquee like MBP) === */
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.stats-ticker {
  background: var(--gold);
  overflow: hidden;
  position: relative;
  z-index: 4;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.stats-ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 30s linear infinite;
}

.stats-ticker:hover .stats-ticker-track {
  animation-play-state: paused;
}

/* Alias for .ticker/.ticker-track used across event pages */
.ticker {
  background: var(--gold);
  overflow: hidden;
  position: relative;
  z-index: 4;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  width: 100%;
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  padding: 16px 0;
  animation: tickerScroll 30s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px 0;
  flex-shrink: 0;
}

.ticker-item {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  letter-spacing: 0.1em;
  color: var(--black);
  padding: 0 24px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticker-item strong {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  line-height: 1;
}

.ticker-dot {
  width: 5px;
  height: 5px;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  flex-shrink: 0;
}

.ticker-item--social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.ticker-item--social a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--black);
  color: var(--gold);
  transition: all 0.3s;
}

.ticker-item--social a:hover {
  background: var(--white);
  color: var(--black);
  transform: scale(1.1);
}

.ticker-item--social svg {
  width: 16px;
  height: 16px;
}

/* === GALLERY === */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 3px;
}
.g-item {
  overflow: hidden;
  position: relative;
  background: var(--card);
}
.g-item--tall { grid-row: span 2; }
.g-item--wide { grid-column: span 2; }
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.8s;
  filter: brightness(1) saturate(1.05);
}
.g-item:hover img {
  transform: scale(1.03);
  filter: brightness(1.1) saturate(1.2);
}
/* Gallery masonry (no crop, puzzle fit) */
.gallery-mosaic--full {
  display: block;
  column-count: 3;
  column-gap: 4px;
}
.gallery-mosaic--full .g-item {
  break-inside: avoid;
  margin-bottom: 4px;
  overflow: hidden;
  border-radius: 4px;
}
.gallery-mosaic--full .g-item--tall,
.gallery-mosaic--full .g-item--wide {
  grid-row: unset;
  grid-column: unset;
}
.gallery-mosaic--full .g-item img {
  width: 100%;
  height: auto;
  object-fit: unset;
  display: block;
}

/* === CANAL CH (Netflix-style) === */
.canal-featured { margin-bottom: 32px; }
.canal-main { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: center; }
.canal-main-info h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.canal-main-info p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }
.canal-main-info a { color: var(--gold); }
.canal-thumb { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 16/9; }
.canal-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out), filter 0.5s; }
.canal-thumb:hover img { transform: scale(1.05); filter: brightness(0.7); }
.canal-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(0,0,0,0.6); border: 2px solid rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff; opacity: 0; transition: opacity 0.3s;
}
.canal-thumb:hover .canal-play { opacity: 1; }
.canal-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: #000; padding: 3px 10px;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; border-radius: 3px;
}
.canal-thumb--sm .canal-play { width: 40px; height: 40px; font-size: 1rem; }
.canal-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}
.canal-card { text-decoration: none; color: var(--white); transition: transform 0.3s; }
.canal-card:hover { transform: translateY(-4px); color: var(--white); }
.canal-card-title { display: block; font-size: 0.8rem; font-weight: 600; margin-top: 8px; line-height: 1.3; }
.canal-card-type { display: block; font-size: 0.65rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }
@media (max-width: 768px) {
  .canal-main { grid-template-columns: 1fr; }
  .canal-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .canal-row { grid-template-columns: 1fr; }
}

/* === VIDEO MODAL (Netflix-style) === */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.video-modal.open {
  display: flex;
}
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}
.video-modal-content {
  position: relative;
  width: 90vw;
  max-width: 1100px;
  z-index: 1;
}
.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.video-modal-close:hover {
  opacity: 1;
  color: var(--gold);
}
.video-modal-player {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}
.video-modal-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.gallery-credits {
  text-align: center;
  margin-top: 24px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.gallery-credits a {
  color: var(--text-muted);
  transition: color 0.3s;
}
.gallery-credits a:hover {
  color: var(--gold);
}

/* Founders photo full */
.founders-photo--full {
  aspect-ratio: auto;
}
.founders-photo--full img {
  height: auto;
  object-fit: contain;
}

.g-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 216, 8, 0);
  transition: border-color 0.4s;
  pointer-events: none;
}
.g-item:hover::after {
  border-color: rgba(255, 216, 8, 0.3);
}

/* === FOUNDERS === */
.founders-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.founders-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.founders-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.1) brightness(0.95);
  transition: transform 0.6s var(--ease-out);
}
.founders-photo:hover img { transform: scale(1.03); }
.founders-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  pointer-events: none;
}
.founders-info { padding: 20px 0; }
.founders-info .sec-desc { max-width: 100%; }
.founders-info strong { color: var(--gold); }

/* === PODCAST === */
.podcast-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.podcast-info { padding: 20px 0; }
.podcast-embed {
  aspect-ratio: 16/9;
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.podcast-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
}
.podcast-play-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 24px;
  border-radius: 50%;
  transition: all 0.3s;
}
.podcast-placeholder:hover .podcast-play-icon {
  background: var(--gold);
  color: var(--black);
  transform: scale(1.1);
}
.podcast-placeholder p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--white);
}
.podcast-placeholder span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

@media (max-width: 968px) {
  .podcast-block { grid-template-columns: 1fr; gap: 32px; }
}

/* === SPONSORS === */
.sponsors-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
  margin-top: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sponsor-name {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  transition: color 0.4s, text-shadow 0.4s;
}
.sponsor-name:hover {
  color: var(--gold);
  text-shadow: 0 0 30px var(--gold-glow);
}

/* === CTA === */
.cta-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 350px; height: 350px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}
.cta-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}
/* Fix vacio arriba: resetear margins de hijos + compactar padding */
.cta-card .eyebrow,
.cta-card .sec-title,
.cta-card .sec-desc { margin-top: 0; }
.cta-card .sec-title { margin-bottom: 14px; }
.cta-card .sec-desc { margin-bottom: 0; }
.form-stack {
  max-width: 440px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 15px 20px;
  background: var(--black);
  border: none;
  border-left: 2px solid var(--border);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  transition: border-color 0.3s, background 0.3s;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-left-color: var(--gold);
  background: var(--card);
}
.form-textarea { min-height: 100px; resize: vertical; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 44px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
}
.btn--gold {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 0 24px var(--gold-glow);
}
.btn--gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 48px var(--gold-glow), 0 12px 32px rgba(0,0,0,0.5);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--text-muted);
  background: rgba(255,255,255,0.03);
}

/* === FOOTER === */
#site-footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
}
.footer-brand h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); margin-top: 16px; letter-spacing: 0.1em; }
.footer-tagline { color: var(--text-subtle); font-size: 0.8rem; font-weight: 300; margin-top: 10px; line-height: 1.7; }
.footer-socials { display: flex; gap: 8px; margin-top: 24px; }
.footer-socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 9px; font-weight: 600; letter-spacing: 1px;
  transition: all 0.3s;
}
.footer-socials a:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-muted); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.85rem; font-weight: 300; margin-bottom: 10px; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold); }
.footer-location { color: var(--text-subtle); font-size: 0.75rem; margin-top: 12px; }
.footer-bottom { text-align: center; padding: 24px; margin-top: 48px; border-top: 1px solid var(--border); color: var(--text-subtle); font-size: 0.7rem; letter-spacing: 0.1em; }

/* === INNER PAGE HERO (smaller title for subpages) === */
.hero--inner {
  min-height: 50vh;
  min-height: 50dvh;
  align-items: center;
}
.hero--inner .hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
}
.hero--inner .hero-line--1,
.hero--inner .hero-line--2 {
  font-size: clamp(3rem, 10vw, 7rem);
}

/* === FOCUS === */
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* === SCHEDULE === */
.schedule-block { max-width: 640px; }
.schedule-list { display: flex; flex-direction: column; gap: 0; }
.schedule-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.schedule-item:first-child { border-top: 1px solid rgba(255,255,255,.08); }
.schedule-time {
  font-family: var(--font-heading);
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--gold);
  white-space: nowrap;
}
.schedule-class {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .9rem;
}
.schedule-prof {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  text-align: right;
}
@media (max-width: 580px) {
  .schedule-item { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .schedule-prof { text-align: left; }
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
  .menu-toggle { display: flex; }
  .nav-backdrop { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    width: min(85vw, 360px);
    max-width: 360px;
    background: rgba(0,0,0,0.98);
    backdrop-filter: blur(24px);
    padding: 24px 20px 40px;
    transform: translateX(110%);
    transition: transform 0.4s var(--ease-out);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    box-shadow: -20px 0 60px rgba(0,0,0,0.5);
    border-left: 1px solid var(--border);
    z-index: 99995;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .main-nav li { width: 100%; }
  .main-nav a { display: block; padding: 18px 0; font-size: 0.9rem; border-bottom: 1px solid var(--border); width: 100%; }
  /* Parent link en dorado (Box8, Formacion, BFAF, etc) */
  .main-nav > ul > li > a {
    color: var(--gold) !important;
    font-family: var(--font-display);
    font-size: 1.1rem !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 20px 0 12px !important;
    border-bottom: 2px solid rgba(255, 216, 8, 0.15);
  }
  .nav-dropdown { position: static !important; width: 100%; }
  /* Dropdowns SIEMPRE visibles en mobile drawer (sub-items) */
  .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: transparent !important;
    border: none !important;
    border-top: none !important;
    padding: 8px 0 16px 20px !important;
    margin: 0;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    width: 100%;
    box-sizing: border-box;
  }
  .dropdown-menu li { border-bottom: 1px solid rgba(255,255,255,0.05); width: 100%; }
  .dropdown-menu li:last-child { border-bottom: none; }
  .dropdown-menu a {
    font-size: 0.85rem !important;
    padding: 12px 0 !important;
    border-bottom: none !important;
    color: rgba(255,255,255,0.75) !important;
    font-family: var(--font-body) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
  }

  .exp-grid { grid-template-columns: 1fr; }
  .exp-card--featured { grid-row: span 1; }
  .exp-card--featured .exp-card-visual { min-height: 300px; }
  .founders-block { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .hero-scroll-hint { display: none; }
}

@media (max-width: 580px) {
  .gallery-mosaic { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-mosaic--full { column-count: 2; }
  .g-item--tall { grid-row: span 1; }
  .g-item--wide { grid-column: span 1; }
  .footer-links { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; gap: 28px; }
  .stats-bar { clip-path: none; }
  .sponsors-row { gap: 24px; }
  .cta-card { padding: 48px 24px; }
  .hero-cta { flex-direction: column; }
}

/* === MOBILE RESPONSIVE FIXES === */
@media (max-width: 768px) {
  /* Inline grids 3+ columnas → 2 */
  [style*="repeat(3,"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="repeat(4,"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="repeat(5,"] { grid-template-columns: repeat(2, 1fr) !important; }

  /* Gallery mosaic intermedio */
  .gallery-mosaic--full { column-count: 2 !important; }

  /* Canal main featured */
  .canal-featured .canal-main { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  /* Todo a 1 columna */
  [style*="repeat(2,"] { grid-template-columns: 1fr !important; }
  [style*="repeat(3,"] { grid-template-columns: 1fr !important; }
  [style*="repeat(4,"] { grid-template-columns: 1fr !important; }
  [style*="repeat(5,"] { grid-template-columns: 1fr !important; }
  [style*="1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* Hero mobile */
  .hero-title { font-size: clamp(2rem, 12vw, 4rem) !important; }
  .hero-line--1, .hero-line--2 { font-size: inherit; }
  .hero-badge { font-size: 0.55rem; }
  .hero-tagline { font-size: 0.75rem; }
  .hero-content { padding: 0 clamp(16px, 4vw, 40px) 60px !important; }

  /* Textos */
  .sec-title { font-size: clamp(1.8rem, 8vw, 3rem) !important; }
  .sec-desc { font-size: 0.85rem !important; }
  .eyebrow { font-size: 0.55rem; }

  /* Max-width containers */
  [style*="max-width: 700px"],
  [style*="max-width: 680px"],
  [style*="max-width: 800px"],
  [style*="max-width: 600px"],
  [style*="max-width: 500px"] {
    max-width: 100% !important;
  }

  /* Flex containers a columna */
  [style*="display: flex"][style*="gap: 12px"],
  [style*="display: flex"][style*="gap: 16px"] {
    flex-direction: column !important;
    align-items: center !important;
  }

  /* Flyers max-width */
  [style*="max-width: 280px"],
  [style*="max-width: 300px"] {
    max-width: 100% !important;
  }

  /* Canal cards */
  .canal-card-title { font-size: 0.75rem; }
  .canal-card-type { font-size: 0.6rem; }

  /* Sponsors */
  .sponsors-row { gap: 16px !important; }
  .sponsor-name { font-size: 0.7rem; padding: 10px 16px; }

  /* Founders info */
  .founders-info { text-align: center; }
  .founders-info .eyebrow { justify-content: center; }

  /* Entrevista quotes */
  [style*="border-left: 2px solid"] { padding-left: 12px !important; }
  [style*="border-left: 3px solid"] { padding-left: 12px !important; }

  /* Video modal */
  [style*="max-width:900px"] { max-width: 95vw !important; }

  /* Universal overflow prevention */
  img, video, iframe, table { max-width: 100% !important; }
  .hero-bg-img { max-width: none !important; } /* hero images need to fill */
  pre, code { max-width: 100%; overflow-x: auto; }

  /* Ticker overflow prevention */
  .ticker, .stats-ticker { width: 100%; overflow: hidden; }
}

/* === MOBILE RESPONSIVE — auto-fit grids + extras === */
@media (max-width: 768px) {
  /* auto-fit grids con minmax grande → reducir minmax */
  [style*="repeat(auto-fit, minmax(250px"],
  [style*="repeat(auto-fit, minmax(280px"],
  [style*="repeat(auto-fit, minmax(300px"] {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  }

  /* Gaps grandes inline → reducir */
  [style*="gap: 32px"] { gap: 20px !important; }
  [style*="gap: 48px"] { gap: 24px !important; }

  /* Padding sections */
  [style*="padding: 80px"] { padding: 48px 24px !important; }
  [style*="padding: 60px"] { padding: 40px 20px !important; }
}

@media (max-width: 580px) {
  /* Hero CTA botones full width */
  .hero-cta { flex-direction: column; gap: 8px; }
  .hero-cta .btn,
  .hero-cta a { width: 100%; text-align: center; box-sizing: border-box; }
}

@media (max-width: 480px) {
  /* Canal thumbs pequeños */
  .canal-thumb--sm { aspect-ratio: 16/9; }

  /* auto-fit grids → 1 columna */
  [style*="repeat(auto-fit, minmax(200px"],
  [style*="repeat(auto-fit, minmax(250px"],
  [style*="repeat(auto-fit, minmax(280px"],
  [style*="repeat(auto-fit, minmax(300px"] {
    grid-template-columns: 1fr !important;
  }

  /* Padding sections aún más reducido */
  [style*="padding: 80px"] { padding: 32px 16px !important; }
  [style*="padding: 60px"] { padding: 28px 16px !important; }

  /* Tipografias inline grandes */
  [style*="font-size: 3rem"],
  [style*="font-size: 2.5rem"] { font-size: 1.8rem !important; }
  [style*="font-size: 2rem"] { font-size: 1.4rem !important; }
  [style*="font-size: 1.5rem"] { font-size: 1.15rem !important; }

  /* Margin-top grandes inline */
  [style*="margin-top: 48px"] { margin-top: 24px !important; }
  [style*="margin-top: 64px"] { margin-top: 32px !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
