/* ================================================================
   SISTEMA DE CÓDIGOS - ESTILOS ESPECÍFICOS DE INICIO
   Archivo: styles/modern_inicio.css
   ================================================================ */

:root {
    --neon-cyan: #00f3ff;
    --neon-purple: #9d00ff;
    --neon-red: #ff3d00;
    --glass-bg: rgba(15, 15, 25, 0.85);
    /* Un poco más oscuro */
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: #a0a0b0;
    --text-primary: #00f3ff;
    --neon-glow: 0 0 20px rgba(0, 243, 255, 0.4);
}

@keyframes neonPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 243, 255, 0.4), 0 20px 50px rgba(0, 0, 0, 0.6);
    }

    50% {
        box-shadow: 0 0 45px rgba(0, 243, 255, 0.7), 0 20px 60px rgba(0, 0, 0, 0.8);
    }
}

@keyframes kenburns-effect {
    from {
        transform: scale(1) translate(0, 0);
    }

    to {
        transform: scale(1.1) translate(2%, -2%);
    }
}

@keyframes scanline-effect {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 -400px;
    }
}

@keyframes gradient-flow {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes float-effect {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes matrixMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(20px, 20px);
    }
}

@keyframes neonSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes neonBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
        text-shadow: 0 0 30px var(--neon-cyan);
    }

    60% {
        transform: translateY(-8px);
    }
}

@keyframes button-glow-pulse {
    0% {
        box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 25px #00f3ff;
    }

    100% {
        box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
    }
}

@keyframes neonProgress {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/* --- FORM GROUP MODERN --- */
.form-group-modern {
    position: relative;
    margin-bottom: 25px;
}

.form-input-modern {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px 15px 15px 50px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input-modern:focus {
    outline: none;
    border-color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.form-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.form-input-modern:focus+.form-icon {
    color: var(--neon-cyan);
}

/* --- CUSTOM SELECT (PLATAFORMAS) --- */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
}

.custom-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 15px 15px 50px;
    font-size: 1rem;
    font-weight: 400;
    color: #fff;
    height: 56px;
    line-height: 56px;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s;
}

.custom-select__trigger .arrow {
    position: relative;
    height: 10px;
    width: 10px;
    border-right: 2px solid var(--text-dim);
    border-bottom: 2px solid var(--text-dim);
    transform: rotate(45deg);
    transition: transform 0.3s;
    margin-right: 5px;
}

.custom-select.open .custom-select__trigger .arrow {
    transform: rotate(-135deg);
}

.custom-select.open .custom-select__trigger {
    border-color: var(--neon-cyan);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

/* --- BOTÓN DE BÚSQUEDA --- */
.btn-search-modern {
    width: 100%;
    padding: 16px;
    background: #00f3ff;
    /* Color plano vibrante como en la imagen */
    border: none;
    border-radius: 12px;
    color: #000;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: button-glow-pulse 2.5s ease-in-out infinite;
    /* Restaurado */
}

.btn-search-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.8);
    background: #5ef9ff;
}

.btn-search-modern:active {
    transform: scale(0.98);
}

.btn-search-modern.loading {
    opacity: 0.8;
    cursor: wait;
}

/* --- LOGO Y TÍTULOS --- */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.logo {
    max-height: 140px;
    /* Restaurado a tamaño original balanced */
    width: auto;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
    transition: transform 0.5s ease;
    animation: float-effect 3s ease-in-out infinite;
    /* FLOTADO RESTAURADO */
}

.main-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    /* Restaurado */
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* --- ALERTAS MODERNAS --- */
.alert-modern {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideUp 0.5s ease-out;
}

.alert-success-modern {
    border-left: 4px solid #00ff88;
    color: #00ff88;
}

.alert-warning-modern {
    border-left: 4px solid #ffcc00;
    color: #ffcc00;
}

.alert-error-modern {
    border-left: 4px solid var(--neon-red);
    color: var(--neon-red);
}

/* --- BOTONES NAVBAR ESTILO IMAGEN --- */
.nav-link {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(0, 243, 255, 0.3) !important;
    /* Borde cian sutil */
    border-radius: 4px;
    margin: 3px 8px;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.nav-link:hover {
    background: rgba(0, 243, 255, 0.15) !important;
    border-color: var(--neon-cyan) !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    transform: translateY(-2px);
}

.nav-link i {
    font-size: 1.1rem;
}

/* --- OVERLAY DE CARGA MEJORADO --- */
.loading-container {
    background: rgba(10, 10, 20, 0.98) !important;
    border: 1px solid var(--neon-cyan) !important;
    border-radius: 12px !important;
    padding: 25px !important;
    max-width: 320px !important;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3) !important;
}

.loading-progress {
    height: 4px !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.loading-progress-bar {
    background: var(--neon-cyan) !important;
}

/* --- NUEVA VISTA DE RESULTADOS (MODO AMPLIO) --- */
.results-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease-out;
}

.result-card-wide {
    background: rgba(30, 25, 50, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(138, 43, 226, 0.2);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.btn-new-search {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    margin-bottom: 20px;
}

.btn-new-search:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.alert-custom-cyan {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.alert-custom-cyan i {
    font-size: 1.4rem;
}

.alert-custom-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.result-content-box {
    background: #e2eef7;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid #b8daff;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.result-content-box h5 {
    color: #004085;
    font-weight: 700;
    font-size: 1.2rem;
}

.alert-inner-box {
    background: rgba(255, 255, 255, 0.6);
    border-left: 3px solid #ffc107;
    padding: 15px;
    border-radius: 4px;
    text-align: left;
    color: #333;
    font-size: 0.95rem;
    margin-top: 15px;
}

.email-preview {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    color: #333;
    overflow-x: auto;
}

/* CLASE CRÍTICA PARA CAMBIO DE VISTAS */
.hidden {
    display: none !important;
}

/* ANIMACIONES */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.results-container {
    animation: fadeInScale 0.5s ease-out;
}

/* SEGURIDAD DE VISUALIZACIÓN */
.results-container:not(.hidden) {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}