:root {
    --primary-color: #00f0ff;
    --secondary-color: #0066ff;
    --dark-bg: #0a0e17;
    --darker-bg: #050a12;
    --glass-bg: rgba(10, 14, 23, 0.7);
    --text-light: #e0f4ff;
    --text-lighter: #ffffff;
    --accent-color: #ff00e4;
    --success-color: #00ff9d;
    --error-color: #ff3a3a;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 240, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 228, 0.1) 0%, transparent 20%),
        linear-gradient(to bottom, var(--darker-bg), var(--dark-bg));
}

.cyber-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Panel izquierdo futurista - ahora con 50% de ancho */
.cyber-panel {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    z-index: 1;
}

.cyber-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../img/logo_fondo.jpeg') center/cover no-repeat;
    opacity: 0.15;
    z-index: -1;
}

.cyber-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2) 0%, rgba(0, 240, 255, 0.1) 100%);
    z-index: -1;
}

.cyber-logo {
    width: 180px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
    animation: float 6s ease-in-out infinite;
}

.cyber-title {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    position: relative;
}

.cyber-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.cyber-title h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 3px;
}

.cyber-footer {
    position: absolute;
    bottom: 2rem;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(224, 244, 255, 0.5);
    padding: 0 2rem;
}

/* Panel derecho de login - ahora con 50% de ancho */
.login-panel {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.login-container {
    width: 100%;
    max-width: 400px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 240, 255, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 0;
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(0, 240, 255, 0) 0%,
        rgba(0, 240, 255, 0.1) 50%,
        rgba(0, 240, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 6s infinite;
    z-index: -1;
    filter: blur(20px);
}

.login-logo {
    width: 80px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
}

.login-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
}

.login-title h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--text-lighter);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.login-title p {
    font-size: 0.9rem;
    color: rgba(224, 244, 255, 0.7);
}

.login-form {
    width: 100%;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
    width: 100%;
}

.login-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.login-form .form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(5, 10, 18, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    color: var(--text-lighter);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2);
}

.password-container {
    position: relative;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(224, 244, 255, 0.5);
    cursor: pointer;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    color: var(--dark-bg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.login-btn:hover i {
    transform: translateX(3px);
}

/* Efectos de partículas */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: float-particle infinite linear;
}

/* Animaciones */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0;
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20%, 100% {
        left: 100%;
    }
}

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

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 255, 157, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 157, 0);
    }
}

@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .cyber-container {
        flex-direction: column;
    }
    
    .cyber-panel, .login-panel {
        flex: 1 1 100%;
        padding: 2rem 1rem;
    }
    
    .cyber-title h1 {
        font-size: 2rem;
    }
    
    .cyber-title h2 {
        font-size: 1.2rem;
    }
    
    .login-container {
        padding: 2rem;
    }
    
    .cyber-footer {
        position: relative;
        bottom: auto;
        margin-top: 2rem;
    }
}

/* Efectos de conexión futurista */
.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    opacity: 0.3;
}

.cyber-line {
    position: absolute;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    height: 1px;
    width: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: -1;
    opacity: 0.1;
}

/* Aviso de privacidad */
.privacy-notice-container {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 100;
}

.privacy-notice-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 0, 228, 0.1);
    border: 1px solid var(--accent-color);
}

.privacy-notice-icon:hover {
    color: var(--primary-color);
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Ajustes para móviles */
@media (max-width: 992px) {
    .login-container {
        margin-bottom: 60px; /* Espacio extra para el aviso de privacidad */
    }
    
    .privacy-notice-container {
        left: 50%;
        transform: translateX(-50%);
        bottom: 10px;
        width: 100%;
        text-align: center;
    }
    
    .privacy-notice-icon {
        margin: 0 auto;
    }
}

/* Estilos para el título de planes */
.cyber-plans-title {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 500px;
}

.cyber-plans-title h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    letter-spacing: 2px;
}

.cyber-plans-title p {
    font-size: 0.9rem;
    color: rgba(224, 244, 255, 0.7);
}

/* Estilos mejorados para los features */
.cyber-features {
    width: 100%;
    max-width: 500px;
    margin-top: 0rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Feature items ajustados */
.feature-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(10, 14, 23, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-50px);
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.feature-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.2);
    transform: translateX(0) translateY(-3px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    margin-right: 1.5rem;
    flex-shrink: 0;
    color: var(--dark-bg);
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-text {
    flex: 1;
    min-width: 0; /* Esto evita que el flex item crezca más de lo necesario */
}

.feature-text h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    letter-spacing: 1px;
}

/* Sección de planes */
.plan-section {
    display: flex;
    align-items: center;
    margin-top: 0.8rem;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
}

.plan-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-right: 8px;
    opacity: 0.8;
    white-space: nowrap;
}

.plan-numbers {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    flex-grow: 1;
}

.plan-number {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-lighter);
    transition: all 0.2s ease;
    padding: 0 5px;
    box-sizing: border-box;
}

.plan-number:hover {
    background: rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 240, 255, 0.2);
}

/* Modal OXXO mejorado */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: auto;
    max-width: 500px; /* Tamaño más compacto */
    max-height: 90vh;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    background: var(--darker-bg);
    border-radius: 12px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.oxxo-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 0, 228, 0.2);
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    color: var(--text-light);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 0 5px var(--accent-color);
}

.close:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 1366px) {
    .cyber-container {
        flex-direction: row; /* Mantener diseño horizontal */
    }
    
    .cyber-panel, .login-panel {
        flex: 1 1 50%; /* Mantener 50% de ancho */
        padding: 1.5rem; /* Reducir padding */
    }
    
    .cyber-title h1 {
        font-size: 2rem; /* Reducir tamaño de fuente */
    }
    
    .cyber-title h2 {
        font-size: 1.2rem;
    }
    
    .cyber-logo {
        width: 140px;
    }
    
    .login-container {
        max-width: 350px;
        padding: 1.5rem;
    }
    
    .cyber-features {
        max-width: 400px; /* Reducir ancho de los features */
        gap: 1rem;
    }
    
    .feature-item {
        padding: 0.8rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        margin-right: 1rem;
    }
    
    .feature-text h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .plan-number {
        min-width: 28px; /* Reducir botones de numeros */
        height: 28px;
        font-size: 0.8rem;
    }
    
    .cyber-panel {
        position: relative;
        padding-bottom: 60px; /* Espacio para el footer */
    }
    
    .cyber-footer {
        position: absolute;
        bottom: 10px;
        width: calc(100% - 3rem);
        left: 1.5rem;
        padding: 0;
        font-size: 0.7rem;
    }
    
    .cyber-features {
        margin-bottom: 1rem;
    }
}

/* Ajustes para moviles */
@media (max-width: 768px) {
    .cyber-logo {
        width: 120px;
    }
    
    .cyber-title h1 {
        font-size: 1.8rem;
    }
    
    .cyber-title h2 {
        font-size: 1.1rem;
    }
    
    .login-logo {
        width: 70px;
    }
    
    .login-title h2 {
        font-size: 1.5rem;
    }
    
    .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
    
    .feature-text h3 {
        font-size: 0.95rem;
    }
    
    .plan-number {
        min-width: 26px;
        height: 26px;
    }
    
    .cyber-plans-title h2 {
        font-size: 1.2rem;
    }
    
    .cyber-container {
        flex-direction: column;
    }
    
    .cyber-panel, .login-panel {
        flex: 1 1 100%;
        padding: 1.2rem;
    }
    
    .cyber-panel {
        padding-bottom: 70px;
    }
    
    .login-panel {
        padding-bottom: 80px;
    }
    
    .cyber-footer {
        font-size: 0.65rem;
        bottom: 5px;
    }
    
    .login-container {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .privacy-notice-container {
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
        width: auto;
        padding: 8px;
    }
    
    .privacy-notice-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}
