/* web-postulaciones/styles.css - Estilos Adaptados para Movil y PC para OASIS #1 */

:root {
    --bg-main: #060913;
    --bg-card: rgba(12, 18, 32, 0.88);
    --bg-input: rgba(4, 7, 15, 0.95);
    --border-color: rgba(0, 229, 255, 0.22);
    --gold: #FFD700;
    --gold-glow: rgba(255, 215, 0, 0.25);
    --cyan: #00E5FF;
    --emerald: #10B981;
    --red: #EF4444;
    --text-main: #F8FAFC;
    --text-sub: #94A3B8;
    --font-code: 'Fira Code', monospace;
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

/* GLOW & PARTICLES */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 10%, rgba(255, 215, 0, 0.08) 0%, rgba(0, 229, 255, 0.05) 50%, transparent 80%);
    pointer-events: none;
    z-index: 1;
}

/* NAVBAR */
.navbar {
    background: rgba(8, 13, 24, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-emoji {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px var(--gold));
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.accent-gold {
    color: var(--gold);
}

.brand-sub {
    display: block;
    font-size: 0.72rem;
    color: var(--cyan);
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid var(--emerald);
    padding: 0.35rem 0.9rem;
    border-radius: 30px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--emerald);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
}

.status-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--emerald);
    letter-spacing: 1px;
}

/* MAIN CONTENT */
.main-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 2.5rem 1.2rem;
    position: relative;
    z-index: 10;
}

.hero-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.cyber-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--gold);
    padding: 0.35rem 1.2rem;
    border-radius: 30px;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px var(--gold-glow);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.gold-gradient {
    background: linear-gradient(135deg, var(--gold), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-sub);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.5;
}

.time-badge {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.25);
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    margin-top: 0.8rem;
}

.label-with-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.label-with-counter label {
    margin-bottom: 0;
}

.char-count {
    font-family: var(--font-code);
    font-size: 0.78rem;
    color: var(--text-sub);
}

/* WIZARD PROGRESS BAR */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.progress-bar-fill {
    position: absolute;
    top: 18px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--cyan));
    z-index: 2;
    transition: width 0.4s ease;
}

.step-indicator {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.step-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0B1120;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.step-text {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-sub);
    transition: color 0.3s ease;
}

.step-indicator.active .step-num {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
    box-shadow: 0 0 15px var(--gold-glow);
}

.step-indicator.active .step-text {
    color: var(--gold);
}

.step-indicator.completed .step-num {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #000;
}

/* FORM CARD */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2.2rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    color: #FFF;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-bottom: 1.8rem;
}

/* FORM CONTROLS */
.form-group {
    margin-bottom: 1.4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: #FFF;
    font-family: var(--font-main);
    font-size: 0.95rem;
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
}

textarea {
    resize: vertical;
    min-height: 90px;
}

/* ROLE SELECTOR GRID */
.role-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.role-option {
    cursor: pointer;
}

.role-option input {
    display: none;
}

.role-card {
    background: rgba(4, 7, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.role-card .role-icon {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.role-card strong {
    font-size: 0.95rem;
    color: #FFF;
}

.role-card span {
    font-size: 0.78rem;
    color: var(--text-sub);
    line-height: 1.3;
}

.role-option input:checked + .role-card {
    background: rgba(255, 215, 0, 0.12);
    border-color: var(--gold);
    box-shadow: 0 0 20px var(--gold-glow);
}

.role-option input:checked + .role-card strong {
    color: var(--gold);
}

/* BUTTONS */
.btn-group {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-next,
.btn-prev,
.btn-submit {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.85rem 1.8rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next {
    background: linear-gradient(135deg, var(--gold), #F59E0B);
    color: #000;
    margin-left: auto;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--gold-glow);
}

.btn-prev {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-submit {
    background: linear-gradient(135deg, var(--emerald), #059669);
    color: #FFF;
    width: 100%;
    margin-top: 1rem;
    font-size: 1.05rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

/* SUMMARY CARD */
.summary-card {
    background: rgba(4, 7, 15, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 0.6rem;
}

.summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sum-label {
    font-size: 0.85rem;
    color: var(--text-sub);
}

.sum-val {
    font-weight: 700;
    font-size: 0.92rem;
    color: #FFF;
}

.sum-val.gold {
    color: var(--gold);
}

.disclaimer-box {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 10px;
    padding: 1rem;
    font-size: 0.82rem;
    color: var(--cyan);
    line-height: 1.4;
    margin-bottom: 1.2rem;
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    text-align: center;
    background: rgba(4, 7, 15, 0.95);
    margin-top: 4rem;
}

.footer-container {
    color: var(--text-sub);
    font-size: 0.85rem;
}

.credits-tag {
    margin-top: 0.4rem;
    color: var(--gold);
}

/* RESPONSIVE DESIGNS FOR MOBILE & TABLETS */
@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .form-card {
        padding: 1.4rem;
    }

    .wizard-progress {
        padding: 0;
    }

    .step-text {
        font-size: 0.7rem;
    }

    .step-num {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .wizard-progress::before,
    .progress-bar-fill {
        top: 15px;
    }
}

/* CUSTOM TOAST NOTIFICATIONS (SIN ALERTAS NATIVAS DEL NAVEGADOR) */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    background: rgba(10, 16, 28, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 0.95rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px var(--gold-glow);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    max-width: 380px;
}

.toast-item.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.3rem;
}

.toast-msg {
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFF;
    line-height: 1.3;
}

.toast-warning {
    border-color: var(--gold);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), 0 0 15px var(--gold-glow);
}

.toast-error {
    border-color: var(--red);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(239, 68, 68, 0.3);
}

.toast-success {
    border-color: var(--emerald);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(16, 185, 129, 0.3);
}

/* ERROR HIGHLIGHT FOR INPUTS */
.input-error {
    border-color: var(--red) !important;
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.4) !important;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

