body { font-family: Arial, sans-serif; max-width: 600px; margin: 0 auto; padding: 20px; }
@media (max-width: 767.98px) {
    body { padding: 20px; }
}
body.list { max-width: inherit;}
label { display: block; margin-bottom: 5px; }
input, select, textarea { 
    width: 100%; 
    padding: 8px; 
    box-sizing: border-box;
    resize: none;
}

input[type="checkbox"] {
    width: auto;
}

#ubicacionFilter {
    margin-bottom: 12px;
}
button { 
    padding: 10px 20px; 
    background: #4CAF50; 
    color: white; 
    border: none; 
    cursor: pointer; 
}
button:hover { 
    background: #5ac05d; 
}
button.loading {
    display: none !important;
}

#guardando {
    display: none;
    color: #4CAF50; 
    font-size: 1.3em;
}
#guardando.loading {
    display: block;
}
#guardando span {
    font-size: 0.7em;
    color: #555353;
    display: inline-block;
    margin-left: 0.4em;
    position: relative;
    bottom: 3px;
}

#btn_cancelar {
    background: #cb1313;
    visibility: hidden;
    text-decoration: none;
    color: white;
    font-size: 14px;
    padding: 10px 20px;
}
#btn_cancelar.show {
    visibility: visible;
}
#btn_cancelar:hover {
    background: #cc3232;
}

#titulo {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 680px;
    margin: 0 auto 40px;
    padding: 0 16px;
    box-sizing: border-box;
}

.nombre-grilla {
/*     font-size: 1.1em;
    font-weight: 600;
    color: #3a6b8c;
 */    margin: 14px 0 0;
    text-align: center;
    font-size: clamp(1.35rem, 2.5vw, 2.05rem);
    font-weight: 600;
    line-height: 1.12;
}
body.list #titulo {
    justify-content: start;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: inherit;
    margin: 0 auto 28px;
    padding: 0 16px;
}
body.list #titulo h1 {
    margin-right: 1em;
    margin-bottom: 0;
}

/* ── Grilla index (selector de grillas por provincia) ── */
body.grilla-index #subtitulo {
    color: #555;
    margin: 0 0 1.5em;
    font-size: 1.05em;
}
body.grilla-index {
    max-width: 680px;
}
#grilla-index-contenido {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 16px 40px;
    box-sizing: border-box;
}
.grilla-index-modulo {
    margin-bottom: 2em;
}
.grilla-index-modulo-titulo {
    display: flex;
    align-items: center;
    gap: 0.45em;
    font-size: 1.1em;
    font-weight: 700;
    color: #1c3d6b;
    border-bottom: 2px solid #9ec5fe;
    padding-bottom: 6px;
    margin-bottom: 10px;
}
.grilla-index-modulo-titulo i {
    color: #3b82d6;
    font-size: 0.9em;
}
.grilla-index-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.grilla-index-link {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 10px 14px;
    border-radius: 8px;
    background: #f0f6ff;
    border: 1px solid #c8ddf8;
    color: #1c3d6b;
    text-decoration: none;
    font-size: 0.97em;
    transition: background 140ms ease, border-color 140ms ease;
}
.grilla-index-link:hover {
    background: #dce8f5;
    border-color: #9ec5fe;
}
.grilla-index-link i {
    color: #3b82d6;
    flex-shrink: 0;
}
.grilla-index-nombre {
    flex: 1;
}
#grilla-index-contenido .error-msg {
    color: #8b1a1a;
    background: #fde8e8;
    border: 1px solid #f5b8b8;
    padding: 12px 16px;
    border-radius: 8px;
}

.panel-grilla-section {
    margin-bottom: 2.5em;
}
.panel-provincia-toggle {
    display: flex;
    align-items: center;
    gap: 0.5em;
    cursor: pointer;
    color: #2c3e50;
    margin-top: 1.5em;
    margin-bottom: 0;
    user-select: none;
}
.panel-provincia-toggle:hover {
    color: #0b9ad7;
}
.panel-toggle-icon {
    color: #0b9ad7;
    font-size: 0.9em;
}
.panel-chevron {
    margin-left: auto;
    font-size: 0.75em;
    color: #888;
    transition: transform 260ms ease;
}
.panel-tabla-wrapper {
    display: none;
    overflow: hidden;
}
.panel-section-open .panel-tabla-wrapper {
    display: block;
}
.modulo-group-header td {
    background: #dce8f5;
    color: #1c3d6b;
    font-weight: 700;
    font-size: 0.92em;
    padding: 6px 12px;
    letter-spacing: 0.03em;
    border-top: 2px solid #9ec5fe;
    border-bottom: 1px solid #b8d4f0;
}
#titulo a {
    text-decoration: none;
    background-color: #0b9ad7;
    padding: 3px 10px;
    color: white;
    text-transform: uppercase;
    font-size: 0.8em;
    font-weight: bold;
    min-width: 52px;
}
#titulo a:hover {
    background-color: #23b7f7;
}

body.mail-reenvio #mailRequestForm {
    max-width: 560px;
    margin: 0 auto;
}

body.mail-reenvio #mailRequestForm label {
    font-size: 1rem;
}

body.mail-reenvio #txt_mail {
    font-size: 1.1rem;
    line-height: 1.2;
    padding: 12px 14px;
    min-height: 48px;
    width: 100%;
}

h2#provinciaNombre {
    color: #2c3e50;
    margin-bottom: 25px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    text-align: center;
}
body.list h2#provinciaNombre {
    padding: 0;
    background: none;
    text-align: left;
}


#logo_conicet {
    width: 96px;
}

#headerTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 680px;
    margin: 0 auto 28px;
    box-sizing: border-box;
}

#provinciaHeader {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
    min-height: 95px;
    text-align: right;
}

#provinciaHeader.logo-visible {
    overflow: hidden;
}

#logoProvincia {
    width: auto;
    max-width: 520px;
    max-height: 95px;
    object-fit: contain;
    object-position: right center;
    margin-left: auto;
}

#logoProvincia.logo-ajustado {
    transform: translate(var(--logo-offset-x, 0px), var(--logo-offset-y, 0px)) scale(var(--logo-scale, 1.12));
    transform-origin: right center;
}

#logoProvincia:not([hidden]) {
    display: block;
}

#nombreProvinciaHeader,
#nombreProvinciaTitulo {
    margin: 0;
    padding: 0;
    color: #526170;
    font-weight: 600;
}

#nombreProvinciaHeader {
    text-align: right;
    font-size: clamp(1rem, 1.3vw, 1.3rem);
}

#nombreProvinciaTitulo {
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
    font-size: clamp(1.05rem, 1.6vw, 1.45rem);
    line-height: 1.15;
}

body.grilla #titulo h1,
body.grilla-index #titulo h1 {
    margin: 0;
    text-align: center;
    width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    font-size: clamp(1.475rem, 2.75vw, 2.175rem);
    font-weight: 700;
    line-height: 1.03;
}

@media (max-width: 680px) {
    #headerTop {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 28px;
    }

    #logo_conicet {
        width: clamp(88px, 20vw, 130px);
        flex-shrink: 0;
    }

    #provinciaHeader {
        flex: 1 1 auto;
        min-height: 0;
        min-width: 0;
        max-width: calc(100% - clamp(96px, 22vw, 140px));
        justify-content: flex-end;
        text-align: right;
        overflow: hidden;
    }

    #provinciaHeader.logo-visible {
        overflow: hidden;
    }

    #logoProvincia {
        width: 100%;
        max-width: 100%;
        max-height: clamp(64px, 18vw, 110px);
        margin-left: auto;
        object-position: right center;
    }

    #logoProvincia.logo-ajustado {
        transform: none;
    }

    body.grilla #titulo h1,
    body.grilla-index #titulo h1 {
        overflow-wrap: break-word;
        word-break: break-word;
        font-size: clamp(1.325rem, 5.2vw, 1.975rem);
        text-align: left;
    }
}

@media (max-width: 767.98px) and (hover: none) and (pointer: coarse) {
    #headerTop {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 14px;
    }

    #logo_conicet {
        width: 56px;
    }

    #provinciaHeader {
        flex: 1 1 auto;
        width: auto;
        max-width: calc(100% - 64px);
        min-height: 0;
        min-width: 0;
        justify-content: flex-end;
        text-align: right;
    }

    #logoProvincia {
        width: auto;
        max-width: 100%;
        max-height: 48px;
        margin-left: auto;
        object-position: right center;
    }

    #nombreProvinciaHeader,
    #nombreProvinciaTitulo {
        width: 100%;
        text-align: left;
    }

    #nombreProvinciaTitulo {
        margin-bottom: 6px;
        padding: 0;
        box-sizing: border-box;
        font-size: 0.88rem;
        font-weight: 600;
        line-height: 1.15;
    }

    #nombreProvinciaHeader {
        font-size: 0.9rem;
        font-weight: 600;
        line-height: 1.15;
    }

    #provinciaHeader.logo-visible {
        overflow: visible;
    }

    #logoProvincia.logo-ajustado {
        transform: translate(var(--logo-offset-x, 0px), var(--logo-offset-y, 0px)) scale(min(var(--logo-scale, 1), 1));
        transform-origin: right center;
    }

    #titulo {
        align-items: flex-start;
        margin-bottom: 18px;
    }

    .nombre-grilla {
        margin-top: 8px;
        text-align: left;
        font-size: 1.0rem;
        line-height: 1.15;
    }

    body.grilla #titulo h1,
    body.grilla-index #titulo h1 {
        text-wrap: balance;
        text-align: left;
        line-height: 1.08;
        font-size: 1.175rem;
    }
}

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

table th, table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

table th {
/*     background-color: #f2f2f2;*/
 background-color: #ffffff;    
 font-weight: bold;
}
table tr.categorias-intervencion th{
    font-weight: 400; 
    font-size: 0.85em;
    color: #555;
}

/* table tr:hover td {
    background-color: rgb(243, 242, 242);
} */

body.list button:not(.btn-admin):not(.admin-modal-close) {
    padding: 0;
    background: none;
    font-size: 1.4em;
}
body.list button.edit-btn, body.list button.lst-btn {
    color: #3fa83f;
}
body.list button.edit-btn:hover, body.list button.lst-btn:hover {
    color: #4ace4a;
}
body.list button.delete-btn {
    color: #ff4f4f;
}
body.list button.delete-btn:hover {
    color: #fd7a7a;
}
body.list button.toggle-btn {
    color: #1588ab;
}
body.list button.toggle-btn:hover {
    color: #4aabc9;
}
body.list button.download-btn {
    color: #ffb300;
}
body.list button.download-btn:hover {
    color: #ffcf5d;
}
body.list button.download-zip-btn {
    color: #ffb300;
}
body.list button.download-zip-btn:hover {
    color: #ffcf5d;
}
body.list button.download-csv-btn {
    color: #2e8b57;
}
body.list button.download-csv-btn:hover {
    color: #3cb371;
}
body.list button.download-pdf-btn {
    color: #d32f2f;
}
body.list button.download-pdf-btn:hover {
    color: #ef5350;
}
.acciones-cell {
    display: flex;
    gap: 0.4em;
    justify-content: center;
    align-items: center;
}
.acciones-sep {
    color: #bbb;
    user-select: none;
    font-size: 0.85em;
}
.panel-grilla-ext-link {
    color: #0b9ad7;
    font-size: 1.2em;
    line-height: 1;
    text-decoration: none;
}
.panel-grilla-ext-link:hover {
    color: #23b7f7;
}
.panel-provincia-grilla-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-size: 0.82em;
    color: #0b9ad7;
    text-decoration: none;
    padding: 2px 0 0 1.6em;
    margin-bottom: 4px;
}
.panel-provincia-grilla-link:hover {
    color: #23b7f7;
    text-decoration: underline;
}
body.list button:not(.btn-admin) i {
    width: 100%;
}
body.list tr.inactive {
    background-color: #ffe3dc;
}
body.list tr.inactive:hover td {
    background-color: inherit;
}
body.list #orientadorasResumenTable {
    margin-bottom: 1em;
    max-width: 600px;
    visibility: collapse;
}
body.list #orientadorasResumenTable.show {
    visibility: visible;
}
body.list #orientadorasResumenTable tr.total {
    font-weight: bold;
    background-color: #adcedc;
}

#btn_show_resumen {
    color: #8cc5f8;
}
#btn_show_resumen:hover {
    color: #23b7f7;
}
#btn_show_resumen i {
    display: inline;
}
#btn_show_resumen i.flecha {
    font-size: 0.7em;
}
#btn_show_all i {
    display: inline;
}

#btn_show_all {
    color: #0b9ad7;
}
#filtros {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 0.5em;
}
#filtros label {
    margin: 0;
}
#filtros select {
    width: inherit;
    background: white;
    border: 3px solid #0b9ad7;
    font-size: 0.9em;
    color: #033348;
    padding: 10px 15px;
}

.form-group {
    margin-bottom: 15px;
}

.acciones-formulario {
    margin: 24px 0 40px;
}

#btnGuardarGrilla {
    font-size: 1.25em;
    padding: 12.5px 25px;
}

.grilla-feedback {
    margin-top: 12px;
    min-height: 1.2em;
}

.grilla-feedback.loading,
.grilla-feedback.info {
    color: #1b5e8d;
}

/* Jerarquia visual solo por fondos (sin marcos) */
.jerarquia-campos-activa .categoria-bloque {
    margin: 20px 0;
    padding: 12px;
    border-radius: 12px;
    overflow: hidden;
    display: flow-root;
    background-clip: padding-box;
/*     background: #e4edf7;
 */}

.jerarquia-campos-activa .categoria-bloque > .actividad {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jerarquia-campos-activa .subcategoria-bloque {
    margin-top: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #edf4fb;
    --opcion-selected-bg: #9ec5fe;
    --opcion-selected-fg: #1c3d6b;
    --opcion-selected-accent: #3b82d6;
}

.jerarquia-campos-activa .categoria-bloque > .actividad > .subcategoria-bloque.subcategoria-color-azul {
    background: #e7f1fb;
    --opcion-selected-bg: #9ec5fe;
    --opcion-selected-fg: #1c3d6b;
    --opcion-selected-accent: #3b82d6;
}

.jerarquia-campos-activa .categoria-bloque > .actividad > .subcategoria-bloque.subcategoria-color-verde {
    background: #e8f5ee;
    --opcion-selected-bg: #a8ddbc;
    --opcion-selected-fg: #1f5b3a;
    --opcion-selected-accent: #2f8f57;
}

.jerarquia-campos-activa .categoria-bloque > .actividad > .subcategoria-bloque.subcategoria-color-amarillo {
    background: #f8f0e1;
    --opcion-selected-bg: #efd49a;
    --opcion-selected-fg: #704d08;
    --opcion-selected-accent: #b27b0f;
}

.jerarquia-campos-activa .categoria-bloque > .actividad > .subcategoria-bloque.subcategoria-color-coral {
    background: #f8e9eb;
    --opcion-selected-bg: #f2b8be;
    --opcion-selected-fg: #6f2931;
    --opcion-selected-accent: #b24b58;
}

.jerarquia-campos-activa .categoria-bloque > .actividad > .subcategoria-bloque.subcategoria-color-turquesa {
    background: #e7f5f3;
    --opcion-selected-bg: #a8ddd6;
    --opcion-selected-fg: #1f5b55;
    --opcion-selected-accent: #2f8f85;
}

.jerarquia-campos-activa .item {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 8px;
/*     background: #ffffff;
 */}



.jerarquia-campos-activa .tabla-opciones-scroll {
    width: 100%;
}

.jerarquia-campos-activa .tabla-opciones-scroll table {
    min-width: 460px;
}

.jerarquia-campos-activa .form-group[id^="ej-item-"] textarea {
    background: #ffffff;
}

.jerarquia-campos-activa .categoria-bloque > .actividad > .titulo {
    margin: 0 0 8px;
    padding: 0 12px;
    color: #2b4861;
    font-size: 1.35em;
    font-weight: 700;
}

.jerarquia-campos-activa .subcategoria-bloque .subtitulo {
    margin: 0 0 8px;
    padding: 0 12px;
    color: #2e4f66;
    font-size: 1.1em;
    font-weight: 600;
}

.jerarquia-campos-activa .item .tituloItem {
    margin: 0 0 8px;
    padding: 0 12px;
    font-size: 0.95em;
    font-weight: 400;
    color: #333;
}

.jerarquia-campos-activa .item .tituloItem b,
.jerarquia-campos-activa .item .tituloItem strong {
    font-weight: 700;
}

.jerarquia-campos-activa .item .tituloItem i,
.jerarquia-campos-activa .item .tituloItem em {
    font-style: italic;
}

.jerarquia-campos-activa .tabla-opciones-scroll table td {
    vertical-align: middle;
}

.jerarquia-campos-activa .tabla-opciones-scroll .item-checkbox {
    display: block;
    width: 18px;
    height: 18px;
    margin: 0 auto;
}

.jerarquia-campos-activa .opcion-intervencion {
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.jerarquia-campos-activa .opcion-intervencion.is-selected {
    background: var(--opcion-selected-bg, #9ec5fe);
    color: #000;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--opcion-selected-accent, #3b82d6) 50%, white);
}

.jerarquia-campos-activa .opcion-intervencion input[type="checkbox"] {
    accent-color: var(--opcion-selected-accent, #3b82d6);
}

@media (max-width: 767.98px) {
    .jerarquia-campos-activa .categoria-bloque {
        margin: 14px -20px;
        padding: 10px 12px;
        border-radius: 0;
        /* background: #e8f0f9; */
    }

    .jerarquia-campos-activa .categoria-bloque > .actividad {
        gap: 10px;
    }

    .jerarquia-campos-activa .subcategoria-bloque {
        margin-top: 0;
        padding: 8px;
        border-radius: 8px;
    }

    .jerarquia-campos-activa .categoria-bloque > .actividad > .subcategoria-bloque.subcategoria-color-azul {
        background: #ecf5ff;
        --opcion-selected-bg: #9ec5fe;
        --opcion-selected-fg: #1c3d6b;
        --opcion-selected-accent: #3b82d6;
    }

    .jerarquia-campos-activa .categoria-bloque > .actividad > .subcategoria-bloque.subcategoria-color-verde {
        background: #eef9f2;
        --opcion-selected-bg: #a8ddbc;
        --opcion-selected-fg: #1f5b3a;
        --opcion-selected-accent: #2f8f57;
    }

    .jerarquia-campos-activa .categoria-bloque > .actividad > .subcategoria-bloque.subcategoria-color-amarillo {
        background: #faf3e7;
        --opcion-selected-bg: #efd49a;
        --opcion-selected-fg: #704d08;
        --opcion-selected-accent: #b27b0f;
    }

    .jerarquia-campos-activa .categoria-bloque > .actividad > .subcategoria-bloque.subcategoria-color-coral {
        background: #fceef0;
        --opcion-selected-bg: #f2b8be;
        --opcion-selected-fg: #6f2931;
        --opcion-selected-accent: #b24b58;
    }

    .jerarquia-campos-activa .categoria-bloque > .actividad > .subcategoria-bloque.subcategoria-color-turquesa {
        background: #edf9f7;
        --opcion-selected-bg: #a8ddd6;
        --opcion-selected-fg: #1f5b55;
        --opcion-selected-accent: #2f8f85;
    }



    .jerarquia-campos-activa .item {
        margin-top: 10px;
        padding: 6px 0;
        overflow: visible;
    }

    .jerarquia-campos-activa .item .tituloItem {
        padding: 0 8px;
    }

    .jerarquia-campos-activa .categoria-bloque > .actividad > .titulo,
    .jerarquia-campos-activa .subcategoria-bloque .subtitulo {
        padding: 0 8px;
    }

    .jerarquia-campos-activa .tabla-opciones-scroll {
        overflow: visible;
        margin: 0;
        padding: 0;
    }

    .jerarquia-campos-activa .tabla-opciones-scroll table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .jerarquia-campos-activa .tabla-opciones-scroll table th,
    .jerarquia-campos-activa .tabla-opciones-scroll table td {
        padding: 6px 2px;
        font-size: 0.78em;
        word-break: break-word;
    }

    .jerarquia-campos-activa .tabla-opciones-scroll .item-checkbox {
        width: 16px;
        height: 16px;
    }
}

.grilla-feedback.check,
.grilla-feedback.success {
    color: #2e7d32;
}

.grilla-feedback.warning {
    color: #ef912c;
}

.grilla-feedback.error {
    color: #c62828;
}
.form-group i {
    display: none;
}
.form-group.check i.fa-circle-check {
    display: inline-block;
    color: #09a913;
}
.form-group.warning i.fa-triangle-exclamation {
    display: inline-block;
    color: #ef912c;
}
.form-group.loading i.fa-gear {
    display: inline-block;
    color: #00449e;
}
.form-group.error i.fa-circle-xmark {
    display: inline-block;
    color: #ff3b3b;
}
.form-group.check input, 
.form-group.loading input,
.form-group.error input,
.form-group.warning input,
.form-group.check select, 
.form-group.loading select,
.form-group.error select,
.form-group.warning select {
    width: 96%;
}
.form-group.warning input {
    border: 2px solid #ef912c;
}
.form-group.error input {
    border: 2px solid #ff2c2c;
}

.form-group.warning div.error {
    font-size: 0.9em;
    color: #ef912c;
    margin-top: 5px;
}
.form-group.error div.error {
    font-size: 0.9em;
    color: red;
    margin-top: 5px;
}
.form-group.textarea .error, .checkbox-group {
    display: inline-block;
}
.form-group button > i {
    display: block;
}
.form-group textarea ~ .error,
.form-group .add-row ~ .error {
    display: inline-block;
    margin-left: 0.5em;
}
.form-group .add-row {
    clear: both;
}
@media only screen and (max-width: 575.98px) and (orientation: portrait) {
    .form-group.check input, 
    .form-group.loading input,
    .form-group.error input,
    .form-group.warning input,
    .form-group.check select, 
    .form-group.loading select,
    .form-group.error select,
    .form-group.warning select {
        width: 93%;
    }
}

.form-group-codigo button {
    background: none;
    color: #405da1;
    padding: 0;
    font-size: 1.3em;
    position: relative;
    bottom: 2px;
}
.form-group-codigo button#btn_provincia_codigo_copy {
    color: #09a913;
    margin-left: 0.2em;
}

.form-group-list-group {
    margin-bottom: 25px;
}
.form-group-list-group label {
    width: 50%;
}
.form-group-list-group label span {
    position: relative;
    top: 7px;
}
.form-group-list-group .icon-btn {
	background: none;
	color: #078d10;
	padding: 5px 7px;
	font-size: 0.9em;
	border: 1px solid #09a913;
    float: right;
    margin-bottom: 0.5em;
}
.form-group-list-group .icon-btn i {
    display: inline-block;
    color: #09a913;
}
.form-group-list-group .icon-btn:hover {
    background: #09a913;
    color: white;
}
.form-group-list-group .icon-btn:hover i {
    color: white;
}
.form-group-list-group input,
.form-group-list-group.form-group.error input,
.form-group-list-group.form-group.check input {
    width: 50%;
}
.form-group-list-group button {
    padding: 8px 9px;
}
.form-group-list-group .item-editable {
    margin-bottom: 5px;
}
.form-group-list-group .btn-delete {
    background: none;
    color: #ff3b3b;
}
.form-group-list-group .btn-delete:hover {
    background: none;
    color: red;
}
.form-group-list-group .nueva-orientadora,
.form-group-list-group .nuevo-jardin {
    margin-bottom: 0.5em;
    display: block;
}
.form-group-list-group.form-group.check i.fa-circle-check {
    display: none;
}

/**************************\
  Código
\**************************/

.codigo #evaluationForm {
    margin-top: 2em;
}

.codigo .form-group label {
    text-align: center;
}

.codigo .form-group input {
    font-size: 5em;
    width: 5em;
    text-align: center;
    margin: 0 auto;
    display: block;
}

.codigo button {
    margin: 0 auto;
    display: block;
}

.codigo #guardando {
    text-align: center;
}

.cuatrocientoscuatro h1 {
    font-weight: normal;
    font-size: 1.3em;
    line-height: 2em;
    text-align: center;
    width: 100%;
}

/**************************\
  Login
\**************************/

body.login button {
    display: block;
    margin: 1em auto;
}

/**************************\
  Add campania
\**************************/

body.add_campania textarea , body.grilla textarea {
    height: 15em;
}

body.add_campania input.codigo , body.grilla input.codigo {
    border: 0;
    font-size: 1.5em;
    padding: 0;
    margin-bottom: 1em;
    font-family: mono;
    width: 3em;
}

/**************************\
  Basic Modal Styles
\**************************/

.modal {
    font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;
  }
  
.modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal__container {
    background-color: #fff;
    padding: 30px;
    max-width: 500px;
    max-height: 100vh;
    border-radius: 4px;
    overflow-y: auto;
    box-sizing: border-box;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal__title {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.25;
    color: #00449e;
    box-sizing: border-box;
}

.modal-success .modal__title {
    color: #09a913;
}
.modal-error .modal__title {
    color: #a90909;
}

.modal__close {
    background: transparent;
    border: 0;
}

.modal__header .modal__close:before { content: "\2715"; }

.modal__content {
    margin-top: 2rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: rgba(0,0,0,.8);
}

.modal__btn {
    font-size: .875rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    background-color: #e6e6e6;
    color: rgba(0,0,0,.8);
    border-radius: .25rem;
    border-style: none;
    border-width: 0;
    cursor: pointer;
    -webkit-appearance: button;
    text-transform: none;
    overflow: visible;
    line-height: 1.15;
    margin: 0;
    will-change: transform;
    -moz-osx-font-smoothing: grayscale;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    transition: -webkit-transform .25s ease-out;
    transition: transform .25s ease-out;
    transition: transform .25s ease-out,-webkit-transform .25s ease-out;
}

.modal__btn:focus, .modal__btn:hover {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

.modal__btn-primary {
    background-color: #00449e;
    color: #fff;
}

.modal-success .modal__btn-primary  {
    background-color: #09a913;
}
.modal-error .modal__btn-primary  {
    background-color: #a90909;
}

/**************************\
Demo Animation Style
\**************************/
@keyframes mmfadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes mmfadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes mmslideIn {
from { transform: translateY(15%); }
    to { transform: translateY(0); }
}

@keyframes mmslideOut {
    from { transform: translateY(0); }
    to { transform: translateY(-10%); }
}

.micromodal-slide {
    display: none;
}

.micromodal-slide.is-open {
    display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
    animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
    animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
    animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
    animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

/**************************\
  Index
\**************************/

body.index-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

body.index-page #contenedor-principal {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

body.index-page .hero-section {
    text-align: center;
    margin-bottom: 50px;
}

body.index-page .hero-section img {
    max-width: 150px;
    margin-bottom: 20px;
}

body.index-page .hero-section h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin: 20px 0;
}

body.index-page .hero-section p {
    color: #34495e;
    font-size: 1.1em;
    margin: 10px 0;
}

body.index-page .tarjeta {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.index-page .tarjeta h2 {
    color: #2c3e50;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.index-page .tarjeta i {
    color: #3498db;
    font-size: 1.5em;
}

body.index-page .tarjeta p {
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
}

body.index-page .tarjeta ul {
    color: #555;
    line-height: 1.8;
    margin: 15px 0;
}

body.index-page .tarjeta li {
    margin: 8px 0;
}

body.index-page .botones-accion {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

body.index-page .btn {
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.index-page .btn-primary {
    background: #3498db;
    color: white;
}

body.index-page .btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.index-page .btn-secondary {
    background: #95a5a6;
    color: white;
}

body.index-page .btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.index-page .footer-info {
    text-align: center;
    color: #7f8c8d;
    margin-top: 50px;
    padding: 20px;
    border-top: 1px solid #ecf0f1;
}

body.index-page .feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 600px) {
    body.index-page .feature-grid {
        grid-template-columns: 1fr;
    }

    body.index-page .hero-section h1 {
        font-size: 1.8em;
    }

    body.index-page .botones-accion {
        flex-direction: column;
    }

    body.index-page .btn {
        justify-content: center;
        width: 100%;
    }
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
    will-change: transform;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN – Gestión de Grillas
   ═══════════════════════════════════════════════════════════════════════════ */

/* Botones genéricos admin */
.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: none;
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.3;
    transition: background 0.15s, opacity 0.15s;
}
.btn-admin:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary  { background: #2563eb; color: #fff; }
.btn-primary:hover  { background: #1d4ed8; }
.btn-secondary { background: #64748b; color: #fff; }
.btn-secondary:hover { background: #475569; }
.btn-danger   { background: #dc2626; color: #fff; }
.btn-danger:hover   { background: #b91c1c; }
.btn-edit     { background: #0891b2; color: #fff; }
.btn-edit:hover     { background: #0e7490; }
.btn-clone    { background: #7c3aed; color: #fff; }
.btn-clone:hover    { background: #6d28d9; }
.btn-sm { padding: 4px 9px; font-size: 0.82rem; }

/* Link volver */
.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #555;
    text-decoration: none;
    font-size: 0.88rem;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f8f8f8;
}
.btn-volver:hover { background: #eee; }

/* Container admin grillas */
#adminGrillasContainer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.admin-toolbar {
    margin-bottom: 18px;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Tabla admin */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #dde;
    border-radius: 6px;
    overflow: hidden;
    font-size: 0.9rem;
}
.admin-table thead th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid #cbd5e1;
    white-space: nowrap;
}
.admin-table tbody tr { border-bottom: 1px solid #e2e8f0; }
.admin-table tbody tr:last-child { border-bottom: none; }
.admin-table tbody tr:hover { background: #f8fafc; }
.admin-table td { padding: 8px 12px; vertical-align: middle; }
.td-id { color: #94a3b8; font-size: 0.8rem; width: 40px; }
.td-acciones { white-space: nowrap; display: flex; gap: 6px; flex-wrap: wrap; }
.grilla-desactivada { background: #fff1f2; }
.grilla-desactivada .td-nombre,
.grilla-desactivada .td-modulo { color: #b91c1c; }
.grilla-desactivada .td-id { color: #fca5a5; }
.prov-deshabilitada { background: #fff1f2; }
.prov-deshabilitada td { color: #b91c1c; }

/* Toggle switch disponibilidad */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
    cursor: pointer;
}
.switch-toggle input { opacity: 0; width: 0; height: 0; }
.switch-slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 22px;
    transition: background 0.2s;
}
.switch-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.switch-toggle input:checked + .switch-slider { background: #22c55e; }
.switch-toggle input:checked + .switch-slider::before { transform: translateX(20px); }

/* Modal admin */
.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-modal[hidden] { display: none; }
.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}
.admin-modal-box {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 520px;
    margin: 16px;
    padding: 28px;
    z-index: 1;
}
.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.admin-modal-header h2 { margin: 0; font-size: 1.15rem; color: #1e293b; }
.admin-modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #64748b;
    padding: 4px;
    line-height: 1;
}
.admin-modal-close:hover { color: #1e293b; }
.admin-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* Formularios admin */
.admin-form-group {
    margin-bottom: 14px;
}
.admin-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 5px;
    color: #334155;
}
.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.9rem;
    box-sizing: border-box;
}
.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.req { color: #dc2626; }
.admin-form-hint {
    font-size: 0.83rem;
    color: #64748b;
    margin: 10px 0 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

/* Error / mensajes */
.admin-error {
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 4px;
    padding: 12px 16px;
}
.msg-guardado {
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 4px;
    margin-left: 12px;
}
.msg-ok    { color: #166534; background: #dcfce7; }
.msg-error { color: #991b1b; background: #fee2e2; }

/* ─── Editor de grilla ──────────────────────────────── */
#editorContainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

.editor-form {}

.editor-section {
    background: #fff;
    border: 1px solid #dde;
    border-radius: 8px;
    padding: 22px 24px;
    margin-bottom: 22px;
}
.editor-section h2 {
    margin: 0 0 16px;
    font-size: 1rem;
    color: #1e293b;
    font-weight: 700;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.editor-meta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.editor-meta-row .flex-grow { flex: 1 1 260px; }
.editor-meta-row .admin-form-group { flex: 0 1 200px; }

/* Banner: grilla con observaciones */
.obs-warning-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    padding: 10px 16px;
    margin-bottom: 16px;
    color: #92400e;
    font-size: 0.9rem;
}
.obs-warning-banner span { flex: 1 1 200px; }
.btn-obs-clonar {
    background: #d97706;
    color: #fff;
    border: none;
    white-space: nowrap;
}
.btn-obs-clonar:hover { background: #b45309; color: #fff; }

.editor-items-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}
.editor-items-header h2 { margin: 0; border: none; padding: 0; }

.editor-tipo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tipo-badge {
    font-size: 0.75rem;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 3px 10px;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.editor-table-wrapper {
    overflow-x: auto;
}

.editor-items-table .input-nombre {
    width: 100%;
    min-width: 180px;
    padding: 5px 7px;
    font-size: 0.87rem;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    resize: vertical;
    box-sizing: border-box;
    field-sizing: content;
    min-height: 2.4em;
}
.editor-items-table .input-nombre:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.12);
}
.editor-items-table select {
    width: 100%;
    padding: 5px 6px;
    font-size: 0.83rem;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    box-sizing: border-box;
}

.orden-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.orden-num {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}
.btn-orden {
    background: none;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    padding: 1px 5px;
    cursor: pointer;
    color: #64748b;
    font-size: 0.7rem;
    line-height: 1.4;
}
.btn-orden:hover { background: #f1f5f9; }

.editor-add-item {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.hint-sintesis {
    font-size: 0.82rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.editor-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 0;
    position: sticky;
    bottom: 0;
    background: rgba(248,250,252,0.95);
    backdrop-filter: blur(4px);
    border-top: 1px solid #e2e8f0;
    z-index: 10;
}

/* Panel list: ajuste titulo flex */
.panel-grilla-section { margin-bottom: 24px; }



/* ─── Resumen de cambios (modal confirmación) ──────────── */
.resumen-cambios { padding: 4px 0 12px; }
.resumen-lista { margin: 0; padding: 0 0 0 18px; font-size: 0.9rem; line-height: 1.8; }
.resumen-del { color: #dc2626; text-decoration: line-through; }
.tag-nuevo { background: #dcfce7; color: #166534; border-radius: 10px; padding: 1px 8px; font-size: 0.8rem; font-weight: 600; }
.tag-eliminado { background: #fee2e2; color: #991b1b; border-radius: 10px; padding: 1px 8px; font-size: 0.8rem; font-weight: 600; }

/* ─── Página de metadatos ────────────────────────────────── */
#metadataContainer {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px 60px;
}
.metadata-section {
  background: #fff;
  border: 1px solid #dde;
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 28px;
}
.metadata-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}
.metadata-section-header h2 {
  margin: 0;
  font-size: 1rem;
  color: #1e293b;
  font-weight: 700;
}
.grupo-categorias {
  margin-bottom: 22px;
}
.grupo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0 8px;
  font-size: 0.95rem;
  color: #334155;
}

/* ─── Admin: restore button styles overridden by body.list button ─────────── */
/* body.list button (0,1,2) beats .btn-primary etc. (0,1,0) on background/padding/font-size */
body.list .btn-admin {
  padding: 7px 14px;
  font-size: 0.88rem;
  line-height: 1.3;
}
body.list .btn-admin.btn-sm {
  padding: 4px 9px;
  font-size: 0.82rem;
}
body.list .btn-admin.btn-primary  { background: #2563eb; color: #fff; }
body.list .btn-admin.btn-primary:hover  { background: #1d4ed8; }
body.list .btn-admin.btn-secondary { background: #64748b; color: #fff; }
body.list .btn-admin.btn-secondary:hover { background: #475569; }
body.list .btn-admin.btn-danger   { background: #dc2626; color: #fff; }
body.list .btn-admin.btn-danger:hover   { background: #b91c1c; }
body.list .btn-admin.btn-edit     { background: #0891b2; color: #fff; }
body.list .btn-admin.btn-edit:hover     { background: #0e7490; }
body.list .btn-admin.btn-clone    { background: #7c3aed; color: #fff; }
body.list .btn-admin.btn-clone:hover    { background: #6d28d9; }
body.list .btn-orden {
  padding: 1px 5px;
  font-size: 0.7rem;
}
body.list .admin-modal-close {
  padding: 4px;
  font-size: 1.2rem;
  color: #64748b;
}

/* ─── Admin: jardines / importación badges ──────────────────────────────── */
.badge-danger {
  display: inline-block;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  font-size: .78em;
  padding: 1px 7px;
  font-weight: 600;
}
.badge-warning {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  border-radius: 4px;
  font-size: .78em;
  padding: 1px 7px;
  font-weight: 600;
}

/* ─── Importar CSV: inputs editables en vista previa ────────────────────── */
.previa-input {
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  padding: 3px 6px;
  font-size: inherit;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  background: #f8fafc;
  transition: border-color .15s;
}
.previa-input:focus {
  outline: none;
  border-color: #0ea5e9;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(14,165,233,.15);
}

/* ─── Admin: búsqueda y selects inline ──────────────────────────────────── */
.admin-search,
.admin-select {
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #fff;
  color: #1e293b;
  outline: none;
}
.admin-search:focus,
.admin-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}

/* ─── Admin: provincias badges ──────────────────────────────────────────── */
.badge-habilitado {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
  border-radius: 4px;
  font-size: .82em;
  padding: 2px 8px;
  font-weight: 600;
}
.badge-deshabilitado {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: .82em;
  padding: 2px 8px;
  font-weight: 600;
}

/* ─── Input con botón toggle (contraseña) ───────────────────────────────── */
.input-with-toggle {
  display: flex;
  align-items: stretch;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
}
.input-with-toggle input {
  border: none;
  border-radius: 0;
  flex: 1;
  margin: 0;
}
.input-with-toggle input:focus {
  outline: none;
  box-shadow: none;
}
.input-with-toggle:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}
.btn-toggle-pass {
  background: #f8fafc;
  border: none;
  border-left: 1px solid #cbd5e1;
  padding: 0 12px;
  cursor: pointer;
  color: #64748b;
  font-size: 0.95rem;
}
.btn-toggle-pass:hover { background: #f1f5f9; color: #1e293b; }

.pass-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.btn-sm {
  font-size: 0.82rem;
  padding: 4px 10px;
}

.pass-action-hint {
  font-size: 0.78em;
  opacity: 0.7;
  font-style: italic;
}

.admin-form-hint-inline {
  font-size: 0.82em;
  color: #64748b;
  font-weight: 400;
  margin-left: 4px;
}

/* ─── Logo provincia (upload) ───────────────────────────────────────────── */
.logo-aviso {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  color: #92400e;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.logo-aviso i { color: #f59e0b; flex-shrink: 0; }
.logo-preview-wrap {
  min-height: 60px;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.logo-preview {
  max-height: 80px;
  max-width: 220px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
  padding: 4px;
  object-fit: contain;
}
.logo-sin-logo {
  font-size: 0.88rem;
  color: #94a3b8;
  font-style: italic;
}
.logo-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
/* El file input real queda oculto; el label actúa como botón */
.input-logo-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.logo-upload-label {
  cursor: pointer;
}
.logo-upload-status {
  font-size: 0.85rem;
  color: #64748b;
}
.logo-upload-status.ok  { color: #16a34a; }
.logo-upload-status.error { color: #dc2626; }

/* ─── Panel: login card ─────────────────────────────────────── */
.provincial-login-card {
  max-width: 420px;
  margin: 60px auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  text-align: center;
}
.provincial-login-card h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #1e293b;
}
.provincial-login-card p {
  color: #475569;
  margin: 0 0 20px;
  font-size: 0.95rem;
}
.provincial-login-card form {
  text-align: left;
}
.provincial-login-icon {
  font-size: 2.4rem;
  color: #2563eb;
  margin-bottom: 14px;
}
.error-msg {
  color: #c0392b;
  font-size: 0.9em;
  margin: 4px 0 0;
}

