:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --success-color: #27ae60;
}

body {
    background-color: #f5f7fa;
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Contenedor general */
.auth-container {
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 5vh;
    padding: 0 20px;
}

/* Estilo para la tarjeta de LOGIN (más pequeña) */
#loginCard {
    max-width: 500px;
    margin: 0 auto;
}

/* Estilo para la tarjeta de REGISTRO (más ancha) */
#registerCard {
    max-width: 1000px;
    margin: 0 auto;
}

.auth-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.auth-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
    border-bottom: 4px solid var(--accent-color);
}

.auth-header h3 {
    font-weight: 500;
    margin: 0;
}

.auth-body {
    padding: 30px;
    background-color: white;
}

/* Estilos para los campos de formulario */
.form-control, .form-select {
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s;
    height: calc(3.25rem + 2px);
    font-size: 1rem;
}

/* Estilo especial para los combobox */
.form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Asegurar que el dropdown tenga el mismo ancho */
.dropdown-menu {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.btn-auth {
    padding: 12px;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.btn-login {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-login:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-register {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-register:hover {
    background-color: #219653;
    border-color: #219653;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: #7f8c8d;
}

.auth-footer a {
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.form-label {
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* Estructura de columnas para el formulario de registro */
.register-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-section {
    margin-bottom: 25px;
}

.form-section-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.password-container {
    position: relative;
}

.password-container input[type="password"],
.password-container input[type="text"] {
    padding-right: 45px; /* espacio para el icono */
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #7f8c8d;
    font-size: 1.1rem;
    z-index: 2;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    width: 100%;
}

/* Ajustes para el textarea */
textarea.form-control {
    min-height: 100px;
    height: auto;
}

/* Responsive */
@media (max-width: 992px) {
    .register-columns {
        grid-template-columns: 1fr;
    }

    #registerCard {
        max-width: 100%;
    }

    .auth-body {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    #loginCard {
        max-width: 100%;
    }

    .auth-container {
        margin-top: 2vh;
        padding: 0 15px;
    }
}

/* Estilos del chatbot */
        #chatbotContainer {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
        }
        
        .chatbot-icon {
            width: 60px;
            height: 60px;
            background-color: #10b981;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            color: white;
            font-size: 24px;
        }
        
        .chatbot-icon:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
        }
        
        .chatbot-window {
            width: 350px;
            height: 450px;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transform: translateY(20px);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            position: absolute;
            bottom: 70px;
            right: 0;
        }
        
        .chatbot-window.active {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
        }
        
        .chatbot-header {
            background-color: #10b981;
            color: white;
            padding: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .chatbot-header h4 {
            margin: 0;
            font-size: 18px;
        }
        
        .chatbot-close {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            padding: 0;
            line-height: 1;
        }
        
        .chatbot-messages {
            flex: 1;
            padding: 15px;
            overflow-y: auto;
            background-color: #f9f9f9;
        }
        
        .chatbot-message {
            margin: 10px 0;
            padding: 10px 15px;
            border-radius: 18px;
            max-width: 80%;
            word-wrap: break-word;
        }
        
        .user-message {
            background-color: #10b981;
            color: white;
            margin-left: auto;
            border-bottom-right-radius: 5px;
        }
        
        .bot-message {
            background-color: #e5e7eb;
            margin-right: auto;
            border-bottom-left-radius: 5px;
        }
        
        .chatbot-input {
            display: flex;
            padding: 10px;
            border-top: 1px solid #ddd;
            background-color: white;
        }
        
        .chatbot-input input {
            flex: 1;
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 20px;
            outline: none;
        }
        
        .chatbot-input button {
            background-color: #10b981;
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            margin-left: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .chatbot-suggestions {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-top: 10px;
        }
        
        .chatbot-suggestion {
            padding: 5px 10px;
            background-color: #e5e7eb;
            border-radius: 15px;
            font-size: 12px;
            cursor: pointer;
        }
        
        .chatbot-suggestion:hover {
            background-color: #d1d5db;
        }
        
        /* Botón de WhatsApp */
.whatsapp-container {
    position: fixed;
    left: 20px; /* Cambiado de right a left para esquina inferior izquierda */
    bottom: 20px;
    z-index: 1000;
}

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

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

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