:root {
    --bg-color: #0f050a;
    --text-color: #fdf5f8;
    --primary: #ff477e;
    --primary-hover: #ff0a54;
    --secondary: #ff007f;
    --glass-bg: rgba(255, 10, 84, 0.03);
    --glass-border: rgba(255, 10, 84, 0.1);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 14px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-left: 1px solid rgba(138, 43, 226, 0.1);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8a2be2, #ff007f);
    border-radius: 10px;
    border: 4px solid var(--bg-color);
    transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff007f, #4ade80);
}

html, body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(ellipse at top left, rgba(255,10,84,0.25) 0%, transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(138,43,226,0.2) 0%, transparent 60%),
        radial-gradient(circle at center, rgba(255,0,127,0.1) 0%, transparent 100%);
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}

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

.blob-1 {
    width: 400px;
    height: 400px;
    background: #ff477e;
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #ff007f;
    bottom: -100px;
    right: -100px;
}

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

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

.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-left: 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: 0 auto;
    padding: 1rem 5%;
    align-items: center;
    flex: 1;
}

.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: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1rem;
}

.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: 2rem 2.5rem;
    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: 2.2rem;
}

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

.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: 0.55rem 1rem;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.95rem;
    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;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

/* Cookie Modal */
.cookie-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.cookie-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}
.cookie-modal {
    background: #0b1120;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 90%;
    max-width: 650px;
    color: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    overflow: hidden;
}
.cookie-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cookie-header svg {
    color: #facc15;
    margin-right: 0.8rem;
}
.cookie-header h2 {
    font-size: 1.2rem;
    margin: 0;
}
.cookie-header .close-modal {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s;
}
.cookie-header .close-modal:hover {
    color: #fff;
}
.cookie-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}
.cookie-body > p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.cookie-option {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-left: 3px solid #facc15;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
}
.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}
.cookie-option-header h3 {
    font-size: 1.05rem;
    margin: 0;
    font-weight: 600;
}
.cookie-option p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
    line-height: 1.5;
}
.badge-active {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 26px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255,255,255,0.2);
    transition: .4s;
    border-radius: 26px;
}
.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
.toggle-switch input:checked + .slider {
    background-color: #facc15;
}
.toggle-switch input:checked + .slider:before {
    transform: translateX(26px);
}
.btn-cookie-save {
    width: 100%;
    margin-top: 1rem;
    background: #facc15;
    color: #0b1120;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cookie-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(250, 204, 21, 0.3);
}

/* 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(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    transition: all 0.2s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

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

/* --- Footer Legal --- */
.site-footer {
    background: transparent;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
    padding: 1rem 2rem;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-top .logo {
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-right: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #a0a0b0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
    font-weight: 500;
}

.footer-links a:hover {
    color: #ff007f;
}

.footer-bottom {
    position: relative;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 0.5rem;
}

.footer-legal {
    margin: 0 auto;
}

.footer-legal p {
    color: #606070;
    font-size: 0.8rem;
    margin: 0.25rem 0;
}

.legal-small {
    font-size: 0.7rem !important;
    max-width: 900px;
    margin: 0.5rem auto 0 !important;
    line-height: 1.4;
}

.legal-small strong {
    color: #8a2be2;
}

.footer-credits {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
    z-index: 20;
}

.footer-credits p {
    color: #606070;
    font-size: 0.8rem;
    margin: 0;
}

.footer-credits a {
    color: #4ade80;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-credits a:hover {
    color: #22c55e;
}

@media (max-width: 768px) {
    html, body {
        overflow-y: auto;
        height: auto;
    }
    .hero {
        grid-template-columns: 1fr;
        padding: 4rem 5%;
    }
    .footer-bottom {
        padding-bottom: 2rem;
    }
    .footer-credits {
        position: relative;
        text-align: center;
        margin-top: 1rem;
    }
}

/* Modal Privacidad & Cookies */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: 90%;
    max-width: 600px;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner p {
    color: white;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

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

.btn-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

.btn-cookie-config {
    background: transparent;
    color: #d0d0e0;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-cookie-config:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* Cookie Modal (Full Screen) */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cookie-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cookie-modal {
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-modal-overlay.active .cookie-modal {
    transform: translateY(0);
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.cookie-header svg {
    color: var(--secondary);
}

.cookie-header h2 {
    color: white;
    font-size: 1.3rem;
    margin: 0;
}

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

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

.cookie-body p {
    color: #d0d0e0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.cookie-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-option-header h3 {
    color: white;
    font-size: 1rem;
    margin: 0;
}

.badge-active {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.cookie-option p {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: #a0a0b0;
}

.btn-cookie-save {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 0.8rem;
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: transform 0.2s;
}

.btn-cookie-save:hover {
    transform: translateY(-2px);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.1);
    transition: .4s;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.2);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* VIP and GOLD Card Borders */
.card-vip {
    border: 2px solid transparent !important;
    background-image: linear-gradient(rgba(15, 5, 10, 0.9), rgba(15, 5, 10, 0.9)), linear-gradient(135deg, #8a2be2, #ff007f);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3) !important;
}

.card-gold {
    border: 2px solid transparent !important;
    background-image: linear-gradient(rgba(15, 5, 10, 0.9), rgba(15, 5, 10, 0.9)), linear-gradient(135deg, #FFD700, #FFA500);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4) !important;
}

.tier-badge {
    font-size: 1.2rem;
    margin-left: 5px;
    vertical-align: middle;
}

/* Chat Panel Styles (Telegram/WhatsApp Style) */
.chat-panel {
    position: fixed;
    top: 50%;
    right: 0; /* Centered in desktop, hidden right */
    transform: translate(100%, -50%) scale(0.95);
    width: 420px;
    max-width: 100%;
    height: 90vh;
    max-height: 800px;
    background: #0f0a14;
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 127, 0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1); /* Novel opening spring effect */
    box-shadow: -10px 10px 40px rgba(0,0,0,0.8);
    font-family: 'Inter', sans-serif;
    opacity: 0;
    margin-right: 20px;
}
.chat-header {
    padding: 12px 15px;
    background: rgba(26, 16, 37, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 2;
}
.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    margin-left: 10px;
}
.chat-header-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff007f;
}
.chat-header-info h3 {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}
.chat-status {
    font-size: 0.75rem;
    color: #4ade80;
    font-weight: 400;
}
.close-chat, .chat-options-btn, .chat-attach-btn {
    background: transparent;
    border: none;
    color: #a0a0b0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.close-chat:hover, .chat-options-btn:hover, .chat-attach-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}
.chat-messages-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Romantic dark pattern */
    background: radial-gradient(circle at center, rgba(30,10,25,1) 0%, rgba(15,5,15,1) 100%);
    background-image: 
        radial-gradient(rgba(255,0,127,0.15) 2px, transparent 2px),
        radial-gradient(rgba(255,0,127,0.05) 1px, transparent 1px);
    background-size: 30px 30px, 15px 15px;
    background-position: 0 0, 15px 15px;
}
.chat-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.chat-bubble.me {
    align-self: flex-end;
    background: linear-gradient(135deg, #ff007f, #d40068);
    color: white;
    border-bottom-right-radius: 4px;
}
.chat-bubble.me::after {
    content: '';
    position: absolute;
    right: -8px;
    bottom: 0;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-left-color: #d40068;
    border-bottom-color: #d40068;
}
.chat-bubble.other {
    align-self: flex-start;
    background: #2a1f35;
    color: #e0e0e0;
    border-bottom-left-radius: 4px;
}
.chat-bubble.other::after {
    content: '';
    position: absolute;
    left: -8px;
    bottom: 0;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right-color: #2a1f35;
    border-bottom-color: #2a1f35;
}
.chat-time {
    display: block;
    font-size: 0.65rem;
    margin-top: 4px;
    opacity: 0.7;
    text-align: right;
}
.chat-input-area {
    padding: 12px 15px;
    background: #1a1025;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 2;
}
.chat-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: #2a1f35;
    border-radius: 24px;
    padding: 5px 15px;
}
.chat-input-wrapper input {
    flex: 1;
    padding: 10px 5px;
    border: none;
    background: transparent;
    color: white;
    outline: none;
    font-size: 0.95rem;
}
.chat-emoji-icon {
    color: #a0a0b0;
    font-size: 1.2rem;
    cursor: pointer;
}
.chat-emoji-icon:hover {
    color: #ff007f;
}
.chat-send-btn {
    background: #ff007f;
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(255,0,127,0.3);
}
.chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(255,0,127,0.5);
}
@media (max-width: 480px) {
    .chat-panel {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin-right: 0;
        top: 0;
        transform: translate(100%, 0) scale(0.95);
    }
    .chat-header {
        border-radius: 0;
    }
    .chat-input-area {
        border-radius: 0;
    }
}
