body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 100px;
}
header {
    background: #fff;
    color: #000;
    padding: 10px 15px;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 5px rgb(0 0 0 / 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    width: 80px;
    height: 80px;
}
.header-search {
    flex-grow: 1;
    width: 350px;
    max-width: 400px;
}
.header-search .form-control {
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 8px 12px;
    font-size: 14px;
}
.header-search .btn {
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 14px;
}
.header-item {
    color: #000;
    text-decoration: none;
    margin-left: 15px;
    font-size: 0.9rem;
}
.header-item:hover {
    text-decoration: none;
    color: #ee3232;
}
.mobile-nav {
    display: none;
}
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }
    .mobile-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .mobile-logo {
        text-align: center;
    }
    .offcanvas {
        background: #f8f9fa;
    }
    .offcanvas .nav-link {
        color: #007bff;
    }
}
main {
    margin-top: 100px;
}
#footer .footer-social-links {
    width: 100%;
    display: block;
    position: relative;
    float: left;
}
#footer .footer-social-links ul {
    padding: 0;
    margin: 0;
}
#footer .footer-social-links ul li {
    float: left;
    margin-right: 10px;
    margin-bottom: 10px;
    list-style: none;
}
#footer .footer-social-links ul li a {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid silver;
    border-radius: 50%;
    color: #7e7e7e;
    font-size: 16px;
    text-decoration: none;
}
#footer .footer-social-links ul li a:hover {
    color: #262a31 !important;
    border-color: #262a31 !important;
}
.footer-social-links {
    margin-bottom: 15px;
}
#footer {
    width: 100%;
    display: block;
    position: relative;
    margin-top: 10px;
    color: #5b5b5b;
    background-color: #fafafc;
}
#footer .footer-top {
    width: 100%;
    display: block;
    position: relative;
    float: left;
    min-height: 60px;
    padding: 60px 0;
}
#footer .footer-bottom {
    width: 100%;
    display: block;
    position: relative;
    float: left;
    padding: 30px 0;
    border-top: 1px solid #eee;
}
#footer .footer-bottom .copyright {
    text-align: left;
    color: #5b5b5b;
}
#footer .footer-payment-icons {
    display: block;
    margin-top: 30px;
}
#footer .footer-payment-icons img {
    height: 24px;
    width: auto;
    margin-right: 10px;
}
#footer .footer-payment-icons img:last-child {
    margin: 0;
}
#footer .footer-logo {
    display: block;
    margin-bottom: 15px;
}
#footer .footer-logo a {
    display: block;
}
#footer .footer-logo img {
    display: block;
    position: relative;
}
#footer .footer-about {
    line-height: 24px;
    margin-bottom: 20px;
}
#footer .footer-title {
    color: #222;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 24px;
    margin-bottom: 15px;
    position: relative;
}
#footer .nav-footer ul {
    padding: 0;
    margin: 0;
}
#footer .nav-footer ul li {
    display: block;
    width: 100%;
    position: relative;
    margin-bottom: 10px;
}
#footer .nav-footer ul li a {
    color: #333;
    line-height: 26px;
    position: relative;
    border-bottom: 0.0625rem solid #fff0;
}
#footer .nav-footer ul li a:hover {
    border-color: #333;
}
#footer .nav-footer-bottom {
    padding: 0;
    margin: 0;
    display: block;
    width: 100%;
    text-align: right;
}
#footer .nav-footer-bottom li {
    list-style: none;
    display: inline-block;
    margin-left: 10px;
}
#footer .nav-footer-bottom li a {
    color: #333;
    border-bottom: 0.0625rem solid #fff0;
}
#footer .nav-footer-bottom li a:hover {
    border-color: #333;
}
.newsletter-footer {
    display: block;
}
.form-newsletter-footer {
    width: 100%;
    display: block;
}
.form-newsletter-footer .title {
    color: #242424;
    font-size: 24px;
    text-align: center;
    font-weight: 700;
    margin: 0;
    margin-bottom: 15px;
}
.form-newsletter-footer input {
    width: 100%;
    border: 1px solid rgb(0 0 0 / 0.1);
}
.form-newsletter-footer input:focus {
    border-color: rgb(0 0 0 / 0.3);
}
.form-newsletter-footer .btn-custom {
    height: 46px;
    padding: 0.375rem 1.2rem;
    width: 100%;
    margin-top: 10px;
}
.form-newsletter-footer input[name="url"],
.modal-newsletter input[name="url"] {
    display: none !important;
}
.modal-newsletter .modal-dialog {
    max-width: 740px;
}
.modal-newsletter .modal-body {
    padding: 0;
}
.modal-newsletter .modal-body .close {
    top: -14px;
    right: 4px;
}
.modal-newsletter .modal-title {
    text-align: center;
    text-transform: uppercase;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 0 0 15px;
}
.modal-newsletter .modal-desc {
    line-height: 26px;
    text-align: center;
    margin-bottom: 20px;
    color: #6c757d;
}
.modal-newsletter .newsletter-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal-newsletter .newsletter-form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
.modal-newsletter .newsletter-form {
    display: block;
    position: relative;
    overflow: hidden;
    padding: 15px 30px 15px 0;
    min-height: 250px;
}
.modal-newsletter .form-input {
    height: 46px;
    line-height: 46px;
    border-radius: 0 !important;
}
.modal-newsletter .has-error {
    border: 1px solid rgb(220 53 69 / 0.4) !important;
}
.modal-newsletter .form-input:focus {
    border-color: #cfcfcf;
}
.modal-newsletter .btn {
    padding: 12px 30px !important;
    display: block;
    width: 100%;
    line-height: 22px;
    border-radius: 0 !important;
    color: #fff !important;
    border: 0 !important;
    white-space: nowrap;
    margin-top: 10px;
}
.modal-newsletter .btn:hover {
    opacity: 0.9;
}
.modal-newsletter .modal-newsletter-inputs {
    position: relative;
}
.modal-newsletter .text-close {
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: underline;
    color: #6c757d;
}
.modal-newsletter .text-close:hover {
    color: #555;
}
.modal-newsletter .modal-content {
    border-radius: 0;
}
.modal-newsletter .icon-newsletter {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 56px;
}
.modal-newsletter .newsletter-title {
    font-size: 24px;
    line-height: 34px;
    text-align: center;
}
.modal-newsletter .modal-newsletter-response {
    min-height: 25px;
}
.modal-newsletter .modal-newsletter-response p {
    margin-bottom: 0 !important;
}
.row-custom {
    display: block;
    width: 100%;
    max-width: 100%;
    float: left;
    position: relative;
}
#footer .footer-top {
    padding: 30px 0;
}
#footer .nav-footer {
    padding-left: 0;
}
#footer .nav-footer ul {
    padding: 0;
    margin: 0;
}
#footer .nav-footer ul li {
    display: block;
    width: 100%;
    position: relative;
    margin-bottom: 10px;
}
#footer .nav-footer ul li a {
    color: #333;
    line-height: 26px;
    position: relative;
    border-bottom: 0.0625rem solid #fff0;
}
#footer .nav-footer ul li a:hover {
    border-color: #333;
}
#footer .nav-footer-bottom {
    padding: 0;
    margin: 0;
    display: block;
    width: 100%;
    text-align: right;
}
#footer .nav-footer-bottom li {
    list-style: none;
    display: inline-block;
    margin-left: 10px;
}
#footer .nav-footer-bottom li a {
    color: #333;
    border-bottom: 0.0625rem solid #fff0;
}
#footer .nav-footer-bottom li a:hover {
    border-color: #333;
}
.footer-widget {
    margin-bottom: 15px;
}
.form-newsletter-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.form-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}
.btn-newsletter {
    background-color: #343a40;
    color: #fff;
    border: none;
    padding: 10px 0;
    font-size: 16px;
    border-radius: 5px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-newsletter:hover {
    background-color: #dc3545;
}
.footer-widget {
    text-align: left;
}
.footer-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}
.nav-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-footer ul li {
    margin-bottom: 10px;
}
.nav-footer ul li a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: color 0.3s ease;
}
.nav-footer ul li a:hover {
    color: #dc3545;
}
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #343a40;
    color: #fff;
    border: none;
    border-radius: 5px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.scroll-to-top:hover {
    background-color: #dc3545;
    transform: scale(1.1);
}
.scroll-to-top i {
    font-size: 18px;
}
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #343a40;
    color: #fff;
    border: none;
    border-radius: 5px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.scroll-to-top:hover {
    background-color: #dc3545;
    transform: scale(1.1);
}
.scroll-to-top i {
    font-size: 18px;
}
.header-profile .dropdown-toggle img {
    border: 2px solid #f5f5f5;
    transition: transform 0.2s ease-in-out;
}
.header-profile .dropdown-toggle img:hover {
    transform: scale(1.1);
}
.modal-backdrop {
    z-index: 1040 !important;
}
.modal {
    z-index: 1050 !important;
}
.card {
    /* border: none; */
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card.noborder {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-cover {
    position: relative;
    width: 100%; /* Ocupa todo el ancho del contenedor */
    height: 150px; /* Altura fija para las imágenes de cover */
    overflow: hidden; /* Oculta cualquier parte de la imagen que sobresalga */
    border-radius: 10px 10px 0 0; /* Bordes redondeados solo en las esquinas superiores */
    background-color: #f8f9fa; /* Color de fondo por si no carga la imagen */
}

.card-cover picture {
    display: block; /* Elimina espacio en blanco extra */
    width: 100%; /* Asegura que el contenedor picture ocupe todo el ancho */
    height: 100%; /* Asegura que la imagen respete la altura del contenedor */
}

.card-cover img.cover-img {
    display: block; /* Elimina espacio en blanco extra */
    width: 100%; /* Escala la imagen al ancho del contenedor */
    height: 100%; /* Escala la imagen a la altura del contenedor */
    object-fit: cover; /* Simula background-size: cover */
    object-position: center; /* Centra la imagen dentro del contenedor */
    background-image: url('<?= base_url("assets/uploads/" . esc($info_fotos[0]["URL_foto"] ?? "default-cover.jpg")); ?>');
}

.card-body {
    padding-top: 10px; /* Ajusta el espaciado para evitar que se sobreponga el logo */
    text-align: center; /* Centra el contenido del cuerpo */
}

.card-title {
    margin-top: 10px; /* Añade espacio entre el cover y el título */
    font-size: 1rem; /* Tamaño de fuente ajustable */
    font-weight: bold; /* Negrita para destacar el nombre */
}

.card-logo {
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: 50%;
    overflow: hidden;
    padding: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.card-logo img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

.card-body {
    padding-top: 35px; /* Espacio para el logo */
    text-align: left !important;
}

#establishment-card-body {
    text-align: center !important;
}

.cover-container {
    position: relative;
    height: 300px; /* Ajusta la altura según sea necesario */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-container {
    width: 100px;
    height: 100px;
    background-color: #fff; /* Fondo blanco para que resalte */
    padding: 5px; /* Espacio para el borde blanco */
    border-radius: 15px; /* Bordes redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    overflow: hidden;
    border-radius: 15px; /* Esto le dará las esquinas redondeadas */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos del logotipo */
.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px; /* Esquinas suavemente redondeadas */
}

/* Fondo oscuro semitransparente para el nombre del restaurante */
.restaurant-name-overlay {
    top: 0;
    left: 0;
    background-color: rgba(
        0,
        0,
        0,
        0.6
    ); /* Fondo negro con 60% de transparencia */
    color: #fff;
    padding: 15px 0;
    text-align: center;
}

/* Estilo del texto del nombre del restaurante */
.restaurant-name {
    font-size: 2rem; /* Tamaño de fuente para pantallas grandes */
    font-weight: bold;
    margin: 0;
}

/* Ajuste para pantallas medianas (tablets) */
@media (max-width: 768px) {
    .restaurant-name {
        font-size: 1.5rem; /* Ajusta este valor según el tamaño deseado */
    }
}

/* Ajuste para pantallas pequeñas (móviles) */
@media (max-width: 576px) {
    .restaurant-name {
        font-size: 1rem; /* La mitad del tamaño original para pantallas pequeñas */
    }
}

.text-description {
    text-align: justify;
}

.first-letter {
    float: left; /* Permite que el texto fluya alrededor de la letra capitular */
    font-size: 3rem; /* Tamaño de la letra capitular */
    font-weight: bold;
    line-height: 1; /* Ajusta la altura de línea para alinearla bien con el texto */
    margin-right: 8px; /* Espacio entre la letra capitular y el texto */
    text-transform: capitalize;
}

.my-custom-card {
    border: 1px solid #e0e0e0; /* Light border */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.my-custom-card:hover {
    transform: translateY(-4px); /* Hover effect */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.my-custom-card-header {
    background-color: #007bff; /* Primary color */
    color: #fff; /* White text */
    font-weight: bold;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 8px 8px 0 0; /* Rounded top corners */
    text-align: center;
}

.my-custom-card-body {
    padding: 15px;
}

.my-custom-card-text {
    font-size: 1rem;
    color: #333;
    text-transform: capitalize;
    margin: 0.5rem 0;
}

.my-custom-text-muted {
    color: #6c757d;
}

/* Outer Card */
.card.mb-3.p-3.shadow-sm {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Inner Cards */
.card .card {
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    box-shadow: none;
}

.card .card-header {
    font-weight: bold;
    background-color: #f8f9fa;
}

.card .card-body {
    padding: 10px 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
}
.col-lg-4,
.col-sm-6,
.col-12 {
    /*flex: 1 0 auto;*/
	flex: initial;
}
#accordionCartas .card {
    margin-top: 15px;
}
#map {
    width: 100%;
    height: 500px;
}
/* Tamaño máximo de las miniaturas */
#fotos img {
    object-fit: cover;
    height: 200px;
    width: 100%;
}

/* Estilo de las sombras */
#fotos .shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#mensaje.success {
    color: green;
}
#mensaje.error {
    color: red;
}
#mensaje.warning {
    color: orange;
}

.text-dark {
    color: #343a40 !important;
}
body {
    font-size: 0.875rem !important;
    font-weight: normal;
    font-style: normal;
    color: #222 !important;
    font-family: var(--bs-body-font-family);
    oveflow-x: hidden !important;
}

a {
    text-decoration: none !important;
}
/* Ajustes opcionales para el menú de sugerencias */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    width: 100%;
}
.position-relative {
    z-index: 9999;
}
#mobileSuggestions {
    z-index: 10000;
}

#restaurant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* Espaciado entre los elementos */
    justify-content: flex-start; /* Alineación a la izquierda */
}

#restaurant-list .restaurant-item {
    flex: 0 0 calc(25% - 1rem); /* 25% del ancho menos el espaciado */
}

@media (max-width: 992px) {
    #restaurant-list .restaurant-item {
        flex: 0 0 calc(33.33% - 1rem); /* Ajusta para pantallas medianas */
    }
}

@media (max-width: 768px) {
    #restaurant-list .restaurant-item {
        flex: 0 0 calc(50% - 1rem); /* Ajusta para pantallas pequeñas */
    }
}

@media (max-width: 576px) {
    #restaurant-list .restaurant-item {
        flex: 0 0 calc(100% - 1rem); /* Una columna en pantallas muy pequeñas */
    }
}

#menus-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

#menus-list .menu-item {
    /* 3 columnas -> 33.333% */
    flex: 0 0 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
}

/* Breakpoints coherentes */
@media (max-width: 992px) {
    #menus-list .menu-item {
        /* 2 columnas */
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 576px) {
    #menus-list .menu-item {
        /* 1 columna */
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    #menu-list .menu-item {
        flex: 0 0 calc(33.33% - 1rem); /* Ajusta para pantallas medianas */
    }
}

@media (max-width: 768px) {
    #menu-list .menu-item {
        flex: 0 0 calc(50% - 1rem); /* Ajusta para pantallas pequeÃ±as */
    }
}

@media (max-width: 576px) {
    #menu-list .menu-item {
        flex: 0 0 calc(100% - 1rem); /* Una columna en pantallas muy pequeÃ±as */
    }
}

.text-dark {
    color: #343a40 !important;
}
body {
    font-size: 0.875rem !important;
    font-weight: normal;
    font-style: normal;
    color: #222 !important;
    font-family: var(--bs-body-font-family);
    oveflow-x: hidden !important;
}

a {
    text-decoration: none !important;
}
