/* BASE: mejorar box-sizing, tipografía y contenedor central */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Contenedor global para evitar elementos pegados a los bordes */
.site-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Ajustes generales para evitar overflow y mejorar legibilidad */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

input, select, textarea, table {
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word;
}

/* Tablas responsivas: envolver con .table-responsive cuando sea posible;
   fallback: que permitan scroll horizontal */
.table-responsive, .table-responsive > .table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Si no se usa wrapper, forzamos comportamiento seguro */
.table {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Espaciado estándar de cards y contenedores */
.card, .card-body {
    padding: 0.75rem;
}

/* Navbar/container adjustments para que no ocupe todo el ancho sin padding */
.navbar .container-fluid, .navbar .site-container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Helpers de responsive */
@media (max-width: 1199.98px) {
    .site-container { padding-left: 0.75rem; padding-right: 0.75rem; }
}
@media (max-width: 767.98px) {
    .site-container { padding-left: 0.5rem; padding-right: 0.5rem; }
    .wrap > .container { padding: 20px 8px; }
    .card, .card-body { padding: 0.6rem; font-size: 13px; }
    .kds-card { font-size: 0.9rem; }
}

/* Mantener estilo previo (no romper reglas existentes) */
html,
body {
    height: 100%;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.div-sabores{
    cursor: pointer;
}
.div-sabores:hover{
    color: white!important;
    background: #007bff;
    cursor: pointer;
}
.div-sabores:hover .card-link{
    color: white!important;
    background: #007bff;
}
.div-sabores:hover .card-subtitle{
    color: white!important;
    background: #007bff;
}

.div-agotado{
    background: #ececec;
    cursor: no-drop;
}
.div-agotado .card-link{
    color: #6c757d !important;
}


