@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Montserrat:wght@400;600&display=swap');

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  position: relative;
}

body {
  background-image: url("../img/fondo_restaurante.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow-x: hidden;
  color: #DBD8AE;
}

html::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.32);
  z-index: -1;
}

/* TÍTULO "BIENVENIDO A SANGUCHAZO" */
.titulo-bienv {
    font-family: 'Playfair Display';
    font-size: 40px;
    font-weight: 700;
    color: #DBD8AE;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    margin-top: 80px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background-color: rgba(0,0,0, 0.1);
    padding: 5px 5px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

/* Estilos para main content*/
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
  background-color: #F5F0D7;
  color: #4A2C16;
}

.titulo-busqueda, .subtitulo-busqueda {
  color: #F5F0D7;
}

/* Estilos para el formulario de búsqueda */
.search-group input {
  border-radius: 25px 0 0 25px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 15px;
  border: 1px solid #6F4515;
}

.search-group button {
  border-radius: 0 25px 25px 0;
  padding: 10px 20px;
  background-color: #6F4515;
  border-color: #4A2C16;
  color: #F5F0D7;
}

.search-group button:hover {
  background-color: #895B1E;
  border-color: #6F4515;
}

.filters{
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    opacity:0.9;
}

.filters .barrio-group{
    display: flex;
    flex-direction: row;
    text-wrap: nowrap;
}

.filters .barrio-group select{
    height: 40px;
    width: 10em;
    border-radius: 5px;
    border: 1px solid #6F4515;
    text-align: center;

}



/* Estilos para los cuadros de platos */
.cuadro-platos {
    display: flex;
    flex-direction: column;
    border: 1px solid #6F4515;
    box-shadow: 6px 6px 18px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    width: 100%;
    gap: 10px;
    background: #F5F0D7;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 10px;
    min-width: 260px;
}

.cuadro-platos:hover {
    box-shadow: 10px 10px 25px rgba(0, 0, 0, 0.2);
}

.cuadro-platos .img {
    width: 100%;
    height: 150px;
    display: flex;
    overflow: hidden;
    background: #DBD8AE;
}

.img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cuadro-platos .info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}

.info .logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #6F4515;
}

.info .text {
    flex-grow: 1;
    padding-left: 10px;
    font-size:clamp(0.8rem, 1vw, 1.2rem);
    font-weight: bold;
    color: #4A2C16;
}

.text .rest-delivery-abierto {
    display: flex;
    gap: 8px;
    font-size:clamp(0.5rem, 0.8vw, 1rem);
    font-weight: 500;
}

.rest-delivery-abierto span {
    padding: 4px 8px;
    border-radius: 5px;
    font-weight: bold;
}

.open {
    background-color: #DBD8AE;
    color: #4A2C16;
    padding: 2px 6px;
    border-radius: 5px;
}

.close {
    background-color: #994636;
    color: #F5F0D7;
    padding: 2px 6px;
    border-radius: 5px;
}

.valoracion {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    width: 25%;
    flex-wrap: nowrap;
}

.btn-like, .btn-dislike {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #DBD8AE;
    color: #4A2C16;
    cursor: pointer;
    transition: 0.3s;
    font-size: 12px;
    border: 1px solid #6F4515;
    padding: 12px;
}

.btn-like:hover, .btn-dislike:hover {
    background-color: #C87C5D;
    color: #F5F0D7;
}

.mas-detalles {
    width: 100%;
    height: 45px;
    color: #F5F0D7;
    background-color: #895B1E;
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 15px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mas-detalles:hover {
    background-color: #895B1E;
}


@media (width < 768px) {
    .cuadro-platos {
        width: 100% !important;
        min-width: none !important;
        gap: none !important;
    }
    .img {
        display: none !important;
    }

    .info .text{
        font-size:14px;
    }

    .info .rest-delivery-abierto{
        font-size:11px;
    }
}
