.ContenedorPrincipal {
    display: flex;
    flex: 1;
    width: 100%;
    height: 100%;
}

.ContenedorIzquierda {
    position: sticky;
    top: 0;
    overflow-y: auto;
    height: 100vh;
    justify-content: center;
    margin-left: 0px;
    border-right: 1px solid rgba(0, 0, 0, 0.268);
    background-color: #35CB83;
}

.ContenedorIzquierda ul li:last-child {
    position: absolute;
    bottom: 0;
}

.ContenedorIzquierda ul li#Iniciar {
    position: absolute;
    bottom: 65px;
}

.ContenedorIzquierda ul {
    padding-left: 40%;
}

.ContenedorDerecha {
    position: sticky;
    top: 0;
    overflow-y: auto;
    flex: 1;
    height: 100vh;
    background-color: #35CB83;
    border-left: 1px solid rgba(0, 0, 0, 0.268);
}

#ImagenHeader {
    width: 45%;
    margin-top: 13px;
    margin-bottom: 13px;
    margin-left: 20px;
}

.TextoHeader {
    width: 30%;
    text-align: left;
    font-size: 26px;
    background: none;           
    border: none;               
    color: black;               
    transition: all 0.3s ease;  
    border-radius: 20px;  
    padding-top: 10px; 
    padding-bottom: 10px;
    padding-left: 10px;
    margin-bottom: 2px;
}

.TextoHeader:hover {
    cursor: pointer;
    background-color: #E7E7E8;           
}

.TextoHeaderMovil {
    width: 60%;
    background: none;           
    border: none;               
    color: black;               
    transition: all 0.3s ease;  
    margin-top: 10px; 
    margin-bottom: 10px;   
}

.TextoHeaderMovil:hover {
    cursor: pointer;
    background-color: #E7E7E8;           
}

.Icono {
    width: 60%;
    vertical-align: top;
}

.IconoMovil {
    width: 90%;
}

.NoDecoracion {
    text-decoration: none;
}

.PerfilAuth {
    display: flex;
    align-items: center;
    padding-top: 10px; 
    padding-bottom: 10px;
    padding-left: 10px;
    border-radius: 20px;  
    color: black;
    bottom: 10px;
}

.PerfilAuth:hover {
    cursor: pointer;
    background-color: #E7E7E8;   
}

.ImagenPerfilAuth {
    margin-bottom: 17px;
    width: 19%;
    border-radius: 100%;
    aspect-ratio: 1/1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.ImagenPerfilAuthFooter {
    width: 33px;  
    height: 33px;
    border-radius: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.AuthPerfilTexto {
    font-size: 25px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 6px;
}


@media (min-width: 840px) {
    .ContenedorCentral {
        width: 750px;
    }
}

@media (max-width: 840px) {
    .ContenedorCentral {
        width: 90%;
    }
}

@media (max-width: 550px) {
    .ContenedorCentral {
        flex: 1;
    }
}


.DivTextoFlecha {
    background-color: rgba(255, 255, 255, 0.669);
    display: flex;
    height: 60px;
    align-items: center;
    margin: 0;
    padding-left: 10px;
    backdrop-filter: blur(30px);
    width:100%;
    position: fixed;
    border-bottom: 1px solid rgba(0, 0, 0, 0.268);
}

.DivTextoFlecha h1 {
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 10px; 
    font-size: 30px; 
}

.TextoFlecha {
    font-size: 30px;
    margin-top: 4px;
    margin-bottom: 4px;
    margin-left: 30px;
}

#ImagenFlecha {
    width: 30px; 
    height: auto;
    margin-top: 0px; 
    margin-bottom: 0px;
    transition: transform 0.2s ease;
}

#ImagenFlecha:hover {
    transform: scale(1.04);
    cursor: pointer;
}

.Footer {
    box-sizing: border-box;  
    padding-left: 2%;
    padding-right: 2%;       
    display: flex;
    justify-content: space-evenly; 
    align-items: center;
    width: 100%;
    height: 50px;
    position: fixed;
    bottom: 0;
    left: 0;                  
    border-top: 2px solid rgb(26, 23, 24);
    background-color: #35CB83;
}

@media (min-width: 550px) {
    .Footer {
        display: none;
    }
}

.BotonFooter {
    all: unset;
}

@media (min-width: 1420px) {
    .ContenedorIzquierda {
        flex: 1;
    }
}

@media (max-width: 1420px) {
    .ContenedorIzquierda {
        width: 10%;
    }
}

@media (max-width: 1200px) {
    .ContenedorIzquierda {
        flex: 1;
    }
}


@media (max-width: 550px) {
    .ContenedorIzquierda  {
        display: none;
    }
}

@media (max-width: 550px) {
    .EliminarCuandoPequeno  {
        display: none;
    }
}

@media (max-width: 950px) {
    .ContenedorDerecha {
        display: none;
    }
}

.LiBarra {
    margin-bottom: 18px;
}

.Idiomaa:hover{
    cursor: pointer;
}

.BotonBarra {
    all: unset;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 20px;
    padding-right: 20px;
}

.BotonBarra:hover {
    background-color: #0BA243;
    border-radius: 30px;
}

.Icono {
    font-size: 30px;
    color: black;
}

ul {
    list-style-type: none;
}

.PequenoMargen {
    margin-left: 15px;
}

@media (max-width: 1420px) {
    .TextoBarra {
        display: none;
    }
}

/* ============== Buscador móvil ============== */
/* En escritorio NO existe: vive solo en pantallas <= 950px, donde la columna
   .ContenedorDerecha se oculta y aprovecha la franja central. */
.BuscadorMovil {
    display: none !important;
    visibility: hidden;
}

@media (max-width: 950px) {
    .BuscadorMovil {
        display: block !important;
        visibility: visible;
        margin: 70px 10px 10px 10px;
    }
    .BuscadorMovil .LupayBarra {
        width: 100%;
    }
    .BuscadorMovil .BuscadorPersonas {
        flex: 1;
        margin-left: 0;
        max-width: none;
        padding: 8px 10px;
        border: 1px solid #ccc;
        border-right: none;
    }
    .BuscadorMovil .BotonLupa {
        background-color: #35CB83;
        border: 1px solid #ccc;
        border-left: none;
    }
}
/* ============== Notificaciones ============== */
/* Wrapper pequeño alrededor de la campana: inline-block para que el badge
   pueda posicionarse de forma absoluta sin sacar nada del flujo del menú. */
.CampanaWrapper {
    position: relative;
    display: inline-block;
    line-height: 1;
}

.BadgeNotif {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background-color: #ff5252;
    color: white;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    font-family: sans-serif;
}

/* Lista de notificaciones (página /notificaciones/) */
.ListaNotificaciones {
    padding: 70px 12px 70px 12px;
    max-width: 720px;
    margin: 0 auto;
}

.NotifLink {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 10px;
}

.NotifTarjeta {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: #ffffff;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.NotifTarjeta:hover {
    background-color: #F4FFF9;
    transform: translateY(-1px);
}

.NotifNoLeida .NotifTarjeta {
    background-color: #E8F8F0;
    border-color: #35CB83;
}

.NotifAvatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.NotifContenido {
    flex: 1;
    min-width: 0;
}

.NotifTexto {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.NotifFecha {
    margin: 0;
    font-size: 12px;
    color: #888;
}

.NotifPunto {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #35CB83;
    flex-shrink: 0;
}

.NotifVacia {
    text-align: center;
    color: #888;
    padding: 40px 20px;
    font-style: italic;
}

/* ============== Chat ============== */
/* Lista de chats */
.ListaChats {
    padding: 70px 12px 70px 12px;
    max-width: 720px;
    margin: 0 auto;
}

.ChatPreviewLink {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 10px;
}

.ChatPreview {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.ChatPreviewLink:hover .ChatPreview {
    background-color: #F4FFF9;
    transform: translateY(-1px);
}

.ChatAvatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ChatPreviewContenido {
    flex: 1;
    min-width: 0;
}

.ChatPreviewCabecera {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.ChatNombre {
    color: #00541C;
    font-size: 15px;
}

.ChatFecha {
    color: #888;
    font-size: 12px;
    flex-shrink: 0;
}

.ChatUltimoMsg {
    margin: 2px 0 0 0;
    color: #555;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ChatVacio {
    color: #aaa;
}

.ChatBadge {
    position: static !important;
    top: auto !important;
    right: auto !important;
    flex-shrink: 0;
}

.ChatVacioPagina {
    text-align: center;
    color: #888;
    padding: 40px 20px;
    font-style: italic;
}

/* Ventana de chat */
.ChatVentana {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 130px);
    max-width: 720px;
    margin: 70px auto 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.ChatCabecera {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: #35CB83;
    text-decoration: none;
    color: white;
    font-size: 16px;
}

.ChatCabecera:hover {
    background-color: #0BA243;
}

.ChatCabecera .ChatAvatar {
    width: 38px;
    height: 38px;
    border: 2px solid white;
}

.ChatMensajes {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #F4FFF9;
}

.ChatMensaje {
    display: flex;
    max-width: 75%;
}

.ChatMensaje.Mio {
    align-self: flex-end;
}

.ChatMensaje.Otro {
    align-self: flex-start;
}

.ChatBurbuja {
    padding: 9px 14px 16px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}

.ChatMensaje.Mio .ChatBurbuja {
    background-color: #35CB83;
    color: white;
    border-bottom-right-radius: 4px;
}

.ChatMensaje.Otro .ChatBurbuja {
    background-color: #ffffff;
    color: #333;
    border: 1px solid rgba(0,0,0,0.08);
    border-bottom-left-radius: 4px;
}

.ChatHora {
    position: absolute;
    bottom: 3px;
    right: 10px;
    font-size: 10px;
    opacity: 0.7;
}

.ChatVacioConv {
    text-align: center;
    color: #aaa;
    padding: 40px 20px;
    font-style: italic;
}

.ChatForm {
    display: flex;
    gap: 8px;
    padding: 10px;
    background-color: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ChatInput {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #35CB83;
    border-radius: 24px;
    background-color: #F4FFF9;
    font-size: 14px;
    outline: none;
}

.ChatInput:focus {
    border-color: #0BA243;
    box-shadow: 0 0 0 3px rgba(11, 162, 67, 0.18);
}

.ChatEnviar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #35CB83;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.ChatEnviar:hover {
    background-color: #0BA243;
    transform: translateY(-1px);
}
