/* CRIXMA LIDERES — Presentación privada, interfaz clara. Rutas absolutas /lideres/assets/. */
:root {
      color-scheme: light;
      --ink: #141936;
      --muted: #67718c;
      --violet: #6c43ed;
      --cyan: #169cce;
      --purple-glow: rgba(110,70,245,.16);
      --line: rgba(77,88,137,.15);
      --ease: cubic-bezier(.16,1,.3,1);
    }
    *,*::before,*::after { box-sizing:border-box; }
    html { min-height:100%; background:#f8faff; scroll-behavior:smooth; }
    body {
      margin:0; min-width:320px; min-height:100vh; min-height:100svh;
      color:var(--ink); font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
      -webkit-font-smoothing:antialiased; overflow-x:hidden; position:relative;
      background:radial-gradient(ellipse 55% 48% at 8% 35%,rgba(174,157,255,.14),transparent 80%),
                 radial-gradient(ellipse 49% 45% at 100% 76%,rgba(96,210,246,.12),transparent 79%),
                 linear-gradient(132deg,#fff 0%,#f8f9ff 48%,#f0f5ff 100%);
    }
    a { color:inherit; text-decoration:none; -webkit-tap-highlight-color:transparent; }
    button,input { font:inherit; }
    button { cursor:pointer; -webkit-tap-highlight-color:transparent; }
    :focus-visible { outline:3px solid #7563e8; outline-offset:4px; }
    ::selection { background:#dcd3ff; color:#1a1441; }
    .mesh {
      position:fixed; inset:0; pointer-events:none; z-index:0;
      background-image:linear-gradient(rgba(101,113,170,.043) 1px,transparent 1px),
                       linear-gradient(90deg,rgba(101,113,170,.043) 1px,transparent 1px);
      background-size:68px 68px;
      mask-image:radial-gradient(ellipse at center,#000 12%,transparent 93%);
    }
    .orb { position:fixed; border-radius:50%; pointer-events:none; z-index:0; filter:blur(38px); }
    .orb-one { width:min(37vw,570px); height:min(37vw,570px); top:-20%; left:-14%; background:radial-gradient(circle,rgba(150,129,244,.15),transparent 72%); }
    .orb-two { width:min(42vw,630px); height:min(42vw,630px); right:-19%; bottom:-29%; background:radial-gradient(circle,rgba(62,191,237,.14),transparent 73%); }
    .page { position:relative; z-index:1; max-width:1560px; padding:0 clamp(22px,5.1vw,88px); margin:auto; min-height:100vh; min-height:100svh; display:flex; flex-direction:column; }
    .status-pulse,.live-dot { display:inline-block; width:7px; height:7px; background:#48b9ca; border-radius:50%; box-shadow:0 0 0 4px rgba(72,185,202,.12); animation:pulse 3s ease-in-out infinite; }
    .main { width:100%; flex:1; display:flex; align-items:center; justify-content:center; }
    .login-layout { width:100%; max-width:1290px; display:grid; grid-template-columns:minmax(0,1.08fr) minmax(340px,.78fr); align-items:center; gap:clamp(40px,7vw,120px); padding:clamp(58px,9vh,135px) 0; }
    .intro { min-width:0; position:relative; isolation:isolate; }
    .section-tag { display:inline-flex; align-items:center; gap:11px; color:#6e639d; font-size:11px; letter-spacing:.175em; font-weight:760; text-transform:uppercase; }
    .tiny-line { width:26px; height:1px; display:inline-block; background:linear-gradient(90deg,#6b45f2,#27c8e4); }
    .logo-wrap { position:relative; margin:36px 0 26px; width:min(100%,440px); }
    .app-logo { max-width:100%; width:100%; max-height:185px; display:block; object-fit:contain; object-position:left center; filter:drop-shadow(0 8px 20px rgba(94,55,203,.075)); }
    .logo-fallback { display:none; color:#342a70; font-size:clamp(29px,4vw,47px); font-weight:900; letter-spacing:-.055em; }
    .logo-fallback b { color:#6746db; }
    .intro h1 { margin:0; font-weight:780; font-size:clamp(43px,5.8vw,76px); letter-spacing:-.062em; line-height:1.065; max-width:720px; text-wrap:balance; }
    .gradient-text { color:#7549eb; background:linear-gradient(94deg,#7551ef 6%,#9869ef 44%,#21a4d6 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
    .intro-description { max-width:650px; margin:27px 0 0; color:#596580; font-size:clamp(15px,1.38vw,18px); line-height:1.85; font-weight:440; text-wrap:pretty; }
    .intro-footer { display:flex; align-items:center; gap:12px; margin-top:49px; color:#8a93ad; font-size:10px; font-weight:750; letter-spacing:.15em; }
    .intro-footer .diamond { color:#865af2; font-size:20px; }
    .intro-footer span:last-child { display:inline-flex; align-items:center; gap:12px; flex-wrap:wrap; }
    .intro-footer i { width:3px; height:3px; border-radius:50%; background:#8f97b5; display:inline-block; }
    .accent-rings { z-index:-1; position:absolute; left:-140px; bottom:-100px; width:290px; height:290px; pointer-events:none; opacity:.35; }
    .accent-rings div { border-radius:50%; border:1px solid rgba(103,81,211,.18); position:absolute; inset:var(--inset,0); }
    .accent-rings div:nth-child(2) { --inset:40px; }
    .accent-rings div:nth-child(3) { --inset:80px; }
    .access-card { position:relative; width:100%; border-radius:27px; overflow:hidden; padding:clamp(26px,3vw,48px);
      background:radial-gradient(ellipse 90% 50% at 102% 0%,rgba(133,117,240,.075),transparent 65%),#fff;
      border:1px solid #e2e5f2; box-shadow:0 28px 90px rgba(55,59,104,.10),0 6px 16px rgba(76,81,128,.04);
    }
    .access-card::before { content:""; position:absolute; inset:0 0 auto; height:2px; background:linear-gradient(90deg,transparent,#8163fa,#29bae4,transparent); opacity:.88; }
    .card-topline { display:flex; justify-content:space-between; gap:12px; color:#8c93ad; font-size:10px; font-weight:750; letter-spacing:.115em; text-transform:uppercase; }
    .lock-mark { width:57px; height:57px; border:1px solid #e0dbff; border-radius:17px; margin-top:44px; color:#6946df; display:grid; place-items:center; background:linear-gradient(135deg,#f3efff,#f8fbff); }
    .lock-mark svg { width:29px; height:29px; }
    .card-kicker { color:#7765b5; text-transform:uppercase; font-size:10px; letter-spacing:.18em; font-weight:800; margin:24px 0 12px; }
    .access-card h2 { color:#1c2140; font-size:clamp(31px,3.1vw,44px); line-height:1.1; margin:0; font-weight:770; letter-spacing:-.048em; }
    .period { color:#7d56eb; }
    .card-description { color:#67718a; line-height:1.75; font-size:14px; margin:16px 0 27px; }
    .access-form { display:flex; flex-direction:column; gap:12px; }
    .access-form label { color:#536080; letter-spacing:.125em; font-size:10px; font-weight:800; }
    .input-shell { height:56px; border:1px solid #dbe0ef; border-radius:11px; display:flex; align-items:center; background:#f9faff; transition:border-color .2s,box-shadow .2s; }
    .input-shell:focus-within { border-color:#8870e8; box-shadow:0 0 0 4px rgba(124,91,237,.12); }
    .input-shell input { width:100%; min-width:0; height:100%; padding:0 0 0 17px; outline:none; border:none; background:transparent; color:#16203c; font-size:14px; }
    .input-shell input::placeholder { color:#9aa3b8; }
    .toggle-btn { flex:none; display:grid; place-items:center; background:transparent; border:0; height:53px; width:51px; color:#7e88a0; }
    .toggle-btn:hover { color:#6043dc; }
    .toggle-btn svg { width:21px; height:21px; }
    .submit-btn { margin-top:7px; min-height:57px; padding:14px 20px; display:flex; align-items:center; justify-content:space-between; gap:10px; border:0; border-radius:11px; color:#fff!important; font-size:13px; font-weight:760; letter-spacing:.005em; background:linear-gradient(110deg,#6042db 0%,#7752e9 58%,#5a3ce0 100%); box-shadow:0 12px 26px rgba(91,62,219,.22); transition:transform .3s var(--ease),box-shadow .3s; }
    .submit-btn * { color:#fff!important; }
    .submit-btn:hover { transform:translateY(-2px); box-shadow:0 16px 32px rgba(91,62,219,.28); }
    .button-arrow { font-size:19px; }
    .alert { padding:13px 15px; margin:0 0 16px; color:#992f3b; border-radius:9px; background:#fff1f2; border:1px solid #ffd5da; font-size:13px; line-height:1.55; }
    .card-bottom { margin-top:28px; padding-top:22px; border-top:1px solid #e8eaf2; display:flex; align-items:center; gap:9px; color:#929ab1; font-size:11px; }
    .card-bottom svg { width:17px; height:17px; color:#8d7cca; flex:none; }
    .footer { min-height:92px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px 20px; padding:23px 0; border-top:1px solid var(--line); font-size:10px; font-weight:740; letter-spacing:.13em; color:#8b93aa; }
    .footer a { color:#5c6281; transition:color .2s; }
    .footer a:hover { color:#7548e6; }
    .footer-dot { color:#8f66e8; }
    /* Vista de la presentación tras introducir correctamente la contraseña. */
    .video-section { width:100%; max-width:1150px; padding:clamp(40px,6vw,86px) 0; }
    .video-top { display:flex; justify-content:space-between; align-items:flex-start; gap:26px; margin-bottom:30px; }
    .video-heading { min-width:0; }
    .video-heading-logo { margin:23px 0 19px; width:min(100%,330px); }
    .video-heading-logo img { display:block; width:100%; max-height:120px; object-fit:contain; object-position:left; }
    .video-heading h1 { margin:0; font-size:clamp(31px,4.2vw,54px); line-height:1.12; letter-spacing:-.05em; font-weight:770; max-width:820px; }
    .logout-form { flex:none; }
    .logout-btn { color:#536080; border:1px solid #dce1ef; background:#fff; padding:13px 17px; border-radius:10px; font-size:12px; font-weight:740; transition:background .2s,border-color .2s; }
    .logout-btn:hover { background:#f1edff; border-color:#b8a4ef; }
    .player-outer { overflow:hidden; background:#fff; border:1px solid #e0e5f2; border-radius:19px; box-shadow:0 22px 73px rgba(54,60,113,.095); }
    .player-topbar { display:flex; align-items:center; justify-content:space-between; gap:15px; min-height:51px; padding:12px clamp(16px,3vw,26px); background:#f7f8fe; color:#7e88a1; font-size:10px; font-weight:780; letter-spacing:.12em; }
    .player-topbar span:first-child { color:#635d9b; display:inline-flex; align-items:center; gap:9px; }
    .player-topbar i { width:8px; height:8px; border-radius:50%; display:inline-block; background:#7e5df1; box-shadow:0 0 0 4px rgba(126,93,241,.1); }
    .sound-tip { display:flex; align-items:center; gap:9px; margin:0; padding:12px clamp(16px,3vw,26px); color:#6c728a; background:#fbfaff; border-top:1px solid #e9eaf4; font-size:12px; line-height:1.5; }
    .sound-tip svg { width:17px; height:17px; flex:none; color:#775ae0; }
    .video-frame { width:100%; position:relative; overflow:hidden; aspect-ratio:16/9; background:#111323; }
    .video-frame iframe { display:block; border:0; width:100%; height:100%; position:absolute; inset:0; }
    .player-bottom { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:16px clamp(16px,3vw,26px); color:#949bb0; font-size:10px; font-weight:750; letter-spacing:.115em; }
    .player-bottom span:first-child { display:inline-flex; align-items:center; gap:10px; }
    .live-dot { width:6px; height:6px; background:#4bbba3; }
    .playback-note { font-size:11px; line-height:1.7; color:#8e97b0; text-align:center; margin:18px 0 0; }
    @keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.5; } }
    @keyframes fadeIn { from { opacity:0; transform:translateY(17px); } to { opacity:1; transform:translateY(0); } }
    .intro, .access-card, .video-section { animation:fadeIn .9s var(--ease) both; }
    .access-card { animation-delay:.12s; }
    @media(max-width:900px) {
      .login-layout { grid-template-columns:1fr; gap:44px; max-width:660px; padding:62px 0 72px; }
      .intro h1 { font-size:clamp(42px,8vw,65px); }
      .access-card { max-width:580px; }
      .intro-footer { margin-top:30px; }
      .video-section { padding:50px 0; }
    }
    @media(max-width:650px) {
      .page { padding:0 20px; }
      .login-layout { padding:51px 0 65px; gap:37px; }
      .logo-wrap { margin:27px 0 25px; width:min(100%,350px); }
      .intro h1 { font-size:clamp(40px,9.1vw,54px); }
      .intro-description { font-size:15px; margin-top:20px; }
      .intro-footer { font-size:9px; gap:8px; }
      .intro-footer span:last-child { gap:8px; }
      .access-card { padding:26px 22px; border-radius:20px; }
      .lock-mark { margin-top:31px; }
      .footer { padding:22px 0; min-height:auto; font-size:9px; }
      .footer > span:nth-child(2) { display:none; }
      .video-top { flex-direction:column; gap:18px; }
      .video-heading-logo { margin:17px 0; max-width:270px; }
      .video-heading h1 { font-size:clamp(29px,7.5vw,43px); }
      .video-section { padding:40px 0 55px; }
      .player-outer { border-radius:12px; }
      .player-topbar, .player-bottom { font-size:9px; letter-spacing:.07em; }
      .player-topbar span:last-child, .player-bottom > span:last-child { display:none; }
      .sound-tip { font-size:11px; }
    }
    @media(prefers-reduced-motion:reduce) {
      *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; }
    }

    /* v7 · Portada sin cabecera superior, composición más compacta. */
    .main { min-height:0; }
    .login-layout { padding:clamp(18px,3.5vh,42px) 0; }
    .logo-wrap { margin:24px 0 19px; }
    .intro h1 { font-size:clamp(41px,5.15vw,69px); }
    .intro-description { margin-top:19px; line-height:1.65; }
    .intro-footer { margin-top:26px; }
    .access-card { padding:clamp(25px,2.5vw,38px); }
    .lock-mark { width:51px; height:51px; margin-top:22px; }
    .card-kicker { margin:17px 0 10px; }
    .card-description { margin:13px 0 19px; }
    .card-bottom { margin-top:19px; padding-top:15px; }
    .footer { min-height:64px; padding:12px 0; }
    .video-section { max-width:960px; padding:clamp(12px,2vh,22px) 0; }
    .video-top { margin-bottom:14px; }
    .video-heading-logo { width:min(100%,235px); margin:8px 0; }
    .video-heading-logo img { max-height:72px; }
    .video-heading h1 { font-size:clamp(29px,3.25vw,42px); line-height:1.12; }
    .player-topbar { min-height:38px; padding:9px 18px; }
    .sound-tip { padding:8px 18px; }
    .player-bottom { padding:10px 18px; }
    .video-actions { display:flex; justify-content:flex-end; margin-top:13px; }
    .logout-btn { padding:10px 15px; }
    .playback-note { margin-top:12px; }
    @media(min-width:901px) and (min-height:650px) {
      /* Preserve the 16:9 player without making users scroll on typical laptop screens. */
      .unlocked .video-section { max-width:min(100%,960px,calc((100svh - 393px)*16/9)); }
    }
    @media(max-width:900px) {
      .login-layout { padding:32px 0 42px; gap:30px; }
      .video-section { padding:24px 0 34px; }
    }
    @media(max-width:650px) {
      .login-layout { padding:28px 0 39px; gap:25px; }
      .logo-wrap { margin:20px 0 18px; }
      .intro h1 { font-size:clamp(39px,9.1vw,54px); }
      .intro-description { margin-top:15px; line-height:1.65; }
      .intro-footer { margin-top:19px; }
      .access-card { padding:24px 20px; }
      .lock-mark { margin-top:18px; }
      .video-top { margin-bottom:12px; }
      .video-heading-logo { margin:8px 0; max-width:220px; }
      .video-heading h1 { font-size:clamp(29px,7.5vw,40px); }
      .video-section { padding:24px 0 34px; }
      .video-actions { justify-content:center; }
    }

    /* En escritorio, encabezado del video en una sola línea para ganar altura útil. */
    @media(min-width:901px) {
      .video-heading { width:100%; display:grid; grid-template-columns:210px minmax(0,1fr); column-gap:23px; row-gap:8px; align-items:center; }
      .video-heading .section-tag { grid-column:1/-1; }
      .video-heading-logo { margin:0; width:210px; }
      .video-heading h1 { margin:0; }
    }
    @media (min-width:901px) and (max-height:800px) {
      /* Pantallas de portátiles con poca altura: video completo y cerrar sesión visibles. */
      .unlocked .video-section { max-width:min(100%,960px,calc((100svh - 440px)*16/9)); }
      .unlocked .footer { min-height:48px; padding:8px 0; }
    }
