/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: url('https://www.rionegro.com.ar/wp-content/uploads/2024/01/PUNTA-VERDE-3.jpeg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    line-height: 1.6;
}

/* Contenedor principal */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Títulos principales */
h1, h2 {
    color: #2c6e49;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    font-size: 2.2em;
    border-bottom: 3px solid #8cb369;
    padding-bottom: 10px;
    margin-top: 10px;
}

h2 {
    font-size: 1.6em;
    margin-top: 40px;
    width: 100%;
}

/* Íconos en títulos */
h2::before { margin-right: 12px; }
h2.pizza::before { content: "🍕"; }
h2.sandwich::before { content: "🍔"; }
h2.fritura::before { content: "🍟"; }
h2.marisco::before { content: "🦐"; }
h2.bebida::before { content: "🥤"; }
h2.cerveza::before { content: "🍺"; }
h2.postre::before { content: "🍦"; }

/* Ítems del menú */
.menu-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
    text-align: center;
    border: 1px solid #eee;
}

.menu-item h3 {
    font-size: 1.3em;
    color: #2c6e49;
    margin-bottom: 5px;
}

.menu-item .precio {
    color: #588157;
    font-weight: 800;
    display: block;
    font-size: 1.1em;
}

/* Botones */
button {
    background: #8cb369;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: 0.3s;
    margin: 5px;
}

button:hover {
    background: #588157;
    transform: scale(1.05);
}

/* Carrito */
.cart {
    background: #fdfae6;
    padding: 25px;
    border-radius: 15px;
    margin-top: 50px;
    width: 100%;
    border: 2px solid #2c6e49;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.remove-button {
    background: #d00000;
    padding: 5px 12px;
}

/* Opciones de pedido (Mesa/Envío) */
.tipo-pedido-container {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
    border: 1px solid #ddd;
}

.tipo-pedido-container label {
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
    display: inline-block;
}

/* Inputs de mesa y dirección */
#datosPedido input {
    width: 100%;
    padding: 12px;
    border: 2px solid #8cb369;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 1em;
}

/* Botón flotante del carrito */
#icono-carrito {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2c6e49;
    padding: 15px;
    border-radius: 50%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

#icono-carrito img {
    width: 30px;
    height: 30px;
    filter: invert(1);
}

#notificacion-carrito {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0000;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8em;
}

/* --- MENSAJE EMERGENTE (NUEVO) --- */
#mensaje-emergente {
    position: fixed !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2c6e49;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    opacity: 0; /* Empieza invisible */
    transition: opacity 0.5s ease;
    z-index: 10000;
    pointer-events: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* --- MODAL DE PERSONALIZACIÓN --- */
.modal {
    display: none;
    position: fixed !important;
    z-index: 9999 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85) !important;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white !important;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.opciones-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    text-align: left;
    margin: 20px 0;
}

.logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 10px;
}
.fidelizacion-container {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid #ddd;
}

.fidelizacion-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 8px; /* Espacio entre cada campo */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.fidelizacion-container input:focus {
    border-color: #8cb369; /* Verde de Punta Verde al hacer clic */
    outline: none;
}