﻿/* =============================================================================
   1. VARIABLES Y RESET GENERAL
   ============================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

/* ESTOS COLORES NO HAY QUE PASARLOS A PRODUCCION  
 * BKP - POR SI LO PISAMOS 
 *
    :root {
        --colorPrincipal: #26b398;
        --colorFondo: #2a3749;
        --colorSecundario: #551a8b;
        --colorLineas: #e1e0e0;
        --botones: #219d85;
    }
*/

:root {
    --colorPrincipal: #26b398;
    --colorFondo: #2a3749;
    --colorSecundario: #551a8b;
    --colorLineas: #e1e0e0;
    --botones: #219d85;
}

* { box-sizing: border-box; }

html { background-color: var(--colorFondo) !important; }

body {
    margin: 0px;
    padding: 0px;
    color: #181818;
    font: 400 18px/1.4 'Open Sans', Arial, sans-serif;
    overflow-x: hidden;
}

a { text-decoration: none; cursor: pointer; color: var(--colorPrincipal); }
i { cursor: pointer; }
h2 { font-size: 30px; }

input[type="submit"], input[type="reset"], input[type="button"], textarea, button {
    background: none;
    border: 0;
    color: var(--colorPrincipal);
    font: inherit;
    line-height: normal;
    overflow: visible;
    padding: 0;
}

textarea { color: #333; }
.clear { clear: both; }

/* =============================================================================
   2. CABECERA Y NAVEGACIÓN (Layout Principal)
   ============================================================================= */
.cabecera-master {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background-color: var(--colorFondo);
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Subimos el z-index para que nada la tape */
    box-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

.acciones-cabecera {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-contenedor {
    display: flex;
    align-items: center;
    height: 100%;
}

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

.logo-nombre { display: none; } /* El logo ya tiene el nombre */

/* Contenedor de Notificaciones y Mensajes */
#divNotifGral {
    display: flex !important;
    align-items: center;
    gap: 20px;
    transition: margin-right 0.5s ease-in-out;
}

/* Efecto si quieres que resalte más cuando hay mensajes */
.msj_On i {
    color: #FFF;
    animation: pulse-light 2s infinite;
}

@keyframes pulse-light {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.mensajes, .notificaciones {
	position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    cursor: pointer;
}

/* Notificación no vista */
.notif-item-unseen {
    background-color: #f0f7ff !important; /* Azul muy claro */
    border-left: 3px solid var(--colorPrincipal) !important;
}

.notif-item-unseen .notif_titulo {
    font-weight: 800 !important;
    color: #000 !important;
}

/* Indicador de punto verde para lo nuevo */
.unread-dot {
    width: 8px;
    height: 8px;
    background-color: var(--colorPrincipal);
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
}

.cant_msjs {
	position: absolute;
    top: -2px;      /* Ajusta según tu cabecera */
    right: -5px;    /* Ajusta según tu cabecera */
    background-color: #ff3b30; /* Rojo vibrante o var(--colorPrincipal) si prefieres verde */
    color: white !important;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%; /* Lo hace circular */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--colorFondo); /* Crea un borde del color del fondo para que resalte */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 10;
    pointer-events: none; /* Para que no interfiera con el clic al sobre */
	cursor: pointer;
}

.cant_notif {
	position: absolute;
    top: -2px;      /* Ajusta según tu cabecera */
    right: -5px;    /* Ajusta según tu cabecera */
    background-color: #ff3b30; /* Rojo vibrante o var(--colorPrincipal) si prefieres verde */
    color: white !important;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%; /* Lo hace circular */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--colorFondo); /* Crea un borde del color del fondo para que resalte */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 10;
    pointer-events: none; /* Para que no interfiera con el clic al sobre */
	cursor: pointer;
}

.imagenPerfilMenu {
    border-radius: 50%;
    border: 2px solid var(--colorPrincipal);
    object-fit: cover;
    display: block;
}

/* =============================================================================
   3. MENÚ HAMBURGUESA (Fix para script.js)
   ============================================================================= */

.menuUserContenedor {
    position: fixed !important; /* Se fija a la pantalla, no al contenido */
    top: 70px !important;      /* Altura de la cabecera */
    right: 0 !important;
    width: 300px !important;
    height: calc(100vh - 70px) !important; /* Alto total menos la cabecera */
    background-color: #242526 !important;
    z-index: 3000 !important;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3) !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
    display: none; /* Se controla por JS */
    border-left: 1px solid #444;
}

/* Estilo de los items del menú */
.menuUserLista {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.menuUserLista li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #e4e6eb !important;
    text-decoration: none;
    font-size: 15px;
    transition: 0.2s;
}

.menuUserLista li a:hover {
    background-color: var(--colorPrincipal);
    color: white !important;
}

.menuUserLista li a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

/* Avatar dentro del menú */
.menuUserPerfil {
    padding: 20px;
    border-bottom: 1px solid #444;
    display: flex;
    align-items: center;
    gap: 15px;
}

.menuUserContenedor2 {
    padding: 20px;
    color: white;
}

.menuUserLista li {
    width: 100%;
    transition: 0.3s;
}

.menuUserLista li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menuUserImgActivo {
    cursor: pointer;
    font-size: 22px;
    color: var(--colorPrincipal);
}

/* =============================================================================
   4. BUSCADOR Y HERO (Index)
   ============================================================================= */
.cabeceraHijo {
    margin-bottom: 50px;
    margin-top: 80px;
    text-align: center;
    width: 100%;
}

.search-container-modern {
    background: white;
    padding: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    max-width: 900px;
    margin: -40px auto 0;
    position: relative;
    z-index: 10;
}

.hero-modern {
    background: var(--colorFondo);
    padding: 80px 20px 100px;
    text-align: center;
    color: white;
}

/* =============================================================================
   5. CARDS Y GRILLA (Index / Oportunidades)
   ============================================================================= */
.contenedor {
    width: 100%;
    padding-bottom: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.contenedorPedido {
    width: 350px;
    background: #FFF;
    margin: 20px;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: initial;
}

.detallesTitulo {
    font-size: 19px;
    font-weight: 600;
    color: #333;
}

.descripcionPed {
    border-top: 1px solid var(--colorLineas);
    padding-top: 10px;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* =============================================================================
   6. BOTONES GENERALES
   ============================================================================= */
.butIn {
    background-color: var(--colorSecundario) !important;
    color: #FFF !important;
    border-radius: 50px !important;
    padding: 12px 25px;
    cursor: pointer;
    text-align: center;
    display: inline-block;
}

.butGen {
    background-color: var(--colorPrincipal) !important;
    font-weight: bold;
    border: none;
    transition: 0.3s;
}

.btnRegistrarse {
    background-color: var(--colorPrincipal);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
}

/* =============================================================================
   7. MODALES, ALERTAS Y NOTIFICACIONES FLOTANTES
   ============================================================================= */
/* Quitar puntos de las listas de notificaciones y mensajes */
.notif_lista, .msj_lista {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.notif_lista li, .msj_lista li {
    list-style-type: none !important;
    display: block !important;
}

.contenedor_notif {
    position: absolute !important;
    top: 70px !important;
    right: 50px !important; /* Ajustar según posición del icono */
    background: white !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2) !important;
    border-radius: 10px !important;
    z-index: 2000 !important;
    width: 380px !important;
}

#modalecont {
    width: 100%; height: 100%;
    position: fixed; top: 0; left: 0;
    background-color: rgba(0,0,0,0.7);
    z-index: 10000;
    display: none;
    align-items: center; justify-content: center;
}

/* =============================================================================
   8. ESTILOS ESPECÍFICOS DE EBER / PROYECTOS
   ============================================================================= */
.contopo {
    width: 1180px;
    margin: auto;
    background-color: #FFF;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 1px 10px rgba(0,0,0,0.1);
}

.contgalped { overflow: hidden; width: 296px; position: relative; }
.imgped img { width: 100%; object-fit: cover; }

.rate { float: left; height: 46px; padding: 0 10px; }
.rate:not(:checked) > input { position:absolute; top:-9999px; }
.rate:not(:checked) > label { float:right; width:0.84em; cursor:pointer; font-size:30px; color:#ccc; }
.rate:not(:checked) > label:before { content: '\2605 '; }
.rate > input:checked ~ label { color: #ffc700; }


/* --- MODAL DE REGISTRO / LOGIN (IRTotal) --- */
.IRTotal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85); /* Fondo oscuro semitransparente */
    z-index: 11000; /* Por encima de todo */
    display: none; /* Se controla por JS */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px); /* Efecto de desenfoque moderno */
}

.IRContenedor {
    background: white;
    padding: 50px 40px;
    border-radius: 28px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    animation: modalBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.IRContenedor label {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    display: block;
    line-height: 1.4;
}

.IRCont {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

/* Botones dentro del modal */
.iniciarSesionIRC a, .RegistrarseIRC a {
    display: block;
    padding: 15px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.iniciarSesionIRC a {
    background: #f1f5f9;
    color: #475569;
}

.RegistrarseIRC a {
    background: var(--colorPrincipal);
    color: white;
}

.RegistrarseIRC a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(38, 179, 152, 0.3);
}

.cerrarIRC {
    margin-top: 25px;
    display: inline-block;
    color: #94a3b8;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes modalBounce {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* --- AGREGAR EN estilo.css --- */

.alerta-roja-premium {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 12px;
    margin-top: 10px;
    line-height: 1.5;
    border-left: 5px solid #e53e3e;
    animation: shake 0.5s ease-in-out;
}

.alerta-roja-premium i {
    font-size: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.alerta-roja-premium strong {
    text-transform: uppercase;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Notificación de advertencia en el dropdown */
.notif-advertencia {
    background-color: #fff5f5 !important; /* Fondo rojizo suave */
    border-left: 4px solid #e53e3e !important; /* Borde rojo fuerte */
}

.notif-advertencia .notif_titulo {
    color: #c53030 !important;
    font-weight: 800 !important;
}
/* Contenedor del ícono de seguridad en notificaciones */
.icon-notif-system {
    width: 40px;
    height: 40px;
    background-color: #e53e3e; /* Rojo advertencia */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(229, 62, 62, 0.3);
}
/* --- MEDIDOR DE SALUD DE CUENTA --- */
.health-meter-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 20px;
    margin: 30px auto;
    max-width: 800px;
    text-align: left;
}

.health-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.health-title {
    color: white;
    font-size: 15px;
    font-weight: 700;
}

/* Badges de estado */
.health-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* La barra de progreso */
.health-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.health-bar-fill {
    height: 100%;
    transition: width 1s ease-in-out;
}

.health-footer-txt {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

/* Colores Dinámicos */
.salud-excelente { background-color: #2ecc71 !important; color: white; box-shadow: 0 0 15px rgba(46, 204, 113, 0.3); }
.salud-alerta { background-color: #f1c40f !important; color: #78350f; box-shadow: 0 0 15px rgba(241, 196, 15, 0.3); }
.salud-peligro { background-color: #e74c3c !important; color: white; box-shadow: 0 0 15px rgba(231, 76, 60, 0.3); }

/* Mini tarjeta del profesional/cliente dentro de la actividad */
.mini-profile-card, .ref-box {
    display: flex;
    align-items: center;
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
    margin: 15px 0;
    border: 1px solid #edf2f7;
    gap: 12px;
}

.mini-profile-card img, .ref-box img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.mini-info, .ref-box div {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: 13px;
    line-height: 1.2;
}

.mini-info a {
    font-size: 11px;
    text-decoration: underline;
    color: var(--colorPrincipal);
}

.btn-mini-chat {
    background: white;
    border: 1px solid var(--colorPrincipal);
    color: var(--colorPrincipal);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
}


/* Badge de estado profesional */
.badge-status {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}
.badge-status.buscando { background: #e0f2fe; color: #075985; }
.badge-status.aceptado { background: #dcfce7; color: #166534; }
.badge-status.finalizado { background: #f1f5f9; color: #475569; }

/* Meta data */
.fecha-meta {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 10px;
}

/* Acciones */
.card-footer-actions {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #f1f5f9;
}

.btn-action {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.btn-action.main { background: var(--colorPrincipal); color: white; }
.btn-action.secondary { background: #f1f5f9; color: #475569; }
.btn-action.success { background: var(--colorSecundario); color: white; }

/* --- ESTILOS DE MODAL MARKETPLACE --- */
.modal-burbuja {
    text-align: center;
    padding: 10px;
}

.modal-burbuja i {
    font-size: 50px;
    margin-bottom: 20px;
}

.icon-warning { color: #f59e0b; }
.icon-danger { color: #ef4444; }
.icon-success { color: #26b398; }

.modal-burbuja h3 {
    color: #1e293b;
    font-size: 22px;
    margin-bottom: 10px;
}

.modal-burbuja p {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Estrellas para calificar en el modal */
.rating-box {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    margin-bottom: 20px;
}
.rating-box input { display: none; }
.rating-box label {
    font-size: 30px;
    color: #e2e8f0;
    cursor: pointer;
    transition: 0.2s;
    margin: 0 5px;
}
.rating-box label:hover,
.rating-box label:hover ~ label,
.rating-box input:checked ~ label {
    color: #ffc700;
}

.modal-textarea {
    width: 100%;
    height: 80px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-family: inherit;
    resize: none;
    margin-bottom: 20px;
}
/* Badge para estados de cancelación */
.badge-status.canceled { 
    background: #fee2e2; 
    color: #ef4444; 
    border: 1px solid #fecaca;
}

/* Texto de ayuda para cancelados */
.txt-cancel {
    font-size: 12px;
    color: #ef4444;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.txt-exito {
    font-size: 12px;
    color: var(--colorPrincipal);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}
.lista-pedidos-modal { list-style: none; padding: 0; margin: 20px 0; max-height: 300px; overflow-y: auto; }
.lista-pedidos-modal li { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-bottom: 1px solid #eee; text-align: left; }
.lista-pedidos-modal li span { font-size: 14px; font-weight: 600; color: #333; flex: 1; margin-right: 10px; }
.lista-pedidos-modal li button { background: var(--colorPrincipal); color: white; border: none; padding: 6px 12px; border-radius: 8px; font-size: 12px; cursor: pointer; }

/* --- MODAL GENÉRICO DEL SISTEMA --- */
#modalecont {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
}

#modalalertttt {
    background: white;
    padding: 40px;
    border-radius: 28px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    position: relative;
    text-align: center;
}

/* Estilo para la lista de pedidos dentro del modal */
.lista-pedidos-modal {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    max-height: 300px;
    overflow-y: auto;
    border-top: 1px solid #f1f5f9;
}

.lista-pedidos-modal li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
    transition: 0.2s;
}

.lista-pedidos-modal li:hover {
    background: #f8fafc;
}

.lista-pedidos-modal li span {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    flex: 1;
    margin-right: 15px;
}

.lista-pedidos-modal li button {
    background: var(--colorPrincipal);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.lista-pedidos-modal li button:hover {
    background: #1f947d;
}
/* --- CORRECCIÓN SIDEBAR CONTACTO --- */
.sidebar-contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rol-badge-sidebar {
    background: #e8f5f2; /* Verde esmeralda muy clarito */
    color: #1f947d;      /* Verde esmeralda oscuro */
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 15px 0; /* Espaciado arriba y abajo */
    display: inline-block;
    border: 1px solid #d1e8e2;
}

.avatar-wrap-sidebar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 10px;
}

.avatar-wrap-sidebar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name-sidebar {
    margin: 0;
    color: #1e293b;
    font-size: 17px;
    font-weight: 800;
}

.badge-new { 
    background: #e0f2fe !important; 
    color: #0369a1 !important; /* Azul oscuro para que se lea sobre el celeste claro */
    border: 1px solid #bae6fd;
}

/* --- CORRECCIÓN: Espaciado de etiquetas "CLIENTE:" o "PROFESIONAL:" (Imagen 3) --- */
.ref-label {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px; /* Espacio para que no se pegue al avatar */
    display: block;
}

/* --- CORRECCIÓN: Estado Vacío (Imagen 1) --- */
.empty-state-dashed {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255,255,255,0.03); /* Fondo mucho más sutil */
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 30px;
    color: #94a3b8; /* Texto gris claro */
}

.empty-state-dashed i {
    color: #475569; /* Ícono más discreto */
    margin-bottom: 15px;
}

/* --- ESTILO PARA BOTONES EN MODALES (Imagen 2) --- */
.modal-footer-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.btn-modal {
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-modal-gray {
    background: #e7e7e7;
    color: #475569;
}

.btn-modal-danger {
    background: #ef4444;
    color: white;
}

.btn-modal-danger:hover {
    background: #dc2626;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

/* --- SISTEMA DE MENSAJES FLOTANTES (TOASTS) --- */
.mensajesParaUsuario {
    position: fixed;
    top: 90px; /* Debajo de la cabecera fija */
    left: 50%;
    transform: translateX(-50%);
    z-index: 30000; /* Prioridad absoluta */
    width: auto;
    min-width: 350px;
    display: none; /* Se activa por JS */
    justify-content: center;
    pointer-events: none; /* No estorba el clic */
}

.mensajesUsuario2 {
    pointer-events: auto;
    padding: 15px 30px;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Clases de Estado */
.mensajesUsuario2.exito {
    background: linear-gradient(135deg, var(--colorPrincipal), #1f947d);
    border: 2px solid rgba(255,255,255,0.2);
}

.mensajesUsuario2.error {
    background: linear-gradient(135deg, #ff7675, #d63031);
    border: 2px solid rgba(255,255,255,0.2);
}
.btn-outline-gray {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.btn-outline-gray:hover {
    background: #e2e8f0;
}

/* --- AJUSTE FOOTER TARJETAS --- */
.job-card-footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra horizontalmente */
}

.job-card-footer .btn-sm {
    height: 38px; /* Altura fija para que no 'vuelen' */
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1; /* Hace que ocupen el mismo ancho */
    padding: 0 15px;
    box-sizing: border-box;
}
/* --- REFINAMIENTO CAPA GESTIÓN --- */
.capa-gestion-v3 {
    background: #1c1d1e; /* Fondo oscuro sólido */
    height: 100%;
}

.btn-volver-v3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--colorPrincipal);
    background: none;
    border: none;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    padding: 10px 0;
    margin-bottom: 20px;
    transition: 0.3s;
}
.btn-volver-v3:hover { transform: translateX(-5px); }

.titulo-gestion-v3 {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

/* Items de la lista */
.menu-gestion-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.item-gestion-v3 {
    margin-bottom: 20px;
}

.link-gestion-v3 {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s;
}

.link-gestion-v3:hover {
    color: white;
}

/* Círculos de Iconos con Brillo */
.icon-box-v3 {
    width: 42px;
    height: 42px;
    border-radius: 12px; /* Un poco más cuadrado/moderno */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
    transition: 0.3s;
}

/* Colores por acción */
.box-verde { background: rgba(38, 179, 152, 0.15); color: #26b398; }
.box-violeta { background: rgba(85, 26, 139, 0.2); color: #a855f7; }

.link-gestion-v3:hover .icon-box-v3 {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255,255,255,0.05);
}

#datosMenuUser {
    pointer-events: all !important; /* Asegura que el menú capture los clics */
}

#datosMenuUser {
    /* Evita que el navegador intente seleccionar texto al hacer clics rápidos */
    user-select: none; 
}

/* --- ESTILO CERRAR SESIÓN REFINADO --- */
.logout-container-v3 {
    margin-top: auto; /* Lo empuja al fondo si usas flex en el padre */
    border-top: 1px solid #333;
    margin-top: 30px;
}

.logout-link-v3 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 12px;
    color: #ff7675 !important; /* Rojo suave/coral */
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s;
}

.logout-link-v3:hover {
    background: rgba(255, 118, 117, 0.1); /* Fondo rojo muy tenue al pasar el mouse */
    color: #ff5252 !important; /* Rojo un poco más intenso */
}

.logout-link-v3 i {
    font-size: 16px;
}

/* --- FOOTER STYLE --- */
.main-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 60px 0 0;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--colorPrincipal);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    color: #cbd5e0;
    font-size: 20px;
    transition: 0.3s;
}

.footer-social a:hover { color: var(--colorSecundario); }

.footer-bottom {
    background: #f8fafc;
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

.footer-bottom p {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}


/***********************************************************************************************************/
/***********************************************************************************************************/
/***********************************************************************************************************/
/***********************************************************************************************************/
/***********************************************************************************************************/
/***********************************************************************************************************/



/* ==============================================================
   1. EFECTO AL TOCAR LOS ICONOS DE CAMPANA Y MENSAJES (TODAS LAS PANTALLAS)
   ============================================================== */
#iconoMsj, #iconoNotif {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#iconoMsj:active, #iconoNotif:active {
    transform: scale(0.85); /* Efecto de hundimiento rápido al tocar */
}

/* Cuando están abiertos, el ícono brilla un poquito */
#iconoMsj.activo i, #iconoNotif.activo i {
    color: #4ade80 !important; /* Verde brillante */
    text-shadow: 0 0 15px rgba(74, 222, 128, 0.5);
}

/* --- BARRA DE NAVEGACIÓN MÓVIL (APP STYLE) --- */
.mobile-nav-bar {
    display: none; /* Oculta en PC */
}

/* --- BARRA DE PROGRESO (FIX POSICIÓN) --- */
.progress-card-v4 {
    grid-column: 1 / -1;
    background: white; 
    border-radius: 24px; 
    padding: 25px;
    border: 1px solid #e2e8f0; 
    margin-bottom: 10px; /* Espacio con lo de abajo */
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    width: 100%;
    box-sizing: border-box;
}

/* Ajuste para que la barra se vea más moderna */
.bar-bg-v4 { 
    width: 100%; 
    height: 10px; 
    background: #f1f5f9; 
    border-radius: 10px; 
    overflow: hidden; 
    margin: 15px 0;
}

.bar-fill-v4 { 
    height: 100%; 
    background: linear-gradient(90deg, var(--colorPrincipal), #34d399); 
    border-radius: 10px; 
    transition: width 1.5s cubic-bezier(0.1, 0, 0.1, 1); 
}

.progress-header-v4 span { font-size: 11px; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
.progress-header-v4 b { color: var(--colorPrincipal); font-size: 16px; }

.progress-footer-v4 { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; padding-top: 15px; border-top: 1px solid #f8fafc; }
.progress-footer-v4 p { margin: 0; font-size: 13px; color: #475569; font-weight: 600; }
.btn-progress-v4 { 
    background: var(--colorPrincipal); color: white; padding: 6px 15px; 
    border-radius: 30px; font-size: 10px; font-weight: 800; text-decoration: none; 
}

/* ESTILOS IA INICIO */
#ai-button {
    position: fixed; bottom: 85px; right: 20px; /* Arriba de la barra móvil */
    width: 60px; height: 60px; background: var(--colorPrincipal);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 24px; cursor: pointer; z-index: 9999;
    box-shadow: 0 10px 25px rgba(38, 179, 152, 0.4); transition: 0.3s;
}
#ai-chat-window {
    position: fixed; bottom: 155px; right: 20px; width: 320px; height: 400px;
    background: white; border-radius: 20px; display: none; flex-direction: column;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2); z-index: 9998; overflow: hidden;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.ai-header { background: var(--colorFondo); color: white; padding: 15px; display: flex; justify-content: space-between; font-weight: 800; font-size: 13px; }
#ai-messages { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: #f8fafc; }
.ai-msg { padding: 10px 15px; border-radius: 15px; font-size: 13px; max-width: 85%; line-height: 1.4; }
.ai-msg.bot { background: #e2e8f0; color: #1e293b; border-bottom-left-radius: 2px; }
.ai-msg.user { background: var(--colorPrincipal); color: white; align-self: flex-end; border-bottom-right-radius: 2px; }

.ai-input-area { padding: 10px; display: flex; gap: 5px; border-top: 1px solid #eee; }
.ai-input-area input { flex: 1; border: none; padding: 10px; outline: none; font-size: 13px; }
.ai-input-area button { background: none; border: none; color: var(--colorPrincipal); cursor: pointer; font-size: 18px; }

/* ESTILOS IA FIN */

/* ==============================================================
   2. BOTTOM SHEET PARA NOTIFICACIONES Y MENSAJES (SOLO EN CELULARES)
   ============================================================== */
@media (max-width: 900px) {
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-social { justify-content: center; }

    /* 
     * EL CONTENEDOR FLOTANTE 
     * Pasa de ser un "cuadradito" a ser una pestaña gigante pegada abajo 
     */
    #contenedor_msj, 
    #contenedor_notif {
        position: fixed !important;
        top: auto !important; /* Anulamos el top: 60px que tiene en el HTML */
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: white !important;
        border-radius: 25px 25px 0 0 !important; /* Bordes redondos solo arriba */
        box-shadow: 0 -15px 40px rgba(0,0,0,0.2) !important;
        z-index: 99999 !important;
        margin: 0 !important;
        padding-bottom: 100px;
        
        /* Animación de deslizamiento desde abajo */
        transform: translateY(100%);
        animation: slideUpSheet 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes slideUpSheet {
        to { transform: translateY(0); }
    }


    #contenedor_msj_fondo, #contenedor_notif_fondo{
        background: white;
    }

    @keyframes fadeInBackdrop {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* 
     * LA RAYITA GRIS ARRIBA (PILL INDICATOR)
     * El clásico indicador de las apps que te dice "podés deslizarme para abajo"
     */
    .msj_cabecera, 
    .notif_cabecera {
        position: relative;
        text-align: center !important; /* Centramos el título */
        padding: 30px 15px 15px !important; /* Más espacio arriba para la rayita */
        font-size: 18px !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .msj_cabecera::after, 
    .notif_cabecera::after {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 5px;
        background: #cbd5e0;
        border-radius: 10px;
    }

    /* Ajuste de altura máxima para que se vea el fondo oscuro */
    .msj_lista, 
    .notif_lista {
        max-height: 60vh !important; /* Ocupa como máximo el 60% de la pantalla */
        overflow-y: auto;
    }

    /* Mejora de estética de los items de la lista para celulares */
    .msj_lista li > div, 
    .notif_lista li > a {
        padding: 18px 20px !important; /* Botones más grandes, más fáciles de tocar */
    }

    .ver_todos_msjs a, 
    .ver_todos_msjs a {
        padding: 20px !important; /* Botón inferior gigante */
        font-size: 14px !important;
    }

    .mobile-nav-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid #e2e8f0;
        z-index: 9999; /* Por encima de todo */
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom); /* Soporte iPhone */
        box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    }

    .nav-item-m {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #94a3b8;
        font-size: 10px;
        font-weight: 700;
        transition: 0.2s;
        position: relative;
        flex: 1;
    }

    .nav-item-m i {
        font-size: 20px;
        margin-bottom: 4px;
    }

    /* Item Activo */
    .nav-item-m.active {
        color: var(--colorPrincipal);
    }

    /* Botón Central Destacado (Publicar) */
    .nav-item-center {
        position: relative;
        top: -15px; /* Lo elevamos */
    }

    .center-circle {
        width: 55px;
        height: 55px;
        background: var(--colorPrincipal);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 22px;
        box-shadow: 0 8px 15px rgba(38, 179, 152, 0.3);
        border: 4px solid white;
    }

    /* Badges de Notificación en la barra */
    .badge-m {
        position: absolute;
        top: -2px;
        right: 25%;
        background: #ef4444;
        color: white;
        font-size: 9px;
        padding: 2px 5px;
        border-radius: 10px;
        min-width: 15px;
        text-align: center;
        border: 2px solid white;
    }

    /* Ajuste para que el contenido no quede tapado por la barra */
    body {
        padding-bottom: 65px !important;
    }

    .progress-card-v4 {
        border-radius: 0; /* Estilo Edge-to-edge en móvil */
        border-left: none;
        border-right: none;
        padding: 20px;
        margin-bottom: 0;
        border-bottom: 8px solid #f1f5f9; /* Separador grueso estilo App */
    }
    
    .progress-footer-v4 {
        flex-direction: column;
        gap: 15px;
        text-align: left;
    }
    
    .btn-copy-v3 {
        width: 100%;
        text-align: center;
    }
}