* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            padding: 20px;
            padding-top: 90px;
        }        .card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 24px;
            padding: 48px;
            max-width: 520px;
            width: 100%;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            margin-bottom: 30px;
        }        /* RESPONSIVE - Tablets */
        @media (max-width: 768px) {
            .card {
                padding: 32px 24px;
                border-radius: 20px;
            }

            body {
                padding: 16px;
                padding-top: 80px;
            }
        }        /* RESPONSIVE - Mobile Large (600px) */
        @media (max-width: 600px) {
            .card {
                padding: 24px 16px;
                border-radius: 18px;
            }

            body {
                padding: 12px;
                padding-top: 75px;
            }
        }    
        /* Responsive: Cuando la pantalla es menor a 800px */
        @media (max-width: 800px) {
            .help-button {
                padding: 10px; /* Padding uniforme para que sea circular/cuadrado */
                border-radius: 50%; /* Opcional: hace el botón circular en móvil */
            }
            .help-button svg{
                width: 40px;
                height: 40px;
            }

            .button-text {
                display: none; /* Oculta el texto */
            }
        }    /* RESPONSIVE - Mobile Small (480px) */
        @media (max-width: 480px) {
            .card {
                padding: 20px 14px;
                border-radius: 16px;
            }

            body {
                padding: 10px;
                padding-top: 70px;
            }
        }        /* RESPONSIVE - Extra Small (380px) */
        @media (max-width: 380px) {
            .card {
                padding: 16px 12px;
                border-radius: 14px;
            }

            body {
                padding: 8px;
                padding-top: 65px;
            }
        }        
        .logo-header {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0;
            margin-bottom: 16px;
        }

        .logo-img {
            height: 54px;
            max-width: 540px;
            width: auto;
            object-fit: contain;
            flex-shrink: 0;
        }        
        .logo-text h1 {
            font-size: 2.15rem;
            font-weight: 700;
            color: #1a1a2e;
            text-align: left;
            margin-bottom: 0;
            letter-spacing: -0.5px;
            line-height: 1.15;
        }

        @media (max-width: 768px) {
            .logo-header {
                margin-bottom: 14px;
            }

            .logo-text h1 {
                font-size: 1.9rem;
            }
        }

        @media (max-width: 600px) {
            .logo-header {
                margin-bottom: 12px;
            }

            .logo-text h1 {
                font-size: 1.8rem;
            }

            .logo-img {
                height: 48px;
            }
        }

        @media (max-width: 480px) {
            .logo-header {
                margin-bottom: 10px;
            }

            .logo-text h1 {
                font-size: 1.6rem;
            }

            .logo-img {
                height: 40px;
            }
        }

        @media (max-width: 380px) {
            .logo-header {
                margin-bottom: 8px;
            }

            .logo-text h1 {
                font-size: 1.4rem;
            }

            .logo-img {
                height: 36px;
            }
        }.logo-highlight {
            background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        h1 {
            font-size: 1.75rem;
            font-weight: 600;
            color: #1a1a2e;
            text-align: center;
            margin-bottom: 8px;
        }        .subtitle {
            color: #6b7280;
            text-align: center;
            font-size: 0.9rem;
            font-weight: 400;
            margin-bottom: 24px;
        }

        @media (max-width: 768px) {
            .subtitle {
                font-size: 0.85rem;
                margin-bottom: 20px;
            }
        }

        @media (max-width: 600px) {
            .subtitle {
                font-size: 0.8rem;
                margin-bottom: 16px;
            }
        }

        @media (max-width: 480px) {
            .subtitle {
                font-size: 0.75rem;
                margin-bottom: 12px;
            }
        }        .upload-area {
            display: block;    
            border: 2px dashed #d1d5db;
            border-radius: 16px;
            padding: 28px;
            text-align: center;
            cursor: pointer;
            margin-bottom: 18px;
            background: #ffffff; 
        }

        @media (max-width: 768px) {
            .upload-area {
                padding: 24px 16px;
                margin-bottom: 16px;
                border-radius: 14px;
            }
        }

        @media (max-width: 600px) {
            .upload-area {
                padding: 20px 14px;
                margin-bottom: 14px;
                border-radius: 12px;
            }
        }

        @media (max-width: 480px) {
            .upload-area {
                padding: 16px 12px;
                margin-bottom: 12px;
                border-radius: 10px;
            }
        }

        @media (max-width: 380px) {
            .upload-area {
                padding: 14px 10px;
                margin-bottom: 10px;
                border-radius: 8px;
            }
        }.upload-area:hover {
            border-color: #1a1a1a;
            background: rgba(26, 26, 26, 0.05);
        }        .upload-area.dragover {
            border-color: #1a1a1a;
            background: rgba(26, 26, 26, 0.1);
            transform: scale(1.02);
        }        .upload-icon {
            width: 44px;
            height: 44px;
            background: #f3f4f6;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 12px;
        }

        @media (max-width: 768px) {
            .upload-icon {
                width: 40px;
                height: 40px;
                margin-bottom: 10px;
            }
        }

        @media (max-width: 600px) {
            .upload-icon {
                width: 36px;
                height: 36px;
                margin-bottom: 8px;
            }
        }

        @media (max-width: 480px) {
            .upload-icon {
                width: 32px;
                height: 32px;
                margin-bottom: 6px;
                border-radius: 10px;
            }
        }

        @media (max-width: 380px) {
            .upload-icon {
                width: 28px;
                height: 28px;
                margin-bottom: 4px;
                border-radius: 8px;
            }
        }        .upload-icon svg {
            width: 24px;
            height: 24px;
            color: #6b7280;
        }
        
        .upload-text {
            color: #374151;
            font-weight: 500;
            margin-bottom: 2px;
            font-size: 0.9rem;
        }

        .upload-hint {
            color: #9ca3af;
            font-size: 0.75rem;
        }

        @media (max-width: 768px) {
            .upload-icon svg {
                width: 20px;
                height: 20px;
            }

            .upload-text {
                font-size: 0.85rem;
            }

            .upload-hint {
                font-size: 0.7rem;
            }
        }

        @media (max-width: 600px) {
            .upload-icon svg {
                width: 18px;
                height: 18px;
            }

            .upload-text {
                font-size: 0.8rem;
            }

            .upload-hint {
                font-size: 0.65rem;
            }
        }.file-name {
            display: none;
            margin-top: 12px;
            font-weight: 500;
            color: #6b7280;
            background: #f3f4f6;
            padding: 8px;
            border-radius: 8px;
            font-size: 0.9rem;
        }        input[type="file"] {
            display: none;
        }        button {
            width: 100%;
            padding: 14px 22px;
            background: #374151;
            color: white;
            border: 2px solid #374151;
            border-radius: 12px;
            font-size: 0.95rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: inherit;
            margin-bottom: 0;
        }

        button:hover {
            background: #1f2937;
            color: white;
            border-color: #1f2937;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        button:active {
            transform: translateY(0);
        }

        @media (max-width: 768px) {
            button {
                padding: 12px 18px;
                font-size: 0.9rem;
                border-radius: 10px;
            }
        }

        @media (max-width: 600px) {
            button {
                padding: 11px 16px;
                font-size: 0.85rem;
                border-radius: 9px;
            }
        }

        @media (max-width: 480px) {
            button {
                padding: 10px 14px;
                font-size: 0.8rem;
                border-radius: 8px;
            }
        }

        @media (max-width: 380px) {
            button {
                padding: 9px 12px;
                font-size: 0.75rem;
                border-radius: 6px;
            }
        }        .btn-prueba{
            margin-top: 14px;
            margin-bottom: 16px;
            width: auto;
            padding: 9px 20px;
            background: #f3f4f6;
            color: #1a1a1a;
            border: 2px solid #d1d5db;
            border-radius: 8px;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: inherit;
        }

        .btn-prueba:hover {
            background: #374151;
            color: white;
            border-color: #374151;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        @media (max-width: 768px) {
            .btn-prueba {
                margin-top: 12px;
                margin-bottom: 14px;
                padding: 8px 18px;
                font-size: 0.75rem;
                border-radius: 8px;
            }
        }

        @media (max-width: 600px) {
            .btn-prueba {
                margin-top: 10px;
                margin-bottom: 12px;
                padding: 7px 16px;
                font-size: 0.7rem;
                border-radius: 7px;
            }
        }

        @media (max-width: 480px) {
            .btn-prueba {
                margin-top: 8px;
                margin-bottom: 10px;
                padding: 6px 14px;
                font-size: 0.65rem;
                border-radius: 6px;
            }
        }

        @media (max-width: 380px) {
            .btn-prueba {
                margin-top: 6px;
                margin-bottom: 8px;
                padding: 5px 12px;
                font-size: 0.6rem;
                border-radius: 5px;
            }
        }        .badge {
            display: inline-block;
            background: #f3f4f6;
            color: #6b7280;
            padding: 5px 10px;
            border-radius: 18px;
            font-size: 0.65rem;
            margin-top: 12px;
            margin-bottom: 0;
        }

        @media (max-width: 768px) {
            .badge {
                font-size: 0.62rem;
                margin-top: 10px;
            }
        }

        @media (max-width: 600px) {
            .badge {
                font-size: 0.6rem;
                margin-top: 8px;
                padding: 4px 8px;
            }
        }        @media (max-width: 480px) {
            .badge {
                font-size: 0.55rem;
                margin-top: 6px;
                padding: 3px 6px;
            }
        }

        /* Form spacing optimization */
        #upload-form {
            margin: 0;
        }

        /* Modal de Error */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 1000;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        .modal-perfil {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 1000;
        }

        .modal-perfil.active {
            opacity: 1;
            visibility: visible;
        }

        .modal {
            background: white;
            border-radius: 24px;
            padding: 40px;
            max-width: 400px;
            width: 90%;
            text-align: center;
            transform: scale(0.9) translateY(20px);
            transition: all 0.3s ease;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        }

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

        .modal-icon {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
        }

        .modal-icon.error {
            background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
        }

        .modal-icon svg {
            width: 36px;
            height: 36px;
            color: white;
        }

        .modal-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: #1a1a2e;
            margin-bottom: 12px;
        }

        .modal-message {
            color: #6b7280;
            font-size: 1rem;
            margin-bottom: 8px;
        }        .modal-detail {
            color: #9ca3af;
            font-size: 0.9rem;
            margin-bottom: 24px;
            padding: 12px;
            background: #f9fafb;
            border-radius: 8px;
        }        
        .modal-btn {
            background: #374151;
            color: white;
            border: none;
            padding: 14px 32px;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .modal-btn:hover {
            background: #1f2937;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        /* Spinner / Loader */
        .btn-loader {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .spinner {
            width: 20px;
            height: 20px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        button:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
        }        /* ========== User Bar - MINIMALISTA BLANCO/GRIS ========== */
        .user-bar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 16px;
            padding: 12px 24px;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(12px);
            z-index: 900;
        }

        @media (max-width: 768px) {
            .user-bar {
                gap: 12px;
                padding: 10px 16px;
            }
        }

        @media (max-width: 480px) {
            
        }        .user-greeting {
            color: #1a1a1a;
            font-size: 0.9rem;
            font-weight: 500;
        }

        @media (max-width: 480px) {
            .user-greeting {
                font-size: 0.75rem;
                display: none;
            }
        }/* Botón de Logout - Minimalista */
        .btn-logout {
            width: auto;
            padding: 8px 18px;
            font-size: 0.8rem;
            background: #f3f4f6;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            color: #1a1a1a;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .btn-logout:hover {
            background: #374151;
            color: white;
            border-color: #374151;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        }        /* Botón Historial - Minimalista */
        .btn-historial {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            width: auto;
            padding: 8px 18px;
            font-size: 0.8rem;
            background: #f3f4f6;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            color: #1a1a1a;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            font-family: inherit;
            font-weight: 500;
        }

        .btn-historial:hover {
            background: #374151;
            color: white;
            border-color: #374151;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        @media (max-width: 480px) {
            .btn-historial {
                padding: 6px 12px;
                font-size: 0.7rem;
                gap: 4px;
            }

            .btn-historial svg {
                width: 14px;
                height: 14px;
            }
        }

        /* Botón Upgrade - Destaca visualmente */
        .btn-upgrade {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
            color: white !important;
            border: none !important;
            font-weight: 600 !important;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
        }

        .btn-upgrade:hover {
            background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
            box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4) !important;
            transform: translateY(-2px);
            border: none !important;
        }
        /* ========== Auth Modal ========== */
        .auth-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(8px);
            display: none;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 1100;
        }

        .auth-overlay.active {
            display: flex;
            opacity: 1;
            visibility: visible;
        }

        .auth-modal {
            background: white;
            border-radius: 28px;
            max-width: 420px;
            width: 90%;
            overflow: hidden;
            transform: scale(0.9) translateY(20px);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.35);
        }        .auth-overlay.active .auth-modal {
            transform: scale(1) translateY(0);
        }        .auth-header {
            background: #f3f4f6;
            padding: 32px;
            text-align: center;
        }

        .auth-header .modal-title {
            color: #1a1a1a;
        }

        .auth-header .modal-message {
            color: #6b7280;
        }

        .auth-icon {
            background: rgba(107, 114, 128, 0.1) !important;
        }

        .auth-icon svg {
            color: #4b5563;
        }

        .auth-body {
            padding: 32px;
        }        .auth-error {
            background: #fef2f2;
            color: #dc2626;
            padding: 12px 16px;
            border-radius: 10px;
            font-size: 0.85rem;
            margin-bottom: 20px;
            border: 1px solid #fecaca;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 500;
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }        }        .input-group {
            margin-bottom: 12px;
        }        
        .input-group label {
            display: block;
            font-size: 0.8rem;
            font-weight: 500;
            color: #374151;
            margin-bottom: 4px;
            position: relative;
        }
        .input-group input {
            width: 100%;
            padding: 10px 14px;
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            font-size: 0.9rem;
            font-family: inherit;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
            outline: none;
            box-sizing: border-box;
        }

        @media (max-width: 768px) {
            .input-group {
                margin-bottom: 10px;
            }

            .input-group label {
                font-size: 0.75rem;
                margin-bottom: 3px;
            }

            .input-group input {
                padding: 9px 12px;
                font-size: 0.85rem;
                border-radius: 8px;
            }
        }

        @media (max-width: 600px) {
            .input-group {
                margin-bottom: 8px;
            }

            .input-group label {
                font-size: 0.7rem;
                margin-bottom: 2px;
            }

            .input-group input {
                padding: 8px 10px;
                font-size: 0.8rem;
                border-radius: 7px;
            }
        }

        @media (max-width: 480px) {
            .input-group {
                margin-bottom: 6px;
            }

            .input-group label {
                font-size: 0.65rem;
            }

            .input-group input {
                padding: 7px 8px;
                font-size: 0.75rem;
                border-radius: 6px;
            }
        }

        @media (max-width: 380px) {
            .input-group {
                margin-bottom: 4px;
            }

            .input-group label {
                font-size: 0.6rem;
            }

            .input-group input {
                padding: 6px 6px;
                font-size: 0.7rem;
                border-radius: 5px;
            }
        }

        .input-group input:focus {
            border-color: #1a1a1a;
            box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
        }

        /* Estilos para input con error */
        .input-group input.error {
            border-color: #ef4444;
            background-color: #fef2f2;
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
        }

        .input-group input.error:focus {
            border-color: #dc2626;
            box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
        }.password-input-wrapper {
            position: relative;
            display: block;
            width: 100%;
        }

        .password-input-wrapper input {
            width: 100%;
            padding-right: 2.75rem;
            box-sizing: border-box;
        }        .password-toggle {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            color: #9ca3af;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 6px;
            opacity: 0.6;
            border-radius: 6px;
            height: auto;
            width: auto;
            flex-shrink: 0;
        }        .password-toggle:hover {
            opacity: 1;
            color: #6b7280;
            transform: translateY(-50%);
            box-shadow: none;
        }

        .password-toggle svg {
            width: 1.1rem;
            height: 1.1rem;
            display: block;
        }        .input-group input:focus {
            border-color: #1a1a1a;
            box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
        }        .input-group input::placeholder {
            color: #9ca3af;
        }        /* Estilos para el input con error */
        .input-group input.error {
            border-color: #ef4444;
            background-color: #fef2f2;
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
        }

        .input-group input.error:focus {
            border-color: #dc2626;
            box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
        }

        /* Mensaje de error mejorado */
        #volumen-error {
            display: none;
            color: #dc2626;
            font-size: 0.825rem;
            font-weight: 500;
            margin-top: 6px;
            animation: slideDown 0.3s ease;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        #volumen-error::before {
            content: '⚠';
            font-size: 1rem;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-5px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .btn-auth {
            width: 100%;
            padding: 14px;
            background: #374151;
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: inherit;
            margin-top: 8px;
        }

        .btn-auth:hover {
            background: #1f2937;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .auth-switch {
            text-align: center;
            margin-top: 24px;
            font-size: 0.9rem;
            color: #6b7280;
        }        .auth-switch a {
            color: #1a1a1a;
            font-weight: 600;
            text-decoration: none;
            margin-left: 4px;
            transition: color 0.2s;
        }

        .auth-switch a:hover {
            color: #374151;
        }

        /* ========== Auth Divider ========== */
        .auth-divider {
            display: flex;
            align-items: center;
            margin: 20px 0;
            gap: 12px;
        }

        .auth-divider::before,
        .auth-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: #e5e7eb;
        }

        .auth-divider span {
            font-size: 0.8rem;
            color: #9ca3af;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* ========== Google Button ========== */
        .btn-google {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            padding: 12px 16px;
            background: #fff;
            color: #374151;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            font-size: 0.95rem;
            font-weight: 500;
            font-family: inherit;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .btn-google:hover {
            border-color: #d1d5db;
            background: #f9fafb;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            transform: translateY(-1px);
        }

        .btn-google:active {
            transform: translateY(0);
        }        .btn-google svg {
            flex-shrink: 0;
        }

        /* ========== Google Info (Username Picker) ========== */
        .google-info {
            text-align: center;
            margin-bottom: 20px;
        }

        .google-email-badge {
            display: inline-block;
            background: #f0f4ff;
            color: #4285F4;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            border: 1px solid #d4deff;
        }        /* ========== Language Switcher ========== */
        .lang-switcher {
            position: fixed;
            bottom: 24px;
            right: 24px;
            display: flex;
            gap: 10px;
            background: rgba(255, 255, 255, 0.8); 
            backdrop-filter: blur(12px);
            padding: 10px 14px;
            border-radius: 50px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); 
            z-index: 1200;
            border: 1px solid #e2e8f0; 
        }

        @media (max-width: 480px) {
            .lang-switcher {
                bottom: 16px;
                right: 16px;
                padding: 8px 10px;
                gap: 8px;
            }
        }

        .lang-flag {
            width: 38px;
            height: 38px;
            padding: 0;
            border: 2px solid transparent;
            border-radius: 50%;
            cursor: pointer;
            background: #f8fafc; 
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
        }

        .lang-flag:hover {
            transform: translateY(-3px); /* Efecto de levitación */
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
            background: #ffffff;
            border-color: #cbd5e1;
        }        .lang-flag.active {
            border-color: #1a1a1a; 
            background: #ffffff;
            box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.1);
        }

        .lang-flag img {
            width: 24px;
            height: 17px;
            object-fit: cover;
            border-radius: 3px;
            /* Pequeña sombra a la bandera para que no se pegue al fondo blanco */
            filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
        }
        @media (max-width: 480px) {
            .lang-switcher {
                bottom: 16px;
                right: 16px;
                padding: 6px 10px;
                gap: 6px;
            }
            .lang-flag {
                width: 32px;
                height: 32px;
            }
            .lang-flag img {
                width: 18px;
                height: 13px;
            }
        }        .how-it-works {
            margin: -8px 0 18px;
            padding: 12px 14px;
            border: 1px solid #f1f5f9;
            background: #fbfdff;
            border-radius: 14px;
        }

        .how-title {
            font-size: 0.85rem;
            font-weight: 700;
            color: #1a1a2e;
            margin-bottom: 6px;
        }

        .how-text {
            color: #6b7280;
            font-size: 0.8rem;
            line-height: 1.4;
            margin: 4px 0;
        }

        @media (max-width: 768px) {
            .how-it-works {
                margin-bottom: 16px;
                padding: 11px 13px;
            }

            .how-title {
                font-size: 0.8rem;
            }

            .how-text {
                font-size: 0.75rem;
            }
        }

        @media (max-width: 600px) {
            .how-it-works {
                padding: 10px 12px;
                margin-bottom: 14px;
                border-radius: 12px;
            }

            .how-title {
                font-size: 0.75rem;
                margin-bottom: 4px;
            }

            .how-text {
                font-size: 0.7rem;
                margin: 2px 0;
            }
        }

        @media (max-width: 480px) {
            .how-it-works {
                padding: 8px 10px;
                margin-bottom: 12px;
            }

            .how-title {
                font-size: 0.7rem;
            }

            .how-text {
                font-size: 0.65rem;
            }
        }

        @media (max-width: 480px) {
            .how-it-works {
                padding: 10px 12px;
                margin-bottom: 16px;
                border-radius: 10px;
            }

            .how-title {
                font-size: 0.8rem;
            }

            .how-text {
                font-size: 0.75rem;
            }
        }

        .how-text strong {
            color: #374151;
            font-weight: 600;
        }

        /* Info tooltip (file format help) */
        .info-tooltip {
            width: 22px;
            height: 22px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-left: 8px;
            color: #4b4b4d;
            cursor: help;
            position: relative;
            vertical-align: middle;
            transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
        }

        .info-tooltip svg {
            display: block;
            width: 14px;
            height: 14px;
            stroke-width: 2.25;
        }        
        .info-tooltip:hover {
            background: rgba(26, 26, 26, 0.08);
            border-color: rgba(26, 26, 26, 0.3);
            transform: translateY(-1px);
            box-shadow: 0 8px 18px rgba(26, 26, 26, 0.12);
        }

        .info-tooltip:focus,
        .info-tooltip:focus-visible {
            outline: none;
            box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.15);
            border-color: rgba(26, 26, 26, 0.4);
        }

        .info-tooltip .tooltip-text {
            position: absolute;
            left: 50%;
            bottom: calc(100% + 10px);
            transform: translateX(-50%);
            min-width: 260px;
            max-width: 320px;
            background: rgba(26, 26, 46, 0.95);
            color: #fff;
            padding: 10px 12px;
            border-radius: 10px;
            font-size: 0.8rem;
            line-height: 1.35;
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
            opacity: 0;
            visibility: hidden;
            transition: all 0.15s ease;
            pointer-events: none;
            z-index: 50;
        }

        .info-tooltip .tooltip-text::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 7px solid transparent;
            border-top-color: rgba(26, 26, 46, 0.95);
        }        
        .info-tooltip:hover .tooltip-text,
        .info-tooltip:focus .tooltip-text,
        .info-tooltip:focus-within .tooltip-text {
            opacity: 1;
            visibility: visible;
        }        /* Help Button */
        .help-button {
            position: fixed;
            bottom: 24px;
            left: 24px;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(12px);
            border: 1px solid #e2e8f0;
            color: #1a1a2e;
            cursor: pointer;
            font-weight: 500;
            font-size: 0.95rem;
            font-family: 'Inter', sans-serif;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            z-index: 999;
            width: auto;
        }

        .help-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
            background: #ffffff;
            color: #1a1a2e;
            border-color: #cbd5e1;
        }

        .help-button:active {
            transform: translateY(-1px);
        }

        @media (max-width: 480px) {
            .help-button {
                bottom: 16px;
                left: 16px;
                padding: 8px 12px;
                font-size: 0.8rem;
                gap: 6px;
            }

            .help-button svg {
                width: 16px;
                height: 16px;
            }
        }.help-button svg {
            width: 20px;
            height: 20px;
            stroke-width: 2;
            color: #1a1a1a;
        }

        /* Chat Modal Overlay */
        .chat-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: flex-end;
            justify-content: flex-start;
            z-index: 11000;
            padding: 20px;
            backdrop-filter: blur(4px);
        }

        .chat-modal {
            background: white;
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            width: 100%;
            max-width: 420px;
            height: 600px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideUp 0.3s ease;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }        .chat-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px;
            border-bottom: 1px solid #e5e7eb;
            background: #f9fafb;
            border-radius: 16px 16px 0 0;
        }

        .chat-header-content {
            flex: 1;
        }

        .chat-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #1a1a2e;
            margin-bottom: 4px;
        }

        .chat-subtitle {
            font-size: 0.875rem;
            color: #6b7280;
            margin: 0;
        }

        .chat-close {
            background: none;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            color: #6b7280;
            transition: all 0.2s ease;
            margin-left: 12px;
            flex-shrink: 0;
        }

        .chat-close:hover {
            background: rgba(0, 0, 0, 0.05);
            color: #1a1a2e;
        }

        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .chat-messages::-webkit-scrollbar {
            width: 6px;
        }

        .chat-messages::-webkit-scrollbar-track {
            background: transparent;
        }

        .chat-messages::-webkit-scrollbar-thumb {
            background: #d1d5db;
            border-radius: 3px;
        }

        .chat-messages::-webkit-scrollbar-thumb:hover {
            background: #9ca3af;
        }

        .chat-message {
            display: flex;
            animation: fadeIn 0.3s ease;
        }

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

        .chat-message.user-message {
            justify-content: flex-end;
        }

        .message-content {
            max-width: 85%;
            padding: 12px 16px;
            border-radius: 12px;
            font-size: 0.95rem;
            line-height: 1.4;
        }

        .bot-message .message-content {
            background: #f3f4f6;
            color: #1a1a2e;
        }        .user-message .message-content {
            background: #374151;
            color: white;
        }        .message-content p {
            margin: 0;
        }        .tabs-container {
            width: 100%;
            height: 52px;
            display: inline-flex;
            gap: 5px;
            margin: 0 auto 16px;
            padding: 5px;
            border-radius: 13px;
            background: #f3f4f6;
            text-align: center;
            border: 1px solid #e5e7eb;
        }

        @media (max-width: 768px) {
            .tabs-container {
                height: 50px;
                gap: 4px;
                padding: 4px;
                margin-bottom: 14px;
            }
        }

        @media (max-width: 600px) {
            .tabs-container {
                height: auto;
                gap: 3px;
                padding: 3px;
                margin-bottom: 12px;
                flex-wrap: wrap;
            }
        }

        @media (max-width: 480px) {
            .tabs-container {
                height: auto;
                gap: 2px;
                padding: 2px;
                margin-bottom: 10px;
                flex-wrap: wrap;
            }
        }

        @media (max-width: 380px) {
            .tabs-container {
                margin-bottom: 8px;
            }
        }

        .tabs-container span{
            text-align: center;
        }

        .tab-btn {
            padding: 8px 14px;
            background: transparent;
            border: none;
            border-radius: 9px;
            cursor: pointer;
            font-size: 0.78rem;
            font-weight: 600;
            color: #6b7280;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            flex: 1;
        }

        @media (max-width: 768px) {
            .tab-btn {
                padding: 7px 12px;
                font-size: 0.75rem;
                gap: 4px;
            }
        }

        @media (max-width: 600px) {
            .tab-btn {
                padding: 6px 10px;
                font-size: 0.7rem;
                gap: 3px;
            }
        }        @media (max-width: 480px) {
            .tab-btn {
                padding: 5px 8px;
                font-size: 0.65rem;
                gap: 2px;
            }
        }

        .tab-btn:hover {
            color: #374151;
            background: rgba(255, 255, 255, 0.65);
        }

        .tab-btn.active {
            color: #1a1a2e;
            background: white;
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
        }

        .tab-btn .tab-icon {
            width: 16px;
            height: 16px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .tab-btn .tab-icon svg {
            width: 16px;
            height: 16px;
        }

        @media (max-width: 600px) {
            .tab-btn .tab-icon {
                width: 13px;
                height: 13px;
            }

            .tab-btn .tab-icon svg {
                width: 13px;
                height: 13px;
            }
        }

        @media (max-width: 480px) {
            .tab-btn .tab-icon {
                width: 12px;
                height: 12px;
            }

            .tab-btn .tab-icon svg {
                width: 12px;
                height: 12px;
            }
        }

        /* Chat Input Area */
        .chat-input-area {
            padding: 16px;
            border-top: 1px solid #e5e7eb;
            background: #fafafa;
            border-radius: 0 0 16px 16px;
        }

        .chat-input-form {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .chat-input {
            width: 100%;
            flex: 1;
            padding: 10px 14px;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            font-size: 0.95rem;
            font-family: 'Inter', sans-serif;
            background: white;
            color: #1a1a2e;
            transition: all 0.2s ease;
        }

        .chat-input::placeholder {
            color: #9ca3af;
        }        .chat-input:focus {
            outline: none;
            border-color: #1a1a1a;
            box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
        }        .chat-send-btn {
            width: 36px;
            height: 36px;
            border: none;
            background: #374151;
            border-radius: 8px;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .chat-send-btn:hover {
            background: #1f2937;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .chat-send-btn:active {
            transform: translateY(0);
        }        
        .chat-send-btn svg {
            width: 18px;
            height: 18px;
            fill: white;
            stroke: none;
            display: block;
        }        .chat-send-icon {
            width: 18px;
            height: 18px;
            display: block;
        }        /* Help Suggestions Dropdown */
        .help-suggestions {
            position: absolute;
            bottom: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #e5e7eb;
            border-bottom: none;
            border-radius: 8px 8px 0 0;
            max-height: 200px;
            overflow-y: auto;
            z-index: 1000;
            box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
            margin-bottom: 4px;
        }

        .help-suggestions ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .help-suggestions li {
            padding: 10px 14px;
            border-bottom: 1px solid #f3f4f6;
            cursor: pointer;
            transition: background-color 0.2s ease;
            font-size: 0.9rem;
            color: #1a1a2e;
        }

        .help-suggestions li:last-child {
            border-bottom: none;
        }

        .help-suggestions li:hover {
            background-color: #f9fafb;
        }

        .help-suggestions li.active {
            background-color: #f3f4f6;
        }

        .help-suggestions::-webkit-scrollbar {
            width: 6px;
        }

        .help-suggestions::-webkit-scrollbar-track {
            background: transparent;
        }

        .help-suggestions::-webkit-scrollbar-thumb {
            background: #d1d5db;
            border-radius: 3px;
        }

        .help-suggestions::-webkit-scrollbar-thumb:hover {
            background: #9ca3af;
        }

        /* Typing Indicator */
        .typing-indicator-text {
            font-size: 0.95rem;
            color: #6b7280;
            font-weight: 400;
            padding: 0;
            margin: 8px 0;
        }

        .typing-dots {
            display: inline-block;
            margin-left: 4px;
        }

        .typing-dots span {
            display: inline-block;
            width: 4px;
            height: 4px;
            background: #6b7280;
            border-radius: 50%;
            margin: 0 2px;
            animation: typing-blink 1.4s infinite;
        }

        .typing-dots span:nth-child(1) {
            animation-delay: 0s;
        }

        .typing-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes typing-blink {
            0%, 60%, 100% {
                opacity: 0.3;
            }
            30% {
                opacity: 1;
            }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .chat-modal {
                max-width: 100%;
                height: 70vh;
                max-height: 600px;
                border-radius: 16px 16px 0 0;
            }

            .help-button {
                bottom: 20px;
                left: 20px;
                width: 48px;
                height: 48px;
            }
        }