body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background: #f4a261;
    color: white;
    padding: 20px;
    text-align: center;
}

header .logo h1 {
    margin: 0;
    font-size: 2.5em;
}

header .logo p {
    margin: 0;
    font-size: 1.2em;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.hero {
    background: url('/assets/img/fondo.webp') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h2 {
    font-size: 3em;
    margin: 0;
}

.hero p {
    font-size: 1.5em;
    margin: 20px 0;
}

.hero .btn {
    background: #e76f51;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.2em;
    transition: background 0.3s ease;
}

.hero .btn:hover {
    background: #d35400;
}
.productos {
    padding: 50px 20px;
    text-align: center;
    background: #fff;
}

.productos h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #333;
}

.productos-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.producto {
    width: 30%;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}

.producto:hover {
    transform: translateY(-10px);
}

.producto img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.producto h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #e76f51;
}

.producto p {
    font-size: 1em;
    color: #666;
}

.precio {
    font-size: 1.2em;
    color: #2a9d8f;
    font-weight: bold;
    margin-top: 10px;
}

.pedidos {
    padding: 50px 20px;
    text-align: center;
    background: #f8f8f8;
}

.pedidos h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.seleccion-productos {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.seleccion-productos select, .seleccion-productos button {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.seleccion-productos button {
    background: #e76f51;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.seleccion-productos button:hover {
    background: #d35400;
}

#lista-productos {
    margin-top: 20px;
}

.producto-pedido {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.producto-pedido label {
    font-size: 1.1em;
}

.producto-pedido input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
}

.total-pedido {
    margin: 20px 0;
    font-size: 1.5em;
    color: #e76f51;
}

.pedidos form input, .pedidos form textarea {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.pedidos form button {
    background: #e76f51;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pedidos form button:hover {
    background: #d35400;
}
.nosotros, .contacto {
    padding: 50px 20px;
    text-align: center;
}

.nosotros h2, .contacto h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.pedidos {
    padding: 50px 20px;
    text-align: center;
    background: #f8f8f8;
}

.pedidos h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.pedidos form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pedidos form input, .pedidos form textarea {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.pedidos form button {
    background: #e76f51;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pedidos form button:hover {
    background: #d35400;
}

.contacto form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contacto form input, .contacto form textarea {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contacto form button {
    background: #e76f51;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

footer {
    background: #2a9d8f;
    color: white;
    text-align: center;
    padding: 20px;
}



.login-container, .panel-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-container h2, .panel-container h2 {
    margin-bottom: 20px;
}

.login-container input, .panel-container input, .panel-container textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-container button, .panel-container button {
    width: 100%;
    padding: 10px;
    background: #e76f51;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-container button:hover, .panel-container button:hover {
    background: #d35400;
}

.error-message {
    color: red;
    margin-top: 10px;
}

.panel-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.panel-container h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    border: 1px solid #ccc;
    text-align: left;
}

th {
    background: #e76f51;
    color: white;
}

tr:nth-child(even) {
    background: #f9f9f9;
}

.btn-eliminar {
    background: #ff4d4d;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-eliminar:hover {
    background: #cc0000;
}


/* Estilos del ícono de menú */
.menu-icon {
    display: none; /* Ocultar por defecto */
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

.menu-icon i {
    display: none; /* Ocultar ambos íconos por defecto */
}

.menu-icon #menuBars {
    display: block; /* Mostrar el ícono de menú (☰) por defecto */
}

/* Estilos para móviles */
@media (max-width: 767px) {
    .menu-icon {
        display: block; /* Mostrar el ícono en móviles */
    }

    nav {
        display: none; /* Ocultar el menú por defecto en móviles */
        width: 100%;
        background: #f4a261;
        position: absolute;
        top: 80px;
        left: 0;
        z-index: 1000;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    /* Mostrar el menú cuando está activo */
    nav.active {
        display: block;
    }

    /* Cambiar el ícono a "X" cuando el menú está abierto */
    .menu-icon.active #menuBars {
        display: none;
    }

    .menu-icon.active #menuClose {
        display: block;
    }
}