    :root {
      --azul:        rgba(13, 110, 253, 0.92);
      --azul-solid:  #0d6efd;
      --azul-deep:   #0a56c8;
      --oscuro:      rgb(40, 40, 40);
      --blanco:      #ffffff;
      --gris-claro:  #f4f6fb;
      --gris-borde:  #e2e8f0;
      --texto-suave: #6b7a99;
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'DM Sans', sans-serif;
      color: var(--oscuro);
      background: var(--blanco);
      overflow-x: hidden;
    }

    h1, h2, h3, h4, .font-serif {
      font-family: 'Playfair Display', serif;
    }

    /* ─── NAVBAR ─────────────────────────────────── */
    .navbar {
      background: rgba(255,255,255,0.96) !important;
      backdrop-filter: blur(12px);
      box-shadow: 0 2px 20px rgba(13,110,253,0.08);
      padding: 0.9rem 0;
      transition: box-shadow .3s;
    }
    .navbar-brand {
      font-family: 'Playfair Display', serif;
      font-weight: 900;
      font-size: 1.45rem;
      color: var(--oscuro) !important;
      letter-spacing: -0.5px;
      text-decoration: none;
    }
    .nav-link {
      font-weight: 500;
      font-size: .88rem;
      letter-spacing: .3px;
      color: var(--oscuro) !important;
      padding: .4rem .85rem !important;
      border-radius: 6px;
      transition: background .2s, color .2s;
    }
    .nav-link:hover { background: rgba(13,110,253,0.07); color: var(--azul-solid) !important; }
    .nav-cta {
      background: var(--azul-solid);
      color: #fff !important;
      border-radius: 8px;
      padding: .4rem 1.1rem !important;
    }
    .nav-cta:hover { background: var(--azul-deep) !important; color: #fff !important; }

    /* ─── HERO ───────────────────────────────────── */
    .hero {
      min-height: 100vh;
      background:
        linear-gradient(135deg, rgba(13,110,253,0.82) 0%, rgba(10,70,180,0.88) 100%),
        url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=1600&q=80') center/cover no-repeat;
      display: flex;
      align-items: center;
      position: relative;
      overflow: hidden;
    }
    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.06) 0%, transparent 70%);
    }
    /* decorative circles */
    .hero-deco {
      position: absolute;
      border-radius: 50%;
      background: rgba(255,255,255,0.06);
      pointer-events: none;
    }
    .hero-deco-1 { width: 420px; height: 420px; top: -120px; right: -100px; }
    .hero-deco-2 { width: 240px; height: 240px; bottom: 60px; right: 180px; background: rgba(255,255,255,0.04); }
    .hero-deco-3 { width: 80px; height: 80px; top: 30%; left: 48%; }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: .45rem;
      background: rgba(255,255,255,0.15);
      border: 1px solid rgba(255,255,255,0.25);
      color: #fff;
      font-size: .78rem;
      font-weight: 600;
      letter-spacing: 1.4px;
      text-transform: uppercase;
      padding: .35rem .9rem;
      border-radius: 100px;
      margin-bottom: 1.4rem;
      backdrop-filter: blur(6px);
    }
    .hero h1 {
      font-size: clamp(2.4rem, 5vw, 3.8rem);
      font-weight: 900;
      color: #fff;
      line-height: 1.13;
      margin-bottom: 1.3rem;
    }
    .hero h1 em {
      font-style: normal;
      position: relative;
      display: inline-block;
    }
    .hero h1 em::after {
      content: '';
      position: absolute;
      bottom: 4px; left: 0;
      width: 100%; height: 3px;
      background: rgba(255,255,255,0.55);
      border-radius: 2px;
    }
    .hero p {
      color: rgba(255,255,255,0.85);
      font-size: 1.08rem;
      max-width: 520px;
      line-height: 1.75;
      margin-bottom: 2rem;
    }
    .hero-btn-primary {
      background: #fff;
      color: var(--azul-solid);
      font-weight: 700;
      font-size: .95rem;
      border: none;
      border-radius: 10px;
      padding: .8rem 2rem;
      box-shadow: 0 8px 24px rgba(0,0,0,0.15);
      transition: transform .2s, box-shadow .2s;
    }
    .hero-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,0.2); color: var(--azul-deep); }
    .hero-btn-secondary {
      background: rgba(255,255,255,0.12);
      color: #fff;
      font-weight: 600;
      font-size: .95rem;
      border: 1.5px solid rgba(255,255,255,0.35);
      border-radius: 10px;
      padding: .8rem 2rem;
      backdrop-filter: blur(6px);
      transition: background .2s;
    }
    .hero-btn-secondary:hover { background: rgba(255,255,255,0.22); color: #fff; }

    .hero-stats {
      margin-top: 3.5rem;
      display: flex;
      gap: 2.5rem;
      flex-wrap: wrap;
    }
    .hero-stat-num {
      font-family: 'Playfair Display', serif;
      font-size: 2rem;
      font-weight: 900;
      color: #fff;
      line-height: 1;
    }
    .hero-stat-label {
      font-size: .78rem;
      color: rgba(255,255,255,0.7);
      letter-spacing: .5px;
      margin-top: .2rem;
    }

    /* ─── SECTION COMMON ─────────────────────────── */
    .section-title {
      font-size: clamp(1.7rem, 3vw, 2.4rem);
      font-weight: 900;
      line-height: 1.2;
      color: var(--oscuro);
    }
    .section-eyebrow {
      font-size: .75rem;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--azul-solid);
      margin-bottom: .6rem;
      display: block;
    }
    .divider-blue {
      width: 48px; height: 4px;
      background: var(--azul-solid);
      border-radius: 2px;
      margin: 1rem 0 1.5rem;
    }

    /* ─── CARRERAS ───────────────────────────────── */
    #carreras { background: var(--gris-claro); }

    .carrera-card {
      background: #fff;
      border-radius: 16px;
      border: 1px solid var(--gris-borde);
      padding: 1.8rem 1.6rem;
      height: 100%;
      transition: transform .25s, box-shadow .25s, border-color .25s;
      position: relative;
      overflow: hidden;
    }
    .carrera-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 4px;
      background: var(--azul-solid);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform .3s ease;
    }
    .carrera-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(13,110,253,0.12); border-color: rgba(13,110,253,0.2); }
    .carrera-card:hover::before { transform: scaleX(1); }

    .carrera-icon {
      width: 52px; height: 52px;
      border-radius: 14px;
      background: rgba(13,110,253,0.09);
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 1.1rem;
      font-size: 1.5rem;
      color: var(--azul-solid);
    }
    .carrera-tipo {
      font-size: .7rem;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--azul-solid);
      margin-bottom: .35rem;
    }
    .carrera-card h5 {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--oscuro);
      line-height: 1.35;
      margin-bottom: .7rem;
    }
    .carrera-card p {
      font-size: .86rem;
      color: var(--texto-suave);
      line-height: 1.65;
      margin-bottom: 1.1rem;
    }
    .carrera-tag {
      display: inline-block;
      font-size: .72rem;
      font-weight: 600;
      background: rgba(13,110,253,0.08);
      color: var(--azul-solid);
      border-radius: 6px;
      padding: .2rem .6rem;
      margin-right: .3rem;
      margin-bottom: .3rem;
    }

    /* ─── FEATURES / POR QUÉ ELEGIRNOS ──────────── */
    .feature-item {
      display: flex;
      gap: 1.1rem;
      align-items: flex-start;
      margin-bottom: 2rem;
    }
    .feature-icon {
      flex-shrink: 0;
      width: 46px; height: 46px;
      border-radius: 12px;
      background: var(--azul-solid);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.15rem;
      color: #fff;
      box-shadow: 0 6px 18px rgba(13,110,253,0.3);
    }
    .feature-item h6 {
      font-size: .95rem;
      font-weight: 700;
      margin-bottom: .3rem;
      color: var(--oscuro);
    }
    .feature-item p {
      font-size: .84rem;
      color: var(--texto-suave);
      line-height: 1.6;
      margin: 0;
    }

    /* image mosaic */
    .mosaic-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto auto;
      gap: 12px;
      border-radius: 20px;
      overflow: hidden;
    }
    .mosaic-grid img {
      width: 100%; height: 200px;
      object-fit: cover;
      display: block;
      transition: transform .4s;
    }
    .mosaic-grid img:first-child {
      grid-column: 1 / -1;
      height: 260px;
    }
    .mosaic-grid:hover img { transform: scale(1.03); }

    /* ─── EVENTOS ────────────────────────────────── */
    #eventos { background: var(--oscuro); }
    #eventos .section-title { color: #fff; }
    #eventos .section-eyebrow { color: #7db3ff; }

    .evento-card {
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 16px;
      overflow: hidden;
      transition: transform .25s, border-color .25s;
    }
    .evento-card:hover { transform: translateY(-4px); border-color: rgba(13,110,253,0.5); }
    .evento-card img {
      width: 100%; height: 200px;
      object-fit: cover;
      display: block;
    }
    .evento-card-body { padding: 1.3rem 1.4rem; }
    .evento-fecha {
      font-size: .73rem;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: #7db3ff;
      margin-bottom: .4rem;
    }
    .evento-card h6 {
      font-size: 1rem;
      font-weight: 700;
      color: #fff;
      line-height: 1.35;
      margin-bottom: .5rem;
    }
    .evento-card p {
      font-size: .83rem;
      color: rgba(255,255,255,0.6);
      line-height: 1.6;
      margin: 0;
    }

    /* ─── EVENTO DESTACADO (spotlight) ───────────── */
    .evento-spotlight {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 22px;
      overflow: hidden;
      margin-bottom: 3.5rem;
    }
    .evento-spotlight-badge {
      display: inline-flex;
      align-items: center;
      gap: .4rem;
      background: rgba(125,179,255,0.12);
      border: 1px solid rgba(125,179,255,0.3);
      color: #7db3ff;
      font-size: .72rem;
      font-weight: 700;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      padding: .35rem .8rem;
      border-radius: 100px;
      margin-bottom: 1rem;
    }
    .evento-spotlight h3 {
      color: #fff;
      font-size: clamp(1.5rem, 2.6vw, 2rem);
      font-weight: 900;
      line-height: 1.25;
      margin-bottom: 1.1rem;
    }
    .evento-spotlight p.desc {
      color: rgba(255,255,255,0.72);
      font-size: .95rem;
      line-height: 1.8;
      margin-bottom: 1rem;
    }
    .evento-spotlight-meta {
      display: flex;
      flex-wrap: wrap;
      gap: .6rem;
      margin-bottom: 1.6rem;
    }
    .evento-spotlight-meta span {
      font-size: .75rem;
      font-weight: 600;
      color: rgba(255,255,255,0.8);
      background: rgba(255,255,255,0.07);
      border-radius: 7px;
      padding: .3rem .65rem;
      display: inline-flex;
      align-items: center;
      gap: .35rem;
    }
    .evento-spotlight-cover {
      position: relative;
      height: 100%;
      min-height: 320px;
      cursor: pointer;
      overflow: hidden;
    }
    .evento-spotlight-cover img {
      width: 120%; height: 100%;
      object-fit: cover;
      display: block;
      transition: transform .5s;
    }
    .evento-spotlight-cover:hover img { transform: scale(1.06); }
    .evento-spotlight-cover::after {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, transparent 45%);
    }
    .evento-spotlight-play {
      position: absolute;
      bottom: 1.2rem; left: 1.2rem;
      z-index: 2;
      display: flex;
      align-items: center;
      gap: .6rem;
      color: #fff;
      font-weight: 700;
      font-size: .85rem;
    }
    .evento-spotlight-play .play-circle {
      width: 46px; height: 46px;
      border-radius: 50%;
      background: rgba(255,255,255,0.18);
      border: 1.5px solid rgba(255,255,255,0.5);
      backdrop-filter: blur(4px);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.1rem;
      transition: background .2s, transform .2s;
    }
    .evento-spotlight-cover:hover .play-circle { background: var(--azul-solid); transform: scale(1.08); }

    .btn-galeria {
      background: var(--azul-solid);
      color: #fff;
      font-weight: 700;
      font-size: .88rem;
      border: none;
      border-radius: 9px;
      padding: .75rem 1.5rem;
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      transition: background .2s, transform .2s;
    }
    .btn-galeria:hover { background: var(--azul-deep); color: #fff; transform: translateY(-1px); }

    /* ─── TIRA DE FOTOS (preview grid) ───────────── */
    .foto-preview-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 10px;
    }
    .foto-preview-item {
      position: relative;
      border-radius: 10px;
      overflow: hidden;
      cursor: pointer;
      aspect-ratio: 1 / 1;
    }
    .foto-preview-item img, .foto-preview-item video {
      width: 100%; height: 100%;
      object-fit: cover;
      display: block;
      transition: transform .35s, filter .35s;
      filter: saturate(0.92);
    }
    .foto-preview-item:hover img, .foto-preview-item:hover video { transform: scale(1.08); filter: saturate(1.1); }
    .foto-preview-item .video-tag {
      position: absolute; top: 8px; right: 8px;
      width: 26px; height: 26px;
      border-radius: 50%;
      background: rgba(13,110,253,0.85);
      color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-size: .68rem;
      z-index: 2;
    }
    .foto-preview-item.foto-mas::after {
      content: attr(data-restantes);
      position: absolute; inset: 0;
      background: rgba(10,20,40,0.72);
      color: #fff;
      font-family: 'Playfair Display', serif;
      font-weight: 900;
      font-size: 1.3rem;
      display: flex; align-items: center; justify-content: center;
      text-align: center;
    }

    /* ─── LIGHTBOX (visor de galería tipo archivo) ── */
    .lightbox-modal .modal-content {
      background: #0e0e0e;
      border: none;
      border-radius: 18px;
      overflow: hidden;
    }
    .lightbox-modal .modal-header {
      border: none;
      padding: 1rem 1.3rem .5rem;
    }
    .lightbox-modal .modal-title {
      font-family: 'Playfair Display', serif;
      font-weight: 700;
      color: #fff;
      font-size: 1.05rem;
    }
    .lightbox-modal .btn-close { filter: invert(1); opacity: .8; }
    .lightbox-stage {
      position: relative;
      background: #000;
      min-height: 46vh;
      max-height: 62vh;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .lightbox-stage img, .lightbox-stage video {
      max-width: 100%; max-height: 62vh;
      object-fit: contain;
      display: block;
    }
    .lightbox-nav {
      position: absolute;
      top: 50%; transform: translateY(-50%);
      width: 42px; height: 42px;
      border-radius: 50%;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.25);
      color: #fff;
      display: flex; align-items: center; justify-content: center;
      transition: background .2s;
      z-index: 3;
    }
    .lightbox-nav:hover { background: var(--azul-solid); }
    .lightbox-nav.prev { left: 16px; }
    .lightbox-nav.next { right: 16px; }
    .lightbox-counter {
      position: absolute;
      top: 14px; right: 18px;
      color: rgba(255,255,255,0.65);
      font-size: .78rem;
      font-weight: 600;
      letter-spacing: .5px;
      z-index: 3;
    }
    /* filmstrip: guiño al archivo histórico / carrete de película */
    .lightbox-filmstrip-wrap {
      background: #141414;
      padding: .7rem 0;
      border-top: 1px dashed rgba(255,255,255,0.12);
      border-bottom: 1px dashed rgba(255,255,255,0.12);
      position: relative;
    }
    .lightbox-filmstrip-wrap::before, .lightbox-filmstrip-wrap::after {
      content: '';
      position: absolute; left: 0; right: 0; height: 8px;
      background-image: radial-gradient(circle, #0e0e0e 3px, transparent 3px);
      background-size: 16px 8px;
      background-repeat: repeat-x;
    }
    .lightbox-filmstrip-wrap::before { top: -4px; }
    .lightbox-filmstrip-wrap::after { bottom: -4px; }
    .lightbox-filmstrip {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding: 0 1.2rem;
      scrollbar-width: thin;
    }
    .lightbox-filmstrip::-webkit-scrollbar { height: 5px; }
    .lightbox-filmstrip::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }
    .lightbox-thumb {
      flex: 0 0 auto;
      width: 64px; height: 64px;
      border-radius: 7px;
      overflow: hidden;
      cursor: pointer;
      opacity: .5;
      border: 2px solid transparent;
      transition: opacity .2s, border-color .2s;
      position: relative;
    }
    .lightbox-thumb img, .lightbox-thumb video { width: 100%; height: 100%; object-fit: cover; }
    .lightbox-thumb.active { opacity: 1; border-color: var(--azul-solid); }
    .lightbox-thumb:hover { opacity: .85; }
    .lightbox-thumb .vt { position: absolute; bottom: 2px; right: 2px; color: #fff; font-size: .6rem; background: rgba(0,0,0,0.6); border-radius: 3px; padding: 0 3px; }

    /* ─── EMBED INSTAGRAM ─────────────────────────── */
    .ig-embed-card {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 18px;
      padding: 1.2rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: .8rem;
    }
    .ig-embed-card .ig-label {
      display: flex; align-items: center; gap: .5rem;
      color: rgba(255,255,255,0.7);
      font-size: .78rem;
      font-weight: 600;
      letter-spacing: .5px;
      text-transform: uppercase;
    }

    @media (max-width: 767px) {
      .foto-preview-grid { grid-template-columns: repeat(3, 1fr); }
      .lightbox-nav { width: 36px; height: 36px; }
    }

    /* ─── INSCRIPCION CTA ────────────────────────── */
    .cta-section {
      background: linear-gradient(135deg, var(--azul-solid) 0%, var(--azul-deep) 100%);
      position: relative;
      overflow: hidden;
    }
    .cta-section::before {
      content: '';
      position: absolute;
      width: 500px; height: 500px;
      border-radius: 50%;
      background: rgba(255,255,255,0.05);
      top: -200px; right: -100px;
    }
    .cta-section h2 { color: #fff; }
    .cta-section p { color: rgba(255,255,255,0.8); }
    .cta-form-card {
      background: #fff;
      border-radius: 18px;
      padding: 2rem;
      box-shadow: 0 24px 60px rgba(0,0,0,0.2);
    }
    .cta-form-card h5 {
      font-weight: 700;
      color: var(--oscuro);
      margin-bottom: 1.2rem;
    }
    .form-control, .form-select {
      border: 1.5px solid var(--gris-borde);
      border-radius: 9px;
      font-size: .9rem;
      padding: .65rem .9rem;
      color: var(--oscuro);
    }
    .form-control:focus, .form-select:focus {
      border-color: var(--azul-solid);
      box-shadow: 0 0 0 3px rgba(13,110,253,0.12);
    }
    .btn-inscribir {
      background: var(--azul-solid);
      color: #fff;
      font-weight: 700;
      border: none;
      border-radius: 9px;
      padding: .75rem;
      width: 100%;
      font-size: .95rem;
      transition: background .2s, transform .2s;
    }
    .btn-inscribir:hover { background: var(--azul-deep); transform: translateY(-1px); color: #fff; }

    /* ─── MAPA ───────────────────────────────────── */
    #contacto { background: var(--gris-claro); }
    .map-wrapper {
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 12px 40px rgba(0,0,0,0.1);
      border: 1px solid var(--gris-borde);
    }
    .contact-info-card {
      background: #fff;
      border-radius: 16px;
      border: 1px solid var(--gris-borde);
      padding: 1.5rem 1.6rem;
      margin-bottom: 1rem;
      display: flex;
      gap: 1rem;
      align-items: flex-start;
    }
    .contact-info-card .ci-icon {
      width: 42px; height: 42px;
      border-radius: 11px;
      background: rgba(13,110,253,0.09);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.15rem;
      color: var(--azul-solid);
      flex-shrink: 0;
    }
    .contact-info-card h6 {
      font-size: .8rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .8px;
      color: var(--texto-suave);
      margin-bottom: .2rem;
    }
    .contact-info-card p { font-size: .92rem; color: var(--oscuro); margin: 0; font-weight: 500; }

    /* Social pills */
    .social-pill {
      display: inline-flex;
      align-items: center;
      gap: .45rem;
      background: #fff;
      border: 1.5px solid var(--gris-borde);
      border-radius: 100px;
      padding: .45rem 1rem;
      font-size: .85rem;
      font-weight: 600;
      color: var(--oscuro);
      text-decoration: none;
      margin-right: .5rem;
      margin-bottom: .5rem;
      transition: border-color .2s, color .2s, background .2s;
    }
    .social-pill:hover { border-color: var(--azul-solid); color: var(--azul-solid); background: rgba(13,110,253,0.04); }

    /* ─── FOOTER ─────────────────────────────────── */
    footer {
      background: rgb(28,28,28);
      color: rgba(255,255,255,0.7);
      padding: 3rem 0 1.5rem;
    }
    footer .brand { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.3rem; color: #fff; }
    footer .brand span { color: var(--azul-solid); }
    footer h6 { color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1rem; }
    footer a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: .88rem; display: block; margin-bottom: .5rem; transition: color .2s; }
    footer a:hover { color: var(--azul-solid); }
    footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .8rem; }

    /* ─── ANIMATIONS ─────────────────────────────── */
    .fade-up {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity .6s ease, transform .6s ease;
    }
    .fade-up.visible { opacity: 1; transform: translateY(0); }

    /* ─── RESPONSIVE ─────────────────────────────── */
    @media (max-width: 767px) {
      .hero-stats { gap: 1.5rem; }
      .mosaic-grid img:first-child { height: 180px; }
      .mosaic-grid img { height: 140px; }
    }
