@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Rajdhani:ital,wght@0,600;0,700;1,700&display=swap');

:root {
    /* Paleta Oficial Racevision 2.0 */
    --bg: #03060a;
    --panel: #081019;
    --panel2: #0b131d;
    --line: #1b2b3a;
    --text: #f7f8fb;
    --muted: #8c99a8;
    --pink: #ff0b7a;
    --cyan: #13dce9;
    --green: #24e36b;
    --gold: #efc44b;
    --amber: #ff9c2a;
    --max: 1320px;
    --r: 10px;

    /* Compatibilidad con vistas previas */
    --bg-dark: var(--panel);
    --border-color: var(--line);
    --neon-cyan: var(--cyan);
    --neon-green: var(--green);
    --neon-magenta: var(--pink);
    --text-main: var(--text);
    --text-muted: var(--muted);
    --shadow-cyan: 0 0 12px rgba(19, 220, 233, 0.4);
    --shadow-green: 0 0 12px rgba(36, 227, 107, 0.4);
    --shadow-magenta: 0 0 14px rgba(255, 11, 122, 0.4);
    --shadow-gold: 0 0 12px rgba(239, 196, 75, 0.4);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: 78px;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', Arial, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}

button, input, select, textarea {
    font: inherit;
}

.wrap {
    width: min(var(--max), calc(100% - 48px));
    margin: auto;
}

/* Tipografía de Alto Impacto */
.font-rajdhani {
    font-family: 'Rajdhani', sans-serif;
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--cyan);
}

.display {
    font: 700 clamp(36px, 4.8vw, 68px)/.95 'Rajdhani', sans-serif;
    margin: 12px 0;
    text-transform: uppercase;
    letter-spacing: -.025em;
}

.copy {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

/* Botones con Estilo Racevision 2.0 */
.btn, .btn-neon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #334657;
    background: rgba(8, 16, 25, 0.85);
    color: #ffffff;
    padding: 11px 20px;
    border-radius: 6px;
    text-transform: uppercase;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn:hover, .btn-neon:hover {
    transform: translateY(-2px);
    border-color: var(--cyan);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(19, 220, 233, 0.35);
}

.btn.primary, .btn-neon-primary {
    background: linear-gradient(90deg, #d90862, var(--pink));
    border-color: #ff50a5;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 11, 122, 0.35);
}

.btn.primary:hover, .btn-neon-primary:hover {
    transform: translateY(-2px);
    border-color: #ffffff;
    box-shadow: 0 0 28px rgba(255, 11, 122, 0.55);
}

.btn.cyan {
    background: linear-gradient(90deg, #098892, var(--cyan));
    border-color: var(--cyan);
    color: #03060a;
    font-weight: 800;
    box-shadow: 0 0 20px rgba(19, 220, 233, 0.35);
}

.btn.cyan:hover {
    transform: translateY(-2px);
    border-color: #ffffff;
    box-shadow: 0 0 28px rgba(19, 220, 233, 0.55);
}

.btn.sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Header Fijo con Glassmorphism */
.header {
    height: 78px;
    position: fixed;
    z-index: 1000;
    inset: 0 0 auto;
    background: rgba(3, 6, 10, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    object-position: left center;
}

.navlinks {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: 20px;
}

.navlinks a {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.navlinks a:hover, .navlinks .active > a {
    color: var(--cyan);
    text-shadow: 0 0 8px rgba(19, 220, 233, 0.4);
}

.user-nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.pilot-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.pilot-badge:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 12px rgba(19, 220, 233, 0.25);
}

.pilot-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--pink);
}

.pilot-info {
    display: flex;
    flex-direction: column;
}

.pilot-nic {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    line-height: 1.1;
}

.pilot-wallet {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 4px;
}

.rc-coin-spin {
    width: 16px;
    height: 16px;
    animation: spinCoin 6s linear infinite;
}

@keyframes spinCoin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.menuBtn {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid var(--line);
    color: #ffffff;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 22px;
    cursor: pointer;
}

/* Menú Móvil */
.mobileMenu {
    display: none;
    position: fixed;
    z-index: 999;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.mobileMenu.open {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mobileMenu a {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text);
    padding: 8px 0;
    border-bottom: 1px solid rgba(27, 43, 58, 0.4);
}

.mobileMenu a:hover {
    color: var(--cyan);
}

/* Hero / Header Video Dinámico */
.hero-wrapper {
    position: relative;
    overflow: hidden;
    background: #020508;
    border-bottom: 1px solid var(--line);
    min-height: 240px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(3, 6, 10, 0.98) 0%, rgba(3, 6, 10, 0.85) 40%, rgba(3, 6, 10, 0.4) 100%), url('/templates/racevision-2/assets/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, transparent 70%);
    z-index: 2;
}

.hero-content-box {
    position: relative;
    z-index: 3;
    padding: 40px 0;
}

/* Layout Principal de Dos Columnas */
.main-layout-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    width: min(var(--max), calc(100% - 48px));
    margin: 36px auto 60px;
    flex: 1;
}

.main-layout-container.single-col {
    grid-template-columns: 1fr;
}

/* Sidebar / Menú Vertical Lateral */
.vertical-nav {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 24px;
    height: fit-content;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.vertical-menu-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cyan);
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.vertical-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vertical-menu li a, .vertical-menu li button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid transparent;
    transition: all 0.18s;
}

.vertical-menu li a:hover, .vertical-menu li button:hover {
    background: rgba(19, 220, 233, 0.06);
    color: #ffffff;
    border-color: rgba(19, 220, 233, 0.2);
}

.vertical-menu li.active > a {
    background: linear-gradient(90deg, rgba(255, 11, 122, 0.15), transparent);
    color: #ffffff;
    border-left: 3px solid var(--pink);
    font-weight: 700;
}

.vertical-collapse-btn {
    background: none;
    border: none;
    color: var(--text);
    font-weight: 700;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.18s;
}

.vertical-collapse-btn:hover {
    background: rgba(255, 11, 122, 0.08);
    color: #ffffff;
}

.vertical-submenu {
    list-style: none;
    padding-left: 14px;
    margin: 4px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 1px solid var(--line);
}

.vertical-submenu li a {
    font-size: 13px;
    padding: 6px 12px;
    color: var(--muted);
}

.vertical-submenu li a:hover, .vertical-submenu li.active a {
    color: var(--pink);
}

/* Área de Contenido Principal */
.content-area {
    min-width: 0;
}

/* Tarjetas y Contenedores */
.panel-card, .neon-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s ease;
}

.panel-card:hover, .neon-card:hover {
    border-color: rgba(19, 220, 233, 0.4);
}

.neon-card-img {
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.neon-card-body {
    padding-top: 16px;
}

/* Tablas con Estilo Competitivo */
.table-responsive {
    overflow-x: auto;
}

.neon-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
}

.neon-table th {
    background: #060c13;
    padding: 14px 18px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.neon-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(27, 43, 58, 0.4);
    color: var(--text);
    font-size: 14px;
    vertical-align: middle;
}

.neon-table tbody tr:hover {
    background: rgba(19, 220, 233, 0.03);
}

.neon-table tbody tr:last-child td {
    border-bottom: none;
}

/* Formularios y Campos */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control, input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
    width: 100%;
    background: #050b12 !important;
    border: 1px solid var(--line) !important;
    color: #ffffff !important;
    padding: 11px 14px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    transition: all 0.2s !important;
}

.form-control:focus, input:focus, select:focus, textarea:focus {
    border-color: var(--cyan) !important;
    outline: none !important;
    box-shadow: 0 0 12px rgba(19, 220, 233, 0.3) !important;
}

/* Badges y Chips */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #304557;
    background: rgba(8, 16, 25, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--muted);
}

.status {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.status.ok { color: var(--green); }
.status.wait { color: var(--gold); }
.status.alert { color: var(--pink); }

/* Banner Publicitario */
.banner-container {
    width: min(var(--max), calc(100% - 48px));
    margin: 20px auto 40px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--panel);
}

.banner-container img {
    width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: cover;
}

/* ==========================================================================
   Secciones y Clases Exactas de racevision_2.html
   ========================================================================== */

.hero-race2 {
    min-height: 90vh;
    padding: 60px 0 62px;
    position: relative;
    display: flex;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
}

.hero-race2:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: linear-gradient(90deg, rgba(2,5,8,.99), rgba(2,5,8,.82) 32%, rgba(2,5,8,.25) 70%, rgba(2,5,8,.4)), url('/templates/racevision-2/assets/hero_bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero-race2:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, var(--bg), transparent 34%);
}

.heroGrid {
    display: grid;
    grid-template-columns: minmax(0, 58%) 1fr;
    width: 100%;
    gap: 20px;
}

.hero-race2 h1 {
    font: italic 700 clamp(48px, 6.5vw, 96px)/.86 'Rajdhani', sans-serif;
    margin: 18px 0;
    text-transform: uppercase;
    letter-spacing: -.035em;
    text-shadow: 0 2px 0 rgba(255,255,255,.2), 0 0 14px rgba(255,255,255,.1);
}

.hero-race2 h1 span {
    display: block;
}

.hero-race2 h1 .hot {
    color: var(--pink);
    text-shadow: 0 0 24px rgba(255,11,122,.3);
}

.hero-race2 p {
    font-size: 18px;
    line-height: 1.55;
    max-width: 520px;
    color: #d8dde3;
}

.heroActions {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.heroMeta {
    display: flex;
    gap: 30px;
    margin-top: 48px;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
}

.heroMeta b {
    display: block;
    color: white;
    margin-bottom: 4px;
    font-size: 13px;
}

.cue {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .18em;
}

.section {
    padding: 90px 0;
}

.section.alt {
    background: #050a10;
}

.sectionHead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
    align-items: end;
    gap: 34px;
    margin-bottom: 42px;
}

.sectionHead p {
    margin: 0;
}

.cards3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.discipline {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 480px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.discipline:hover {
    transform: translateY(-4px);
    border-color: rgba(19, 220, 233, 0.4);
}

.discipline > img {
    height: 240px;
    width: 100%;
    object-fit: cover;
}

.cardBody {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cardBody h3 {
    font: 700 28px 'Rajdhani', sans-serif;
    margin: 8px 0;
    text-transform: uppercase;
    color: #ffffff;
}

.cardBody p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 14px;
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 18px 0;
}

.cardBody .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Ranking & Campeón */
.champion {
    background: linear-gradient(145deg, #0b141f, #060a0f);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.champion img {
    margin: auto;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 0 28px rgba(239, 196, 75, 0.3);
}

.champion h3 {
    font: 700 30px 'Rajdhani', sans-serif;
    margin: 18px 0 3px;
    color: #ffffff;
}

.champion strong {
    font: 700 26px 'Rajdhani', sans-serif;
    color: var(--gold);
}

.champion small {
    display: block;
    color: var(--muted);
    margin-top: 7px;
    font-size: 13px;
}

.rankTools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tab {
    border: 1px solid var(--line);
    background: #07101a;
    color: var(--muted);
    padding: 10px 14px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.18s;
}

.tab.active, .tab:hover {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #001116;
}

.search {
    display: flex;
    gap: 8px;
}

.search input {
    min-width: 260px;
    background: #060b11;
    border: 1px solid #2c3d4c;
    color: white;
    padding: 10px 14px;
    border-radius: 5px;
    font-size: 14px;
}

.board {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: var(--r);
    overflow: hidden;
}

.rankRow {
    display: grid;
    grid-template-columns: 56px 50px minmax(160px, 1fr) 130px 140px;
    gap: 12px;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid #142331;
}

.rankRow:last-child {
    border: 0;
}

.rankRow.header {
    background: #07101a;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.08em;
}

.rankRow.hidden {
    display: none;
}

.place {
    font: 700 24px 'Rajdhani', sans-serif;
}

.rankRow:nth-child(2) .place {
    color: var(--gold);
}

.rankRow:nth-child(3) .place {
    color: #c0c0c0;
}

.rankRow:nth-child(4) .place {
    color: #cd7f32;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #465a6c;
}

.pilot strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
}

.pilot small {
    color: var(--muted);
    font-size: 12px;
}

.score {
    font: 700 20px 'Rajdhani', sans-serif;
    color: var(--cyan);
}

.rankAction {
    font-size: 11px;
    padding: 6px 10px;
}

.position {
    margin-top: 16px;
    border: 1px solid rgba(255, 11, 122, .45);
    background: rgba(255, 11, 122, .045);
    padding: 16px 20px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.position strong {
    color: var(--pink);
}

/* Leyendas */
.legends {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.legendIntro, .legend {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 28px;
}

.legend {
    text-align: center;
}

.legend img {
    margin: 0 auto 14px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--pink);
    box-shadow: 0 0 16px rgba(255, 11, 122, 0.25);
}

.legend h3 {
    margin: 12px 0 4px;
    font: 700 22px 'Rajdhani', sans-serif;
    color: #ffffff;
}

.legend b {
    font: 700 28px 'Rajdhani', sans-serif;
    color: var(--pink);
}

/* Acceso y Features */
.accessGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.access {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.access.featured {
    border-color: rgba(19, 220, 233, .5);
    box-shadow: 0 0 24px rgba(19, 220, 233, 0.15);
}

.access h3 {
    font: 700 28px 'Rajdhani', sans-serif;
    margin: 8px 0 14px;
    color: #ffffff;
}

.access ul {
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.features {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    margin-top: 58px;
    border: 1px solid var(--line);
    background: var(--line);
    border-radius: var(--r);
    overflow: hidden;
}

.feature {
    background: #060b11;
    padding: 22px;
}

.feature b {
    font: 700 18px 'Rajdhani', sans-serif;
    color: var(--cyan);
    display: block;
    margin-bottom: 6px;
}

.feature p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.45;
    margin: 0;
}

/* Footer Oficial */
.footer-container {
    margin-top: auto;
    border-top: 1px solid var(--line);
    background: #020508;
    padding: 36px 0;
    color: var(--muted);
    font-size: 14px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    color: var(--cyan);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-layout-container {
        grid-template-columns: 1fr;
        margin: 24px auto 40px;
    }
    
    .navlinks {
        display: none;
    }

    .menuBtn {
        display: block;
    }
}

@media (max-width: 640px) {
    .header {
        height: 68px;
    }

    .mobileMenu {
        top: 68px;
    }

    .logo {
        height: 42px;
    }

    .wrap {
        width: calc(100% - 32px);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================================
   MODALES DEL SISTEMA (ADMIN & USUARIO)
   ======================================================== */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 20000;
    background: rgba(3, 6, 10, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    visibility: hidden;
}

.custom-modal.active {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    display: flex !important;
}

.custom-modal-content {
    background: var(--panel, #081019);
    border: 1px solid var(--cyan, #13dce9);
    box-shadow: 0 0 25px rgba(19, 220, 233, 0.35);
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    z-index: 20001;
    color: var(--text, #f7f8fb);
    animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--muted, #8c99a8);
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--pink, #ff0b7a);
    transform: rotate(90deg);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(3, 6, 10, 0.88);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.modal-content {
    background: var(--panel, #081019);
    border: 1px solid var(--cyan, #13dce9);
    box-shadow: 0 0 25px rgba(19, 220, 233, 0.35);
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    color: var(--text, #f7f8fb);
}

