﻿:root {
      --bg:        #060911;
      --surface:   #0d1220;
      --surface-2: #16203a;
      --fg:        #eef0f8;
      --muted:     #5a6380;
      --border:    rgba(255,255,255,0.07);
      --yellow:    #ffd000;
      --blue:      #2979ff;
      --red:       #e53935;
      --cyan:      #00e5ff;
      --font-d:    'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
      --font-b:    'Barlow', -apple-system, system-ui, sans-serif;
      --radius:    14px;
      --h-pad:     clamp(24px, 6vw, 96px);
      --v-pad:     clamp(64px, 9vw, 120px);
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body { background: var(--bg); color: var(--fg); font-family: var(--font-b); -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.6; }
    img { max-width: 100%; display: block; }

    /* ── NAV ─────────────────────────────────────────────────────────── */
    #nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 200;
      padding: 8px var(--h-pad);
      display: flex; align-items: center; justify-content: space-between; gap: 16px;
      background: #ffffff;
      border-bottom: 1px solid rgba(0,0,0,0.09);
      box-shadow: 0 10px 30px rgba(0,0,0,.08);
    }
    #nav.solid { background: #ffffff; }
    .nav-left { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
    .nav-main img { height: 68px; width: auto; object-fit: contain; }
    .nav-divider { width: 1px; height: 44px; background: rgba(0,0,0,0.1); }
    .nav-allies { display: flex; align-items: center; gap: 20px; }
    .nav-allies img { height: 44px; width: auto; object-fit: contain; opacity: .9; transition: opacity .2s, transform .2s; }
    .nav-allies img:hover { opacity: 1; transform: scale(1.05); }
    .nav-links { display: flex; gap: 24px; list-style: none; }
    .nav-links a { color: rgba(6,9,17,0.6); text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: color .2s; }
    .nav-links a:hover { color: var(--red); }
    .nav-cta {
      color: #060911; background: var(--yellow); padding: 9px 14px; border-radius: 6px;
      box-shadow: 0 8px 22px rgba(255,208,0,.24);
    }
    .nav-links a.nav-cta:hover { color: #060911; transform: translateY(-1px); }

    /* ── HERO ────────────────────────────────────────────────────────── */
    #hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 128px var(--h-pad) 100px; }

    /* Video background for hero */
    .hero-video-wrap {
      position: absolute; inset: 0; z-index: 0; overflow: hidden;
      background: #060911;
    }
    .hero-video-wrap video {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      object-fit: cover;
      object-position: 65% center;
      transition: object-position 1.2s ease;
    }
    /* Strong dark overlay left→right: opaque on left (text), reveals video on right */
    .hero-video-wrap::after {
      content: '';
      position: absolute; inset: 0;
      background:
        linear-gradient(to right, rgba(6,9,17,0.58) 18%, rgba(6,9,17,0.35) 48%, rgba(6,9,17,0.10) 100%),
        linear-gradient(to top, rgba(6,9,17,1) 0%, transparent 28%);
    }

    /* Subtle grid overlay */
    .hero-grid {
      position: absolute; inset: 0; z-index: 1; opacity: .03;
      background-image: linear-gradient(var(--yellow) 1px, transparent 1px), linear-gradient(90deg, var(--yellow) 1px, transparent 1px);
      background-size: 60px 60px;
      mask-image: radial-gradient(ellipse 60% 80% at 75% 50%, black, transparent 70%);
      -webkit-mask-image: radial-gradient(ellipse 60% 80% at 75% 50%, black, transparent 70%);
    }

    /* Hero text — CSS keyframe entrance (no JS needed for initial reveal) */
    .hero-content { position: relative; z-index: 3; max-width: 590px; }
    .badge {
      display: inline-flex; align-items: center; gap: 8px;
      background: rgba(255,208,0,.1); border: 1px solid rgba(255,208,0,.3);
      color: var(--yellow); font-size: 11px; font-weight: 700;
      letter-spacing: .22em; text-transform: uppercase;
      padding: 6px 14px; border-radius: 4px; margin-bottom: 26px;
      animation: fadeUp .6s ease both;
    }
    .badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); animation: hPulse 1.6s ease-in-out infinite; }
    /* Festival de Verano — biggest title */
    .hero-festival {
      font-family: var(--font-d); font-size: clamp(56px, 7.4vw, 104px);
      font-weight: 700; line-height: .92; letter-spacing: 0; text-transform: uppercase;
      color: var(--yellow); margin-bottom: 12px;
      animation: fadeUp .65s .08s ease both;
    }
    .hero-h1 {
      font-family: var(--font-d); font-size: clamp(28px, 3.4vw, 48px);
      font-weight: 800; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; margin-bottom: 20px;
      color: rgba(255,255,255,.88);
      animation: fadeUp .7s .18s ease both;
    }
    .hero-h1 .line-y { color: rgba(255,255,255,.45); display: inline; font-weight: 700; font-size: .85em; }
    .hero-sub {
      font-size: clamp(14px, 1.7vw, 18px); color: rgba(255,255,255,.5);
      margin-bottom: 38px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
      animation: fadeUp .7s .26s ease both;
    }
    .hero-meta {
      display: flex; gap: 32px; margin-bottom: 46px; flex-wrap: wrap;
      animation: fadeUp .7s .3s ease both;
    }
    .hm-label { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.42); margin-bottom: 4px; }
    .hm-val   { font-family: var(--font-d); font-size: clamp(22px, 3vw, 34px); font-weight: 900; line-height: 1.1; color: var(--yellow); }
    .hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; animation: fadeUp .7s .4s ease both; }
    .hero-cta {
      display: inline-flex; align-items: center; gap: 10px;
      background: var(--yellow); color: #060911;
      font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
      padding: 16px 32px; border-radius: 6px; text-decoration: none;
      transition: transform .2s, box-shadow .2s;
    }
    .hero-cta:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(255,208,0,.35); }
    .hero-cta.secondary {
      background: rgba(255,255,255,.08); color: var(--fg);
      border: 1px solid rgba(255,255,255,.16); box-shadow: none;
    }
    .hero-cta.secondary:hover { border-color: rgba(255,208,0,.45); box-shadow: 0 16px 48px rgba(0,0,0,.28); }
    .hero-proof {
      display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px;
      color: rgba(255,255,255,.54); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
      animation: fadeUp .7s .48s ease both;
    }
    .hero-proof span { display: inline-flex; align-items: center; gap: 6px; }
    .hero-proof span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); }

    .flag-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; z-index: 4; background: linear-gradient(to right, var(--yellow) 33.33%, var(--blue) 33.33%, var(--blue) 66.66%, var(--red) 66.66%); }
    .scroll-hint { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255,255,255,.28); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; animation: fadeUp .7s .9s ease both; }
    @keyframes scrollBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }
    .scroll-hint svg { animation: scrollBounce 2s ease-in-out infinite; }

    /* ── SHARED SECTION REVEAL ───────────────────────────────────────── */
    @keyframes fadeUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:none} }

    .sec-eyebrow {
      display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .26em;
      text-transform: uppercase; color: var(--yellow); margin-bottom: 14px;
      opacity: 0; transform: translateY(16px); transition: opacity .55s, transform .55s;
    }
    .sec-title {
      font-family: var(--font-d); font-size: clamp(38px, 5.5vw, 72px);
      font-weight: 900; line-height: 1; letter-spacing: -.01em;
      opacity: 0; transform: translateY(24px); transition: opacity .65s .08s, transform .65s .08s;
    }
    .sec-head.revealed .sec-eyebrow,
    .sec-head.revealed .sec-title { opacity: 1; transform: none; }

    /* ── EJES ────────────────────────────────────────────────────────── */
    #ejes { padding: var(--v-pad) var(--h-pad); position: relative; }
    #ejes::before { content: ''; position: absolute; top: 0; left: var(--h-pad); right: var(--h-pad); height: 1px; background: linear-gradient(to right, transparent, var(--border), transparent); }
    .ejes-head { margin-bottom: 28px; }
    .campus-intro {
      max-width: 920px; margin-bottom: 30px;
      display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px;
      color: rgba(255,255,255,.68); font-size: 15px; line-height: 1.7;
    }
    .campus-intro strong { color: var(--fg); }

    .gantt-wrap {
      margin-bottom: 46px; padding: 24px;
      background:
        linear-gradient(135deg, rgba(255,208,0,.09), transparent 28%),
        linear-gradient(180deg, rgba(13,18,32,.98), rgba(7,11,21,.98));
      border: 1px solid rgba(255,255,255,.11); border-radius: var(--radius);
      box-shadow: 0 28px 90px rgba(0,0,0,.38);
      overflow-x: auto;
    }
    .gantt-title-row {
      min-width: 1120px; display: flex; align-items: flex-end; justify-content: space-between;
      gap: 18px; margin-bottom: 18px;
    }
    .gantt-kicker {
      display: block; color: var(--yellow); font-size: 10px; font-weight: 800;
      letter-spacing: .22em; text-transform: uppercase; margin-bottom: 4px;
    }
    .gantt-title-row h3 {
      font-family: var(--font-d); font-size: 34px; line-height: 1; text-transform: uppercase;
      letter-spacing: 0; margin: 0;
    }
    .gantt-date {
      color: rgba(255,255,255,.62); font-size: 12px; font-weight: 800;
      letter-spacing: .16em; text-transform: uppercase;
    }
    .gantt-grid {
      min-width: 1120px;
      display: grid;
      grid-template-columns: 88px repeat(11, minmax(88px, 1fr));
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 12px; overflow: hidden;
      background: rgba(255,255,255,.03);
    }
    .gantt-cell {
      min-height: 92px; padding: 8px;
      border-right: 1px solid rgba(255,255,255,.075);
      border-bottom: 1px solid rgba(255,255,255,.075);
      display: flex; align-items: center; justify-content: center;
    }
    .gantt-cell:nth-child(12n) { border-right: 0; }
    .gantt-cell:nth-last-child(-n+12) { border-bottom: 0; }
    .gantt-label {
      background: rgba(255,255,255,.065); color: rgba(255,255,255,.78);
      font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    }
    .gantt-day {
      min-height: 70px; background: linear-gradient(180deg, rgba(41,121,255,.24), rgba(41,121,255,.12));
      flex-direction: column; gap: 2px; text-align: center;
    }
    .gantt-day strong { font-size: 12px; color: var(--fg); }
    .gantt-day span { font-size: 11px; color: rgba(255,255,255,.58); }
    .gantt-day.rest,
    .gantt-cell.rest { background: rgba(255,208,0,.09); }
    .gantt-cell.stack { flex-direction: column; gap: 6px; }
    .gantt-block {
      width: 100%; min-height: 64px; padding: 0; border-radius: 9px;
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
      color: #06101a; font-size: 11px; font-weight: 800; line-height: 1.05;
      text-align: center;
      border: 2px solid rgba(0,0,0,.62); font-family: var(--font-b); cursor: default;
      overflow: hidden;
      box-shadow: inset 0 -10px 18px rgba(0,0,0,.08), 0 10px 22px rgba(0,0,0,.18);
    }
    .gantt-block span {
      flex: 1; width: 100%; min-height: 38px; padding: 8px 7px 5px;
      display: flex; align-items: center; justify-content: center;
    }
    .gantt-block em {
      width: 100%; min-height: 22px; padding: 5px 7px 4px;
      display: flex; align-items: center; justify-content: center;
      background: rgba(0,0,0,.82); color: #fff;
      font-size: 9px; font-style: normal; letter-spacing: .1em; text-transform: uppercase;
    }
    .gantt-block.cta { cursor: pointer; transition: transform .18s ease, filter .18s ease, box-shadow .18s ease; }
    .gantt-block.cta:hover { transform: translateY(-2px); filter: saturate(1.08) brightness(1.03); box-shadow: inset 0 -10px 18px rgba(0,0,0,.08), 0 14px 28px rgba(0,0,0,.26); }
    .gantt-block.cta:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
    .gantt-block.setting { background: linear-gradient(180deg, #ffe066, var(--yellow)); }
    .gantt-block.coach { background: linear-gradient(180deg, #50ff73, #19f044); }
    .gantt-block.athlete { background: linear-gradient(180deg, #a947ff, #8b17ff); color: #fff; }
    .gantt-block.comp { background: linear-gradient(180deg, #3af0ff, var(--cyan)); }
    .gantt-block.event { background: linear-gradient(180deg, #65ff4f, #21f20f); }
    .gantt-block.rest { background: transparent; color: var(--yellow); }
    .gantt-legend {
      min-width: 1120px; display: flex; flex-wrap: wrap; gap: 14px;
      margin-top: 14px; color: rgba(255,255,255,.58); font-size: 11px; font-weight: 700;
      letter-spacing: .04em; text-transform: uppercase;
    }
    .gantt-legend span { display: inline-flex; align-items: center; gap: 7px; }
    .gantt-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
    .gantt-legend i.setting { background: var(--yellow); }
    .gantt-legend i.coach { background: #19f044; }
    .gantt-legend i.athlete { background: #8b17ff; }
    .gantt-legend i.comp { background: var(--cyan); }
    .gantt-legend i.event { background: #21f20f; }

    .director-card {
      margin-bottom: 34px; display: grid; grid-template-columns: minmax(180px, .34fr) 1fr;
      gap: 24px; align-items: stretch;
      background:
        linear-gradient(135deg, rgba(255,208,0,.12), transparent 32%),
        linear-gradient(180deg, rgba(13,18,32,.96), rgba(8,13,24,.96));
      border: 1px solid rgba(255,208,0,.18); border-radius: var(--radius);
      overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.28);
      opacity: 0; transform: translateY(36px);
      transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
    }
    .director-card.card-vis { opacity: 1; transform: none; }
    .director-portrait {
      min-height: 260px; padding: 24px;
      display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
      background:
        linear-gradient(to top, rgba(6,9,17,.92), rgba(6,9,17,.08)),
        url('../img/sebastian-rojas.jpg') center / cover no-repeat,
        radial-gradient(circle at 50% 24%, rgba(255,208,0,.24), transparent 32%),
        linear-gradient(135deg, #123f67, #0b1424 70%);
      position: relative;
    }
    .portrait-parallax-wrap {
      position: absolute; inset: 0; overflow: hidden;
      transform: translate(var(--ptx, 0px), var(--pty, 0px));
      transition: transform .35s cubic-bezier(.2,.8,.2,1);
    }
    .director-portrait img {
      position: absolute; inset: 0; width: 100%; height: 100%;
      object-fit: cover; object-position: center 42%;
      filter: saturate(1.06) contrast(1.03);
      opacity: 0; clip-path: inset(0 100% 0 0);
      animation: portraitDrift 14s ease-in-out infinite alternate;
    }
    .director-portrait img.is-loaded {
      opacity: 1;
      animation:
        curtainReveal .9s cubic-bezier(.77,0,.175,1) forwards,
        portraitDrift 14s ease-in-out .9s infinite alternate;
    }
    @keyframes curtainReveal {
      from { clip-path: inset(0 100% 0 0); }
      to   { clip-path: inset(0 0%   0 0); }
    }
    .portrait-scan {
      position: absolute; left: 0; right: 0; height: 2px; z-index: 3; pointer-events: none;
      background: linear-gradient(to right, transparent, rgba(255,208,0,.65), rgba(255,255,255,.45), transparent);
      animation: portraitScanLine 2.2s ease-in-out infinite;
    }
    @keyframes portraitScanLine {
      0%   { top: 0;    opacity: 0; }
      8%   { opacity: 1; }
      92%  { opacity: 1; }
      100% { top: 100%; opacity: 0; }
    }
    .director-portrait::after {
      content: ''; position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(6,9,17,.92), rgba(6,9,17,.08) 58%, rgba(6,9,17,.18));
      pointer-events: none;
    }
    .director-portrait::before {
      content: ''; position: absolute; inset: 18px;
      border: 1px solid rgba(255,255,255,.1); border-radius: 10px;
      background-image:
        radial-gradient(circle at 28% 28%, rgba(255,255,255,.16) 0 7px, transparent 8px),
        radial-gradient(circle at 72% 38%, rgba(255,208,0,.2) 0 10px, transparent 11px),
        radial-gradient(circle at 48% 66%, rgba(41,121,255,.2) 0 8px, transparent 9px);
      opacity: .75; z-index: 1;
    }
    .director-initials {
      position: relative; z-index: 1;
      font-family: var(--font-d); font-size: 82px; font-weight: 900;
      line-height: .85; color: var(--yellow);
    }
    .director-portrait span {
      position: relative; z-index: 1; color: rgba(255,255,255,.72);
      font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
    }
    .director-portrait.img-loaded .director-initials { display: none; }
    .director-copy { padding: clamp(26px, 4vw, 42px); }
    .director-kicker {
      display: inline-block; color: var(--yellow); font-size: 11px; font-weight: 800;
      letter-spacing: .22em; text-transform: uppercase; margin-bottom: 10px;
    }
    .director-copy h3 {
      font-family: var(--font-d); font-size: clamp(42px, 5.5vw, 70px);
      line-height: .92; text-transform: uppercase; margin-bottom: 14px;
    }
    .director-lead {
      max-width: 760px; color: rgba(255,255,255,.7);
      font-size: 15px; line-height: 1.75; margin-bottom: 22px;
    }
    .director-stats {
      display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px; margin-bottom: 22px;
    }
    .director-stats span {
      min-height: 74px; padding: 13px;
      background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08);
      border-radius: 8px; color: rgba(255,255,255,.58);
      font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    }
    .director-stats strong {
      display: block; color: var(--yellow); font-family: var(--font-d);
      font-size: 28px; line-height: 1; margin-bottom: 6px;
    }
    .director-timeline {
      display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
    }
    .director-timeline div {
      border-left: 2px solid rgba(255,208,0,.45); padding-left: 10px;
    }
    .director-timeline strong {
      display: block; color: var(--yellow); font-family: var(--font-d);
      font-size: 22px; line-height: 1;
    }
    .director-timeline span {
      display: block; color: rgba(255,255,255,.62); font-size: 12px; line-height: 1.45;
    }

    .ejes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

    .eje-card {
      background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
      padding: 32px 24px; position: relative; overflow: hidden; cursor: pointer;
      opacity: 0; transform: translateY(40px) perspective(600px) rotateX(8deg);
      transition: opacity .55s, transform .55s, border-color .25s, box-shadow .25s;
      transform-style: preserve-3d;
      appearance: none; color: inherit; font: inherit; text-align: left;
    }
    .eje-card:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; }
    .eje-card.vis { opacity: 1; transform: none; }
    .eje-card.vis:hover { border-color: var(--c-accent); box-shadow: 0 22px 60px rgba(0,0,0,.5); }

    /* Glow layer */
    .eje-card::before {
      content: ''; position: absolute; inset: 0;
      background: radial-gradient(circle at 30% 30%, var(--c-glow) 0%, transparent 60%);
      opacity: 0; transition: opacity .3s;
    }
    .eje-card.vis:hover::before { opacity: 1; }

    .eje-photo {
      height: 138px; margin: -32px -24px 24px;
      position: relative; overflow: hidden;
      background: linear-gradient(135deg, rgba(41,121,255,.26), rgba(255,208,0,.16));
      border-bottom: 1px solid var(--border);
      filter: saturate(1.08) contrast(1.02);
      transition: filter .35s ease;
    }
    .eje-photo::after {
      content: ''; position: absolute; inset: 0; z-index: 1;
      background: linear-gradient(to top, rgba(6,9,17,.55), rgba(6,9,17,.04));
      pointer-events: none;
    }
    .eje-photo img {
      position: absolute; inset: 0; width: 100%; height: 100%;
      object-fit: cover; object-position: center;
      transition: transform .5s cubic-bezier(.2,.8,.2,1);
    }
    .eje-card.vis:hover .eje-photo img { transform: scale(1.07); }
    .eje-card.vis:hover .eje-photo { filter: saturate(1.18) contrast(1.05); }

    .eje-n {
      font-family: var(--font-d); font-size: 86px; font-weight: 900;
      color: var(--c-accent); opacity: .13; position: absolute; top: 118px; right: 16px; line-height: 1;
      transition: opacity .3s;
    }
    .eje-card.vis:hover .eje-n { opacity: .2; }

    .eje-icon {
      width: 48px; height: 48px; border-radius: 11px;
      background: var(--c-icon-bg); border: 1px solid var(--c-icon-border);
      display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 20px;
    }
    .eje-title { font-family: var(--font-d); font-size: clamp(22px, 1.7vw, 25px); font-weight: 800; text-transform: uppercase; line-height: 1.05; margin-bottom: 10px; white-space: nowrap; }
    .eje-desc  { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
    .eje-tag   { display: inline-block; margin-top: 18px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent); border: 1px solid var(--c-accent); padding: 4px 10px; border-radius: 4px; opacity: .8; }

    .eje-card:nth-child(1){--c-accent:var(--yellow);--c-glow:rgba(255,208,0,.08);--c-icon-bg:rgba(255,208,0,.1);--c-icon-border:rgba(255,208,0,.22)}
    .eje-card:nth-child(2){--c-accent:var(--blue);--c-glow:rgba(41,121,255,.09);--c-icon-bg:rgba(41,121,255,.1);--c-icon-border:rgba(41,121,255,.22)}
    .eje-card:nth-child(3){--c-accent:var(--cyan);--c-glow:rgba(0,229,255,.08);--c-icon-bg:rgba(0,229,255,.1);--c-icon-border:rgba(0,229,255,.2)}
    .eje-card:nth-child(4){--c-accent:var(--red);--c-glow:rgba(229,57,53,.09);--c-icon-bg:rgba(229,57,53,.1);--c-icon-border:rgba(229,57,53,.22)}

    /* ── PROGRAM MODAL ──────────────────────────────────────────────── */
    body.modal-open { overflow: hidden; }
    .program-modal {
      position: fixed; inset: 0; z-index: 500;
      display: grid; place-items: center; padding: 24px;
      opacity: 0; pointer-events: none; transition: opacity .22s ease;
    }
    .program-modal.is-open { opacity: 1; pointer-events: auto; }
    .program-modal__backdrop {
      position: absolute; inset: 0; background: rgba(3,6,13,.78);
      backdrop-filter: blur(12px);
    }
    .program-modal__panel {
      position: relative; z-index: 1; width: min(780px, 100%);
      max-height: min(760px, calc(100vh - 48px)); overflow: auto;
      background: linear-gradient(180deg, #121a2c, #080d18);
      border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
      padding: 0 0 clamp(26px, 4vw, 42px);
      box-shadow: 0 30px 100px rgba(0,0,0,.65);
    }
    .program-modal__close {
      position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
      border-radius: 50%; border: 1px solid rgba(255,255,255,.14);
      background: rgba(255,255,255,.06); color: var(--fg); font-size: 24px;
      line-height: 1; cursor: pointer;
    }
    .program-modal__close:hover { border-color: rgba(255,208,0,.55); color: var(--yellow); }
    .program-modal__image {
      height: clamp(210px, 34vw, 330px);
      margin-bottom: clamp(24px, 4vw, 36px);
      position: relative; overflow: hidden;
      background: linear-gradient(135deg, rgba(41,121,255,.24), rgba(255,208,0,.18));
      border-bottom: 1px solid rgba(255,255,255,.1);
    }
    .program-modal__image::after {
      content: ''; position: absolute; inset: 0; z-index: 1;
      background: linear-gradient(to top, rgba(8,13,24,.94), rgba(8,13,24,.14) 52%, rgba(8,13,24,.05));
      pointer-events: none;
    }
    .program-modal__image img {
      position: absolute; inset: 0; width: 100%; height: 100%;
      object-fit: cover; object-position: center 40%;
      filter: saturate(1.06) contrast(1.03);
      animation: modalPhotoIn .7s ease both, portraitDrift 16s ease-in-out .7s infinite alternate;
    }
    .program-modal__eyebrow,
    .program-modal h2,
    .program-modal__lead,
    .program-modal__meta,
    .program-modal__body,
    .program-modal__cta {
      margin-left: clamp(26px, 4vw, 42px);
      margin-right: clamp(26px, 4vw, 42px);
    }
    .program-modal__eyebrow {
      color: var(--yellow); font-size: 11px; font-weight: 800;
      letter-spacing: .2em; text-transform: uppercase; margin-bottom: 10px;
    }
    .program-modal h2 {
      font-family: var(--font-d); font-size: clamp(34px, 5vw, 54px);
      line-height: .95; text-transform: uppercase; margin-bottom: 14px;
    }
    .program-modal__lead {
      color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.7;
      max-width: 620px; margin-bottom: 18px;
    }
    .program-modal__meta {
      display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px;
    }
    .program-modal__meta span {
      display: inline-flex; align-items: center;
      background: rgba(255,208,0,.1); border: 1px solid rgba(255,208,0,.24);
      color: var(--yellow); border-radius: 999px; padding: 7px 11px;
      font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    }
    .program-modal__body {
      display: grid; gap: 16px; color: rgba(255,255,255,.66);
      font-size: 14px; line-height: 1.72;
    }
    .program-modal__body h3 {
      color: var(--fg); font-family: var(--font-d); font-size: 22px;
      line-height: 1; text-transform: uppercase; margin-bottom: 6px;
    }
    .program-modal__body ul { display: grid; gap: 8px; padding-left: 18px; }
    .program-modal__body .price-box {
      background: rgba(255,208,0,.07); border: 1px solid rgba(255,208,0,.22);
      border-radius: 10px; padding: 18px 22px; margin-top: 4px;
    }
    .program-modal__body .price-box h3 { color: var(--yellow); margin-bottom: 8px; }
    .program-modal__body .price-box p { margin: 4px 0 0; color: rgba(255,255,255,.8); }
    .program-modal__body .price-box strong { color: var(--yellow); font-size: 1.15em; }
    .program-modal__body .price-box em { color: var(--muted); font-style: normal; }
    .program-modal__cta {
      margin-top: 24px;
      display: inline-flex; align-items: center; justify-content: center;
      min-height: 46px; padding: 0 24px; border-radius: 7px;
      background: var(--yellow); color: #060911; text-decoration: none;
      font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
      box-shadow: 0 18px 42px rgba(255,208,0,.26);
      transition: transform .18s ease, box-shadow .18s ease;
    }
    .program-modal__cta:hover { transform: translateY(-2px); box-shadow: 0 22px 54px rgba(255,208,0,.34); }
    @keyframes modalPhotoIn {
      from { opacity: 0; transform: scale(1.08); filter: saturate(.8); }
      to { opacity: 1; transform: scale(1); filter: saturate(1.05); }
    }
    @keyframes modalPhotoDrift {
      0% { background-position: center 48%, center 46%, center; }
      100% { background-position: center 52%, center 54%, center; }
    }

    /* ── CATEGORIAS ──────────────────────────────────────────────────── */
    #categorias { padding: var(--v-pad) var(--h-pad); background: var(--surface); }
    .cats-head { margin-bottom: 48px; }
    .cats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 12px; }
    .cat-card {
      background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
      padding: 34px 24px; overflow: hidden; position: relative;
      opacity: 0; transform: translateY(30px);
      transition: opacity .5s, transform .5s, box-shadow .25s, border-color .25s;
    }
    .cat-card.vis { opacity: 1; transform: none; }
    .cat-card.vis:hover { transform: translateY(-5px); box-shadow: 0 18px 48px rgba(0,0,0,.5); border-color: var(--cc-color); }
    .cat-label { font-family: var(--font-d); font-size: 80px; font-weight: 900; line-height: 1; margin-bottom: 8px; color: var(--cc-color); }
    .cat-name  { font-family: var(--font-d); font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
    .cat-ages  { font-size: 12.5px; color: var(--muted); }
    .cat-bar   { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--cc-color); opacity: .5; transform: scaleX(0); transform-origin: left; transition: transform .45s .2s; }
    .cat-card.vis .cat-bar { transform: scaleX(1); }
    .cat-card:nth-child(1){--cc-color:var(--yellow)}.cat-card:nth-child(2){--cc-color:var(--blue)}.cat-card:nth-child(3){--cc-color:var(--cyan)}.cat-card:nth-child(4){--cc-color:var(--red)}

    .reg-note {
      margin-top: 34px; padding: 17px 20px;
      background: rgba(255,208,0,.05); border: 1px solid rgba(255,208,0,.18); border-radius: 10px;
      display: flex; align-items: flex-start; gap: 12px;
      font-size: 13.5px; color: rgba(255,255,255,.65); line-height: 1.65;
    }
    .reg-ico { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,208,0,.14); display: flex; align-items: center; justify-content: center; font-size: 12px; margin-top: 2px; }
    .reg-note strong { color: var(--yellow); }

    /* ── SEDE ────────────────────────────────────────────────────────── */
    #sede { padding: var(--v-pad) var(--h-pad); }
    .sede-head { margin-bottom: 48px; }
    .sede-cols { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; margin-bottom: 68px; }

    .venue-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
    .venue-img  { width: 100%; height: 260px; object-fit: cover; object-position: center 25%; filter: brightness(.7) saturate(1.2); transition: filter .4s, transform .5s; }
    .venue-card:hover .venue-img { filter: brightness(.85) saturate(1.3); transform: scale(1.02); }
    .venue-body { padding: 24px; }
    .venue-name { font-family: var(--font-d); font-size: 33px; font-weight: 900; text-transform: uppercase; color: var(--yellow); margin-bottom: 10px; }
    .venue-desc { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-bottom: 18px; }
    .venue-stat { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,208,0,.08); border: 1px solid rgba(255,208,0,.2); color: var(--yellow); font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: 6px; }

    .map-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
    .map-iframe { width: 100%; flex: 1; min-height: 320px; border: none; display: block; filter: invert(.92) hue-rotate(180deg) saturate(.8); }
    .map-footer { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
    .map-pin { font-size: 16px; flex-shrink: 0; filter: none; }
    .map-footer strong { color: var(--fg); }
    .map-footer a { color: var(--blue); text-decoration: none; font-size: 12px; font-weight: 600; margin-left: auto; white-space: nowrap; }
    .map-footer a:hover { text-decoration: underline; }

    .team-heading { font-family: var(--font-d); font-size: clamp(30px, 4vw, 48px); font-weight: 900; text-transform: uppercase; margin-bottom: 26px; }
    .team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .team-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

    /* Video placeholder with scan animation */
    .team-media {
      width: 100%; height: 180px; background: #0b1020;
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px;
      border-bottom: 1px solid var(--border); position: relative; overflow: hidden;
    }
    @keyframes scan { 0%{top:-10%} 100%{top:110%} }
    .team-media::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(to right, transparent, rgba(255,208,0,.4), transparent); animation: scan 3s linear infinite; }
    .team-play { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,208,0,.12); border: 1.5px solid rgba(255,208,0,.35); display: flex; align-items: center; justify-content: center; color: var(--yellow); font-size: 17px; z-index: 1; }
    .team-media-label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); z-index: 1; }
    .team-media-alt { background: linear-gradient(135deg, #0d1524, #0f1d34); }
    .team-media-alt .check-icon { width: 50px; height: 50px; border-radius: 50%; background: rgba(41,121,255,.12); border: 1.5px solid rgba(41,121,255,.3); display: flex; align-items: center; justify-content: center; z-index: 1; }
    .team-media-photo {
      justify-content: flex-end; align-items: flex-start; padding: 18px;
      background:
        linear-gradient(to top, rgba(6,9,17,.88), rgba(6,9,17,.1)),
        linear-gradient(135deg, rgba(41,121,255,.24), rgba(255,208,0,.12));
      background-size: cover; background-position: center;
    }
    .team-media-photo img {
      position: absolute; inset: 0; width: 100%; height: 100%;
      object-fit: cover; object-position: center 42%;
      filter: saturate(1.06) contrast(1.03);
      opacity: 0; transform: scale(1.08);
      transition: opacity .45s ease;
      animation: portraitDrift 14s ease-in-out infinite alternate;
    }
    .team-media-photo img.is-loaded { opacity: 1; }
    .team-media-photo > *:not(img) { position: relative; z-index: 1; }
    .team-media-photo::before {
      content: ''; position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(6,9,17,.9), rgba(6,9,17,.06) 62%);
      z-index: 1;
    }
    .team-media-photo::after { display: none; }
    .team-media-photo.sebastian-photo {
      background-image:
        linear-gradient(to top, rgba(6,9,17,.88), rgba(6,9,17,.08)),
        url('../img/sebastian-rojas.jpg'),
        linear-gradient(135deg, rgba(41,121,255,.24), rgba(255,208,0,.12));
    }
    @keyframes portraitDrift {
      0% { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
      50% { transform: scale(1.13) translate3d(1.25%, .8%, 0); }
      100% { transform: scale(1.1) translate3d(-.5%, 1.4%, 0); }
    }

    .team-body { padding: 20px; }
    .team-role { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); margin-bottom: 7px; }
    .team-role.blue { color: var(--blue); }
    .team-name { font-family: var(--font-d); font-size: 21px; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
    .team-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
    .member-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
    .member-row:last-child { border-bottom: none; }
    .m-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); border: 1px dashed rgba(255,255,255,.13); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); flex-shrink: 0; }
    .m-name { font-size: 13px; font-weight: 600; }
    .m-role  { font-size: 11px; color: var(--muted); }

    /* ── PATROCINADORES ──────────────────────────────────────────────── */
    #patrocinadores { padding: var(--v-pad) var(--h-pad); background: var(--surface); border-top: 1px solid var(--border); }
    .spon-head { margin-bottom: 44px; }

    .carousel-wrap { overflow: hidden; position: relative; margin-bottom: 68px; padding: 22px 0; }
    .carousel-wrap::before,
    .carousel-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; }
    .carousel-wrap::before { left: 0; background: linear-gradient(to right, var(--surface), transparent); }
    .carousel-wrap::after  { right: 0; background: linear-gradient(to left, var(--surface), transparent); }
    .carousel-track { display: flex; align-items: center; gap: 52px; width: max-content; animation: logoScroll 30s linear infinite; }
    .carousel-track:hover { animation-play-state: paused; }
    @keyframes logoScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

    .spon-item { flex-shrink: 0; height: 54px; display: flex; align-items: center; padding: 0 14px; }
    .spon-item img {
      height: 46px; width: auto; max-width: 150px; object-fit: contain;
      filter: grayscale(1) brightness(.5);
      transition: filter .45s, transform .3s;
    }
    .spon-item img:hover { filter: grayscale(0) brightness(1); transform: scale(1.06); }
    .spon-stub { height: 46px; min-width: 120px; padding: 0 18px; background: var(--surface-2); border: 1px dashed rgba(255,255,255,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); white-space: nowrap; }

    .cta-block {
      background: linear-gradient(135deg, #101826 0%, #0a0f1e 100%);
      border: 1px solid rgba(255,208,0,.2); border-radius: 18px;
      padding: clamp(38px, 6vw, 80px); text-align: center;
      position: relative; overflow: hidden;
    }
    .cta-block::before { content: ''; position: absolute; top:-60%; left:-30%; width:160%; height:160%; background: radial-gradient(circle at center, rgba(255,208,0,.04) 0%, transparent 55%); pointer-events: none; }
    .cta-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
    .cta-h   { font-family: var(--font-d); font-size: clamp(40px, 6vw, 70px); font-weight: 900; text-transform: uppercase; margin-bottom: 14px; }
    .cta-sub { font-size: 16px; color: var(--muted); margin-bottom: 34px; max-width: 460px; margin-left: auto; margin-right: auto; }
    .btn-prim { display: inline-flex; align-items: center; gap: 9px; background: var(--yellow); color: #060911; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 16px 32px; border-radius: 6px; text-decoration: none; border: none; cursor: pointer; transition: transform .2s, box-shadow .2s; }
    .btn-prim:hover { transform: translateY(-3px); box-shadow: 0 18px 52px rgba(255,208,0,.32); }

    /* ── FOOTER ──────────────────────────────────────────────────────── */
    footer { padding: 34px var(--h-pad); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
    .ft-logo img { height: 32px; width: auto; filter: brightness(0) invert(1); opacity: .4; }
    .ft-copy { font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.7; }
    .ft-flag { display: flex; gap: 4px; }
    .ft-flag span { width: 18px; height: 12px; border-radius: 2px; }
    .ft-volta { text-align: center; padding: 12px var(--h-pad) 18px; font-size: 11px; color: rgba(255,255,255,.28); line-height: 1.8; border-top: 1px solid rgba(255,255,255,.04); }
    .ft-volta a { color: rgba(255,255,255,.45); text-decoration: none; font-weight: 600; }
    .ft-volta a:hover { color: rgba(255,255,255,.75); }
    .ft-volta span { display: block; opacity: .6; }

    /* ── COPA COLOMBIA HERO LOGO ─────────────────────────────────────── */
    .hero-copa-logo {
      position: absolute;
      top: 50%;
      right: clamp(48px, 7vw, 132px);
      transform: translateY(-50%);
      z-index: 4;
      pointer-events: none;
    }
    .hero-copa-logo img {
      height: clamp(130px, 17vw, 225px); width: auto; object-fit: contain;
      filter: drop-shadow(0 6px 26px rgba(0,0,0,.62));
      transition: opacity .35s;
    }

    /* ── RESPONSIVE ──────────────────────────────────────────────────── */
    @media (max-width: 960px) {
      #nav { align-items: flex-start; }
      .nav-main img { height: 58px; }
      .nav-divider { height: 40px; }
      .nav-allies { flex-wrap: wrap; max-width: 360px; }
      .nav-allies img { height: 30px; }
      #hero { padding-top: 132px; }
      .hero-content { max-width: 560px; }
      .hero-copa-logo { top: auto; right: var(--h-pad); bottom: 66px; transform: none; opacity: .2; }
      .hero-copa-logo img { height: 130px; }
      .campus-intro { grid-template-columns: 1fr; }
      .director-card { grid-template-columns: 1fr; }
      .director-portrait { min-height: 190px; }
      .director-stats,
      .director-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .sede-cols { grid-template-columns: 1fr; }
      .team-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 720px) {
      #nav { padding-top: 8px; padding-bottom: 8px; }
      #nav .nav-links { display: none; }
      .nav-left { gap: 12px; width: 100%; }
      .nav-main img { height: 48px; }
      .nav-divider { height: 34px; }
      .nav-allies img { height: 19px; }
      .nav-allies { gap: 9px; }
      #hero { min-height: 92vh; padding-top: 116px; padding-bottom: 78px; }
      .hero-video-wrap video { object-position: 50% center !important; }
      .hero-video-wrap::after {
        background:
          linear-gradient(to bottom, rgba(6,9,17,.50) 0%, rgba(6,9,17,.30) 45%, rgba(6,9,17,.94) 100%),
          linear-gradient(to right, rgba(6,9,17,.42), rgba(6,9,17,.08));
      }
      .hero-copa-logo { display: none; }
      .badge { letter-spacing: .14em; }
      .hero-festival { font-size: clamp(48px, 15vw, 76px); }
      .hero-actions { align-items: stretch; }
      .hero-cta { justify-content: center; width: 100%; padding: 14px 18px; }
      .scroll-hint { display: none; }
      .director-stats,
      .director-timeline { grid-template-columns: 1fr; }
      .gantt-wrap { padding: 18px; margin-left: calc(var(--h-pad) * -1); margin-right: calc(var(--h-pad) * -1); border-left: 0; border-right: 0; border-radius: 0; }
      .gantt-title-row,
      .gantt-grid,
      .gantt-legend { min-width: 1120px; }
      .program-modal { padding: 14px; align-items: end; }
      .program-modal__panel { max-height: calc(100vh - 28px); border-radius: 14px 14px 0 0; }
    }
    @media (max-width: 480px) {
      :root { --h-pad: 18px; --v-pad: 54px; }
      .hero-meta { gap: 18px; }
      .hero-meta > div { min-width: 120px; }
      .hm-val { font-size: 23px; }
      .ejes-grid { grid-template-columns: 1fr; }
      .eje-title { white-space: normal; }
      .cats-grid { grid-template-columns: 1fr 1fr; }
      .cat-card { padding: 26px 18px; }
      .cat-label { font-size: 58px; }
      .carousel-wrap::before,
      .carousel-wrap::after { width: 34px; }
      footer { justify-content: center; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
      .carousel-track { animation: none; }
    }
