/* NB Ideas de Menú */
.nbim-app { max-width: 1100px; margin: 0 auto; padding: 20px 16px; font-family: inherit; color: #222; }

.nbim-header h2 { color: #1b5e20; margin: 0 0 6px; font-size: 26px; }
.nbim-subtitle { color: #666; margin: 0 0 20px; font-size: 14px; line-height: 1.5; }

/* Cómo usar (con chevron) */
.nbim-como-usar {
    background: #f1f8e9; border: 1px solid #c8e6c9; border-radius: 10px;
    padding: 14px 18px; margin-bottom: 20px;
}
.nbim-como-usar summary {
    cursor: pointer; font-weight: 600; color: #1b5e20;
    user-select: none; list-style: none; font-size: 15px;
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.nbim-como-usar summary::-webkit-details-marker { display: none; }
.nbim-como-usar summary::after {
    content: '▾'; color: #2e7d32; font-size: 16px;
    transition: transform 0.2s ease; flex-shrink: 0;
}
.nbim-como-usar[open] summary::after { transform: rotate(180deg); }
.nbim-como-usar[open] summary { margin-bottom: 10px; }
.nbim-como-usar ul { margin: 0; padding-left: 20px; }
.nbim-como-usar li { margin: 6px 0; color: #333; line-height: 1.5; font-size: 13px; }

/* Buscador */
.nbim-buscador {
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
    border-radius: 14px; padding: 20px 22px; margin-bottom: 24px;
    border-left: 5px solid #2e7d32;
}
.nbim-buscador-label {
    display: block; font-weight: 600; color: #1b5e20;
    font-size: 16px; margin-bottom: 10px;
}
.nbim-input-wrap {
    position: relative; background: #fff; border-radius: 10px;
    border: 1px solid #c8e6c9; display: flex; align-items: center;
}
.nbim-input-icon { padding: 0 12px; font-size: 18px; color: #999; }
#nbim-input {
    flex: 1; border: none; outline: none; padding: 12px 8px;
    font-size: 15px; background: transparent; color: #333;
}
.nbim-limpiar {
    background: none; border: none; cursor: pointer; padding: 8px 14px;
    color: #999; font-size: 16px; font-weight: 600;
}
.nbim-limpiar:hover { color: #c62828; }
.nbim-count { margin-top: 10px; font-size: 13px; color: #555; font-weight: 500; }

/* Agrupación */
.nbim-grupos { display: flex; flex-direction: column; gap: 28px; }
.nbim-grupo-titulo {
    display: flex; align-items: center; gap: 10px;
    margin: 0 0 12px; padding-bottom: 8px;
    color: #1b5e20; font-size: 16px; font-weight: 700;
    letter-spacing: 0.4px; text-transform: uppercase;
    border-bottom: 2px solid #c8e6c9;
}
.nbim-grupo-count {
    display: inline-block; background: #e8f5e9; color: #2e7d32;
    padding: 2px 10px; border-radius: 10px; font-size: 12px;
    font-weight: 600; letter-spacing: 0.2px; text-transform: none;
}

.nbim-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.nbim-card {
    display: flex; flex-direction: column; gap: 10px;
    background: #fff; border: 1px solid #e0e0e0; border-radius: 12px;
    padding: 16px; text-decoration: none; color: #222;
    transition: all .18s; border-top: 4px solid #2e7d32;
}
.nbim-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transform: translateY(-2px); border-color: #66bb6a;
}
.nbim-card h4 {
    margin: 0; color: #1b5e20; font-size: 15px;
    line-height: 1.35; font-weight: 700;
}
.nbim-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.nbim-tag {
    font-size: 11px; padding: 4px 8px; border-radius: 10px;
    background: #f5f5f5; color: #555; font-weight: 500;
}
.nbim-tag-prot { background: #ffe0b2; color: #e65100; }
.nbim-tag-carb { background: #fff8e1; color: #b28900; }
.nbim-card-more {
    margin-top: auto; padding-top: 6px; font-size: 12px;
    color: #2e7d32; font-weight: 600;
}

.nbim-empty-search {
    background: #fafafa; border: 1px dashed #ddd; border-radius: 12px;
    padding: 40px 20px; text-align: center; color: #888; font-size: 14px;
}

/* Detalle */
.nbim-back {
    display: inline-block; margin-bottom: 16px; color: #2e7d32;
    text-decoration: none; font-weight: 600; font-size: 14px;
}
.nbim-back:hover { text-decoration: underline; }
.nbim-hero {
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
    border-radius: 14px; padding: 24px 28px; margin-bottom: 20px;
    border-left: 5px solid #2e7d32;
}
.nbim-hero-chip {
    display: inline-block; background: #fff; color: #2e7d32;
    padding: 4px 12px; border-radius: 12px; font-size: 11px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
    margin-bottom: 8px;
}
.nbim-hero h2 { margin: 0; color: #1b5e20; font-size: 22px; line-height: 1.3; }
.nbim-secciones {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px; margin-bottom: 20px;
}
.nbim-sec {
    display: flex; gap: 12px; background: #fff;
    border: 1px solid #e0e0e0; border-radius: 10px; padding: 14px;
    border-left: 4px solid #ccc;
}
.nbim-sec-prot { border-left-color: #e65100; }
.nbim-sec-carb { border-left-color: #b28900; }
.nbim-sec-veg  { border-left-color: #2e7d32; }
.nbim-sec-gra  { border-left-color: #6d4c41; }
.nbim-sec-sab  { border-left-color: #7b1fa2; }
.nbim-sec-icon { font-size: 24px; line-height: 1; flex-shrink: 0; }
.nbim-sec-body { flex: 1; }
.nbim-sec-label {
    font-size: 11px; color: #888; text-transform: uppercase;
    letter-spacing: 0.4px; font-weight: 600;
}
.nbim-sec-value { font-size: 14px; color: #333; margin-top: 2px; font-weight: 500; line-height: 1.5; }
.nbim-preparacion {
    display: flex; gap: 14px; background: #fff;
    border: 1px solid #e0e0e0; border-radius: 12px; padding: 20px;
}
.nbim-preparacion h3 { margin: 0 0 8px; color: #1b5e20; font-size: 17px; }
.nbim-preparacion p { margin: 0; line-height: 1.7; color: #333; font-size: 14px; }
.nbim-empty {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 12px;
    padding: 30px; text-align: center; color: #666;
}
.nbim-empty a { color: #2e7d32; font-weight: 600; }

@media (max-width: 600px) {
    .nbim-hero { padding: 18px 20px; }
    .nbim-hero h2 { font-size: 18px; }
    .nbim-preparacion { padding: 16px; gap: 10px; }
    .nbim-buscador { padding: 16px 18px; }
    .nbim-buscador-label { font-size: 15px; }
    .nbim-grupo-titulo { font-size: 14px; }
}
