* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    overflow-x: hidden;
}

/* ── BURBUJAS ── */
.burbuja {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: flotar 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

.b1 { width: 420px; height: 420px; background: #7b2ff7; top: -100px; left: -100px; animation-delay: 0s; }
.b2 { width: 350px; height: 350px; background: #3a8ef6; bottom: -80px; right: -80px; animation-delay: 2s; }
.b3 { width: 250px; height: 250px; background: #f857a6; top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: 4s; }

@keyframes flotar {
    from { transform: scale(1) translate(0, 0); }
    to   { transform: scale(1.15) translate(20px, -20px); }
}

/* ── NAVBAR ── */
#header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding: 18px 24px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    padding: 8px 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.nav > li {
    position: relative;
}

.nav > li > a {
    display: block;
    padding: 9px 14px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.nav > li > a:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.nav > li + li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.12);
}

/* ── DROPDOWN ── */
.nav > li > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    background: rgba(20,15,50,0.75);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 8px;
    padding-top: 18px;
    min-width: 160px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
    z-index: 100;
    margin-top: 0;
}

.nav > li:hover > ul {
    display: block;
}

.nav > li > ul > li > a {
    display: block;
    padding: 9px 14px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.73rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}

.nav > li > ul > li > a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.nav > li > a.con-flecha::after {
    content: ' ▾';
    font-size: 0.6rem;
    opacity: 0.6;
}

.nav > li > a::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.nav > li > a.solo {
    color: rgba(180,150,255,0.85);
}

.nav > li > a.solo:hover {
    color: #c9a0ff;
    background: rgba(180,100,255,0.12);
}

/* ── CARD GLASS (login y formularios) ── */
.card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    margin: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 24px;
    padding: 48px 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.37), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* ── CENTRAR CARD ── */
.centrar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* ── LOGO ── */
.logo-area {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icono {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
}

.logo-icono svg {
    width: 34px;
    height: 34px;
    fill: rgba(255,255,255,0.9);
}

.titulo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 8px;
    color: #fff;
    text-shadow: 0 2px 16px rgba(120,50,255,0.4);
}

/* ── FORMULARIO ── */
.grupo {
    margin-bottom: 18px;
}

.grupo label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
}

.input-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: rgba(255,255,255,0.35);
    pointer-events: none;
}

.grupo input,
.grupo select,
.grupo textarea {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 13px 16px;
    color: #fff;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    outline: none;
}

.grupo input.con-icono,
.grupo select.con-icono {
    padding-left: 42px;
}

.grupo input::placeholder,
.grupo textarea::placeholder {
    color: rgba(255,255,255,0.22);
}

.grupo input:focus,
.grupo select:focus,
.grupo textarea:focus {
    border-color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 3px rgba(123,47,247,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

.grupo select option {
    background: #1a1535;
    color: #fff;
}

/* ── BOTONES ── */
.btn {
    padding: 13px 24px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: rgba(255,255,255,0.22);
    box-shadow: 0 6px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-block {
    width: 100%;
    text-align: center;
}

.btn-peligro {
    border-color: rgba(255,80,80,0.4);
    color: rgba(255,150,150,0.9);
}

.btn-peligro:hover {
    background: rgba(255,60,60,0.18);
}

/* ── TABLA ── */
.tabla-wrap {
    position: relative;
    z-index: 1;
    margin: 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead tr {
    background: rgba(255,255,255,0.08);
}

thead th {
    padding: 14px 18px;
    color: rgba(255,255,255,0.5);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.15s;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background: rgba(255,255,255,0.05);
}

tbody td {
    padding: 13px 18px;
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
}

/* ── DIVISOR ── */
.divisor {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 24px 0;
}