html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  /*margin-bottom: 60px;*/
}


/* ESTILOS PERSONALIZADOS */

/* Para que la barra de menú no oculte al contenido principal y fondo gris */
body {
    padding-top: 70px; /* Ajusta según la altura de tu navbar */
    overflow-x: hidden;
    background-color: #f8f9fa; /* Gris claro típico de Bootstrap */
}

.sidebar {
    min-height: 100vh;
    /* border-right: 1px solid rgba(0, 0, 0, 0.1); */ /* Borde derecho sutil */
}

    .sidebar a {
        color: #343a40;
        text-decoration: none;
        display: block;
        padding: 10px 15px;
    }

        .sidebar a:hover {
            color: white;
            background-color: #495057;
        }


/* Para mostrar la cinta diagonal que indica el entono de desarrollo */
#cintaEntorno {
    position: fixed;
    bottom: -45px; /* Empuja la cinta hacia abajo para acomodar la rotación */
    right: -70px; /* Empuja la cinta hacia la derecha para alinearla bien */
    width: 250px;
    background-color: rgba(255, 165, 0, 0.8);
    color: #333;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    transform: rotate(-45deg);
    transform-origin: top left;
    z-index: 9999;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    padding: 5px 0;
    pointer-events: none;
}
/* Para mostrar la cinta diagonal que indica el entono de desarrollo */

/* Para los estilos de la card de cada publicación */
.nombre-publicacion {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3em; /* Ajusta según el tamaño de fuente y línea */
}

.custom-card {
    border: 1px solid #dee2e6; /* Borde atenuado, color gris claro */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

    .custom-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Sombra al pasar el mouse */
        transform: translateY(-3px); /* Opcional: levanta ligeramente la card */
    }


/* Estiliza el <select > con una flecha personalizada */
/* para posicionar el ícono */
.custom-select-wrapper {
    position: relative;
}

.custom-select {
    appearance: none; /* Remove default arrow for most browsers */
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem; /* Make room for the icon */
}

.select-arrow {
    position: absolute;
    top: 50%;
    right: 1rem;
    pointer-events: none;
    transform: translateY(-50%);
    color: #555;
}
/* Estiliza el <select > con una flecha personalizada */


/* Alto de la imágen en diferentes dispositivos */
.responsive-img-height {
    height: 250px;
    object-fit: scale-down;
}

@media (max-width: 576px) {
    .responsive-img-height {
        height: 150px;
    }
}
/* Alto de la imágen en diferentes dispositivos */


/* Forma circular de los iconos de la vista Punto de Venta */
.btn-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #258cfb;
    margin-left: 10px;
    cursor: pointer;
    background-color: white;
}

.btn-circle i {
    font-size: 16px;
    color: #333;
}

    .btn-circle:hover {
        background-color: #258cfb; /* Rojo tenue al pasar el mouse */
    }
/* Forma circular de los iconos de la vista Punto de Venta */


/* ==========================================
   CHAT WIDGET STYLES
========================================== */

/* Contenedor principal */
#chat-widget {
    position: fixed;
    bottom: 10px;
    left: 20px;
    width: 300px;
    font-family: Arial, sans-serif;
    z-index: 9999;
    background-color: #f5f1eb;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

/* Encabezado */
#chat-header {
    background-color: #3498db;
    color: white;
    padding: 10px;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
}

/* Cuerpo del chat */
#chat-body {
    border: 1px solid #ccc;
    border-top: none;
    max-height: 400px;
    display: none;
    flex-direction: column;
    border-radius: 0 0 8px 8px;
}

/* Área de usuarios */
#chat-users {
    padding: 10px;
    overflow-y: auto;
    min-height: 300px;
}

#listaUsuarios {
    list-style: none;
    padding: 0;
    margin: 0;
}

    #listaUsuarios li {
        margin-bottom: 5px;
    }

/* Área de mensajes */
#chat-messages {
    padding: 10px;
    height: 250px;
    overflow-y: auto;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

#messagesList {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

    #messagesList li {
        max-width: 80%;
        padding: 10px;
        margin: 5px 0;
        border-radius: 10px;
        word-wrap: break-word;
        box-sizing: border-box;
        font-size: 14px;
    }

        /* Mensajes propios */
        #messagesList li.user {
            align-self: flex-end;
            background-color: #d9fdd3;
        }

        /* Mensajes de otros */
        #messagesList li.other {
            align-self: flex-start;
            background-color: #ffffff;
        }

/* Entrada de texto */
#chat-input {
    display: flex;
}

    #chat-input input {
        flex: 1;
        padding: 8px;
        border: none;
        border-top: 1px solid #ccc;
        outline: none;
        font-size: 14px;
    }

    #chat-input button {
        padding: 8px 12px;
        background-color: #007bff;
        color: white;
        border: none;
        cursor: pointer;
    }

        #chat-input button:hover {
            background-color: #0056b3;
        }

/* CHAT */


/* NAVBAR */
.custom-navbar {
    background-color: #004d61 !important;
    color: lightblue !important;
}

    .custom-navbar .nav-link,
    .custom-navbar .navbar-brand {
        color: lightblue !important;
    }

/*        .custom-navbar .nav-link:hover,
        .custom-navbar .dropdown-item:hover {
            color: #ffffff !important;
        }*/

    .custom-navbar .form-control,
    .custom-navbar .btn {
        color: lightblue;
        border-color: lightblue;
    }

        .custom-navbar .form-control::placeholder {
            color: lightblue;
        }

    .custom-navbar .bi,
    .custom-navbar i {
        color: lightblue;
    }

/* Color del ícono de hamburguesa */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='lightblue' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* NAVBAR */