/* market3/incafood-admin/public/css/public-style.css */

:root {
    --primary-color: #8c1449; /* Un color vino/inca */
    --secondary-color: #fdfaf6;
    --text-color: #3a3a3a;
    --card-bg: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
}

body {
    font-family: var(--font-family);
    background-color: var(--secondary-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* ===================================================================== */
/* === ESTILOS PARA EL NUEVO HEADER FIJO (PÁGINA PÚBLICA) === */
/* ===================================================================== */

/* 1. Añadimos un padding al body para que el contenido no quede oculto detrás del header fijo */
body {
    padding-top: 85px; /* Esta altura debe coincidir con la altura total del header */
}

/* 2. Estilos principales del header */
.main-header {
    background-color: #C8102E; /* Un rojo similar al de la bandera de Perú */
    color: white;
    padding: 10px 0; /* Hacemos el header más delgado */
    position: fixed;   /* ¡La clave! Lo fijamos en la parte superior */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;     /* Nos aseguramos que esté por encima de todo */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Sombra sutil para darle profundidad */
    border-bottom: none; /* Quitamos el borde anterior */
    margin-bottom: 0; /* Ya no es necesario */
    transition: padding 0.3s;
}

/* 3. Alineamos los elementos internos del header en una línea horizontal */
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem; /* Añadimos padding horizontal para que no se pegue a los bordes */
}

/* 4. Ajustamos el tamaño del logo y el título */
.main-header .logo {
    max-width: 50px;
    height: auto;
    margin-bottom: 0; /* Quitamos el margen inferior que tenía antes */
}

.main-header h2 {
    color: white;
    margin: 0 1.5rem; /* Damos un poco más de espacio a los lados */
    font-size: 1.2rem;
    text-align: left; /* CAMBIO: Alineado a la izquierda */
    flex-grow: 1;     /* NUEVO: Permite que el título ocupe el espacio central disponible */
}


/* Ocultamos el párrafo que ya no usas */
.main-header p {
    display: none;
}

/* Estilo mejorado para el botón del carrito */
.main-header .cart-button {
    background-color: white;
    color: var(--primary-color);
    border: none;
    margin-top: 0;
    font-weight: 700; /* Texto más grueso */
    flex-shrink: 0;
    padding: 0.8rem 1.5rem; /* Un poco más grande */
    font-size: 1rem;      /* Letra un poco más grande */
    border-radius: 8px;     /* Bordes un poco menos redondos para un look más sólido */
    box-shadow: 0 1px 3px rgba(0,0,0,0.2); /* Sombra para resaltar */
    transition: transform 0.2s, box-shadow 0.2s; /* Transición suave */
}
.main-header .cart-button:hover {
    background-color: #f5f5f5; /* Un blanco un poco más oscuro al pasar el mouse */
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transform: scale(1.05);
}

/* --- Ajustes para pantallas pequeñas (móviles) --- */
@media screen and (max-width: 768px) {
    body {
        padding-top: 75px; /* Un poco más delgado en móvil */
    }
    .main-header {
        padding: 8px 0;
    }
    .main-header h2 {
        font-size: 1.2rem; /* Reducimos el tamaño del texto */
    }
    .main-header .logo {
        max-width: 60px; /* Hacemos el logo más pequeño */
    }
    .main-header .cart-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}


/* Filters */
.filters {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow);
}
.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.filter-group:last-child {
    margin-bottom: 0;
}
.filter-group strong {
    margin-right: 1rem;
}
.filter-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Dish Grid */
.dish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.dish-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dish-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.dish-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.dish-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.dish-restaurant {
    font-size: 0.8rem;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
}
.dish-name {
    margin: 0.25rem 0 0.5rem 0;
    font-size: 1.4rem;
    color: var(--primary-color);
}
.dish-description {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}
/* Estilo para la sección del pie de la tarjeta del plato */
.dish-footer {
    display: flex;
    justify-content: flex-end; /* CAMBIO: De 'space-between' a 'flex-end' para alinear todo a la derecha */
    align-items: center;
    margin-top: 0.1rem;
}
.dish-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}
.dish-stock {
    background-color: rgba(140, 20, 73, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
}
/* Estilo para el botón de Añadir al Carrito (AHORA EN ROJO) */
.add-to-cart-btn {
    background-color: #C8102E; /* CAMBIO: Rojo principal del evento */
    color: white;
    border: none;
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}
.add-to-cart-btn:hover {
    background-color: #A00D24; /* CAMBIO: Un rojo un poco más oscuro para el hover */
    transform: scale(1.03); /* Añadimos un pequeño efecto de crecimiento */
}
.add-to-cart-btn i {
    margin-right: 0.5rem;
}

/* Footer */
.main-footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f1f1f1;
    color: #777;
    font-size: 0.9rem;
}

/* Estilos para los nuevos botones en la tarjeta */

.dish-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.dish-actions > * {
    flex: 1; /* Hace que los botones compartan el espacio si hay más de uno */
    text-align: center;
}
.dish-footer {
    margin-bottom: 0; /* Quitamos el margen que ahora está en dish-actions */
}

/* Estilo del nuevo botón "Ver Video" */
.btn-video {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #555;
    color: white;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}
.btn-video:hover {
    background-color: #333;
}
.btn-video i {
    margin-right: 0.5rem;
}


.dish-description-wrapper {
    /* Altura máxima inicial. Ajusta este valor si quieres mostrar más o menos texto */
    max-height: 1.4em; /* CAMBIAMOS de 4.8em a 3.2em para mostrar ~2 líneas */
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease-in-out;
}


/* NUEVO: Estilo para el botón de video dentro de la descripción */
.dish-description-wrapper .btn-video {
    margin-top: 1rem; /* Espacio entre el final de la descripción y el botón */
    display: inline-flex; /* Asegura que se muestre correctamente */
    width: auto; /* Ancho automático */
    flex-shrink: 0;
}

/* --- ESTILOS PARA LA DESCRIPCIÓN DESPLEGABLE --- */



/* Estado expandido */
.dish-description-wrapper.expanded {
    /* Una altura máxima grande para asegurar que todo el texto se muestre */
    max-height: 500px; 
}

.dish-description {
    margin: 0 0 0.5rem 0;
    flex-grow: 1; /* Esto sigue siendo importante */
}

/* --- ESTILOS MEJORADOS PARA EL BOTÓN 'VER MÁS' --- */

.toggle-description-btn {
    background-color: #f0f0f0;
    border: none;
    border-radius: 20px; /* Bordes redondeados estilo píldora */
    color: #555;
    cursor: pointer;
    padding: 0.3rem 0.8rem; /* Un poco más de espacio interior */
    font-size: 0.8rem;   /* Ligeramente más grande */
    font-weight: 600;
    margin-top: 0.25rem; /* Ajuste de margen */
    margin-bottom: 0rem;
    align-self: flex-start;
    transition: all 0.3s ease;
    letter-spacing: 0.5px; /* Pequeño espaciado entre letras */
}

.toggle-description-btn:hover {
    background-color: #e0e0e0;
    color: #111;
}

/* --- EFECTO FADE-OUT PARA EL TEXTO RECORTADO --- */

.dish-description-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent, var(--card-bg));
    pointer-events: none; /* Permite hacer clic a través del gradiente */
    transition: opacity 0.3s ease;
}

/* Cuando se expande, el efecto desaparece */
.dish-description-wrapper.expanded::after {
    opacity: 0;
}


/* --- ESTILOS PARA EL MODAL DEL CARRITO --- */

/* Estilos para el overlay del modal, reutilizados de la implementación anterior */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}
.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 600px;
    position: relative;
}
.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
}

/* Estilos específicos para el contenido del carrito */
.cart-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
#cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0.5rem;
    margin: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.cart-empty-message {
    text-align: center;
    color: #888;
    padding: 3rem 0;
}
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    gap: 1rem;
}
.cart-item:last-child {
    border-bottom: none;
}
.cart-item-info {
    flex-grow: 1;
}
.cart-item-name {
    display: block;
    font-weight: 600;
}
.cart-item-restaurant {
    font-size: 0.8rem;
    color: #888;
}
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.quantity-btn {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-item-quantity {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}
.cart-item-price {
    font-weight: 600;
    min-width: 80px;
    text-align: right;
}
.remove-item-btn {
    background: none;
    border: none;
    color: #d32f2f;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
}

.cart-footer {
    padding-top: 1.5rem;
    text-align: center;
    border-top: 2px solid var(--primary-color);
}
.cart-total {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.cart-total strong {
    color: #555;
}
.cart-total span {
    color: var(--primary-color);
    font-weight: 700;
}
/* Estilo para el botón de Proceder al Pago (AHORA MÁS PEQUEÑO) */
.checkout-btn {
    display: inline-block; /* CAMBIO: Ya no ocupa todo el ancho, se ajusta al texto */
    width: auto;
    padding: 0.7rem 2rem; /* CAMBIO: Menos alto (vertical), un poco más ancho (horizontal) */
    font-size: 1rem;       /* CAMBIO: Texto más pequeño */
    background-color: #942e0e;
    border: none;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.checkout-btn:hover {
    background-color: #852108;
    transform: scale(1.05);
}



/* ===================================================================== */
/* === DISEÑO DE 2 COLUMNAS CORREGIDO (RESUMEN A LA IZQUIERDA) === */
/* ===================================================================== */

/* --- Contenedor Principal --- */
.checkout-container { 
    display: grid; /* Usamos grid para el layout */
    grid-template-columns: 1fr; /* 1. Por defecto en móvil: una sola columna */
    gap: 2.5rem;
    max-width: 1200px; /* Un poco más ancho para acomodar las dos columnas */
    margin: 2rem auto;
    align-items: flex-start;
}

/* En pantallas grandes (desktop), activamos las dos columnas */
@media(min-width: 992px) { 
    .checkout-container { 
        /* 2. En desktop: creamos dos columnas. La primera (resumen) de 400px y la segunda (formulario) toma el resto del espacio (1fr) */
        grid-template-columns: 300px 1fr; 
    }

    /* 3. Reordenamos visualmente las columnas usando la propiedad 'order' */
    .order-summary-column {
        order: 1; /* El resumen del pedido va a la primera posición (izquierda) */
    }
    .checkout-form-column {
        order: 2; /* El formulario va a la segunda posición (derecha) */
    }
}

/* --- Columnas y Tarjetas --- */
.checkout-form-column,
.order-summary-column {
    width: 100%;
}

/* Hacemos que el resumen se quede fijo al hacer scroll en la columna más larga */
.order-summary-column .order-summary {
    position: sticky;
    /* Distancia desde el tope de la pantalla, considerando tu header fijo */
    top: 90px; 
}

/* Mantenemos los estilos de las tarjetas que ya teníamos */
.checkout-card {
    background: #fff; 
    border: 1px solid #dadce0;
    border-radius: 8px; 
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.checkout-card:last-child {
    margin-bottom: 0;
}





/* ===================================================================== */
/* === LAYOUT DEFINITIVO PARA CHECKOUT.PHP (RESUMEN A LA IZQUIERDA) === */
/* ===================================================================== */

/* --- Contenedor Principal --- */
.checkout-container { 
    display: grid; 
    /* Por defecto en móvil, todo es una sola columna apilada verticalmente */
    grid-template-columns: 1fr; 
    gap: 1.5rem; /* Espacio entre las tarjetas en móvil */
    max-width: 1200px;
    margin: 2rem auto;
    align-items: flex-start;
}

/* --- VISTA DE ESCRITORIO (Pantallas de más de 992px) --- */
@media(min-width: 992px) { 
    .checkout-container { 
        /* Aquí definimos las 2 columnas: */
        /* La primera columna (para el resumen) tendrá un ancho FIJO de 400px. */
        /* La segunda columna (1fr) ocupará todo el espacio restante, siendo más ancha. */
        grid-template-columns: 500px 1fr; 
        gap: 2.5rem; /* Aumentamos el espacio entre columnas en escritorio */
    }

    /* Con la propiedad 'order', le decimos a cada elemento en qué columna ponerse, */
    /* independientemente de su orden en el archivo HTML. */

    .order-summary-column {
        /* Le decimos al resumen que se ponga en la PRIMERA columna (la de 400px) */
        order: 1; 
    }

    .checkout-form-column {
        /* Le decimos al formulario que se ponga en la SEGUNDA columna (la ancha de 1fr) */
        order: 2; 
    }
}

/* --- Estilos para las columnas y el resumen fijo --- */
.checkout-form-column,
.order-summary-column {
    width: 100%;
}

/* Estilo para el resumen del pedido en la página de checkout */
.order-summary-column .order-summary {
    position: sticky;
    top: 100px;
    background-color: #f8f9fa; /* <-- ¡AQUÍ ESTÁ EL CAMBIO! Color plomo claro */
    border: 1px solid #dee2e6;  /* Un borde que combina con el nuevo fondo */
}

/* --- Estilo 'Card' para cada sección del formulario --- */
.checkout-card {
    background: #fff; 
    border: 1px solid #dadce0; /* Borde sutil como Google */
    border-radius: 8px; 
    margin-bottom: 1.5rem;
    overflow: hidden; /* Importante para los bordes redondeados */
}
.checkout-card h3 { 
    font-size: 1.2rem;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid #dadce0;
}
.checkout-form-column .checkout-card h3 {
    border-top: 8px solid var(--primary-color, #673ab7); /* El acento de color superior */
}
.step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color, #673ab7);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 600;
}



/* Hacemos que el formulario en sí no tenga fondo ni bordes */
#checkout-main-form {
    background: none;
    padding: 0;
    box-shadow: none;
}
.checkout-form-column {
    padding-top: 1rem; /* Espacio para que la sombra se vea */
}
/* Damos padding al contenido de las tarjetas, no a la tarjeta en sí */
.checkout-card .form-group,
.checkout-card .form-group-radio,
.checkout-card .form-description {
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
}
.checkout-card .form-description {
    margin-top: 1.5rem;
}


/* --- Estilo para los campos del formulario (Inputs, Selects) --- */
.form-group {
    position: relative;
}
.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #3c4043;
    margin-bottom: 0.5rem;
    display: block;
}
/* Estilo moderno para los inputs de texto */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    background-color: transparent;
    padding: 0.8rem 0.2rem;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-bottom: 2px solid var(--primary-color, #673ab7);
}

/* --- Estilo Personalizado para los Radio Buttons --- */
.form-group-radio { display: flex; flex-direction: column; gap: 1rem; }
.form-group-radio label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}
.form-group-radio input[type="radio"] {
    opacity: 0; /* Ocultamos el radio por defecto */
    position: absolute;
}
.form-group-radio label::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #5f6368;
    margin-right: 10px;
    transition: all 0.2s ease;
}
.form-group-radio input[type="radio"]:checked + label::before {
    border-color: var(--primary-color, #673ab7);
    background-color: var(--primary-color, #673ab7);
    box-shadow: inset 0 0 0 4px white; /* El círculo interior blanco */
}




/* --- Estilos para el Resumen del Pedido --- */
.order-summary-column .order-summary {
    position: sticky;
    top: 2rem;
}
.order-summary h3 {
    border-top: none !important; /* El resumen no lleva la barra de color */
}
.summary-details {
    padding: 1rem 1.5rem;
}
.summary-total {
    padding: 1.5rem;
    font-size: 1.5rem;
    background-color: #f8f9fa; /* Fondo para el total */
}

/* Botón final de pago */
.checkout-btn.full-width {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    margin-top: 1rem;
    border-radius: 6px;
}





/* Resumen del pedido a la derecha */
.order-summary { 
    background: #f9fafb; /* Un fondo ligeramente diferente */
    padding: 2rem; 
    border-radius: 8px; 
    border: 1px solid #e5e7eb;
    position: sticky; /* Se queda fijo al hacer scroll */
    top: 2rem;
}

.summary-details {
    padding-bottom: 1rem;
}
.summary-item { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 0.8rem; 
    color: #4b5563;
    font-size: 0.95rem;
}
.summary-item strong {
    color: #111827;
}

.summary-total { 
    font-size: 1.5rem; 
    margin-top: 1rem; 
    padding-top: 1rem; 
    border-top: 2px solid var(--primary-color);
    color: var(--primary-color);
}






/* Estilos para la sección de cupones */
.coupon-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.coupon-group input {
    flex-grow: 1;
    text-transform: uppercase;
}
.coupon-group button {
    flex-shrink: 0;
    height: 45px;
    background-color: #555;
    color: white;
    border: none;
    padding: 0 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}
.coupon-message {
    font-size: 0.9rem;
    padding: 0.8rem;
    margin-top: 1rem;
    border-radius: 6px;
    display: none; /* Se muestra con JS */
}
.coupon-message.loading { display: block; background-color: #e0e7ff; color: #4338ca; }
.coupon-message.success { display: block; background-color: #dcfce7; color: #16a34a; }
.coupon-message.error { display: block; background-color: #fee2e2; color: #b91c1c; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }


/* ===================================================================== */
/* ===================================================================== */
/* === ESTILO DEFINITIVO "COLUMNA ÚNICA" PARA CONFIRMACION.PHP === */
/* ===================================================================== */

/* Le damos un fondo general a la página para que la columna centrada resalte */
.page-confirmacion {
    background-color: #f8f9fa; 
    padding: 2rem 0;
}

/* Forzamos el contenedor principal a ser una sola columna, centrada y con ancho fijo */
.page-confirmacion .checkout-container { 
    display: block !important; /* Anulamos el 'grid' de la otra página */
    grid-template-columns: none !important; /* Nos aseguramos de que no haya columnas */
    max-width: 680px; /* Un ancho ideal para una columna de resumen */
    margin: 0 auto; /* Centramos el bloque en la página */
}

/* Cada sección dentro de la página de confirmación */
.page-confirmacion .checkout-card {
    text-align: center; /* Centramos todo el contenido por defecto */
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}
@media(min-width: 768px) {
    .page-confirmacion .checkout-card {
        padding: 2rem;
    }
}
.page-confirmacion .checkout-card h3 {
    text-align: center;
    border-top: none !important; /* Quitamos la barra de color superior en esta página */
}
.page-confirmacion .checkout-card p {
    text-align: center;
    color: #4b5563;
}

/* Estilos específicos para los elementos de la página */
.page-confirmacion .confirmation-details {
    padding: 0;
}

.page-confirmacion .order-code {
    font-size: 1.2rem;
    padding: 0.8rem 1.5rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.page-confirmacion .final-amount {
    font-size: 2.8rem;
    margin: 0.5rem 0 1rem 0;
    display: block;
    color: var(--primary-color);
    font-weight: 700;
}

.page-confirmacion .qr-code-container img {
    max-width: 250px;
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    padding: 8px;
    border-radius: 8px;
    margin: 1rem auto 0 auto; /* Centrado del QR */
    display: block;
}

.page-confirmacion .copia-cola-container {
    padding: 1rem 0 0 0;
}

.page-confirmacion #pix-copia-cola {
    width: 100%;
    box-sizing: border-box; 
    text-align: left;
    font-size: 0.9rem;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #f8f9fa;
    resize: none;
    word-break: break-all;
}

.page-confirmacion #copy-pix-btn {
    background-color: #555;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
    margin-top: 1rem;
    width: 100%;
    box-sizing: border-box;
}
.page-confirmacion #copy-pix-btn:hover {
    background-color: #333;
}

/* Estilos para la tarjeta de advertencia */
.page-confirmacion .warning-card h3 {
    color: #f59e0b;
}
.page-confirmacion .warning-card h3 i {
    color: #f59e0b;
}
.page-confirmacion .warning-card .step-circle {
    background-color: #f59e0b !important;
}
.page-confirmacion .warning-text {
    padding: 0;
}

/* Botón de WhatsApp */
.page-confirmacion .whatsapp-button {
    background-color: #25D366 !important;
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-weight: bold;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    margin-top: 1.5rem;
    border: none;
    transition: transform 0.2s;
}
.page-confirmacion .whatsapp-button:hover {
    transform: scale(1.05);
}
.page-confirmacion .whatsapp-button i {
    font-size: 1.2rem;
}




/* ===================================================================== */
/* === ESTILOS PARA EL NUEVO BANNER (HERO SECTION) === */
/* ===================================================================== */

.hero-banner {
    position: relative;
    color: white;
    padding: 2.0rem 1rem; /* <-- ALTURA AJUSTADA */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://incafood.com.br/incafood-admin/img/tiket_background.png');
    background-size: cover;
    background-position: center;
}




.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55); /* Capa oscura semitransparente */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Pone el contenido por encima de la capa oscura */
}

.hero-content h1 {
    font-size: 2.4rem; /* <-- TAMAÑO AJUSTADO */
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    line-height: 1.2; /* Mejora el espaciado entre líneas */
}
.hero-content h1 small {
    font-size: 1.5rem; /* Un tamaño más pequeño para la fecha */
    font-weight: 400;
    display: block; /* Asegura que esté en su propia línea */
    opacity: 0.9;
}

.hero-content .subtitle {
    font-size: 1.2rem; /* <-- TAMAÑO AJUSTADO */
    font-weight: 400;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid white;
}
.btn-hero.primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
.btn-hero.primary:hover {
    background-color: #ad185c;
    border-color: #ad185c;
}
.btn-hero.secondary {
    background-color: transparent;
    color: white;
}
.btn-hero.secondary:hover {
    background-color: white;
    color: var(--text-color);
}

/* --- ESTILOS PARA LA BARRA DE UBICACIÓN --- */

.location-banner {
    background-color: #f1f1f1;
    padding: 0.4rem;
    border-bottom: 1px solid #ddd;
}
.location-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.location-text {
    font-weight: 600;
    color: #444;
}
.location-text i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}
.btn-maps {
    background-color: #4285F4; /* Color de Google */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}
.btn-maps:hover {
    background-color: #3367D6;
}

/* Ajuste para que el filtro no esté tan pegado */
main.container .filters {
    margin-top: 0.1rem;
}

@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content .subtitle {
        font-size: 1.1rem;
    }
    .location-content {
        justify-content: center;
        text-align: center;
    }
}



/* ===================================================================== */
/* === ESTILOS PARA EL FOOTER FINAL (ANCHO COMPLETO) === */
/* ===================================================================== */

.site-footer {
    background-color: #C8102E; /* Rojo principal */
    color: rgba(255, 255, 255, 0.85);
    padding-top: 3.5rem; /* Espacio superior principal */
    font-size: 0.95rem;
    line-height: 1.7;
    /* Estas propiedades aseguran que ocupe todo el ancho sin importar el contenedor padre */
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.site-footer h3, .site-footer h4 {
    color: white;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

/* Sección de Restaurantes Participantes (Ahora arriba) */
.footer-participants {
    text-align: center;
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    align-items: start;
}
.participant-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}
.participant-item img {
    height: 60px;
    width: 120px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s;
}
.participant-item img:hover {
    opacity: 1;
}
.participant-item span {
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
}

/* Columnas principales del footer */
.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem; /* Un poco más de espacio */
}
.footer-col p {
    margin-bottom: 0;
}
.contact-list, .social-links {
    list-style-type: none;
    padding: 0;
}
/* ... (el resto de estilos para .contact-list, .social-links, .sponsor-item no cambian) ... */

/* Sección inferior con el copyright */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
}
.footer-bottom .container {
    text-align: center;
    font-size: 0.9rem;
}
.footer-bottom p {
    margin: 0;
    opacity: 0.8;
}


.lote-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    background-color: #e0e7ff;
    color: #4338ca;
    border-radius: 5px;
    margin-left: 5px;
}


/* ===================================================================== /
/ === NUEVO: REGLA PARA FORZAR 2 COLUMNAS DE PLATOS EN MÓVILES === /
/ === Y AJUSTES DE TAMAÑO PARA BOTONES Y TEXTO === /
/ ===================================================================== */

/* Estos estilos se aplicarán solo en pantallas de 600px de ancho o menos */
@media screen and (max-width: 600px) {

    .dish-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem; /* Ligera reducción del espacio entre tarjetas */
    }
    
    /* --- NUEVA REGLA PARA LA PROPORCIÓN DE LA IMAGEN --- */
    .dish-image {
        height: auto; /* Dejamos que la altura se ajuste automáticamente */
        aspect-ratio: 4 / 3; /* Proporción 4 (ancho) por 3 (alto) */
    }
    /* --- FIN DE LA NUEVA REGLA --- */

    .dish-card .dish-info {
        padding: 0.75rem; /* Reducción del padding interno de la tarjeta */
    }
    
    .dish-card .dish-name {
        font-size: 1rem; /* Letra del nombre un poco más pequeña */
        margin-bottom: 0.1rem;
    }
    
    .dish-card .dish-description {
        font-size: 0.75rem; /* Descripción aún más pequeña */
        line-height: 1.3;
        margin-bottom: 0.5rem; /* Un poco más de espacio antes de los botones */
    }
    
    .dish-card .dish-price {
        font-size: 1.1rem; /* Precio ligeramente más pequeño */
    }
    
    .dish-card .dish-actions {
        display: flex;
        flex-direction: column; /* Apilamos los botones en móvil */
        gap: 0.5rem; /* Espacio entre los botones apilados */
    }
    
    .add-to-cart-btn, .btn-video {
        padding: 0.5rem 0.75rem; /* Reducción del padding de los botones */
        font-size: 0.8rem; /* Letra de los botones más pequeña */
        border-radius: 5px; /* Bordes un poco menos redondeados */
    }
    
    /* Ajustamos el título del header en móviles más anchos pero menores a 768px */
    .main-header h2 {
        font-size: 1rem;
    }
    }


    /* ===================================================================== */
/* === ESTILOS PARA LAS NOTIFICACIONES 'TOAST' === */
/* ===================================================================== */

#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.toast {
    background-color: #28a745; /* Un verde de éxito */
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-top: 10px;
    font-weight: 600;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
}

/* Estado visible del toast */
.toast.show {
    opacity: 1;
    transform: translateX(0);
}

