/* ==========================================================================
   ÍNDICE RÁPIDO
   --------------------------------------------------------------------------
   01. Variables globales
   02. Base global compartida
   03. Navbar y menú responsive
   04. Login y formularios
   05. Dashboard del participante
   06. Dashboard de eventos
   07. Componentes compartidos
   08. Responsive global
   --------------------------------------------------------------------------
   Nota: Bootstrap maneja la estructura; este archivo define la identidad visual.
   ========================================================================== */

/* ==========================================================================
   01. VARIABLES GLOBALES
   Colores, sombras, ancho máximo y tokens reutilizables.
   ========================================================================== */
:root {
    --bg: #03060b;
    --bg-soft: #07111f;
    --panel: rgba(6, 14, 25, 0.76);
    --panel-strong: rgba(9, 20, 34, 0.92);
    --white: #f7fbff;
    --muted: #b7c6d7;
    --cyan: #21c5ff;
    --cyan-soft: #8fe7ff;
    --blue: #066cff;
    --red: #ff2525;
    --line: rgba(33, 197, 255, 0.34);
    --shadow-blue: 0 0 34px rgba(0, 122, 255, 0.32);
    --shadow-red: 0 0 34px rgba(255, 24, 24, 0.26);
    --max: 1180px;
    color-scheme: dark;
}

/* ==========================================================================
   02. BASE GLOBAL COMPARTIDA
   Reset mínimo, body, links, imágenes y fondo general del sitio.
   ========================================================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Montserrat, Arial, sans-serif;
    color: var(--white);
    background:
        radial-gradient(circle at 72% 8%,
            rgba(0, 101, 255, 0.2),
            transparent 28rem),
        radial-gradient(circle at 18% 32%,
            rgba(255, 24, 24, 0.12),
            transparent 22rem),
        linear-gradient(135deg, #020408 0%, #06111e 48%, #02050a 100%);
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto -12vw 8vh -12vw;
    height: 220px;
    pointer-events: none;
    background:
        linear-gradient(105deg,
            transparent 8%,
            rgba(0, 121, 255, 0.12) 10%,
            transparent 12% 67%,
            rgba(255, 36, 36, 0.18) 68%,
            transparent 70%),
        repeating-linear-gradient(110deg,
            transparent 0 22px,
            rgba(33, 197, 255, 0.035) 22px 24px);
    transform: skewY(-8deg);
    z-index: -1;
}

body::after {
    inset: 0 -15vw auto auto;
    width: 55vw;
    height: 100vh;
    background: linear-gradient(112deg,
            transparent 44%,
            rgba(33, 197, 255, 0.16) 45%,
            transparent 47%);
    opacity: 0.85;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* ==========================================================================
   03. NAVBAR Y MENÚ RESPONSIVE
   Header sticky, navegación principal, dropdowns y estado móvil.
   ========================================================================== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(143, 231, 255, 0.14);
    background: rgba(2, 6, 12, 0.76);
    backdrop-filter: blur(18px);
}

.nav {
    width: min(var(--max), calc(100% - 32px));
    min-height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand img {
    max-width: 100px;
}

.brand-mark {
    width: 42px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    transform: skewX(-16deg);
    box-shadow: var(--shadow-blue);
    background: linear-gradient(135deg,
            rgba(33, 197, 255, 0.18),
            rgba(255, 37, 37, 0.12));
}

.brand-mark span {
    transform: skewX(16deg);
    color: var(--red);
}

.brand em,
.logo-text em,
.accent-red {
    color: var(--red);
    font-style: italic;
    text-transform: none;
}

.menu {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-size: 0.92rem;
}

.nav-toggle,
.nav-toggle-button,
.nav-backdrop,
.mobile-menu-head {
    display: none;
}

.menu-item {
    position: relative;
}

.menu a,
.menu summary {
    position: relative;
    cursor: pointer;
    list-style: none;
}

.menu .nav-link {
    color: inherit;
}

.menu summary::-webkit-details-marker {
    display: none;
}

.menu a::after,
.menu summary::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--cyan), var(--red));
    transition: transform 0.2s ease;
}

.menu a:hover::after,
.menu summary:hover::after,
.menu .active::after {
    transform: scaleX(1);
}

/* Botón con borde de marca usado en navbar y acciones secundarias. */
.gp-outline-border {
    padding: 8px 16px;
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--white);
    background:
        linear-gradient(#111, #111) padding-box,
        linear-gradient(90deg, var(--cyan), var(--red)) border-box;
    transition: all .3s ease;
}

.gp-outline-border:hover,
.gp-outline-border:focus {
    background:
        linear-gradient(90deg, var(--cyan), var(--red)) padding-box,
        linear-gradient(90deg, var(--cyan), var(--red)) border-box;
    color: white;
}

.logout-form {
    margin: 0;
}

.menu button.gp-outline-border {
    color: inherit;
    font: inherit;
    cursor: pointer;
}

/* Menú principal tomado del sitio institucional de experienciaGP. */
.new-local-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(143, 231, 255, 0.14);
    background: rgba(2, 6, 12, 0.88);
    backdrop-filter: blur(18px);
}

.new-local-nav {
    width: min(var(--max), calc(100% - 32px));
    min-height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.new-local-brand {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 950;
    letter-spacing: 0.04em;
}

.new-local-brand img {
    max-height: 50px;
}

.new-local-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.new-local-menu-button {
    display: none;
}

.new-local-links a,
.new-local-auth-form button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid rgba(143, 231, 255, 0.22);
    color: var(--muted);
    background: rgba(3, 11, 22, 0.5);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.new-local-links a:hover,
.new-local-auth-form button:hover {
    border-color: rgba(255, 37, 37, 0.52);
    color: var(--white);
    background: rgba(255, 37, 37, 0.12);
}

.new-local-links a.login,
.new-local-auth-form button.login {
    border-color: transparent;
    color: var(--white);
    background:
        linear-gradient(#111, #111) padding-box,
        linear-gradient(90deg, var(--cyan), var(--red)) border-box;
}

.new-local-links a.login:hover,
.new-local-auth-form button.login:hover {
    background:
        linear-gradient(90deg, var(--cyan), var(--red)) padding-box,
        linear-gradient(90deg, var(--cyan), var(--red)) border-box;
}

.new-local-auth-form {
    margin: 0;
}

/* Dropdown principal de GPEmpresas. */
.has-submenu>summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.has-submenu>summary::before {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--cyan-soft);
    border-bottom: 2px solid var(--cyan-soft);
    order: 2;
    transform: rotate(45deg) translateY(-2px);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

/* .has-submenu:hover>summary::before, */
.has-submenu:focus-within>summary::before,
.has-submenu[open]>summary::before {
    border-color: var(--red);
    transform: rotate(225deg) translateY(-2px);
}

.submenu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    z-index: 30;
    min-width: 230px;
    padding: 10px;
    border: 1px solid var(--line);
    background:
        linear-gradient(145deg, rgba(9, 20, 34, 0.98), rgba(2, 6, 12, 0.96)),
        linear-gradient(90deg, rgba(33, 197, 255, 0.14), transparent);
    box-shadow:
        var(--shadow-blue),
        0 18px 42px rgba(0, 0, 0, 0.46);
    clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%, 0 14%);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -17px;
    height: 17px;
}

/* .has-submenu:hover .submenu, */
.has-submenu:focus-within .submenu,
.has-submenu[open] .submenu,
.submenu.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.submenu a,
.submenu .dropdown-item {
    display: block;
    padding: 13px 18px;
    color: var(--muted);
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        padding-left 0.2s ease;
}

.submenu a::after,
.submenu .dropdown-item::after {
    display: none;
}

.submenu a:hover,
.submenu a:focus,
.submenu .dropdown-item:hover,
.submenu .dropdown-item:focus {
    color: var(--white);
    background: linear-gradient(90deg,
            rgba(33, 197, 255, 0.16),
            rgba(255, 37, 37, 0.1));
    padding-left: 23px;
    outline: none;
}

/* Footer global compartido por todas las páginas del sitio. */
footer {
    padding: 28px 0;
    border-top: 1px solid rgba(143, 231, 255, 0.18);
    color: var(--muted);
    background: #010307;
}

.footer-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-inner a {
    color: var(--cyan-soft);
    text-decoration: none;
    transition: color 0.18s ease, text-shadow 0.18s ease;
}

.footer-inner a:hover {
    color: var(--white);
    text-shadow: 0 0 14px rgba(143, 231, 255, 0.5);
}

/* ==========================================================================
   04. LOGIN Y FORMULARIOS
   Pantalla de acceso y componentes de formulario reutilizados.
   ========================================================================== */
.login-section {
    min-height: calc(100vh - 155px);
    display: grid;
    align-items: center;
    padding: 50px 0;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(2, 5, 9, 0.72), rgba(2, 6, 12, 0.92)),
        radial-gradient(circle at 82% 24%, rgba(33, 197, 255, 0.14), transparent 20rem),
        radial-gradient(circle at 15% 78%, rgba(255, 37, 37, 0.12), transparent 22rem),
        url("/site/img/galeria-local-experiencia-gp.jpg") center / cover no-repeat;
}

.login-wrap {
    max-width: 1200px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 440px);
    gap: clamp(24px, 4vw, 52px);
    align-items: center;
    margin: 0 auto;
}

.login-copy h1 {
    max-width: 660px;
    margin: 0 0 26px;
    font-size: clamp(3rem, 5.8vw, 5.4rem);
    line-height: 0.88;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #fff 0%, #cfd2d6 40%, #6f747c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.12));
}

.login-copy h1 .accent-red {
    background: none;
    -webkit-text-fill-color: var(--red);
    text-shadow: var(--shadow-red);
}

.login-copy p {
    max-width: 520px;
    margin: 0;
    color: #d2dfec;
    font-size: 1.12rem;
    line-height: 1.75;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.68);
}

/* Tarjeta base para formularios y paneles destacados. */
.gp-panel-card {
    position: relative;
    width: 100%;
    justify-self: end;
    padding: clamp(26px, 4vw, 38px);
    border: 1px solid rgba(143, 231, 255, 0.3);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(9, 18, 31, 0.96), rgba(2, 5, 9, 0.88)),
        radial-gradient(circle at 100% 0, rgba(255, 37, 37, 0.14), transparent 16rem);
    box-shadow:
        var(--shadow-blue),
        0 26px 80px rgba(0, 0, 0, 0.42),
        inset 0 0 28px rgba(33, 197, 255, 0.05);
}

.gp-panel-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(105deg, transparent 8%, rgba(33, 197, 255, 0.1) 10%, transparent 12%),
        repeating-linear-gradient(110deg, transparent 0 22px, rgba(255, 255, 255, 0.03) 22px 24px);
    opacity: 0.6;
}

.gp-panel-card>* {
    position: relative;
    z-index: 1;
}

.gp-panel-card-head {
    margin-bottom: 26px;
}

.gp-panel-card-head .kicker {
    margin-bottom: 12px;
}

.gp-panel-card h2 {
    margin: 0 0 12px;
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.gp-panel-card-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.login-form {
    display: grid;
    gap: 20px;
}

/* Campos, mensajes y alertas de formularios. */
.form-group {
    display: grid;
    gap: 9px;
}

.form-group label,
.remember-field {
    color: #edf6ff;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.form-label-row a {
    color: var(--cyan-soft);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: none;
}

.form-label-row a:hover {
    color: var(--white);
    text-shadow: 0 0 14px rgba(143, 231, 255, 0.5);
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(143, 231, 255, 0.28);
    border-radius: 8px;
    color: var(--white);
    background: rgba(2, 8, 16, 0.78);
    outline: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.form-group input:focus {
    border-color: var(--cyan);
    background: rgba(2, 10, 20, 0.94);
    box-shadow: 0 0 0 3px rgba(33, 197, 255, 0.14), var(--shadow-blue);
}

.form-group input.is-invalid {
    border-color: rgba(255, 37, 37, 0.82);
    box-shadow: 0 0 0 3px rgba(255, 37, 37, 0.12);
}

.form-group input[readonly] {
    opacity: 0.76;
    cursor: not-allowed;
}

.form-error {
    margin: 0;
    color: #ff8f8f;
    font-size: 0.84rem;
    line-height: 1.4;
}

.form-alert {
    margin-bottom: 20px;
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
}

.form-alert-success {
    border: 1px solid rgba(33, 197, 255, 0.36);
    color: var(--cyan-soft);
    background: rgba(33, 197, 255, 0.08);
}

.form-alert-error {
    border: 1px solid rgba(255, 37, 37, 0.42);
    color: #ffd7d7;
    background: rgba(255, 37, 37, 0.1);
}

.is-hidden {
    display: none !important;
}

/* ==========================================================================
   05. DASHBOARD DEL PARTICIPANTE
   Panel privado con NeuroScores, carreras y unidades de energía.
   ========================================================================== */
.participant-dashboard {
    min-height: calc(100vh - 155px);
    padding: 64px 0 76px;
    background:
        radial-gradient(circle at 82% 10%, rgba(33, 197, 255, 0.14), transparent 22rem),
        radial-gradient(circle at 8% 35%, rgba(255, 37, 37, 0.1), transparent 20rem),
        linear-gradient(135deg, rgba(2, 5, 9, 0.96), rgba(5, 13, 24, 0.94));
}

.participant-dashboard-wrap {
    width: min(var(--max), calc(100% - 36px));
    margin: 0 auto;
    display: grid;
    gap: 42px;
    min-width: 0;
}

.participant-hero {
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(143, 231, 255, 0.18);
}

.participant-hero h1 {
    max-width: 760px;
    margin: 0 0 14px;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.participant-hero p {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.energy-summary,
.dashboard-card,
.empty-state {
    border: 1px solid rgba(143, 231, 255, 0.26);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(9, 18, 31, 0.96), rgba(2, 5, 9, 0.9)),
        radial-gradient(circle at 100% 0, rgba(255, 37, 37, 0.12), transparent 16rem);
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.34),
        inset 0 0 24px rgba(33, 197, 255, 0.05);
}

.energy-summary {
    padding: 24px;
    min-width: 0;
}

.energy-summary span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.energy-summary strong {
    color: var(--cyan-soft);
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    line-height: 1;
    text-shadow: var(--shadow-blue);
}

/* Secciones, tarjetas y listas del dashboard. */
.dashboard-section {
    display: grid;
    gap: 22px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.neuroscore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 20px;
    min-width: 0;
}

.dashboard-card {
    padding: 24px;
    min-width: 0;
    color: var(--white);
}

.dashboard-card .list-group-item {
    color: inherit;
    border-color: rgba(143, 231, 255, 0.13);
}

.dashboard-card .list-group-item:last-child {
    border-bottom: 0;
}

/* Tarjetas de GP NeuroScore. */
.neuroscore-card {
    display: grid;
    gap: 20px;
}

.neuroscore-card-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
}

.neuroscore-card-head div {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 0.86rem;
    min-width: 0;
}

.neuroscore-card-head strong {
    color: var(--red);
    font-size: 3rem;
    line-height: 0.9;
    text-shadow: var(--shadow-red);
}

.neuroscore-card h3 {
    margin: 0;
    color: var(--cyan-soft);
    font-size: 1.1rem;
    text-transform: uppercase;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.score-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.score-list div,
.session-detail li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(143, 231, 255, 0.13);
    min-width: 0;
}

.score-list dt,
.score-list dd {
    margin: 0;
}

.score-list dt,
.session-detail span {
    color: var(--muted);
    min-width: 0;
    overflow-wrap: anywhere;
}

.score-list dd,
.session-detail strong {
    color: var(--white);
    font-weight: 900;
    text-align: right;
    overflow-wrap: anywhere;
}

.session-detail {
    display: grid;
    gap: 10px;
}

.dashboard-detail-action {
    min-height: 53px;
    margin-top: auto;
}

.session-detail h4 {
    margin: 0;
    color: var(--white);
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.session-detail ul {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.session-detail p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

/* Tablas con scroll horizontal para datos compactos. */
.dashboard-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
}

.dashboard-table th,
.dashboard-table td {
    padding: 13px 12px;
    border-bottom: 1px solid rgba(143, 231, 255, 0.14);
    text-align: left;
}

.dashboard-table th {
    color: var(--cyan-soft);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dashboard-table td {
    color: #e7f2ff;
}

.gp-session-modal .modal-content {
    color: var(--white);
}

.gp-session-modal .modal-header {
    align-items: flex-start;
    gap: 18px;
    border-bottom: 1px solid rgba(143, 231, 255, 0.18);
}

.gp-session-modal .modal-title {
    color: var(--white);
    font-size: clamp(1.25rem, 4vw, 2rem);
    line-height: 1.1;
    text-transform: uppercase;
}

.gp-session-modal .modal-body {
    padding-top: 20px;
}

.point-value {
    font-weight: 900;
}

.point-input {
    color: var(--cyan-soft);
}

.point-output {
    color: #ff8f8f;
}

/* ==========================================================================
   06. DASHBOARD DE EVENTOS
   Páginas públicas de evento, registro, ranking y estado de enlace inválido.
   ========================================================================== */
.event-dashboard {
    min-height: calc(100vh - 155px);
    padding: 64px 0 76px;
    background:
        radial-gradient(circle at 82% 10%, rgba(33, 197, 255, 0.14), transparent 22rem),
        radial-gradient(circle at 8% 35%, rgba(255, 37, 37, 0.1), transparent 20rem),
        linear-gradient(135deg, rgba(2, 5, 9, 0.96), rgba(5, 13, 24, 0.94));
}

.event-logo-card {
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.event-logo {
    width: min(100%, 300px);
    max-height: 130px;
    object-fit: contain;
}

@media (min-width: 992px) {
    .event-logo-card[style*="--event-logo-image"] {
        min-height: 260px;
        background-image: var(--event-logo-image);
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .event-logo-card[style*="--event-logo-image"] .event-logo {
        display: none;
    }
}

.event-resource-image {
    width: 100%;
    max-height: 220px;
    margin: 4px 0 18px;
    border-radius: 8px;
    object-fit: cover;
}

.event-meta-label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.event-meta-value {
    color: var(--cyan-soft);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.05;
}

.gp-event-not-found {
    padding: clamp(28px, 5vw, 48px);
}

.gp-event-not-found h1 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: clamp(2.3rem, 8vw, 4.6rem);
    line-height: 0.96;
    text-transform: uppercase;
}

.gp-event-not-found p:not(.eyebrow) {
    max-width: 580px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.7;
}

/* Ranking del evento: podio superior y lista compacta para el resto. */
.gp-ranking-board {
    gap: 0;
}

.gp-ranking-podium-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 18px 0 20px;
    border-bottom: 1px solid rgba(143, 231, 255, 0.24);
}

.gp-ranking-podium-item:first-child {
    padding-top: 0;
}

.gp-ranking-podium-item h3,
.gp-ranking-list-item h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
}

.gp-ranking-podium-item strong,
.gp-ranking-list-item strong {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--red);
    font-size: 0.98rem;
    font-weight: 900;
}

.gp-ranking-podium-item strong {
    margin-top: 6px;
    font-size: 1.1rem;
}

.gp-ranking-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    display: inline-grid;
    place-items: center;
    color: var(--cyan-soft);
}

.gp-ranking-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.gp-ranking-podium-item strong .gp-ranking-icon,
.gp-ranking-list-item strong .gp-ranking-icon {
    color: var(--red);
}

.gp-ranking-position {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: var(--bg);
    background: var(--cyan-soft);
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
}

.gp-ranking-position-1 {
    color: #06111e;
    background: #d6bf38;
}

.gp-ranking-position-2 {
    color: #06111e;
    background: #a7adb8;
}

.gp-ranking-position-3 {
    color: #06111e;
    background: #928512;
}

.gp-ranking-medal {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 0;
    background: transparent;
}

.gp-ranking-medal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gp-ranking-list {
    display: grid;
}

.gp-ranking-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(143, 231, 255, 0.18);
}

.gp-ranking-list-item>div {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

/* Lista numerada simple para participantes del evento. */
.gp-numbered-list {
    display: grid;
}

.gp-numbered-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(143, 231, 255, 0.24);
    color: var(--white);
}

.gp-numbered-list-item span {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: var(--bg);
    background: var(--cyan-soft);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
}

.gp-numbered-list-item strong {
    color: #edf6ff;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.gp-copy-feedback {
    min-height: 22px;
    margin: -4px 0 18px;
    color: var(--cyan-soft);
    font-size: 0.88rem;
    font-weight: 700;
}

.gp-copy-inline {
    display: inline-flex;
    margin-top: 10px;
    padding: 0;
    border: 0;
    color: var(--cyan-soft);
    background: transparent;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

.gp-copy-inline:hover,
.gp-copy-inline:focus {
    color: var(--white);
}

/* ==========================================================================
   07. COMPONENTES COMPARTIDOS
   Estados vacíos, paginación, loader y acciones principales.
   ========================================================================== */
.empty-state {
    padding: 24px;
    color: var(--muted);
}

.dashboard-pagination {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination-control,
.pagination-page {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(143, 231, 255, 0.24);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(2, 8, 16, 0.62);
    font-size: 0.86rem;
    font-weight: 800;
    transition:
        border-color 0.18s ease,
        color 0.18s ease,
        background 0.18s ease;
}

.pagination-control:hover,
.pagination-page:hover,
.pagination-page.is-active {
    border-color: rgba(33, 197, 255, 0.64);
    color: var(--white);
    background: rgba(33, 197, 255, 0.13);
}

.pagination-control.is-disabled {
    opacity: 0.42;
    pointer-events: none;
}

.disabled>.page-link,
.page-link.disabled {
    background-color: var(--bg);
    color: var(--white);
    border: none;
}

/* Loader del historial de unidades de energía cargado por AJAX. */
#energy-history-content {
    position: relative;
    transition: opacity 0.18s ease;
}

#energy-history-content.is-loading {
    pointer-events: none;
}

#energy-history-content.is-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: 8px;
    background: rgba(2, 6, 12, 0.66);
    backdrop-filter: blur(2px);
}

#energy-history-content.is-loading::after {
    content: "";
    position: absolute;
    left: calc(50% - 24px);
    top: calc(50% - 24px);
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 4px solid rgba(143, 231, 255, 0.18);
    border-top-color: var(--cyan);
    border-right-color: var(--red);
    border-radius: 50%;
    box-shadow: var(--shadow-blue);
    animation: dashboard-loader 0.8s linear infinite;
}

@keyframes dashboard-loader {
    to {
        transform: rotate(360deg);
    }
}

.remember-field {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    cursor: pointer;
    color: var(--muted);
    letter-spacing: 0.02em;
    text-transform: none;
}

.remember-field input {
    width: 18px;
    height: 18px;
    accent-color: var(--red);
}

/* Botón principal con fondo de marca. */
.gp-primary-action {
    width: 100%;
    min-height: 54px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    color: var(--white);
    background:
        linear-gradient(90deg, var(--blue), var(--red)),
        linear-gradient(90deg, var(--cyan), var(--red));
    box-shadow:
        0 16px 36px rgba(0, 108, 255, 0.28),
        0 0 24px rgba(255, 37, 37, 0.22);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    overflow: hidden;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

.gp-primary-action::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 7px;
    pointer-events: none;
}

.gp-primary-action span {
    position: relative;
    z-index: 1;
}

.gp-primary-action:hover {
    transform: translateY(-2px);
    filter: saturate(1.08);
    box-shadow:
        0 20px 46px rgba(0, 108, 255, 0.34),
        0 0 34px rgba(255, 37, 37, 0.3);
}

.gp-primary-action:focus-visible {
    outline: 3px solid rgba(143, 231, 255, 0.46);
    outline-offset: 4px;
}

.gp-primary-action:disabled {
    opacity: 0.72;
    cursor: wait;
    transform: none;
    filter: grayscale(0.2);
    box-shadow: none;
}

/* ==========================================================================
   08. RESPONSIVE GLOBAL
   Ajustes compartidos para navbar, dashboards, login y componentes reutilizables.
   ========================================================================== */

/* Tablets y pantallas medianas. */
@media (max-width: 980px) {
    .new-local-nav {
        min-height: 68px;
        padding: 10px 0;
    }

    .new-local-links {
        gap: 7px;
    }

    .new-local-links a,
    .new-local-auth-form button {
        padding-inline: 9px;
        font-size: 0.74rem;
    }

    .participant-hero {
        align-items: start;
    }

    .energy-summary {
        width: min(100%, 340px);
    }

    .menu {
        position: static;
        z-index: auto;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 18px 0 10px;
        color: var(--white);
        background:
            linear-gradient(155deg, rgba(3, 7, 13, 0.98), rgba(6, 9, 15, 0.94)),
            radial-gradient(circle at 100% 0, rgba(255, 37, 37, 0.22), transparent 15rem),
            radial-gradient(circle at 0 100%, rgba(33, 197, 255, 0.14), transparent 16rem);
        border-top: 1px solid rgba(255, 37, 37, 0.28);
        border-left: 0;
        box-shadow:
            0 18px 42px rgba(0, 0, 0, 0.28),
            inset 0 0 36px rgba(255, 37, 37, 0.06);
        transform: none;
        transition: none;
        overflow-y: auto;
    }

    .mobile-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding-bottom: 16px;
        margin-bottom: 8px;
        border-bottom: 1px solid rgba(143, 231, 255, 0.18);
    }

    .mobile-menu-kicker {
        color: var(--red);
        font-size: 0.78rem;
        font-weight: 900;
        letter-spacing: 0.22em;
        text-transform: uppercase;
    }

    .mobile-menu-close {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        color: var(--white);
        font-size: 2rem;
        line-height: 1;
        cursor: pointer;
    }

    .nav-toggle-button {
        width: 48px;
        height: 44px;
        display: grid;
        align-content: center;
        gap: 6px;
        padding: 0 11px;
        border: 1px solid rgba(143, 231, 255, 0.34);
        border-radius: 8px;
        background:
            linear-gradient(135deg, rgba(33, 197, 255, 0.12), rgba(255, 37, 37, 0.12)),
            rgba(2, 6, 12, 0.82);
        box-shadow: 0 0 26px rgba(255, 37, 37, 0.16);
        cursor: pointer;
    }

    .nav-toggle-button span {
        display: block;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--cyan-soft), var(--red));
        transition:
            transform 0.2s ease,
            opacity 0.2s ease;
    }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 50;
        display: block;
        background: rgba(0, 0, 0, 0.62);
        backdrop-filter: blur(4px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
    }

    .nav-toggle:checked~.nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .menu a,
    .menu summary {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 52px;
        padding: 0 16px;
        border: 1px solid rgba(143, 231, 255, 0.16);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.035);
        color: #edf6ff;
        font-weight: 800;
        letter-spacing: 0.04em;
    }

    .menu a::after,
    .menu summary::after {
        display: none;
    }

    .menu a.active {
        border-color: rgba(255, 37, 37, 0.56);
        color: var(--white);
        background:
            linear-gradient(90deg, rgba(255, 37, 37, 0.18), rgba(33, 197, 255, 0.08)),
            rgba(255, 255, 255, 0.04);
        box-shadow: inset 3px 0 0 var(--red);
    }

    .menu-item {
        display: grid;
        gap: 10px;
    }

    .has-submenu>summary::before {
        margin-left: auto;
        transform: rotate(45deg);
    }

    .has-submenu[open]>summary::before {
        transform: rotate(225deg);
    }

    .submenu {
        position: static;
        width: 100%;
        min-width: 100%;
        margin: 0;
        padding: 10px;
        border: 1px solid rgba(255, 37, 37, 0.24);
        border-radius: 8px;
        background:
            linear-gradient(145deg, rgba(0, 0, 0, 0.34), rgba(255, 37, 37, 0.06)),
            rgba(255, 255, 255, 0.03);
        box-shadow: none;
        clip-path: none;
        opacity: 0;
        pointer-events: none;
        transform: none;
        display: none;
        gap: 8px;
    }

    .has-submenu[open] .submenu,
    .submenu.show {
        display: grid;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .submenu::before {
        display: none;
    }

    .submenu a {
        width: 100%;
        min-height: 46px;
        padding: 0 12px 0 18px;
        color: #cbd8e6;
        font-size: 0.74rem;
        line-height: 1.2;
        white-space: normal;
        border-color: rgba(255, 255, 255, 0.1);
        background: rgba(0, 0, 0, 0.28);
        box-shadow: inset 2px 0 0 rgba(255, 37, 37, 0.42);
    }

    .submenu a:hover,
    .submenu a:focus {
        padding-left: 18px;
    }

    .menu .gp-outline-border {
        justify-content: center;
        min-height: 54px;
        margin-top: 10px;
        border-color: rgba(255, 37, 37, 0.56);
        background:
            linear-gradient(90deg, rgba(255, 37, 37, 0.28), rgba(33, 197, 255, 0.16)),
            rgba(255, 255, 255, 0.04);
    }

    .logout-form {
        display: grid;
    }

    .hero::before {
        background: url("/assets/img/galeria-local-experiencia-gp.jpg") center top / cover no-repeat;
    }

    .hero::after {
        background:
            linear-gradient(180deg,
                rgba(2, 5, 9, 0.2) 0%,
                rgba(2, 6, 12, 0.72) 48%,
                var(--bg) 100%),
            repeating-linear-gradient(90deg,
                rgba(255, 255, 255, 0.018) 0 1px,
                transparent 1px 7px);
    }

    .hero-content {
        padding-top: 36vh;
    }

    .hero-video {
        object-position: center top;
    }

    .hero .wrap::before {
        inset: -44px -16px -36px -16px;
        width: auto;
        background: linear-gradient(180deg,
                rgba(2, 5, 9, 0.2) 0%,
                rgba(2, 6, 12, 0.78) 36%,
                rgba(2, 6, 12, 0.98) 100%);
    }

    .section-head,
    .media-grid,
    .energy-hero,
    .energy-catalog,
    .error-layout,
    .timeline,
    .defense-grid,
    .gallery {
        grid-template-columns: 1fr;
    }

    .grid-3,
    .grid-6,
    .energy-grid,
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .energy-token {
        justify-self: center;
    }

    .error-panel {
        width: min(100%, 320px);
        justify-self: start;
    }

    .timeline::before {
        display: none;
    }

    .experience-gallery .featured-photo {
        grid-column: auto;
    }

    .event-logo {
        width: 100%;
        max-height: fit-content;
        object-fit: contain;
    }
}

/* Móviles. */
@media (max-width: 640px) {
    .new-local-topbar {
        background: rgba(2, 6, 12, 0.94);
    }

    .new-local-nav {
        min-height: 64px;
        align-items: center;
        flex-direction: row;
        gap: 14px;
        padding: 10px 0;
    }

    .new-local-brand img {
        max-height: 42px;
    }

    .new-local-menu-button {
        width: 44px;
        height: 42px;
        display: inline-grid;
        place-items: center;
        gap: 5px;
        padding: 9px;
        margin-left: auto;
        border: 1px solid rgba(143, 231, 255, 0.34);
        background:
            linear-gradient(135deg, rgba(33, 197, 255, 0.14), rgba(255, 37, 37, 0.08)),
            rgba(3, 11, 22, 0.86);
        box-shadow: 0 0 20px rgba(33, 197, 255, 0.14);
        cursor: pointer;
    }

    .new-local-menu-button span {
        width: 21px;
        height: 2px;
        display: block;
        background: var(--white);
        box-shadow: 0 0 10px rgba(33, 197, 255, 0.42);
        transition:
            transform 0.2s ease,
            opacity 0.2s ease;
    }

    .new-local-menu-button.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .new-local-menu-button.is-open span:nth-child(2) {
        opacity: 0;
    }

    .new-local-menu-button.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .new-local-links {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
        padding: 14px 16px 16px;
        border-bottom: 1px solid rgba(143, 231, 255, 0.16);
        background:
            linear-gradient(145deg, rgba(7, 13, 22, 0.98), rgba(2, 6, 12, 0.98)),
            radial-gradient(circle at 100% 0, rgba(255, 37, 37, 0.12), transparent 14rem);
        box-shadow: 0 22px 54px rgba(0, 0, 0, 0.46);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition:
            opacity 0.2s ease,
            transform 0.2s ease;
    }

    .new-local-links.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .new-local-links a,
    .new-local-auth-form button {
        min-height: 34px;
        justify-content: center;
        padding: 8px 11px;
        border-color: rgba(143, 231, 255, 0.24);
        background: rgba(3, 11, 22, 0.78);
        color: #f4f8ff;
        text-align: center;
        font-size: 0.78rem;
        line-height: 1;
    }

    .participant-dashboard {
        padding: 40px 0 54px;
    }

    .event-dashboard {
        padding: 40px 0 54px;
    }

    .participant-dashboard-wrap {
        width: min(100% - 28px, var(--max));
        gap: 32px;
    }

    .participant-hero {
        padding-bottom: 26px;
    }

    .participant-hero h1 {
        font-size: clamp(2rem, 10vw, 3.15rem);
        line-height: 1.02;
    }

    .participant-hero p {
        line-height: 1.58;
    }

    .energy-summary {
        width: 100%;
        padding: 20px;
    }

    .energy-summary strong {
        font-size: clamp(2rem, 13vw, 3rem);
    }

    .dashboard-section {
        gap: 18px;
    }

    .section-heading h2 {
        font-size: clamp(1.55rem, 8vw, 2.25rem);
    }

    .dashboard-card {
        padding: 18px 16px;
    }

    .neuroscore-card {
        gap: 18px;
    }

    .neuroscore-card-head {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .neuroscore-card-head>div:last-child {
        margin-left: auto;
        text-align: right;
    }

    .neuroscore-card-head strong {
        font-size: 2.45rem;
    }

    .score-list div,
    .session-detail li {
        align-items: flex-start;
        gap: 8px;
    }

    .dashboard-table-wrap {
        margin: 0 -16px;
        padding: 0 16px 6px;
        scrollbar-width: thin;
    }

    .dashboard-table {
        min-width: 420px;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 12px 10px;
        font-size: 0.88rem;
    }

    .dashboard-pagination {
        justify-content: stretch;
        gap: 8px;
    }

    .pagination-pages {
        width: 100%;
        order: -1;
    }

    .pagination-control {
        flex: 1 1 120px;
    }

    .nav {
        min-height: 64px;
    }

    .hero {
        padding-top: 20px;
    }

    .hero-content {
        padding-top: 28vh;
    }

    .hero-video {
        object-position: center top;
    }

    .error-hero {
        min-height: auto;
        padding-top: 52px;
    }

    .ticker {
        white-space: nowrap;
        justify-content: flex-start;
    }

    section {
        padding: 62px 0;
    }

    .grid-3,
    .grid-6,
    .energy-grid,
    .catalog-grid,
    .energy-actions {
        grid-template-columns: 1fr;
    }

    .card,
    .cta-box,
    .media-panel,
    .energy-panel {
        clip-path: none;
    }

    .energy-actions span {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }

    .energy-actions span:last-child {
        border-bottom: 0;
    }

    .error-panel {
        width: min(100%, 260px);
    }

    .experience-gallery .slide-card,
    .experience-gallery .slide-card img {
        min-height: 240px;
    }

    .defense {
        grid-template-columns: 1fr;
    }

    .proof {
        grid-template-columns: 44px 1fr;
        clip-path: none;
    }
}

/* Responsive específico del login. */
@media (max-width: 980px) {
    .login-wrap {
        max-width: 760px;
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .login-copy {
        max-width: 680px;
    }

    .login-copy h1,
    .login-copy p {
        max-width: 100%;
    }

    .gp-panel-card {
        max-width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 640px) {
    .login-section {
        min-height: auto;
        padding: 44px 0 58px;
    }

    .login-wrap {
        width: min(100% - 28px, var(--max));
        gap: 26px;
    }

    .login-copy h1 {
        margin-bottom: 18px;
        font-size: clamp(2.6rem, 13vw, 4.2rem);
    }

    .login-copy p {
        font-size: 1rem;
        line-height: 1.62;
    }

    .gp-panel-card {
        padding: 22px;
    }

    .gp-panel-card h2 {
        font-size: clamp(1.75rem, 10vw, 2.45rem);
    }

    .form-label-row {
        display: grid;
        align-items: start;
    }

    .gp-primary-action {
        width: 100%;
    }
}