/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #E9F4F3;
  color: #333;
}

/* Encabezado y Navegación */
header {
  background-color: #046B61;
  padding: 15px 20px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

small {
  font-size: 0.7em;
}

.logo {
  display: flex;
  align-items: center;
  color: #FFF;
}

.logo img {
  width: 50px;
  height: auto;
  margin-right: 10px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.menu li a {
  color: #FFF;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.menu li a:hover {
  color: #FFD700;
}

/* Sección Hero */

.hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}
.hero img {
    width: 100%;
    /*height: 100%;*/
    object-fit: cover;
    object-position: left center;
    display: block;
}
@media (max-width: 768px) {
    .hero {
        height: 250px;
    }
    .hero img{
        height: 80%;
    }
}

/* Contenido Principal */
main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

section {
  margin-bottom: 40px;
  min-height: 400px;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #046B61;
}

/* Tarjetas (Cards) para Restaurantes y Platos */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.card-platos {
 margin-bottom: 80px;
}

.card {
  background-color: #FFF;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
}

.rest:hover{
    cursor: pointer;
    opacity: 0.8;
} 

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card h3 {
  font-size: 1.2rem;
  margin: 15px;
  color: #046B61;
}

.card p {
  margin: 0 15px 15px;
  color: #555;
}

.card p span{
  text-align: right;
    float: right;
  color: #333;
  font-weight: bold;
}

/* Botón para ver platos */
.btn-container {
  text-align: center;
  margin-top: 20px;
}

.btn-container button {
  background-color: #046B61;
  color: #FFF;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-container button:hover {
  background-color: #034B43;
}
button {
            background-color: #02656b;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
        }
        footer {
            text-align: center;
            padding: 20px;
            background-color: #033b4a;
            color: white;
        }
        .social img {
            height: 20px;
            margin: 0 10px;
        }


/* Pie de Página */
footer {
  background-color: #DCEFED;
  text-align: center;
  padding: 15px;
}

footer p {
  color: #333;
  font-size: 0.9rem;
}

.formulario {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.formulario label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}
.formulario input, 
.formulario textarea, 
.formulario select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.formulario button {
    margin-top: 15px;
    width: 100%;
}


table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #4CAF50;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #ddd;
}

caption {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

td {
    font-size: 1em;
    color: #555;
}

td.numero {
  text-align: right;
}

section.carta-proveedor {
    min-height: 200px;
}

section.carta-proveedor img {
  width: 150px; 
  height: auto; 
  float: left;
}

section.carta-proveedor h2 {
  float:left;
  margin-left: 15px;
  padding-top: 20px;
  display: block;
  height: 100px;
}
.welcome{
  color:#fff;
  margin-top: -14px;
}

#nueva-mesa .formulario{
  width: 800px;
  margin: 30px 0;
  max-width: 1000px;
}

#nueva-mesa .formulario .row{

  display: block;
  min-height: 60px;

}

#nueva-mesa .formulario select{
    float: left;
    width: 80%;
}

#nueva-mesa .formulario button{
    float: right;
    width: 15%;
    margin: 5px;
}

#agregar-plato .formulario{
  width: 750px;
}



#agregar-plato .row input[type='text']{
  font-weight: normal;
  float: left;
  width: 100px;
}

#agregar-plato table {
  width: 100%;
}

#agregar-plato table th {
  background-color: #ccc;
  color:#000;
}

#agregar-plato table label{
  font-weight: normal;
  float: left;
  margin-right: 20px;
  width: 100%;
  margin: 0px;
}

#agregar-plato table label input{
  width: fit-content;
  margin-right: 10px;
  float: left;

}

button.registrar-pedido{
  width: 100% !important;
  padding:10px;
  margin-top: 5px;
}

#form-liberar{
  float: right;
  margin:-70px 20px 0 0;
  width: 150px;
  height: 50px;
}

#form-liberar button{
    width: 100%;
    height: 100%;
    color: #000;
    background-color: #fff;
}

#form-liberar button:hover{
  background-color: #ccc;
}