/* ==========================================================================
   CONFIGURACIÓN GENERAL Y VARIABLES
   ========================================================================== */
:root {
    --color-principal: #ffc107; /* Amarillo corporativo (Warning) */
    --color-oscuro: #212529;    /* Gris oscuro/Negro */
    --color-claro: #f8f9fa;     /* Fondo claro */
    --color-texto-muted: #6c757d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-claro);
    color: var(--color-oscuro);
    scroll-behavior: smooth; /* Desplazamiento suave al hacer clic en el menú */
}

/* ==========================================================================
   PÁGINA PÚBLICA (index.html)
   ========================================================================== */

/* Menú de navegación principal */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-link {
    transition: color 0.3s ease;
}

/* Botón "Ingresar" con animación */
.navbar .btn-warning {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(255, 193, 7, 0.2);
}

.navbar .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 193, 7, 0.4);
    background-color: #ffca2c !important;
}

/* Sección de Bienvenida (Hero) */
header.bg-light {
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f5 100%);
}

/* Tarjetas de Servicios y Membresías */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Sección de Mascotas Perdidas (Muro / Foro) */
#perdidas .bg-white {
    border-left: 5px solid #dc3545; /* Línea roja de alerta */
    border-radius: 8px;
}

/* Ajustes para Formularios */
.form-control {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--color-principal);
    box-shadow: 0 0 0 0.25px rgba(255, 193, 7, 0.5);
}

/* Ventanas Modales (Login) */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}


/* ==========================================================================
   PANEL PRIVADO (dashboard.html) - MENÚ VERTICAL
   ========================================================================== */

/* Barra lateral izquierda fija */
.sidebar {
    min-height: 100vh;
    background-color: #1a1d20; /* Tono ligeramente más oscuro que el estándar */
    color: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Enlaces del Menú Vertical */
.sidebar .nav-link {
    color: #c2c7d0;
    font-weight: 500;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Hover en los ítems del menú vertical */
.sidebar .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 24px; /* Efecto sutil de desplazamiento al pasar el mouse */
}

/* Ítem del menú activo */
.sidebar .nav-link.active {
    color: #000000 !
    
    
  /* ==========================================================================
   ASISTENTE VIRTUAL FLOATING CHAT (ZEUS)
   ========================================================================== */
.chat-widget-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999 !important; /* Fuerza a que aparezca por encima de todo */
}

.chat-bubble-toggle {
    width: 65px;
    height: 65px;
    background-color: #ffc107 !important; /* Amarillo ALFA */
    color: #212529 !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-bubble-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #ffca2c !important;
}

.chat-box-window {
    width: 350px;
    height: 460px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 80px;
    right: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.chat-box-window.d-none {
    display: none !important;
}

.chat-box-header {
    background-color: #198754;
    color: #ffffff;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-box-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.msg-zeus {
    background-color: #ffffff;
    color: #212529;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}

.msg-user {
    background-color: #ffc107;
    color: #212529;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.chat-box-footer {
    padding: 12px;
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
}

.chat-input-field {
    border-radius: 20px;
    padding-left: 15px;
    font-size: 0.9rem;
}

.select2-container {
    z-index: 9999 !important; /* Asegura que el buscador esté por encima del modal */
}