* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: #000000;
    border-bottom: 1px solid #333333;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-nav {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    color: #3dd6d0;
}

.btn-login {
    background: #3dd6d0;
    color: #000000;
    padding: 8px 20px;
    font-weight: 600;
}
    border-radius: 5px;

.btn-login:hover {
    background: #35c4be;
    color: #000000;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #3dd6d0;
    cursor: pointer;
    transition: border-color 0.3s;
}

.user-avatar:hover {
    border-color: #35c4be;
}

.user-dropdown {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 55px;
    right: 0;
    background: #0a0a0a;
    border: 2px solid #3dd6d0;
    padding: 15px;
    min-width: 200px;
    z-index: 1000;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-username {
    color: #3dd6d0;
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333333;
}

.btn-logout {
    display: block;
    width: 100%;
    padding: 10px;
    background: #3dd6d0;
    color: #000000;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #35c4be;
}

.user-name {
    color: #3dd6d0;
    font-weight: 600;
    font-size: 0.85rem;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: center;
    padding-top: 150px;
    padding-left: 80px;
}

.facciones-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
}

.faccion-card {
    background: #1a1a1a;
    border: 2px solid #333333;
    padding: 25px;
    text-align: center;
    max-width: 350px;
    flex: 1;
    min-width: 300px;
    border-radius: 15px;
    position: relative;
}

.badge-buscando {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #3dd6d0;
    color: #000000;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.faccion-logo {
    margin-bottom: 15px;
}

.faccion-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.faccion-info h2 {
    color: #3dd6d0;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.faccion-info p {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.btn-disabled {
    padding: 12px 30px;
    font-size: 1rem;
    border: 2px solid #666666;
    background: transparent;
    color: #666666;
    cursor: not-allowed;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    border-radius: 5px;
    align-items: center;
    gap: 8px;
}

.btn-disabled svg {
    width: 16px;
    height: 16px;
}

.btn-postular {
    padding: 12px 30px;
    font-size: 1rem;
    border: none;
    background: #3dd6d0;
    color: #000000;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border-radius: 5px;
}

.btn-postular:hover {
    background: #35c4be;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #3dd6d0;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #35c4be;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #3dd6d0;
    cursor: pointer;
}

.modal-close:hover {
    color: #35c4be;
}

.modal-content h2 {
    color: #3dd6d0;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: #0a0a0a;
    border: 1px solid #333333;
    color: #ffffff;
    font-family: inherit;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3dd6d0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #3dd6d0;
}

.subtitle {
    font-size: 1.5rem;
    color: #cccccc;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}
    border-radius: 5px;

.btn-primary {
    background: #3dd6d0;
    color: #000000;
}
    border-radius: 5px;

.btn-primary:hover {
    background: #35c4be;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #3dd6d0;
}
    border-radius: 5px;

.btn-secondary:hover {
    background: #3dd6d0;
    color: #000000;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 15px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}