/* COLORES -----*/

:root {
    /* Base colors - Modify these two to change entire palette */
    --base-primary: #22c55e;
    --base-secondary: #ffc72c;

    /* Auto-generated primary palette using CSS color-mix() */
    --color-primary-50: color-mix(in srgb, var(--base-primary) 5%, white 95%);
    --color-primary-100: color-mix(in srgb, var(--base-primary) 10%, white 90%);
    --color-primary-200: color-mix(in srgb, var(--base-primary) 20%, white 80%);
    --color-primary-300: color-mix(in srgb, var(--base-primary) 40%, white 60%);
    --color-primary-400: color-mix(in srgb, var(--base-primary) 70%, white 30%);
    --color-primary-500: var(--base-primary);
    --color-primary-600: color-mix(in srgb, var(--base-primary) 90%, black 10%);
    --color-primary-700: color-mix(in srgb, var(--base-primary) 80%, black 20%);
    --color-primary-800: color-mix(in srgb, var(--base-primary) 70%, black 30%);
    --color-primary-900: color-mix(in srgb, var(--base-primary) 60%, black 40%);

    /* Auto-generated secondary palette */
    --color-secondary-50: color-mix(in srgb, var(--base-secondary) 5%, white 95%);
    --color-secondary-100: color-mix(in srgb, var(--base-secondary) 10%, white 90%);
    --color-secondary-200: color-mix(in srgb, var(--base-secondary) 20%, white 80%);
    --color-secondary-300: color-mix(in srgb, var(--base-secondary) 40%, white 60%);
    --color-secondary-400: color-mix(in srgb, var(--base-secondary) 70%, white 30%);
    --color-secondary-500: var(--base-secondary);
    --color-secondary-600: color-mix(in srgb, var(--base-secondary) 90%, black 10%);
    --color-secondary-700: color-mix(in srgb, var(--base-secondary) 80%, black 20%);
    --color-secondary-800: color-mix(in srgb, var(--base-secondary) 70%, black 30%);
    --color-secondary-900: color-mix(in srgb, var(--base-secondary) 60%, black 40%);
}

/* Usage Examples */
.btn-primary {
    background-color: var(--color-primary-600);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-700);
}

.text-primary {
    color: var(--color-primary-600);
}

.bg-primary-light {
    background-color: var(--color-primary-50);
}


/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--base-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 3s;
}

.splash-content {
    text-align: center;
}

.splash-logo {
    max-width: 250px;
    margin-bottom: 20px;
}

/* Main Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f6f6f6;
    color: #2a2a2a;
}

.menu-container {
    max-width: 30rem;
    margin: 0 auto;
    padding: 1.2rem;
}

.header-menu {
    text-align: center;
    margin-bottom: 2rem;
    background-color: white;
    padding: 20px;
    border-radius: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo img {
    max-width: 9rem;
    height: auto;
}

.categoria-titulo {
    background-color: var(--base-primary);
    color: white;
    padding: 0.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1rem 0;
    border-radius: 0.5rem;
    /* text-transform: uppercase; */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.producto {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin: 10px 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--base-secondary);
}

.producto-imagen-link {
    flex-shrink: 0;
    text-decoration: none;
}

.producto-imagen {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.producto-imagen:hover {
    transform: scale(1.05);
}

.producto-contenido {
    flex: 1;
    min-width: 0;
}

.producto-titulo {
    font-size: 18px;
    font-weight: bold;
    color: var(--base-primary);
    margin-bottom: 5px;
}

.producto-descripcion {
    font-size: 14px;
    color: #666;
    word-wrap: break-word;
}

.producto-precio {
    flex-shrink: 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: black;
    padding: 0.5rem 1rem;
    background-color: var(--base-secondary);
    border-radius: 1.5rem;
    white-space: nowrap;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 0.8rem;
}

.modal-header {
    background-color: var(--base-primary);
    color: white;
    border-bottom: none;
    padding: 0.25rem 0.5rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.5rem;
}

.modal-body {
    padding: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
}

.modal-img {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

/* --PIZARRAS -----*/

.pizarra-1 .titulo, .pizarra-1 .precio {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--base-primary);
}

.pizarra-2 {
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin: 10px 0;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 0.25rem solid var(--base-primary);
    border-top: 0.25rem solid var(--base-primary);

    /* max-width: 18rem; */
    margin: 1rem auto;
}

.pizarra-2 .titulo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--base-primary);
}

.pizarra-2 .contenido {
    font-size: 0.8em;
    font-weight: 400;
    color: black;
}

/*--HORARIO ----*/

.horario {
    background-color: var(--base-primary);
    color: white;
    padding: 1rem;
    margin: 1.2rem 0;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

tr {
    border-bottom: 1px solid #eee;
}

td {
    padding: 10px;
}

.dia {
    font-weight: bold;
    width: 30%;
}

.horarios {
    width: 70%;
}

.cerrado {
    color: #dc3545;
    font-weight: bold;
}

.turno-mediodia,
.turno-noche {
    margin: 2px 0;
}

.turno-mediodia:before {
    content: "Mediodía";
    font-weight: 500;
    color: #666;
}

.turno-noche:before {
    content: "Noche";
    font-weight: 500;
    color: #666;
}

.horario-corrido {
    font-weight: 500;
}

.redes {
    margin: 1rem 0;
}

.redes a {
    color: black;
    font-size: 0.8rem;
    margin: 0 0.6rem;
    text-decoration: none;
    font-weight: 800;
}

.redes a:hover {
    color: #ffc72c;
}

.alert {
    background-color: #009743;
    color: white;
    border: none;
}

.footer p{
    margin: 0 auto;
    font-size: 0.8rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 30rem) {
    .producto {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .producto-imagen {
        width: 7rem;
        height: 7rem;
    }

    .producto-precio {
        margin-top: 0.6rem;
    }
}