/* Diseño propio y ligero para uso en campo: alto contraste, objetivos táctiles de 48px. */
:root {
    --ng-verde: #1f5f3a;
    --ng-verde-oscuro: #143f27;
    --ng-fondo: #f6f5ef;
    --ng-superficie: #ffffff;
    --ng-texto: #1b1f1c;
    --ng-texto-suave: #55605a;
    --ng-borde: #cfd6cf;
    --ng-error: #b3261e;
}
@media (prefers-color-scheme: dark) {
    :root {
        --ng-fondo: #111612;
        --ng-superficie: #1a211c;
        --ng-texto: #eef2ee;
        --ng-texto-suave: #a9b5ad;
        --ng-borde: #34403a;
        --ng-verde: #3f9a66;
        --ng-verde-oscuro: #2f7a50;
        --ng-error: #ff8a80;
    }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    background: var(--ng-fondo);
    color: var(--ng-texto);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.5;
}
a { color: var(--ng-verde); }
h1 { font-size: 1.6rem; margin: 0.5rem 0 1rem; }
.ng-barra {
    background: var(--ng-verde-oscuro);
    padding: 0.75rem 1rem;
    padding-top: calc(0.75rem + env(safe-area-inset-top));
}
.ng-marca { color: #fff; font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.ng-contenido { max-width: 32rem; margin: 0 auto; padding: 1rem; }
.ng-texto-suave { color: var(--ng-texto-suave); }
.ng-formulario { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.ng-formulario label { font-weight: 600; margin-top: 0.5rem; }
.ng-formulario input {
    min-height: 48px; padding: 0.5rem 0.75rem; font-size: 1rem;
    border: 1px solid var(--ng-borde); border-radius: 10px;
    background: var(--ng-superficie); color: var(--ng-texto);
}
.ng-boton {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 1.25rem; margin: 0.75rem 0.5rem 0 0;
    border: 0; border-radius: 10px; font-size: 1rem; font-weight: 600;
    background: var(--ng-verde); color: #fff; text-decoration: none; cursor: pointer;
}
.ng-boton:disabled { opacity: 0.6; }
.ng-boton-secundario { background: transparent; color: var(--ng-verde); border: 2px solid var(--ng-verde); }
.ng-ayuda { font-size: 0.85rem; color: var(--ng-texto-suave); margin: 0.25rem 0 0; }
.ng-error { color: var(--ng-error); margin: 0.5rem 0 0; }
.ng-cargando { padding: 2rem 1rem; text-align: center; color: var(--ng-texto-suave); }
#blazor-error-ui {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: #fff3cd; color: #1b1f1c; padding: 0.75rem 1rem;
}
#blazor-error-ui .dismiss { float: right; cursor: pointer; }

/* ── Catálogo ── */
h2 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.ng-buscar { display: flex; gap: 0.5rem; margin: 0.5rem 0; }
.ng-buscar input {
    flex: 1; min-width: 0; min-height: 48px; padding: 0.5rem 0.75rem; font-size: 1rem;
    border: 1px solid var(--ng-borde); border-radius: 10px; background: var(--ng-superficie); color: var(--ng-texto);
}
.ng-buscar .ng-boton { margin: 0; }
.ng-lista { list-style: none; padding: 0; margin: 1rem 0; }
.ng-lista a {
    display: flex; flex-direction: column; gap: 0.15rem; padding: 0.85rem 1rem; margin-bottom: 0.5rem;
    background: var(--ng-superficie); border: 1px solid var(--ng-borde); border-radius: 12px;
    color: var(--ng-texto); text-decoration: none; min-height: 48px;
}
.ng-volver { display: inline-block; margin-bottom: 0.25rem; text-decoration: none; min-height: 32px; }
.ng-segmentado { display: flex; border: 2px solid var(--ng-verde); border-radius: 10px; overflow: hidden; margin: 0.5rem 0 1rem; }
.ng-segmentado button { flex: 1; min-height: 44px; border: 0; background: transparent; color: var(--ng-verde); font-size: 1rem; font-weight: 600; }
.ng-segmentado button.activo { background: var(--ng-verde); color: #fff; }
.ng-tarjeta-bloque { background: var(--ng-superficie); border: 1px solid var(--ng-borde); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; }
.ng-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.ng-chip {
    display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0 0.85rem;
    border: 1px solid var(--ng-borde); border-radius: 999px; background: var(--ng-fondo); color: var(--ng-texto); font-weight: 600;
}
.ng-chip.activo { border-color: var(--ng-verde); box-shadow: inset 0 0 0 1px var(--ng-verde); }
.ng-punto { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 1px solid #0003; margin-right: 0.35rem; vertical-align: -1px; }
.ng-rating { margin: 0.25rem 0 0.75rem; }
.ng-tabla { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; font-variant-numeric: tabular-nums; }
.ng-tabla caption { text-align: left; font-weight: 700; padding-bottom: 0.25rem; }
.ng-tabla th, .ng-tabla td { padding: 0.45rem 0.4rem; border-bottom: 1px solid var(--ng-borde); text-align: right; }
.ng-tabla th:first-child, .ng-tabla td:first-child { text-align: left; }
.ng-tabla thead th { color: var(--ng-texto-suave); font-weight: 600; font-size: 0.85rem; }
.ng-tabla tfoot th { border-bottom: 0; }
.ng-golpes { font-size: 1.25rem; font-weight: 700; color: var(--ng-verde); }

/* Portada (ilustración temporal, original de Nanche Golf) */
.ng-portada {
    display: block; width: calc(100% + 2rem); max-width: none; height: auto; aspect-ratio: 390 / 230;
    margin: -1rem -1rem 1rem; object-fit: cover;
}
@media (min-width: 34rem) { .ng-portada { width: 100%; margin: 0 0 1rem; border-radius: 14px; } }

/* Ambiente de calidad (D-029): franja fija arriba, imposible de confundir con producción. */
.ng-franja-calidad {
    background: #b45309;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    padding: 0.25rem 1rem;
    letter-spacing: 0.04em;
}
