/* ══════════════════════════════════════════════════════════════════
   BELLARTE PARAGUAY — Legibilidad y tamaño de los controles
   ──────────────────────────────────────────────────────────────────
   Buena parte de los artistas son gente grande, y muchos van a usar
   el sitio desde el celular. Eso obliga a dos cosas concretas:

   · Nada que se toque puede medir menos de 48 px. Es la medida que
     recomiendan Apple y Google, y por debajo de eso un dedo falla.
   · El texto de los formularios va en 16 px como mínimo. Además de
     leerse mejor, evita que el iPhone haga zoom solo al tocar un
     campo, que descoloca toda la pantalla.

   Se carga después del CSS principal, así que pisa lo que haga falta
   sin tener que reemplazar la hoja entera en cada entrega.
   ══════════════════════════════════════════════════════════════════ */

/* ── Botones ── */
.btn {
    min-height: 48px;
    padding: 12px 22px;
    font-size: 14.5px;
    letter-spacing: .6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.btn-lg  { min-height: 56px; padding: 15px 30px; font-size: 16px; }
/* El chico queda en 42 px: con mouse alcanza, y en movil sube a 46
   con la regla del final. Debajo de 44 el dedo empieza a errar. */
.btn-sm  { min-height: 42px; padding: 10px 16px; font-size: 13.5px; }

/* Los iconos sueltos también necesitan superficie */
.btn i { font-size: 1.05em; }

/* ── Formularios ── */
.form-control,
.form-select {
    min-height: 48px;
    font-size: 16px;          /* menos que esto y el iPhone hace zoom solo */
    padding: 11px 14px;
}
textarea.form-control { min-height: 110px; line-height: 1.7; }
.form-control-sm, .form-select-sm { min-height: 40px; font-size: 14.5px; padding: 8px 12px; }

.form-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--mp-text);
}
.form-text { font-size: 13px; line-height: 1.6; }

/* ── Casillas y opciones: el area de toque incluye la etiqueta ── */
.form-check { padding-left: 2em; min-height: 30px; margin-bottom: 10px; }
.form-check-input { width: 1.35em; height: 1.35em; margin-left: -2em; margin-top: .12em; }
.form-check-label { font-size: 15px; line-height: 1.6; cursor: pointer; padding: 3px 0; }
.form-check-input:focus { box-shadow: 0 0 0 .22rem rgba(176,141,87,.3) }
.form-check-input:checked { background-color: var(--mp-accent); border-color: var(--mp-accent) }

/* ── Enlaces dentro de texto: subrayados, no solo de otro color ── */
.card-body p a:not(.btn),
.alert a:not(.btn) { text-decoration: underline; text-underline-offset: 2px }

/* ── Foco visible: quien navega con teclado tiene que ver dónde está ── */
a:focus-visible, button:focus-visible,
.form-control:focus-visible, .form-select:focus-visible {
    outline: 2px solid var(--mp-accent);
    outline-offset: 2px;
}

/* ── Iconos de la cabecera ── */
.header-icon { min-width: 46px; min-height: 46px; font-size: 1.22rem }

/* ── Tablas del panel: filas más altas para poder tocarlas ── */
.table > :not(caption) > * > * { padding: 13px 12px }
.table td, .table th { vertical-align: middle }

/* ── Mensajes ── */
.alert { font-size: 15px; line-height: 1.75; padding: 16px 20px }

/* ══════════════════════════════════════════════════════════════════
   MODO LETRA GRANDE
   Lo activa la persona desde el menú de su cuenta y queda guardado en
   su navegador. No cambia la maqueta: solo escala el texto y los
   controles, que es lo que hace falta.
   ══════════════════════════════════════════════════════════════════ */
html.bl-grande { font-size: 18.5px }

html.bl-grande body            { font-size: 17.5px; line-height: 1.85 }
html.bl-grande .btn            { min-height: 54px; font-size: 16px; padding: 14px 26px }
html.bl-grande .btn-sm         { min-height: 46px; font-size: 15px }
html.bl-grande .form-control,
html.bl-grande .form-select    { min-height: 54px; font-size: 17.5px }
html.bl-grande .form-label     { font-size: 15.5px }
html.bl-grande .form-check-label { font-size: 16.5px }
html.bl-grande .form-text,
html.bl-grande .small,
html.bl-grande small           { font-size: 14.5px !important }
html.bl-grande .table > :not(caption) > * > * { padding: 16px 13px; font-size: 15.5px }
html.bl-grande .bl-tile span   { font-size: 17px }
html.bl-grande .bl-tile em     { font-size: 13.5px }
html.bl-grande .bl-lista a     { font-size: 16px; padding: 16px }
html.bl-grande .section-title  { font-size: 2rem }

/* El interruptor en el menú de la cuenta */
.bl-letra { display: flex; align-items: center; justify-content: space-between; gap: 10px }
.bl-letra small { font-size: 11px; color: var(--mp-text-muted) }

/* ══════════════════════════════════════════════════════════════════
   MÓVIL
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .btn        { min-height: 52px; font-size: 15px; width: auto }
    .btn-sm     { min-height: 46px }
    .btn-lg     { min-height: 60px; font-size: 16.5px }

    /* En el celular un botón principal solo se usa bien si ocupa el ancho */
    .card-body > .btn-accent:only-child,
    form > .btn-accent:last-child:not(.w-auto) { width: 100% }

    .form-control, .form-select { min-height: 52px }
    .form-check { min-height: 36px; margin-bottom: 14px }
    .form-check-input { width: 1.5em; height: 1.5em }

    /* Dos botones seguidos no deben quedar pegados */
    .d-flex.gap-2 > .btn { flex: 1 1 auto; min-width: 140px }
}

/* Quien pidió menos movimiento en su sistema, no lo tiene */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
