/* Estilos generales de NutriRuta */

* {
    box-sizing: border-box;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    overflow-x: hidden;
    background: #f1f8e9;
}

.app {
    display: flex;
    flex-direction: column;
    max-width: 420px;
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
    border-right: 1px solid #ddd;
    border-left: 1px solid #ddd;
}

header {
    padding: 14px;
    background: #2e7d32;
    color: #fff;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

main {
    flex: 1;
}

.pantalla {
    display: none;
    padding: 18px;
}

.pantalla.activa {
    display: block;
}

h1 {
    margin: 26px 0 4px;
    color: #2e7d32;
    text-align: center;
    font-size: 30px;
}

h2 {
    margin: 4px 0 12px;
    color: #2e7d32;
    font-size: 20px;
}

.sub {
    margin-bottom: 16px;
    color: #666;
    text-align: center;
}

.ayuda {
    margin-bottom: 14px;
    color: #666;
    font-size: 13px;
}

.centro {
    text-align: center;
}

.benef {
    margin: 12px 0 16px 24px;
    color: #333;
    line-height: 2;
}

.opcion {
    display: block;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid #999;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

.opcion small {
    display: block;
    margin-top: 2px;
    color: #666;
    font-size: 12px;
}

.opcion:has(input:checked) {
    padding: 11px;
    border: 2px solid #2e7d32;
    background: #e8f5e9;
}

.precio {
    display: block;
    margin-top: 6px;
    color: #2e7d32;
    font-weight: bold;
}

.principal {
    width: 100%;
    margin-top: 10px;
    padding: 13px;
    border: 0;
    border-radius: 8px;
    background: #2e7d32;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.volver {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid #999;
    border-radius: 8px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.tabs {
    display: flex;
    gap: 6px;
    margin: 12px 0;
}

.tabs button {
    flex: 1;
    padding: 8px;
    border: 1px solid #2e7d32;
    border-radius: 20px;
    background: #fff;
    color: #2e7d32;
    cursor: pointer;
}

.tabs button.on {
    background: #2e7d32;
    color: #fff;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.nav button {
    width: 36px;
    height: 36px;
    border: 1px solid #2e7d32;
    border-radius: 50%;
    background: #fff;
    color: #2e7d32;
    font-size: 18px;
    cursor: pointer;
}

.fila {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 9px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.fila b {
    width: 36px;
    color: #2e7d32;
}

.fila span {
    margin-left: auto;
    font-weight: bold;
    white-space: nowrap;
}

.x {
    padding: 0 2px;
    border: 0;
    background: none;
    color: #c00;
    font-size: 17px;
    cursor: pointer;
}

.total {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #2e7d32;
    border-radius: 8px;
    background: #e8f5e9;
    font-size: 14px;
    line-height: 1.8;
}

.total .grande {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #2e7d32;
    color: #2e7d32;
    font-size: 18px;
    font-weight: bold;
}

.mapa {
    display: block;
    margin-bottom: 12px;
    border: 1px solid #999;
    border-radius: 8px;
}

.ok {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    margin: 26px auto 12px;
    border: 3px solid #2e7d32;
    border-radius: 50%;
    color: #2e7d32;
    font-size: 36px;
}

.credito {
    margin-top: 28px;
    padding-top: 14px;
    border-top: 1px solid #ddd;
    color: #555;
    text-align: center;
    font-size: 13px;
    line-height: 1.7;
}

.credito b {
    color: #2e7d32;
    letter-spacing: 1px;
}

footer {
    padding: 12px;
    border-top: 1px solid #eee;
    color: #888;
    text-align: center;
    font-size: 11px;
    line-height: 1.6;
}

/* Ubicación de la imagen principal */
.marcador-imagen {
    width: 100%;
    margin: 14px auto 18px;
    text-align: center;
}

.marcador-imagen img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    max-height: 220px;
    margin: 0 auto;
    object-fit: contain;
}

.marcador-imagen img {
    border: 1px dashed #9e9e9e;
    border-radius: 8px;
    background: #fafafa;
}

.marcador-imagen small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 11px;
}

/* Imágenes de los platos del menú */
.plato {
    display: block;
}

.imagen-plato {
    display: block;
    width: 100%;
    height: 125px;
    margin: 8px 0;
    border-radius: 10px;
    background: #f0f0f0;
    object-fit: cover;
}

/* Nada más */
