* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #050b1f;
    --sidebar: #0b122b;
    --card: rgba(255,255,255,0.055);
    --card2: rgba(255,255,255,0.085);
    --text: #ffffff;
    --muted: #9ca3af;
    --line: rgba(255,255,255,0.12);
    --pink: #d946ef;
    --blue: #0ea5e9;
    --cyan: #22d3ee;
    --purple: #8b5cf6;
    --green: #22c55e;
}

body {
    font-family: 'Poppins', sans-serif;
    background:
        radial-gradient(circle at 80% 20%, rgba(14,165,233,.16), transparent 30%),
        radial-gradient(circle at 20% 80%, rgba(139,92,246,.18), transparent 35%),
        #050b1f;
    color: var(--text);
    min-height: 100vh;
}

.app {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR (barra lateral) */

.sidebar {
    width: 300px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 34px 24px;
    background: linear-gradient(180deg, #0b1028, #101747, #171346);
    border-right: 1px solid var(--line);
    box-shadow: 12px 0 45px rgba(0,0,0,.28);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 25px;
    font-weight: 900;
    margin-bottom: 55px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo::before {
    content: "💼";
    font-size: 30px;
    filter: drop-shadow(0 0 10px var(--pink));
}

.sidebar a,
.sidebar button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
    border: none;
    background: transparent;
    color: #e5e7eb;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: .3s ease;
}

.sidebar a:first-of-type {
    background: linear-gradient(90deg, var(--pink), var(--blue));
    box-shadow: 0 12px 30px rgba(14,165,233,.22);
}

.sidebar a:hover,
.sidebar button:hover {
    background: rgba(255,255,255,.08);
    transform: translateX(6px);
}

.sidebar span {
    font-size: 23px;
}

.sidebar-bottom {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 30px;
}

.sidebar-bottom button {
    background: rgba(255,255,255,.07);
    border: 1px solid var(--line);
}

.logout-link {
    color: #f472b6 !important;
}

/* MAIN (centrado principal de todo) */

.main {
    margin-left: 300px;
    width: calc(100% - 300px);
    padding: 44px 56px;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
}

/* ADMIN */

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.admin-header h1 {
    font-size: 40px;
    margin-bottom: 8px;
}

.admin-header p {
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-bottom: 35px;
}

.stat-card {
    padding: 26px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
    border-radius: 14px;
}

.stat-card span {
    font-size: 34px;
    display: block;
    margin-bottom: 16px;
}

.stat-card b {
    font-size: 42px;
    font-family: 'Outfit', sans-serif;
    display: block;
}

.stat-card p {
    margin: 0;
    color: var(--muted);
}

.stat-card.cyan b,
.stat-card.cyan span {
    color: var(--cyan);
}

.stat-card.blue b,
.stat-card.blue span {
    color: #3b82f6;
}

.stat-card.purple b,
.stat-card.purple span {
    color: var(--purple);
}

.stat-card.pink b,
.stat-card.pink span {
    color: var(--pink);
}

.users-panel {
    padding: 26px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 20px 55px rgba(0,0,0,0.25);
    border-radius: 18px;
}

.users-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.users-panel-header h2 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

.users-panel-header p {
    margin: 6px 0 0;
    color: var(--muted);
}

#buscarUsuario {
    max-width: 310px;
    padding: 15px 18px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: var(--text);
    outline: none;
    border-radius: 12px;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 18px;
    background: rgba(15,23,42,0.42);
    border: 1px solid rgba(255,255,255,0.08);
    transition: 0.3s ease;
    border-radius: 14px;
}

.user-row:hover {
    transform: translateX(8px);
    border-color: var(--accent);
    background: rgba(255,255,255,0.08);
}

.user-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--cyan), var(--purple), var(--pink));
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 20px;
    color: white;
    border-radius: 50%;
}

.user-main b {
    font-size: 17px;
}

.user-main p {
    margin: 4px 0 0;
    color: var(--muted);
}

.user-info small {
    display: block;
    color: var(--muted);
    margin-bottom: 7px;
}

.badge {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
    border-radius: 8px;
}

.badge-blue {
    background: rgba(14,165,233,0.18);
    color: #38bdf8;
}

.badge-purple {
    background: rgba(139,92,246,0.22);
    color: #c084fc;
}

.status {
    color: #22c55e;
    font-weight: 800;
}

.menu-dots {
    font-size: 28px;
    color: var(--muted);
}

/* USER DASHBOARD  */

.user-main-dashboard {
    padding: 44px 56px;
}

.user-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 34px;
}

.user-topbar h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 10px;
}

.user-topbar p {
    color: var(--muted);
    font-size: 17px;
}

.profile-pill {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 18px;
    background: rgba(255,255,255,.055);
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    border-radius: 18px;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.profile-pill small {
    display: block;
    color: var(--muted);
}

.user-hero {
    min-height: 170px;
    padding: 34px;
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    gap: 26px;
    background:
        radial-gradient(circle at 88% 50%, rgba(217,70,239,.45), transparent 22%),
        linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
    border: 1px solid var(--line);
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
    overflow: hidden;
    border-radius: 18px;
}

.user-hero-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(217,70,239,.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
}

.user-hero h2 {
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 10px;
}

.user-hero h2 span {
    color: var(--pink);
}

.user-hero p {
    font-size: 18px;
    color: #e5e7eb;
}

.hero-illustration {
    margin-left: auto;
    font-size: 72px;
    filter: drop-shadow(0 0 22px rgba(34,211,238,.45));
}

.user-panel {
    padding: 32px;
    margin-bottom: 28px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--line);
    box-shadow: 0 20px 55px rgba(0,0,0,.22);
    border-radius: 18px;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.circle-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(139,92,246,.26);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.circle-icon.cyan {
    background: rgba(34,211,238,.18);
}

.panel-title h2 {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 5px;
}

.panel-title p {
    color: var(--muted);
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 275px;
    gap: 24px;
    align-items: center;
}

.search-row input {
    width: 100%;
    padding: 18px 22px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.14);
    color: white;
    font-size: 16px;
    outline: none;
    border-radius: 14px;
}

.search-row input::placeholder {
    color: #9ca3af;
}

.search-row button {
    height: 58px;
    border: none;
    background: linear-gradient(90deg, var(--pink), var(--blue));
    color: white;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    border-radius: 14px;
}

.divider-line {
    height: 1px;
    background: var(--line);
    margin: 28px 0;
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-card {
    display: grid;
    grid-template-columns: 72px 1fr auto 35px;
    align-items: center;
    gap: 22px;
    padding: 20px 24px;
    background: rgba(15,23,42,.38);
    border: 1px solid rgba(255,255,255,.095);
    transition: .3s ease;
    border-radius: 14px;
}

.job-card:hover {
    transform: translateX(8px);
    border-color: var(--cyan);
    background: rgba(255,255,255,.07);
}

.job-icon {
    width: 64px;
    height: 64px;
    background: rgba(34,211,238,.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    border-radius: 16px;
}

.job-content h3 {
    font-size: 20px;
    font-weight: 900;
    color: white;
    margin-bottom: 6px;
}

.job-content p {
    color: #e5e7eb;
    margin-bottom: 4px;
}

.job-content small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.job-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tag {
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 900;
    border-radius: 10px;
}

.tag.green {
    color: #34d399;
    background: rgba(16,185,129,.13);
}

.tag.purple {
    color: #c084fc;
    background: rgba(139,92,246,.18);
}

.apply-arrow {
    font-size: 45px;
    color: var(--muted);
    text-decoration: none;
}

.apply-arrow:hover {
    color: var(--cyan);
}

.cta-box {
    margin-top: 22px;
    padding: 26px;
    display: grid;
    grid-template-columns: 70px 1fr auto;
    align-items: center;
    gap: 20px;
    background: linear-gradient(90deg, rgba(139,92,246,.28), rgba(236,72,153,.22), rgba(34,211,238,.12));
    border: 1px solid var(--line);
    border-radius: 18px;
}

.rocket-icon {
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255,255,255,.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    border-radius: 14px;
}

.cta-box a {
    padding: 15px 24px;
    background: linear-gradient(90deg, var(--pink), var(--blue));
    color: white;
    font-weight: 900;
    text-decoration: none;
    border-radius: 14px;
}

.application-row {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.application-row span {
    color: var(--green);
    font-weight: 900;
}

/* LOGIN */

body:has(.login-page) {
    background:
        radial-gradient(circle at 18% 12%, rgba(236,72,153,.42), transparent 28%),
        radial-gradient(circle at 85% 35%, rgba(14,165,233,.35), transparent 30%),
        #040b1f;
}

.login-page {
    min-height: 100vh;
    width: 100%;
    padding: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-panel {
    width: 100%;
    max-width: 1320px;
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: rgba(3, 10, 32, 0.78);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 35px 90px rgba(0,0,0,0.6);
    backdrop-filter: blur(22px);
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.login-panel::before {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    left: -90px;
    bottom: -90px;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    border-radius: 50%;
    opacity: .42;
}

.login-brand,
.login-form {
    position: relative;
    z-index: 2;
    padding: 80px;
}

.login-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255,255,255,.2);
}

.brand-icon {
    font-size: 72px;
    margin-bottom: 28px;
    filter: drop-shadow(0 0 18px rgba(34,211,238,.8));
}

.login-brand h1 {
    font-size: 56px;
    line-height: 1.05;
    color: white;
    font-weight: 900;
}

.login-brand h1 span {
    display: block;
    background: linear-gradient(90deg, var(--pink), var(--cyan));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-line {
    width: 75px;
    height: 4px;
    margin: 28px 0;
    background: linear-gradient(90deg, var(--pink), var(--cyan));
}

.login-brand p {
    max-width: 440px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.brand-features {
    display: flex;
    gap: 40px;
    margin-top: 55px;
}

.brand-features div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.login-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form h2 {
    font-size: 42px;
    margin-bottom: 8px;
}

.login-form > p {
    color: var(--muted);
    margin-bottom: 40px;
}

.login-form label {
    font-weight: 800;
    margin-bottom: 8px;
}

.input-group {
    display: flex;
    align-items: center;
    border: 2px solid rgba(34,211,238,.45);
    margin-bottom: 32px;
    padding: 0 16px;
    height: 58px;
    border-radius: 14px;
}

.input-group input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    color: white;
    outline: none;
}

.login-form button {
    width: 100%;
    height: 60px;
    border: none;
    background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan));
    color: white;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    border-radius: 14px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 38px 0 20px;
    color: var(--muted);
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,.22);
}

.create-account {
    text-align: center;
    font-weight: 900;
    color: var(--cyan);
    text-decoration: none;
}

/* notificaciones de alerta */

.alert {
    padding: 15px 18px;
    margin-bottom: 18px;
    border-left: 5px solid var(--cyan);
    background: rgba(255,255,255,.06);
    border-radius: 10px;
}

.alert-success { border-color: var(--green); }
.alert-error { border-color: #ef4444; }
.alert-info { border-color: var(--cyan); }

.reveal {
    opacity: 1;
    transform: none;
}

/* barras de busqueda y parte de sidebar, botones etc variopintos */

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .user-row {
        grid-template-columns: 1fr;
    }

    .users-panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    #buscarUsuario {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 900px) {
    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
    }

    .app {
        flex-direction: column;
    }

    .main {
        margin-left: 0;
        width: 100%;
        padding: 28px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .user-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .hero-illustration {
        display: none;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .job-card {
        grid-template-columns: 1fr;
    }

    .cta-box {
        grid-template-columns: 1fr;
    }

    .login-panel {
        grid-template-columns: 1fr;
    }

    .login-brand,
    .login-form {
        padding: 45px;
    }

    .login-brand {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.2);
    }

    .login-brand h1 {
        font-size: 42px;
    }

    .brand-features {
        flex-direction: column;
        gap: 20px;
    }
}

.recruiter-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.recruiter-form textarea,
.recruiter-form button,
.recruiter-form .cancel-link {
    grid-column: span 2;
}

.recruiter-form input,
.recruiter-form textarea,
.recruiter-form select,
.status-form select {
    width: 100%;
    padding: 16px 18px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.14);
    color: white;
    outline: none;
    border-radius: 14px;
}

.recruiter-form textarea {
    min-height: 120px;
    resize: vertical;
}

.recruiter-form button,
.status-form button {
    padding: 15px 24px;
    background: linear-gradient(90deg, var(--pink), var(--blue));
    color: white;
    border: none;
    font-weight: 900;
    border-radius: 14px;
    cursor: pointer;
}

.cancel-link {
    color: var(--cyan);
    font-weight: 900;
    text-decoration: none;
}

.recruiter-stats {
    grid-template-columns: repeat(3, 1fr);
}

.status-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (max-width: 900px) {
    .recruiter-form {
        grid-template-columns: 1fr;
    }

    .recruiter-form textarea,
    .recruiter-form button,
    .recruiter-form .cancel-link {
        grid-column: span 1;
    }

    .recruiter-stats {
        grid-template-columns: 1fr;
    }
}

.user-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mini-btn {
    display: inline-block;
    padding: 9px 13px;
    background: rgba(34,211,238,.14);
    color: var(--cyan);
    font-weight: 900;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid rgba(34,211,238,.25);
}

.mini-btn.danger {
    background: rgba(239,68,68,.14);
    color: #f87171;
    border-color: rgba(239,68,68,.28);
}

.empresa-form {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 18px;
    margin-bottom: 26px;
}

.empresa-form input {
    padding: 16px 18px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.14);
    color: white;
    border-radius: 14px;
    outline: none;
}

.empresa-form button {
    border: none;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--pink), var(--blue));
    color: white;
    font-weight: 900;
    cursor: pointer;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.company-card {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 20px;
    background: rgba(15,23,42,0.42);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
}

.company-card:hover {
    border-color: var(--cyan);
    transform: translateY(-4px);
    transition: .3s;
}

.company-icon {
    width: 56px;
    height: 56px;
    background: rgba(34,211,238,.16);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    font-size: 28px;
}

.company-card h3 {
    margin-bottom: 5px;
}

.company-card p {
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 900px) {
    .empresa-form {
        grid-template-columns: 1fr;
    }

    .company-card {
        grid-template-columns: 1fr;
    }
}

.selector-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.selector-content {
    width: 100%;
    max-width: 1050px;
    text-align: center;
}

.selector-content h1 {
    font-size: 52px;
    margin-bottom: 12px;
}

.selector-content > p {
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 45px;
}

.selector-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.selector-card {
    padding: 45px;
    background: rgba(255,255,255,.055);
    border: 1px solid var(--line);
    border-radius: 22px;
    text-align: left;
    color: white;
    box-shadow: 0 25px 60px rgba(0,0,0,.28);
    transition: .3s ease;
}

.selector-card:hover {
    transform: translateY(-8px);
    border-color: var(--cyan);
    background: rgba(255,255,255,.08);
}

.selector-icon {
    font-size: 58px;
    margin-bottom: 25px;
}

.selector-card h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.selector-card p {
    color: var(--muted);
    margin-bottom: 25px;
}

.selector-card span {
    color: var(--cyan);
    font-weight: 900;
}

@media (max-width: 800px) {
    .selector-options {
        grid-template-columns: 1fr;
    }

    .selector-content h1 {
        font-size: 38px;
    }
}

.captcha-box {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}