: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;
}

.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;
}

.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);
}

.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;
}

@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);
    }
}

.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;
}

.cyber-plans-title {
    text-align: center;
    margin-top: 0.5rem;
    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);
}

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

.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;
}

.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;
}

.feature-text-ventajas {
    flex: 1;
    min-width: 0;
}

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

.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 {
    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;
    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;
    }
}

.bottom-buttons-container {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
}

.whatsapp-container {
    order: 2;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    cursor: pointer;
}

.whatsapp-icon {
    color: white !important;
    font-size: 1.5rem;
    width: 1em;
    height: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.privacy-notice-container {
    order: 1;
    position: relative;
    margin: 0;
}

.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);
    box-shadow: 0 4px 20px rgba(255, 0, 228, 0.2);
}

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

.terms-container {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1000;
}

.terms-icon {
    color: var(--primary-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(0, 240, 255, 0.1);
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.2);
}

.terms-icon:hover {
    color: var(--accent-color);
    background: rgba(255, 0, 228, 0.2);
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.feature-item-small {
    height: 70px !important;
    min-height: 70px !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-item-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 209, 255, 0.4);
}

.feature-item-small .feature-text h4 {
    font-size: 12px;
    color: #00d1ff;
    margin: 0;
    font-weight: 600;
    font-style: oblique;
}

.cc-modal__content-ventajas {
    background-color: white;
    margin: 3% auto; 
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: cc-modalFadeIn 0.3s;
}

.cc-modal__content-ventajas .cc-modal__title {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    color: #2c3e50;
}

.ventajas-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.ventajas-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Estilos para el modal de credenciales */
.custom-swal-popup {
    border-radius: 12px;
    padding: 20px;
}

.custom-swal-content {
    padding: 10px 0;
    text-align: center;
}

.credentials-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
}

.credential-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #6a35ff;
}

.credential-label {
    font-weight: 600;
    color: #495057;
}

.credential-value {
    font-weight: 700;
    color: #6a35ff;
    font-family: 'Courier New', monospace;
    background-color: #f1f3ff;
    padding: 4px 8px;
    border-radius: 4px;
}

.contact-message {
    margin-top: 20px;
    padding: 10px;
    background-color: #e9ecef;
    border-radius: 6px;
    font-style: italic;
}

/* Ajustar el icono de éxito */
.swal2-icon.swal2-success {
    border-color: #6a35ff;
    color: #6a35ff;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(106, 53, 255, 0.3);
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #6a35ff;
}

@media (max-width: 1366px) {
    .cyber-container {
        flex-direction: row;
    }

    .cyber-panel, .login-panel {
        flex: 1 1 50%;
        padding: 1.5rem;
    }

    .cyber-title h1 {
        font-size: 2rem;
    }

    .cyber-title h2 {
        font-size: 1.2rem;
    }

    .cyber-logo {
        width: 140px;
    }

    .login-container {
        max-width: 350px;
        padding: 1.5rem;
    }

    .cyber-features {
        max-width: 400px;
        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;
        height: 28px;
        font-size: 0.8rem;
    }

    .cyber-panel {
        position: relative;
        padding-bottom: 60px;
    }

    .cyber-footer {
        position: absolute;
        bottom: 10px;
        width: calc(100% - 3rem);
        left: 1.5rem;
        padding: 0;
        font-size: 0.7rem;
    }

    .cyber-features {
        margin-bottom: 1rem;
    }
}

@media (max-width: 1100px) {
    .cc-modal__content-ventajas {
        max-width: 90%;
        width: 90%;
        margin: 5% auto;
        padding: 25px;
    }
}

@media (max-width: 992px) {
    .login-container {
        margin-bottom: 60px;
    }

    .login-container {
        padding: 2rem;
    }

    .privacy-notice-container {
        left: 50%;
        transform: translateX(-50%);
        bottom: 10px;
        width: 100%;
        text-align: center;
        position: fixed;
        order: 2;
    }

    .privacy-notice-icon {
        margin: 0 auto;
    }

    .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;
    }

    .cyber-footer {
        position: static;
        width: 100%;
        max-width: 100%;
        margin: 2rem auto 0 auto;
        padding: 0 1rem;
        text-align: center;
        background: transparent;
        box-shadow: none;
        transform: none;
        left: auto;
        right: auto;
    }

    .bottom-buttons-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .whatsapp-container {
        margin-bottom: 15px;
        order: 1;
    }

}

@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: 10px;
    }

    .login-panel {
        padding-bottom: 50px;
    }

    .cyber-footer {
        position: relative;
        width: 100%;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 20px 0;
        padding: 0 1.2rem;
        text-align: center;
        font-size: 0.65rem;
    }

    .login-container {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .bottom-buttons-container {
        display: block;
        position: static;
    }

    .privacy-notice-container {
        position: static;
        transform: none;
        margin: 0 auto 20px auto;
        display: table;
        left: auto;
        bottom: auto;
    }

    .privacy-notice-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .whatsapp-btn {
        width: 40px;
        height: 40px;
    }

    .whatsapp-icon {
        font-size: 1.4rem;
    }

    .whatsapp-container {
        position: fixed;
        left: 22px;
        bottom: 22px;
        z-index: 1001;
    }

    .terms-container {
        bottom: 40px;
    }

    .terms-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .cc-modal__content-ventajas {
        padding: 20px;
        max-width: 95%;
        width: 95%;
    }

    .cc-modal__content-ventajas .cc-modal__title {
        font-size: 24px;
    }

    .ventajas-image {
        max-height: 70vh;
    }
}
