/* =====================================================
   HEADER ESCRITORIO
===================================================== */

.desktop-header{

    width:100%;

    display:block;

}

/* =====================================================
   HEADER GENERAL
===================================================== */

.desktop-header .c9-header{

    font-family:'Poppins',sans-serif;

    width:100%;

    box-sizing:border-box;

}

/* CONTENEDOR */

.desktop-header .header-container-fluid{

    width:94%;

    max-width:1500px;

    margin:0 auto;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:15px;

    box-sizing:border-box;

}

/* =====================================================
   TOPBAR
===================================================== */

.desktop-header .topbar{

    background:#a30000;

    color:#fff;

    padding:14px 0;

    width:100%;

}

/* LOGO */

.desktop-header .top-left .logo{

    display:inline-block;

}

.desktop-header .top-left .logo img{

    height:90px;

    width:auto;

    display:block;

    filter:brightness(0) invert(1);

    transition:.30s;

}

/* REDES */

.desktop-header .top-center{

    display:flex;

    gap:14px;

    justify-content:center;

    align-items:center;

}

.desktop-header .social{

    width:42px;

    height:42px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:transparent;

    border:2px solid rgba(255,255,255,.70);

    color:#fff;

    text-decoration:none;

    transition:.30s;

}

.desktop-header .social i{

    color:#fff;

    font-size:18px;

}

.desktop-header .social:hover{

    background:#fff;

    border-color:#fff;

}

/* CONTACTOS */

.desktop-header .top-right{

    display:flex;

    flex-direction:column;

    align-items:flex-end;

    gap:6px;

}

.desktop-header .top-right .contact{

    color:#fff;

    text-decoration:none;

    font-size:14px;

    font-weight:500;

    background:rgba(255,255,255,.1);

    padding:6px 14px;

    border-radius:25px;

    display:inline-flex;

    align-items:center;

    transition:.25s;

}

.desktop-header .top-right .contact:hover{

    background:#ffcc00;

    color:#111;

}

.desktop-header .top-right .contact i{

    margin-right:8px;

}

/* =====================================================
   NAVBAR
===================================================== */

.desktop-header .navbar{

    background:#111;

    padding:6px 0;

    border-top:1px solid #222;

    width:100%;

    box-shadow:0 4px 20px rgba(0,0,0,.15);

}

.desktop-header .nav{

    list-style:none;

    display:flex;

    gap:20px;

    margin:0;

    padding:0;

    align-items:center;

}

.desktop-header .nav li a{

    color:#e2e8f0;

    text-decoration:none;

    font-weight:500;

    font-size:14px;

    padding:10px 4px;

    display:block;

    white-space:nowrap;

}

.desktop-header .nav li a:hover{

    color:#ffcc00;

}

/* =====================================================
   BOTONERA
===================================================== */

.desktop-header .actions{

    display:flex;

    align-items:center;

    gap:10px;

    flex-shrink:0;

}

.desktop-header .actions .btn,
.desktop-header .btn-publi{

    color:#fff;

    padding:8px 14px;

    border-radius:10px;

    font-weight:600;

    font-size:13px;

    display:inline-flex;

    align-items:center;

    gap:6px;

    text-decoration:none;

    white-space:nowrap;

}

.desktop-header .actions .btn.publicar,
.desktop-header .btn-publi{

    background:#a30000;

}

.desktop-header .actions .btn.publicar:hover,
.desktop-header .btn-publi:hover{

    background:#ffcc00;

    color:#111;

}


/* =====================================================
   ESCRITORIO
===================================================== */

@media (min-width:993px){

    .desktop-header{

        display:block;

    }

    .mobile-top,
    .mobile-menu,
    .mobile-overlay{

        display:none !important;

    }

}

/* =====================================================
   NOTEBOOKS
===================================================== */

@media (min-width:993px) and (max-width:1200px){

    .desktop-header .nav{

        gap:12px;

    }

    .desktop-header .nav li a{

        font-size:13px;

    }

    .desktop-header .actions .btn span,
    .desktop-header .btn-publi span{

        display:inline;

    }

}

/* =====================================================
   TABLETS
===================================================== */

@media (min-width:769px) and (max-width:992px){

    .desktop-header{

        display:none !important;

    }

}

/* =====================================================
   MÓVILES
===================================================== */

@media (max-width:768px){

    .desktop-header{

        display:none !important;

    }

}




/* =====================================================
    🔽 DROPDOWN / SUBMENÚS
===================================================== */

nav ul li {
    position: relative;
}

nav ul li .submenu {
    position: absolute;
    top: 45px;
    left: 0;
    background: #1a1a1a;
    min-width: 240px;
    border-radius: 8px;
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s ease;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
    border: 1px solid #222;
}

nav ul li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav ul li .submenu li a {
    padding: 10px 20px;
    color: #cbd5e1;
    font-size: 14px;
    display: block;
    transition: .2s;
    border-left: 3px solid transparent;
}

nav ul li .submenu li a:hover {
    background: #a30000;
    color: #ffffff;
    border-left: 3px solid #ffcc00;
}

nav ul li .submenu li::before {
    display: none !important;
    content: "";
}

/* ==========================
   CHAT FLOTANTE
========================== */

.chat-float{
    position:fixed;
    right:20px;
    left:auto;

    bottom:130px;

    width:60px;
    height:60px;

    border-radius:50%;

    background:#a30000;
    color:#fff;

    text-decoration:none;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:26px;

    box-shadow:0 8px 25px rgba(0,0,0,.25);

    z-index:999999;

    transition:.3s;
}

.chat-float:hover{
    transform:scale(1.08);
}

@media(max-width:768px){

    .chat-float{
        right:15px !important;
        left:auto !important;
        bottom:140px !important;
    }

}

.chat-float:hover{
    transform:scale(1.08);
}

.chat-badge{

    position:absolute;

    top:-4px;
    right:-4px;

    min-width:24px;
    height:24px;

    border-radius:50%;

    background:#ff0000;
    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:12px;
    font-weight:700;

    padding:0 5px;
}

#chatWidget{ position:fixed; left:2px; bottom:20px; width:320px; height:550px; background:#fff; border-radius:18px; overflow:hidden; box-shadow:0 15px 40px rgba(0,0,0,.25); z-index:999999; display:none; flex-direction:column; } #chatHeader{ background:#a30000; color:#fff; padding:15px; display:flex; justify-content:space-between; align-items:center; font-weight:600; } #chatClose{ background:none; border:none; color:#fff; font-size:24px; cursor:pointer; } #chatUsuarios{ max-height:auto; overflow-y:auto; border-bottom:1px solid #eee; } .chatUser{ padding:12px; cursor:pointer; border-bottom:1px solid #f2f2f2; } .chatUser:hover{ background:#fafafa; } #chatMensajes{ flex:1; overflow-y:auto; padding:15px; background:#f5f5f5; } #chatEnviar{ display:flex; gap:10px; padding:12px; border-top:1px solid #eee; } #chatTexto{ flex:1; border:1px solid #ddd; border-radius:10px; padding:10px; }
#chatMensajes{
    padding:15px;
    height:320px;
    overflow-y:auto;
    background:#f5f6fa;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.message{
    max-width:75%;
    padding:10px 14px;
    border-radius:14px;
    word-wrap:break-word;
    font-size:14px;
    line-height:1.4;
}

.message.me{
    align-self:flex-end;
    background:#0d6efd;
    color:#fff;
    border-bottom-right-radius:4px;
}

.message.other{
    align-self:flex-start;
    background:#ffffff;
    color:#333;
    border:1px solid #ddd;
    border-bottom-left-radius:4px;
}

/* ==========================
   NUEVO CHAT
========================== */

#chatLista{
    flex:1;
    overflow-y:auto;
    background:#fff;
}

#chatConversacion{
    display:none;
    flex-direction:column;
    height:100%;
}

#chatTop{
    padding:15px;
    border-bottom:1px solid #eee;
    display:flex;
    align-items:center;
    gap:10px;
    background:#fff;
}

#chatNombre{
    font-weight:700;
    color:#222;
}

#chatSubtitulo{
    font-size:12px;
    color:#888;
}

#chatVolver{
    width:36px;
    height:36px;
    border:none;
    border-radius:50%;
    background:#a30000;
    color:#fff;
    cursor:pointer;
}

.chatUserName{
    font-weight:700;
    font-size:16px;
    color:#222;
}

.chatUserRole{
    font-size:12px;
    color:#888;
    margin-top:2px;
}

.chatUserLast{
    font-size:13px;
    color:#666;
    margin-top:6px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* =====================================================
   SEPARACIÓN DEFINITIVA ESCRITORIO / MÓVIL
===================================================== */

/* SOLO ESCRITORIO */

@media (min-width:993px){

    .mobile-top,
    .mobile-overlay,
    .mobile-menu{

        display:none !important;

    }

}

/* SOLO MÓVIL */

@media (max-width:992px){

    .desktop-header{

        display:none !important;

    }

}

.btn.admin{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;

    padding:10px 16px;

    background:#a30000;
    color:#ffffff;

    border:1px solid #a30000;
    border-radius:9px;

    font-size:13px;
    font-weight:600;

    text-decoration:none;
    white-space:nowrap;

    transition:.2s ease;
}

.btn.admin:hover{
    background:#880000;
    border-color:#880000;
    color:#ffffff;
}

.btn.admin i{
    color:#ffffff;
}