/* ======================
Configuración general
====================== */
body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
}

.container-fluid {
    margin: 0;
    padding: 0;
}

/* ======================
Sección de Información
====================== */
.information {
    width: 238px;
    margin-top: 10px;
    padding-right: 0;
    border-right: 1px solid rgb(230, 235, 241);
    box-shadow:5px 5px 10px rgb(0,0,0,0.2);
    border-radius:10px
}

/* ==========================
Configuración de imágenes
========================== */
.img-icon {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
}

.img-icon::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.restaurante-img {
    width: 100%;
    height: 250px;
    object-fit: fill;
}

/*Edit de lapiz*/
.lapiz {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 2;
}

.lapiz input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.lapiz .edit-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lapiz:hover {
    background: rgba(255, 255, 255, 1);
}

/* Logo del restaurante */
.encabezado{
    position: relative;
}

.logo-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.restaurante-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    background-color: white;
    object-fit: fill;
}

.lapiz-logo {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2;
}
.lapiz-logo input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.lapiz-logo i {
    font-size: 20px;
}

/* ======================== 
Estilos para la tarjeta
======================== */
.encabezado .card-title{
    text-align:center;
    text-shadow:1px 1px 5px rgb(0,0,0,0.2)
}
.card-title {
    font-size: 25px;
    font-weight: bold;
}

.circle-green {
    height: 10px;
    width: 10px;
    border: 1px solid black;
    background-color: green;
    border-radius: 50%;
}

.circle-red {
    height: 10px;
    width: 10px;
    border: 1px solid black;
    background-color: red;
    border-radius: 50%;
}

/* ============================
Configuración de los platos
============================ */
h2.text-center {
    font-size: 32px;               /* Aumenta el tamaño */
    font-weight: bold;             /* Hace el texto más pesado */
    color: #333;                   /* Color de texto gris oscuro */
    background: #fff;           /* Fondo muy sutil, del mismo tono que el fondo general */
    padding: 10px;                 /* Espacio alrededor del texto */
    border-radius: 5px;            /* Bordes redondeados */
    text-transform: uppercase;     /* Convierte el texto a mayúsculas */
    letter-spacing: 2px;           /* Espaciado entre letras */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Añade una sombra al texto al pasar el ratón */

}



.cuadro-platos {

    border: 1px solid rgb(230, 235, 241);
    display: flex;
    flex-direction: row;
    padding: 1rem;
    box-shadow: 10px 10px 50px rgb(0,0,0,0.4);
    border-radius:20px
}

.info {
    display: flex;
    flex-direction: column;
    justify-content: start;
    width: 75%;
}

.info > .card-text {
    height: 40px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    width: 100%;
    font-size: 14px;
    color: #666;
}


.info .card-title{
    font-size:22px;
    text-wrap:nowrap
}

.info > .precio{
    font-size: 14px;
    font-weight: bold;
    color: #4CAF50;
}
.cuadro-image {
    height: 80px;
    width: 80px;
    border-radius: 10px;
    position: relative;
}

.cuadro-image > img {
    position: absolute;
    height: 100%;
    width: 100%;
    border-radius: 10px;
}

.horario {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    max-width: 300px;
    margin-left: 10px;
}
/* Fondo oscuro al activar el cuadro */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5); /* Oscurece el fondo */
    display: none; /* Oculto por defecto */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 4;
}

/* Cuadro de edición con animación */
.editable-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 5;
    gap: 10px;

}

/* Clase que activa la visibilidad */
.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}
.editable-form .close{
    position: absolute;
    top: 10px;
    right: 0px;
    cursor: pointer;
    width: 25px;
    height: 25px;

}

.editable-form label {
    font-weight: 600;
    margin:2px 5px 10px 0;
    text-wrap: nowrap;
    min-width: 200px
}

.editable-form .form-select{
    width:100%;
    background-color: normal;
}


input[type="text"],
input[type="time"] {
    width: 100%;
    padding: 0.5em;  /* Ajusta el padding si es necesario */
    border: 1px solid #ccc;  /* Ajusta el borde si es necesario */
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho total */
}

.guardar-edit-form {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}
.checkbox{
    height: 15px;
    width: 15px;
    cursor: pointer;

    
}
.estado-restaurante {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
}

#editar_horario{
    cursor: pointer;
    border: none;
    margin-left: 10px;
}

.editable{
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.card-text > .text{
    font-weight: 800;
}

.btn-editar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #DBD8AE; /* Fondo transparente */
    border: 1px solid #895B1E; /* Sin borde */
    padding: 5px 10px; 
    font-size: 16px; /* Tamaño de fuente */
    color: #895B1E; /* Color azul para el texto */
    cursor: pointer; /* Cambia el cursor al pasar por encima */
    display: flex;
   
}

#editar{
    cursor: pointer;
    color: #895B1E; /* Color azul para el icono de edición */
    text-decoration: none; /* Sin subrayado */
}

/* Wp*/

.wp{
    display:flex;
    justify-content: center;
    align-items: center;
    background-color:#4CAF50 ;
    text-align: center;
    padding: 5px;
    width: 90%;
    color: white;
    font-size: 16px;
    margin: 5px auto;
    border: green 1px solid;
    border-radius: 10px;
    text-decoration: none;
    font-family: "Nunito", sans-serif;
    font-weight: 500;
}

.wp i {
    margin-left: 5px; /* Espacio entre el icono y el texto */
    font-size: 16px; /* Tamaño del icono */
}
 
/* ========================
Diseño Responsivo - Tablets
======================== */


@media (max-width: 768px) {
    .encabezado {
        display: block;  /* Coloca los elementos en columna */
        margin: 1rem;
    }
    .information {
        width: 100%;
        margin: 0;
    }
    .img-icon {
        height: 180px;
    }
    .restaurante-logo {
        width: 60px;
        height: 60px;
    }
    .lapiz-logo {
        position: absolute;
        width: 40px;
        height: 40px;
    }
    .cuadro-platos {
        width: 100%;
        padding: 1rem;
    }
    .editable-form {
        width: 90%;
        max-width: 90%;
    }
    .circle-green, .circle-red {
        height: 15px;
        width: 15px;
    }
    .btn-editar {
        font-size: 14px; /* Reduce el tamaño del botón */
        padding: 5px 8px; /* Ajusta el padding */
        width: 50%;
    }
}

@media (max-width: 576px) {
    .card-title {
        font-size: 20px;  /* Reduce el tamaño de los títulos */
    }
    .lapiz {
        width: 50px;
        height: 50px;
    }
    .lapiz-logo {
        width: 40px;
        height: 40px;
    }
    .info > .card-text {
        font-size: 12px; /* Ajusta el texto de los platos */
    }
    .editable-form {
        width: 100%;
        max-width: 95%;
    }
}

