:root {
    --bg-color: #0a0a0f;
    --text-color: #f0f0f5;
    --primary: #8a2be2;
    --primary-hover: #9d4edd;
    --secondary: #ff007f;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html, body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* Background effects */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 2.4rem; /* Magnificado */
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo-icon {
    margin-top: -2px;
}

.c-know {
    color: var(--text-color);
}

.c-me {
    color: var(--primary);
}

.c-it {
    color: #4ade80; /* Un verde vibrante para la tercera palabra, que da la idea de frescura y "¡Hazlo/Ve!" */
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary);
}

.btn-login {
    background: transparent;
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--glass-bg);
    border-color: var(--primary);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
}

.lang-btn {
    background: none;
    border: none;
    color: #606070;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lang-btn:hover {
    color: var(--text-color);
}

.lang-btn.active {
    color: var(--primary);
}

.lang-divider {
    color: #404050;
    font-size: 0.8rem;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 5%;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(138, 43, 226, 0.1);
    color: #c98cff;
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #a0a0b0;
    margin-bottom: 2rem;
}

.features {
    display: flex;
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e0e0e0;
}

.feature-item svg {
    color: var(--secondary);
}

/* Glass Card Form */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.glass-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 0.9rem;
    color: #a0a0b0;
    margin-bottom: 2rem;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #c0c0d0;
}

.input-group input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #a0a0b0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3);
}

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

/* Wizard Form Styles */
.form-step {
    animation: fadeIn 0.4s ease;
}

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

.step-indicator {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.form-input,
.form-select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    appearance: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.1);
}

.form-select option {
    background: var(--bg-color);
    color: var(--text-color);
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-group .btn-primary {
    flex: 2;
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        margin: 0 auto;
    }

    .features {
        justify-content: center;
    }

    h1 {
        font-size: 3rem;
    }
    
    .input-row {
        grid-template-columns: 1fr;
    }
}

/* Chat Interface Styles */
.chat-body {
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-wrapper {
    width: 100%;
    max-width: 800px;
    height: 90vh;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.back-btn {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.2s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    margin-left: 1rem;
}

.avatar-container {
    position: relative;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #1e1e2d;
}

.status-indicator.online {
    background: #4ade80;
}

.user-details h2 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.user-location {
    font-size: 0.8rem;
    color: #a0a0b0;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.date-divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.date-divider span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #a0a0b0;
}

.message {
    display: flex;
    max-width: 80%;
}

.message.received {
    align-self: flex-start;
}

.message.sent {
    align-self: flex-end;
}

.message-content {
    padding: 1rem 1.2rem;
    border-radius: 20px;
    position: relative;
}

.message.received .message-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 4px;
}

.message.sent .message-content {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-bottom-right-radius: 4px;
}

.translated-text {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.original-text-container {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.original-text {
    font-size: 0.85rem;
    color: #a0a0b0;
    font-style: italic;
    margin-bottom: 0.3rem;
}

.translation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: #c98cff;
    font-weight: 600;
}

.message-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    justify-content: flex-end;
}

.chat-input-area {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.input-wrapper {
    flex: 1;
}

.chat-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.2rem;
    border-radius: 24px;
    color: var(--text-color);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-send {
    background: var(--primary);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.btn-send:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* 2FA Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    padding: 2.5rem;
    text-align: center;
    animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #a0a0b0;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: white;
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-header h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.4rem;
}

.modal-header p {
    color: #a0a0b0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.twofa-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.twofa-digit {
    width: 45px;
    height: 55px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    transition: all 0.2s;
}

.twofa-digit:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.2);
    transform: translateY(-2px);
}

.twofa-divider {
    color: #606070;
    font-weight: bold;
    margin: 0 0.2rem;
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.modal-footer-text {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #606070;
}

/* Admin Dashboard Styles */
.admin-body {
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: var(--bg-color);
}

.admin-layout {
    display: flex;
    height: 100vh;
    width: 100%;
}

.sidebar {
    width: 260px;
    height: 100%;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--glass-border);
    border-radius: 0;
    background: rgba(10, 10, 15, 0.8);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    color: #a0a0b0;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 600;
}

.admin-nav-link:hover, .admin-nav-link.active {
    background: rgba(138, 43, 226, 0.15);
    color: var(--text-color);
}

.admin-nav-link.active svg {
    stroke: var(--primary);
}

.admin-content {
    flex: 1;
    overflow-y: auto;
    padding: 2.5rem 3rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.ceo-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.ceo-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-info h3 {
    font-size: 1.8rem;
    margin: 0 0 0.2rem 0;
}

.stat-info p {
    margin: 0;
    color: #a0a0b0;
    font-size: 0.85rem;
}

.admin-table-container {
    padding: 1.5rem;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-search {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1rem;
    border-radius: 20px;
    color: white;
    width: 250px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    color: #a0a0b0;
    font-weight: 600;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.table-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.table-user img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.text-small {
    display: block;
    font-size: 0.75rem;
    color: #a0a0b0;
    margin-top: 0.2rem;
}

.badge-gold {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.badge-none {
    background: rgba(255, 255, 255, 0.1);
    color: #a0a0b0;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.role-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    outline: none;
}

.btn-action {
    background: rgba(138, 43, 226, 0.2);
    color: var(--primary);
    border: 1px solid rgba(138, 43, 226, 0.4);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-action:hover {
    background: var(--primary);
    color: white;
}

/* Demo 2FA Button */
#demo-2fa-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    padding: 10px 20px;
    border-radius: 20px;
    background: #8a2be2;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
    transition: transform 0.2s;
}

#demo-2fa-btn:hover {
    transform: translateY(-2px);
}

/* Mobile Strict Responsiveness */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 5%;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero {
        grid-template-columns: 1fr;
        margin: 2rem auto;
        padding: 0 5%;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.2rem;
    }
    
    .logo {
        font-size: 1.8rem; /* Ligeramente más pequeño en móvil */
    }
    
    .chat-wrapper {
        height: 100vh;
        border-radius: 0;
        border: none;
    }
    
    .message {
        max-width: 90%;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .features {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    #demo-2fa-btn {
        bottom: 10px;
        right: 50%;
        transform: translateX(50%);
        padding: 8px 16px;
        font-size: 0.85rem;
        width: max-content;
    }
}
