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

body {
    font-family: 'Inter', sans-serif;
    background: #f0f9ff; /* Fondo azul muy claro */
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(29, 78, 216, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(147, 197, 253, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(29, 78, 216, 0.03) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* === PANTALLA DE LOGIN === */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
    text-align: center;
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.login-header i {
    font-size: 3rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.login-header h1 {
    color: #1e3a8a; /* Azul oscuro para contraste */
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-header p {
    color: #64748b; /* Gris azulado */
    font-size: 1rem;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #3b82f6;
    font-size: 1.1rem;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1e293b;
}

.input-group input::placeholder {
    color: #94a3b8;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #f8fafc;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* === PANTALLA DE CHAT === */
.chat-screen {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    height: 600px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.2);
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.chat-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-info i {
    font-size: 1.5rem;
}

.chat-info h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.online-status i {
    color: #10b981;
    font-size: 0.7rem;
    animation: pulse 2s infinite;
}

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

.chat-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-user {
    font-weight: 500;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fafbfc; /* Fondo muy claro para los mensajes */
}

.messages {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 70%;
    animation: slideIn 0.2s ease;
}

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

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

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: #64748b;
}

.message.own .message-header {
    justify-content: flex-end;
}

.message-content {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    word-wrap: break-word;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.message.own .message-content {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border: none;
}

.message-form {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1e293b;
}

.input-container input::placeholder {
    color: #94a3b8;
}

.input-container input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #f8fafc;
}

.btn-send {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-send:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.hidden {
    display: none !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .chat-container {
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    
    .chat-header {
        padding: 15px;
    }
    
    .chat-info h2 {
        font-size: 1.1rem;
    }
    
    .current-user {
        display: none;
    }
    
    .message {
        max-width: 85%;
    }
    
    .messages-container {
        padding: 15px;
    }
    
    .message-form {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .chat-actions {
        gap: 10px;
    }
    
    .message {
        max-width: 90%;
    }
}

/* Scrollbar personalizado */
.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.message {
    margin-bottom: 15px;
    /* Eliminar la animación slideIn */
    /* animation: slideIn 0.1s ease-out; */
    opacity: 1;
    transform: translateY(0);
}

/* Comentar o eliminar la animación slideIn */
/*
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
*/
.message.own {
    align-self: flex-end;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: #64748b;
}

.message.own .message-header {
    justify-content: flex-end;
}

.message-content {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    word-wrap: break-word;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.message.own .message-content {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border: none;
}

.message-form {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1e293b;
}

.input-container input::placeholder {
    color: #94a3b8;
}

.input-container input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #f8fafc;
}

.btn-send {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-send:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.hidden {
    display: none !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .chat-container {
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    
    .chat-header {
        padding: 15px;
    }
    
    .chat-info h2 {
        font-size: 1.1rem;
    }
    
    .current-user {
        display: none;
    }
    
    .message {
        max-width: 85%;
    }
    
    .messages-container {
        padding: 15px;
    }
    
    .message-form {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .chat-actions {
        gap: 10px;
    }
    
    .message {
        max-width: 90%;
    }
}

/* Scrollbar personalizado */
.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.message {
    margin-bottom: 15px;
    /* Eliminar la animación slideIn */
    /* animation: slideIn 0.1s ease-out; */
    opacity: 1;
    transform: translateY(0);
}

/* Comentar o eliminar la animación slideIn */
/*
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
*/
.message.own {
    align-self: flex-end;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: #64748b;
}

.message.own .message-header {
    justify-content: flex-end;
}

.message-content {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    word-wrap: break-word;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.message.own .message-content {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border: none;
}

.message-form {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1e293b;
}

.input-container input::placeholder {
    color: #94a3b8;
}

.input-container input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #f8fafc;
}

.btn-send {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-send:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.hidden {
    display: none !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .chat-container {
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    
    .chat-header {
        padding: 15px;
    }
    
    .chat-info h2 {
        font-size: 1.1rem;
    }
    
    .current-user {
        display: none;
    }
    
    .message {
        max-width: 85%;
    }
    
    .messages-container {
        padding: 15px;
    }
    
    .message-form {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .chat-actions {
        gap: 10px;
    }
    
    .message {
        max-width: 90%;
    }
}

/* Scrollbar personalizado */
.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.message {
    margin-bottom: 15px;
    opacity: 1;
    transform: translateY(0);
}

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

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: #64748b;
}

.message.own .message-header {
    justify-content: flex-end;
}

.message-content {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    word-wrap: break-word;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.message.own .message-content {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border: none;
}

.message-form {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1e293b;
}

.input-container input::placeholder {
    color: #94a3b8;
}

.input-container input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #f8fafc;
}

.btn-send {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-send:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.hidden {
    display: none !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .chat-container {
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    
    .chat-header {
        padding: 15px;
    }
    
    .chat-info h2 {
        font-size: 1.1rem;
    }
    
    .current-user {
        display: none;
    }
    
    .message {
        max-width: 85%;
    }
    
    .messages-container {
        padding: 15px;
    }
    
    .message-form {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .chat-actions {
        gap: 10px;
    }
    
    .message {
        max-width: 90%;
    }
}

/* Scrollbar personalizado */
.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.message {
    margin-bottom: 15px;
    opacity: 1;
    transform: translateY(0);
}

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

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: #64748b;
}

.message.own .message-header {
    justify-content: flex-end;
}

.message-content {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    word-wrap: break-word;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.message.own .message-content {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border: none;
}

.message-form {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1e293b;
}

.input-container input::placeholder {
    color: #94a3b8;
}

.input-container input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #f8fafc;
}

.btn-send {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-send:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.hidden {
    display: none !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .chat-container {
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    
    .chat-header {
        padding: 15px;
    }
    
    .chat-info h2 {
        font-size: 1.1rem;
    }
    
    .current-user {
        display: none;
    }
    
    .message {
        max-width: 85%;
    }
    
    .messages-container {
        padding: 15px;
    }
    
    .message-form {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .chat-actions {
        gap: 10px;
    }
    
    .message {
        max-width: 90%;
    }
}

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

.messages-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.message {
    margin-bottom: 15px;
    opacity: 1;
    transform: translateY(0);
}

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

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: #64748b;
}

.message.own .message-header {
    justify-content: flex-end;
}

.message-content {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    word-wrap: break-word;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.message.own .message-content {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border: none;
}

.message-form {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1e293b;
}

.input-container input::placeholder {
    color: #94a3b8;
}

.input-container input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #f8fafc;
}

.btn-send {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-send:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.hidden {
    display: none !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .chat-container {
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    
    .chat-header {
        padding: 15px;
    }
    
    .chat-info h2 {
        font-size: 1.1rem;
    }
    
    .current-user {
        display: none;
    }
    
    .message {
        max-width: 85%;
    }
    
    .messages-container {
        padding: 15px;
    }
    
    .message-form {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .chat-actions {
        gap: 10px;
    }
    
    .message {
        max-width: 90%;
    }
}

/* Scrollbar personalizado */
.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.message {
    margin-bottom: 15px;
    /* Eliminar la animación slideIn */
    /* animation: slideIn 0.1s ease-out; */
    opacity: 1;
    transform: translateY(0);
}

/* Comentar o eliminar la animación slideIn */
/*
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
*/
.message.own {
    align-self: flex-end;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: #64748b;
}

.message.own .message-header {
    justify-content: flex-end;
}

.message-content {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    word-wrap: break-word;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.message.own .message-content {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border: none;
}

.message-form {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1e293b;
}

.input-container input::placeholder {
    color: #94a3b8;
}

.input-container input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #f8fafc;
}

.btn-send {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-send:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.hidden {
    display: none !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .chat-container {
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    
    .chat-header {
        padding: 15px;
    }
    
    .chat-info h2 {
        font-size: 1.1rem;
    }
    
    .current-user {
        display: none;
    }
    
    .message {
        max-width: 85%;
    }
    
    .messages-container {
        padding: 15px;
    }
    
    .message-form {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .chat-actions {
        gap: 10px;
    }
    
    .message {
        max-width: 90%;
    }
}

/* Scrollbar personalizado */
.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.message {
    margin-bottom: 15px;
    /* Eliminar la animación slideIn */
    /* animation: slideIn 0.1s ease-out; */
    opacity: 1;
    transform: translateY(0);
}

/* Comentar o eliminar la animación slideIn */
/*
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
*/
.message.own {
    align-self: flex-end;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: #64748b;
}

.message.own .message-header {
    justify-content: flex-end;
}

.message-content {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    word-wrap: break-word;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.message.own .message-content {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border: none;
}

.message-form {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1e293b;
}

.input-container input::placeholder {
    color: #94a3b8;
}

.input-container input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #f8fafc;
}

.btn-send {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-send:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.hidden {
    display: none !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .chat-container {
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    
    .chat-header {
        padding: 15px;
    }
    
    .chat-info h2 {
        font-size: 1.1rem;
    }
    
    .current-user {
        display: none;
    }
    
    .message {
        max-width: 85%;
    }
    
    .messages-container {
        padding: 15px;
    }
    
    .message-form {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .chat-actions {
        gap: 10px;
    }
    
    .message {
        max-width: 90%;
    }
}

/* Scrollbar personalizado */
.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.message {
    margin-bottom: 15px;
    /* Eliminar la animación slideIn */
    /* animation: slideIn 0.1s ease-out; */
    opacity: 1;
    transform: translateY(0);
}

/* Comentar o eliminar la animación slideIn */
/*
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
*/
.message.own {
    align-self: flex-end;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: #64748b;
}

.message.own .message-header {
    justify-content: flex-end;
}

.message-content {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    word-wrap: break-word;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.message.own .message-content {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border: none;
}

.message-form {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1e293b;
}

.input-container input::placeholder {
    color: #94a3b8;
}

.input-container input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #f8fafc;
}

.btn-send {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-send:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.hidden {
    display: none !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .chat-container {
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    
    .chat-header {
        padding: 15px;
    }
    
    .chat-info h2 {
        font-size: 1.1rem;
    }
    
    .current-user {
        display: none;
    }
    
    .message {
        max-width: 85%;
    }
    
    .messages-container {
        padding: 15px;
    }
    
    .message-form {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .chat-actions {
        gap: 10px;
    }
    
    .message {
        max-width: 90%;
    }
}

/* Scrollbar personalizado */
.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.message {
    margin-bottom: 15px;
    /* Eliminar la animación slideIn */
    /* animation: slideIn 0.1s ease-out; */
    opacity: 1;
    transform: translateY(0);
}

/* Comentar o eliminar la animación slideIn */
/*
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
*/
.message.own {
    align-self: flex-end;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: #64748b;
}

.message.own .message-header {
    justify-content: flex-end;
}

.message-content {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    word-wrap: break-word;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.message.own .message-content {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border: none;
}

.message-form {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1e293b;
}

.input-container input::placeholder {
    color: #94a3b8;
}

.input-container input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #f8fafc;
}

.btn-send {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-send:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.hidden {
    display: none !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .chat-container {
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    
    .chat-header {
        padding: 15px;
    }
    
    .chat-info h2 {
        font-size: 1.1rem;
    }
    
    .current-user {
        display: none;
    }
    
    .message {
        max-width: 85%;
    }
    
    .messages-container {
        padding: 15px;
    }
    
    .message-form {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .chat-actions {
        gap: 10px;
    }
    
    .message {
        max-width: 90%;
    }
}

/* Scrollbar personalizado */
.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.message {
    margin-bottom: 15px;
    /* Eliminar la animación slideIn */
    /* animation: slideIn 0.1s ease-out; */
    opacity: 1;
    transform: translateY(0);
}

/* Comentar o eliminar la animación slideIn */
/*
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
*/
.message.own {
    align-self: flex-end;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: #64748b;
}

.message.own .message-header {
    justify-content: flex-end;
}

.message-content {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    word-wrap: break-word;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.message.own .message-content {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border: none;
}

.message-form {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1e293b;
}

.input-container input::placeholder {
    color: #94a3b8;
}

.input-container input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #f8fafc;
}

.btn-send {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-send:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.hidden {
    display: none !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .chat-container {
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    
    .chat-header {
        padding: 15px;
    }
    
    .chat-info h2 {
        font-size: 1.1rem;
    }
    
    .current-user {
        display: none;
    }
    
    .message {
        max-width: 85%;
    }
    
    .messages-container {
        padding: 15px;
    }
    
    .message-form {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .chat-actions {
        gap: 10px;
    }
    
    .message {
        max-width: 90%;
    }
}

/* Scrollbar personalizado */
.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.message {
    margin-bottom: 15px;
    /* Eliminar la animación slideIn */
    /* animation: slideIn 0.1s ease-out; */
    opacity: 1;
    transform: translateY(0);
}

/* Comentar o eliminar la animación slideIn */
/*
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
*/
.message.own {
    align-self: flex-end;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: #64748b;
}

.message.own .message-header {
    justify-content: flex-end;
}

.message-content {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    word-wrap: break-word;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.message.own .message-content {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border: none;
}

.message-form {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1e293b;
}

.input-container input::placeholder {
    color: #94a3b8;
}

.input-container input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #f8fafc;
}

.btn-send {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-send:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.hidden {
    display: none !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .chat-container {
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    
    .chat-header {
        padding: 15px;
    }
    
    .chat-info h2 {
        font-size: 1.1rem;
    }
    
    .current-user {
        display: none;
    }
    
    .message {
        max-width: 85%;
    }
    
    .messages-container {
        padding: 15px;
    }
    
    .message-form {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .chat-actions {
        gap: 10px;
    }
    
    .message {
        max-width: 90%;
    }
}

/* Scrollbar personalizado */
.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.message {
    margin-bottom: 15px;
    /* Eliminar la animación slideIn */
    /* animation: slideIn 0.1s ease-out; */
    opacity: 1;
    transform: translateY(0);
}

/* Comentar o eliminar la animación slideIn */
/*
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
*/
.message.own {
    align-self: flex-end;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: #64748b;
}

.message.own .message-header {
    justify-content: flex-end;
}

.message-content {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    word-wrap: break-word;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}