﻿/*
=========================================================
MICARQ DESIGN SYSTEM
Core Styles
=========================================================
*/

/* =====================================================
   VARIABLES
===================================================== */

:root {

    /* IDENTIDAD MICARQ */
    --ink: #383844;
    --ink-deep: #232329;
    --panel: #2c2c35;
    --blueprint: #5C8FB3;
    --blueprint-hover: #4A7898;
    --blueprint-dim: #5C8FB355;
    --amber: #E8A23A;
    --amber-hover: #d4a847;
    --steel: #A9B4BC;

    /* ESTADOS */
    --danger: #dc3545;
    --danger-hover: #bb2d3b;
    --success: #28a745;
    --success-hover: #218838;

    /* BORDES */
    --border: #ffffff18;

    /* SUPERFICIES CLARAS */
    --bg-light: #f5f7fa;
    --surface-light: #f8f9fa;
    --text-light-primary: #333;
    --text-light-secondary: #6c757d;
    --hover-light: #e9ecef;

    /* FIRMA */
    --firma: #ff0751;
    --firma-hover: #ff0040;

    /* TEXTO */
    /*--text-dark: #1d1a12;*/
    --text-dark: #EDEFF2;
    --text-white: #ffffff;
}


/* =====================================================
   RESET
===================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}


/* =====================================================
   BODY
===================================================== */

body {
    font-family:
        'IBM Plex Sans',
        Arial,
        sans-serif;

    color: var(--text-white);

    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 39px,
            var(--blueprint-dim) 40px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 39px,
            var(--blueprint-dim) 40px
        ),
        var(--ink);
}


/* =====================================================
   HEADER MICARQ
===================================================== */

.mic-header,
header {
    background: var(--ink-deep);
    padding: 25px;
    text-align: left;
    border-bottom:
        1px solid var(--border);

    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
}

header h1,
.mic-header h1 {
    margin: 0 0 8px;
    font-family: 'Space Grotesk';
    font-size: 1.4rem;
}

.mic-header h1 .mic-symbol {
    color: var(--amber);
}

.mic-header nav {
    margin-left: auto;
}

.mic-header nav a {
    color: var(--steel);
    text-decoration: none;
}

.mic-header nav a:hover {
    color: var(--amber);
}

/* =====================================================
   HEADER MICARQ — TEXTOS
===================================================== */

.mic-header h1 {
    color: var(--text-white);
}

.mic-header p {
    margin: 0;
    color: var(--steel);
}

.mic-header h1:first-letter {
    color: var(--amber);
}


/* =====================================================
   NAVIGATION
===================================================== */

.mic-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.mic-nav-link,
.mic-nav a,
.dashboard-header nav a {
    color: var(--steel);
    text-decoration: none;
    font-family:
        'IBM Plex Mono',
        monospace;
    font-size: .9rem;
}

.mic-nav-link:visited,
.mic-nav a:visited,
.dashboard-header nav a:visited {
    color: var(--steel);
}

.mic-nav-link:hover,
.mic-nav a:hover,
.dashboard-header nav a:hover {
    color: var(--amber);
    background: rgba(255, 255, 255, 0.15);
}


/* =====================================================
   CONTAINERS
===================================================== */

.mic-container,
.container {
    width: calc(100% - 30px);
    width: 100%;
    margin: 40px 0px;
    padding: 30px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, .3);
    box-sizing: border-box;
}


/* =====================================================
   FORMS
===================================================== */

.form-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(320px, 1fr)
        );
    gap: 25px;
}

.full-width {
    grid-column: 1 / -1;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label,
.form-group label,
.mb-3 label,
.input-container label,
.presupuesto-input-group label,
.filtro-estatus label {
    display: block;
    color: var(--steel);
    font-family:
        'IBM Plex Sans',
        sans-serif;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .5rem;
}


/* =====================================================
   INPUTS
===================================================== */

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
select,
textarea {

    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-white);
    font-family:
        'IBM Plex Sans',
        sans-serif;
    font-size: .875rem;
    line-height: 1.4;

    transition:
        background .2s,
        border-color .2s,
        box-shadow .2s;
}

.form-control {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: .875rem;
    line-height: 1.4;
}

.form-control-sm,
.form-select-sm {
    min-height: 32px;
    padding: 4px 10px;
    font-size: .8125rem;
    border-radius: 4px;
}


/* =====================================================
   SELECT
===================================================== */

select {
    padding-right: 36px;

    background-image:
        url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23A9B4BC' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position:
        right 8px center;
    background-size: 16px;
    appearance: none;
}

.form-select {
    appearance: none;

    background-image:
        url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23A9B4BC' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position:
        right 8px center;
    background-size: 16px;
    padding-right: 36px;
}

.mic-select {
    width: 100%;
    max-width: 100%;
}


/* =====================================================
   TEXTAREA
===================================================== */

textarea {
    min-height: 100px;
    resize: vertical;
}


/* =====================================================
   PLACEHOLDER
===================================================== */

::placeholder {
    color: var(--text-light-secondary);
    opacity: .7;
}


/* =====================================================
   FOCUS
===================================================== */

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--blueprint);

    box-shadow:
        0 0 0 3px
        rgba(92, 143, 179, .25);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline:
        2px solid var(--blueprint);
    outline-offset: 2px;
}


/* =====================================================
   READONLY / DISABLED
===================================================== */

input[readonly],
select[readonly],
textarea[readonly],
input:disabled,
select:disabled,
textarea:disabled,
.form-control[readonly],
.form-control:disabled,
.form-select[readonly],
.form-select:disabled {
    background: var(--hover-light);
    color: var(--text-light-primary);
    opacity: 1;
    cursor: not-allowed;
}


/* =====================================================
   CHECKBOX / RADIO
===================================================== */

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    min-height: auto;
    padding: 0;
    accent-color: var(--amber);
    vertical-align: middle;
}

.form-check-input {
    accent-color: var(--amber);
    border-color: var(--border);
}

.form-check-input:checked {
    background-color: var(--amber);
    border-color: var(--amber);
}

.form-check-input:focus {
    border-color: var(--blueprint);

    box-shadow:
        0 0 0 3px
        rgba(92, 143, 179, .25);
}


/* =====================================================
   FILE INPUT
===================================================== */

input[type="file"] {
    padding: 6px 10px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-white);
    font-size: .875rem;
}

input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 4px 10px;
    background: var(--amber);
    color: var(--text-dark);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: .75rem;
    cursor: pointer;

    transition:
        background .2s;
}

input[type="file"]::file-selector-button:hover {
    background: var(--amber-hover);
}


/* =====================================================
   INPUTS ESPECIALES
===================================================== */

input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="number"],
input[type="email"],
input[type="search"],
input[type="password"],
input[type="text"],
input[type="url"],
input[type="tel"] {
}


/* =====================================================
   COLOR / WIDTH INPUTS
===================================================== */

.color-picker-input {
    width: 50px;
    height: 32px;
    min-height: 32px;
    padding: 4px;
    border-radius: 4px;
}

.line-width-input {
    width: 70px;
    min-height: 32px;
    padding: 4px 8px;
    border-radius: 4px;
}


/* =====================================================
   INPUT CONTAINERS
===================================================== */

.input-container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: stretch;
    margin-bottom: .5rem;
}

.presupuesto-input-group {
    display: flex;
    gap: 6px;
    align-items: stretch;
    flex-wrap: wrap;
}


/* =====================================================
   FILTRO ESTATUS
===================================================== */

.filtro-estatus {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.filtro-estatus select {
    min-height: 38px;
    padding:
        8px 36px 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text-white);
    font-size: .875rem;
    appearance: none;
}


/* =====================================================
   BUTTON SYSTEM MICARQ
===================================================== */

.mic-btn,
.btn-mic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    min-height: 38px;
    background: var(--amber);
    color: var(--text-dark);
    border: none;
    border-radius: 6px;
    font-family:
        'IBM Plex Sans',
        sans-serif;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;

    transition:
        background .2s,
        transform .2s,
        box-shadow .2s;
}

.mic-btn:hover,
.btn-mic:hover {
    background: var(--amber-hover);
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(232, 162, 58, .3);
}

.mic-btn-primary {
    background: var(--amber);
}

.mic-btn-secondary {
    background: var(--steel);
    color: var(--text-dark);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    min-height: 38px;
    background: var(--ink);
    color: var(--text-white);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family:
        'IBM Plex Sans',
        sans-serif;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;

    transition:
        background .2s,
        transform .2s,
        box-shadow .2s;
}

.btn-secondary:hover {
    background: var(--blueprint);
    color: var(--text-white);
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, .25);
}


/* =====================================================
   SMALL BUTTON
===================================================== */

.btn-mic-sm {
    padding: 6px 12px;
    min-height: 32px;
    font-size: .75rem;
}


/* =====================================================
   BUTTON VARIANTS
===================================================== */

.btn-mic-danger,
.btn-mic-delete {
    background: var(--danger);
    color: var(--text-white);
}

.btn-mic-danger:hover,
.btn-mic-delete:hover {
    background: var(--danger-hover);
}

.btn-mic-success {
    background: var(--success);
    color: var(--text-white);
}

.btn-mic-success:hover {
    background: var(--success-hover);
}

.btn-mic-edit {
    background: var(--blueprint);
    color: var(--text-white);
}

.btn-mic-edit:hover {
    background: var(--blueprint-hover);
}


/* =====================================================
   SECTIONS
===================================================== */

.section-title {
    color: var(--amber);
    font-family: 'Space Grotesk';
    font-size: 18px;
    border-bottom:
        1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 15px;
}


/* =====================================================
   CHECKBOX SYSTEM
===================================================== */

.checkbox-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(220px, 1fr)
        );
    gap: 12px;
    max-height: 250px;
    overflow-y: auto;
    padding: 15px;
    background: var(--panel);
    border:
        1px solid var(--border);
    border-radius: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
}

.checkbox-item:hover {
    background: #ffffff10;
}


/* =====================================================
   TABLES
===================================================== */

.table-container,
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--ink-deep);
    color: var(--amber);
}

th,
td {
    border-bottom:
        1px solid var(--border);
    padding: .8rem 1rem;
    text-align: left;
}


/* =====================================================
   DASHBOARD
===================================================== */

.dashboard-content {
    padding: 10px;
}

.admin-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


/* =====================================================
   ALERTS
===================================================== */

.error {
    color: var(--text-white);

    background:
        rgba(220, 53, 69, .20);

    border:
        1px solid var(--danger);

    padding: 15px;
    border-radius: 8px;
}


/* =====================================================
   FOOTER
===================================================== */

footer,
.dashboard-footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-light-secondary);
    font-size: .9rem;
    margin-top: 2rem;
}


/* =====================================================
   RESPONSIVE 768
===================================================== */

@media (max-width: 768px) {

    .container,
    .mic-container {
        width: 100%;
        margin: 15px 0;
        padding: 20px;
        box-sizing: border-box;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .input-container,
    .presupuesto-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .input-container > *,
    .presupuesto-input-group > * {
        width: 100%;
    }

    .mic-btn {
        width: 100%;
    }

    .mic-nav {
        flex-direction: column;
    }

    .dashboard-header,
    header {
        flex-direction: column;
        text-align: center;
    }

    .dashboard-header nav,
    header nav {
        margin-top: .8rem;
    }

    .cliente-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .edit-button,
    .orden-button,
    .caratula-button,
    .acta-button,
    .submit-button,
    .start-button,
    .toggle-button {
        width: 100%;
        margin: 6px 0;
    }

    .cliente-header,
    .filtro-estatus,
    .acciones,
    .actions,
    .actions-top {
        flex-wrap: wrap;
        gap: .5rem;
    }

    #modalGeneradores .modal-dialog {
        max-width: 95% !important;
        margin: 1rem auto !important;
    }

    .btn-eliminar-responsive {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
        font-size: 10px;
    }
}


/* =====================================================
   RESPONSIVE 576
===================================================== */

@media (max-width: 576px) {

    .btn-subir-factura,
    .btn-descargar-factura,
    .btn-estado-pago,
    .personal-btn,
    .presaldada-btn,
    .btn-presupuestado,
    .btn-presupuesto-autorizado {
        width: 100%;
        max-width: none;
        margin: 4px 0;
    }

    .cliente-header,
    .filtro-estatus,
    .acciones,
    .actions,
    .actions-top {
        flex-wrap: wrap;
        gap: .5rem;
    }

    .reparticion-badge,
    .total-gastos-badge {
        min-width: auto;
    }

    .td-ancho-grande,
    .td-ancho-mediano,
    .td-ancho-pequeno {
        min-width: auto;
    }
}


/* =====================================================
   COMPATIBILITY LAYER
===================================================== */

.edit-button,
.orden-button,
.caratula-button,
.acta-button,
.submit-button,
.start-button,
.toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    min-height: 38px;
    background: var(--amber);
    color: var(--ink-deep);
    border: 1px solid var(--amber);
    border-radius: 6px;

    font-family:
        'IBM Plex Sans',
        sans-serif;

    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;

    transition:
        background .2s,
        transform .2s,
        box-shadow .2s;
}

.edit-button:hover,
.orden-button:hover,
.caratula-button:hover,
.acta-button:hover,
.submit-button:hover,
.start-button:hover,
.toggle-button:hover {
    background: var(--amber-hover);
    color: var(--ink-deep);
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(232, 162, 58, .3);
}

.edit-button {
    background: var(--blueprint);
    color: var(--text-white) !important;
}

.orden-button {
    background: var(--amber);
}

.caratula-button {
    background: var(--blueprint);
    color: var(--text-white) !important;
}

.acta-button {
    background: var(--ink);
    color: var(--text-white) !important;

    border:
        1px solid var(--border);
}

.submit-button {
    background: var(--amber);
}

.start-button {
    background: var(--blueprint);
    color: var(--text-white) !important;
}

/* =====================================================
   TOGGLE BUTTONS — MICARQ
===================================================== */

/* ACTIVAR — VERDE */
.toggle-button.activo {
    background: var(--success);
    border-color: var(--success);
    color: var(--text-white) !important;
}

.toggle-button.activo:hover {
    background: var(--success);
    border-color: var(--success);
    color: var(--text-white) !important;
}

/* DESACTIVAR — ROJO */
.toggle-button.inactivo {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--text-white) !important;
}

.toggle-button.inactivo:hover {
    background: var(--danger-hover);
    border-color: var(--danger-hover);
    color: var(--text-white) !important;
}


/* =====================================================
   ENTIDADES — FILA HORIZONTAL
===================================================== */

.entidad-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-bottom: 8px;
}

.entidad-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.entidad-info strong {
    white-space: nowrap;
}

.entidad-municipio {
    white-space: nowrap;
}

.entidad-estado {
    white-space: nowrap;
}

.form-toggle-entidad {
    flex-shrink: 0;
    margin: 0;
}

.form-toggle-entidad .toggle-button {
    width: auto;
    margin: 0;
}

a.edit-button,
a.orden-button,
a.caratula-button,
a.acta-button {
    margin-left: 8px;
}


/* =====================================================
   PANELS / ACTIONS
===================================================== */

.panel-tag {
    position: absolute;
    top: -12px;
    left: 25px;

    background: var(--ink-deep);

    padding: 0 10px;

    font-family: 'IBM Plex Mono';
    font-size: 11px;
    color: var(--blueprint);
    letter-spacing: .08em;
}

.actions,
.actions-top {
    display: flex;
    gap: .75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.form-panel {
    background: var(--panel);

    border:
        1px solid var(--border);

    border-radius: 10px;
    padding: 25px;

    box-shadow:
        0 20px 50px
        rgba(0, 0, 0, .3);

    font-family: Arial, sans-serif;
    font-weight: 400;
}

.acciones {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.municipio-section {
    margin-top: 20px;
    padding: 15px;

    background: var(--panel);

    border:
        1px solid var(--border);

    border-radius: 8px;
}

.municipio-section h4 {
    color: var(--amber);
    font-family: 'Space Grotesk';
    font-size: 16px;
    margin-bottom: 10px;

    border-bottom:
        1px solid var(--border);

    padding-bottom: 8px;
}

.section-body-justify {
    text-align: justify;
    line-height: 1.6;
}


/* =====================================================
   FIRMAR ACTA
===================================================== */

.hidden {
    display: none;
}

.camera-preview {
    width: 100%;
    max-width: 480px;

    background: var(--panel);

    border:
        1px solid var(--border);

    border-radius: 8px;
    margin-bottom: 15px;
}

.signature-canvas {
    width: 100%;
    max-width: 480px;

    background: #1a1a22;

    border:
        1px solid var(--border);

    border-radius: 8px;

    cursor: crosshair;

    margin-bottom: 15px;
}


/* =====================================================
   LISTAS
===================================================== */

.actions-center {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    text-align: center;
}

.action-links {
    display: flex;
    gap: 8px;
    min-width: 120px;
}

.button-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.empty-state {
    color: var(--steel);
    text-align: center;
    padding: 30px;
}

.status-activo {
    color: var(--success);
    font-weight: 600;
}

.status-inactivo {
    color: var(--danger);
    font-weight: 600;
}

.btn-danger,
.btn-censurar {
    background: var(--danger);
    color: var(--text-white);
}

.btn-danger:hover,
.btn-censurar:hover {
    background: var(--danger-hover);
}

.btn-reactivar {
    background: var(--success);
    color: var(--text-white);
}

.btn-reactivar:hover {
    background: var(--success-hover);
}

.warning-box {
    color: var(--text-white);

    background:
        rgba(232, 162, 58, .15);

    border:
        1px solid var(--amber);

    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}


/* =====================================================
   STATUS BOXES
===================================================== */

.status-complete {
    background: #d1e7dd;
    color: #0f5132;
    padding: 8px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}


/* =====================================================
   MATERIALES
===================================================== */

.materiales-container {
    max-height: 180px;
    overflow-y: auto;

    border:
        1px solid #dcdcdc;

    border-radius: 8px;
    padding: 8px;
    background: #fafafa;
}

.total-materiales {
    margin-top: 8px;
    padding: 8px;
    border-radius: 8px;

    background: var(--ink-deep);
    color: var(--text-white);

    text-align: center;
    font-weight: bold;
}


/* =====================================================
   CONTACTO
===================================================== */

.sq {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: var(--amber);
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 8px;
}

.brand {
    font-family: 'Space Grotesk';
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--amber);
    margin-bottom: 10px;
}

.contact-info {
    color: var(--steel);
    margin-bottom: 20px;
    line-height: 1.6;
}


/* =====================================================
   DASHBOARD SUPERVISOR
===================================================== */

.dashboard-header {
    background: var(--ink-deep);
    color: var(--text-white);
    padding: 1.2rem 2rem;

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, .15);

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    margin: 0;
    font-family: 'Space Grotesk';
    font-size: 1.8rem;
    color: #FFFFFF;
}

.dashboard-header h1 .diamond,
.dashboard-header h1 .symbol,
.dashboard-header h1 .mic-symbol {
    color: var(--amber);
}

.dashboard-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.dashboard-panel,
.admin-panel {
    background: var(--surface-light);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, .1);
}

.admin-panel h3,
.dashboard-panel h3 {
    margin-top: 0;
    color: var(--blueprint);

    border-bottom:
        2px solid var(--blueprint);

    padding-bottom: .5rem;
}


/* =====================================================
   DASHBOARD TABLES
===================================================== */

.ordenes-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}

.ordenes-table th,
.ordenes-table td {
    padding: .8rem 1rem;
    text-align: left;

    border-bottom:
        1px solid #dee2e6;
}

.ordenes-table th {
    background: var(--blueprint);
    color: var(--text-white);
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: nowrap;
}


/* =====================================================
   ADMIN MENU
===================================================== */

.dashboard-admin-menu {
    list-style: none;
    padding: 0;

    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(220px, 1fr)
        );

    gap: 1rem;
}

.dashboard-admin-menu li a {
    display: block;
    padding: 1rem;

    background: var(--panel);

    border:
        1px solid var(--border);

    border-radius: 8px;

    text-decoration: none;
    color: var(--steel);
    font-weight: 600;

    transition:
        background .2s,
        color .2s,
        transform .2s;
}

.dashboard-admin-menu li a:hover {
    background: var(--blueprint);
    color: var(--text-white);
    transform: translateY(-2px);

    box-shadow:
        0 4px 12px
        rgba(92, 143, 179, .25);
}

@media (max-width: 992px) {

    .dashboard-admin-menu {
        grid-template-columns:
            repeat(
                auto-fill,
                minmax(180px, 1fr)
            );
    }

}


/* =====================================================
   CLIENTE
===================================================== */

.cliente-section {
    background: var(--surface-light);
    border-radius: 10px;
    margin-bottom: 2rem;
    padding: 1.5rem;

    box-shadow:
        0 2px 12px
        rgba(0, 0, 0, .08);
}

.cliente-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cliente-header h4 {
    margin: 0;
    color: var(--text-light-primary);
}

.cliente-titulo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.cliente-titulo h4 {
    margin: 0;
}


/* =====================================================
   DASHBOARD TOGGLE
===================================================== */

.dashboard-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    min-height: 38px;

    background: var(--success);
    color: var(--text-white);

    border: none;
    border-radius: 6px;

    font-family:
        'IBM Plex Sans',
        sans-serif;

    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;

    transition:
        background .2s,
        transform .2s,
        box-shadow .2s;
}

.dashboard-toggle-button:hover {
    background: var(--success-hover);
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(40, 167, 69, .3);
}

.ordenes-table {
    overflow-x: auto;
}

.dashboard-table {
    overflow-x: auto;
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}

.obra-limitada {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.2em;
    max-height:
        calc(1.2em * 4);
}

.dashboard-table th,
.dashboard-table td {
    padding: .8rem 1rem;
    text-align: left;

    border-bottom:
        1px solid #dee2e6;
}


/* =====================================================
   DASHBOARD TABLE HOVER
===================================================== */

tr:hover {
    background: #ffffff12;
}

.dashboard-table tr:hover {
    background: #e9ecef;
}


/* =====================================================
   STATUS DE ORDEN
===================================================== */

.status-por-ejecutar {
    background: #ffcccc;
    color: #c00;
}

.status-en-ejecucion {
    background: var(--blueprint);
    color: #024e9e;
}

.status-finalizada {
    background: #d4edda;
    color: #155724;
}

.status-cancelada {
    background: #e2e3e5;
    color: #383d41;
}


/* =====================================================
   ACTION BUTTONS
===================================================== */

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    min-height: 38px;

    border: none;
    border-radius: 6px;

    font-family:
        'IBM Plex Sans',
        sans-serif;

    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-white);

    cursor: pointer;

    transition:
        background .2s,
        transform .2s,
        box-shadow .2s;
}

.personal-btn {
    width: 140px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 8px 16px;
    min-height: 38px;

    border: none;
    border-radius: 6px;

    font-family:
        'IBM Plex Sans',
        sans-serif;

    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    cursor: pointer;

    transition:
        background .2s,
        transform .2s,
        box-shadow .2s;
}

.personal-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, .25);
}

.start-btn {
    background: var(--success);
}

.start-btn:hover {
    background: var(--success-hover);
    transform: translateY(-2px);
}

.finish-btn {
    background: var(--danger);
}

.finish-btn:hover {
    background: var(--danger-hover);
    transform: translateY(-2px);
}


/* =====================================================
   DASHBOARD ACTION BUTTONS
===================================================== */

.download-btn,
.edit-btn,
.firmar-btn,
.up-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    width: 160px;
    min-width: 160px;
    min-height: 38px;

    padding: 8px 16px;

    border: none;
    border-radius: 6px;

    box-sizing: border-box;

    font-family:
        'IBM Plex Sans',
        sans-serif;

    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;

    text-decoration: none;
    cursor: pointer;

    transition:
        background .2s,
        transform .2s,
        box-shadow .2s;
}


/* =====================================================
   EDITAR
===================================================== */

.edit-btn {
    background: var(--amber);
    color: var(--text-dark);
}

.edit-btn:hover {
    background: var(--amber-hover);
    transform: translateY(-2px);
}

/* =====================================================
   FIRMAR
===================================================== */

.firmar-btn {
    background: var(--amber);
    color: var(--text-dark);
}

.firmar-btn:hover {
    background: var(--amber-hover);
    transform: translateY(-2px);
}


/* =====================================================
   DESCARGAR
===================================================== */

.download-btn {
    background: var(--blueprint);
    color: var(--text-white);
}

.download-btn:hover {
    background: var(--blueprint-hover);
    transform: translateY(-2px);
}

/* =====================================================
   CARGAR / SUBIR
===================================================== */

.up-btn {
    background: var(--amber);
    color: var(--text-dark);
}

.up-btn:hover {
    background: var(--amber-hover);
    transform: translateY(-2px);
}


/* =====================================================
   RESPONSIVE 576
===================================================== */

@media (max-width: 576px) {

    .download-btn,
    .edit-btn,
    .firmar-btn,
    .up-btn {
        width: 100%;
        min-width: 0;
        max-width: none;
        margin: 4px 0;
    }

}

.download-btn,
.up-btn {
    background: var(--blueprint);
    color: var(--text-white);
}

.download-btn:hover,
.up-btn:hover {
    background: var(--blueprint-hover);
    transform: translateY(-2px);
}

.edit-btn {
    background: var(--amber);
    color: var(--text-dark);
}

.edit-btn:hover {
    background: var(--amber-hover);
    transform: translateY(-2px);
}

.firmar-btn {
    background: var(--firma);
    color: var(--text-white);
}

.firmar-btn:hover {
    background: var(--firma-hover);
    transform: translateY(-2px);
}

.no-data {
    text-align: center;
    padding: 2rem;
    color: var(--text-light-secondary);
    font-style: italic;
}


/* =====================================================
   MODAL
===================================================== */

#modalGeneradores .modal-dialog {
    max-width: 1100px !important;
}

#contenido-hojas {
    padding: 15px !important;
}

#contenido-hojas canvas {
    box-sizing: border-box;
}


/* =====================================================
   BOTON ELIMINAR RESPONSIVE
===================================================== */

.btn-eliminar-responsive {
    width: 28px !important;
    height: 28px !important;

    min-width: 28px !important;
    min-height: 28px !important;

    max-width: 28px !important;
    max-height: 28px !important;

    padding: 0 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 6px;

    font-size: 12px;
    line-height: 1;
}


/* =====================================================
   FIXED WIDTH BUTTONS
===================================================== */

.btn-estado-pago,
.btn-subir-factura,
.btn-descargar-factura,
.presaldada-btn,
.btn-presupuestado,
.btn-presupuesto-autorizado {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 8px 16px;
    min-height: 38px;

    border: none;
    border-radius: 6px;

    font-family:
        'IBM Plex Sans',
        sans-serif;

    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;

    cursor: pointer;

    transition:
        background .2s,
        transform .2s,
        box-shadow .2s;
}

.btn-estado-pago {
    color: var(--text-white);
    width: 140px;
}

.btn-estado-pago:hover {
    transform: translateY(-2px);
}

.btn-subir-factura {
    background: var(--blueprint);
    color: var(--text-white);
    width: 160px;
}

.btn-subir-factura:hover {
    background: var(--blueprint-hover);
    transform: translateY(-2px);
}

.btn-descargar-factura {
    background: var(--firma);
    color: var(--text-white);
    width: 160px;
}

.btn-descargar-factura:hover {
    background: var(--firma-hover);
    transform: translateY(-2px);
}

.presaldada-btn {
    width: 120px;
}

.btn-presupuestado {
    width: 120px;
}

.btn-presupuesto-autorizado {
    width: 140px;
}


/* =====================================================
   MENSAJES / CANVAS
===================================================== */

.mensaje-exito {
    border: 2px solid #ccc;
    background: var(--surface-light);
    padding: 10px;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

.canvas-firmado {
    border: 1px solid #ddd;
    background: var(--text-white);
    max-width: 100%;
    height: auto;

    box-shadow:
        0 4px 12px
        rgba(0, 0, 0, .1);
}

.list-group-compact {
    font-size: .95rem;
}

.contenido-hojas {
    min-height: 520px;
}


/* =====================================================
   COLUMNAS
===================================================== */

.td-ancho-grande {
    min-width: 340px;
}

.td-ancho-mediano {
    min-width: 180px;
}

.td-ancho-pequeno {
    min-width: 120px;
}


/* =====================================================
   BADGES
===================================================== */

.reparticion-badge {
    color: var(--text-white);
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    min-width: 160px;
    font-size: 15px;
}

.reparticion-badge-blue,
.reparticion-badge-bootstrap {
    background: var(--blueprint);
}

.impuesto-badge {
    padding: 8px;
    border-radius: 8px;
    background: var(--blueprint);
    color: var(--text-white);
    text-align: center;
    font-weight: bold;
}

.total-gastos-badge {
    background: var(--success);
    color: var(--text-white);
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    min-width: 160px;
    font-size: 15px;
}

.bloqueado-badge {
    background: #d1e7dd;
    color: #0f5132;
    padding: 8px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
}


/* =========================================================
   CREAR ORDEN DE COMPRA
========================================================= */

.nueva-sucursal-panel {
    display: none;
}

.nueva-sucursal-panel.is-visible {
    display: block;
}

.nueva-sucursal-panel .panel-tag {
    margin-bottom: 1.5rem;
}

.btn-mic.is-submitting {
    opacity: 0.7;
    cursor: wait;
}


/* =========================================================
   PAÍSES Y ENTIDADES
========================================================= */

.entidad-municipio {
    color: var(--text-light-secondary);
}

.form-toggle-entidad {
    margin: 0;
}

.empty-state {
    color: var(--text-light-secondary);
    font-style: italic;
}


/* =========================================================
   CREAR PERSONAL
========================================================= */

.is-hidden {
    display: none !important;
}

.form-inline {
    display: inline;
}

.dashboard-spacer {
    min-height: 7rem;
}

.dashboard-spacer-small {
    min-height: 3rem;
}

.btn-estado-pago.pago-pagado {
    background: #007BFF;
}

.btn-estado-pago.pago-por-pagar {
    background: var(--danger);
}


/* =========================================================
   DASHBOARD TRABAJADOR
========================================================= */

.dashboard-worker {
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 39px,
            var(--blueprint-dim) 40px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 39px,
            var(--blueprint-dim) 40px
        ),
        var(--ink);
    color: var(--text-dark);
    min-height: 100vh;
    margin: 0;

    font-family:
        'Segoe UI',
        Tahoma,
        Geneva,
        Verdana,
        sans-serif;
}

.toggle-button {
    padding: 0.6rem 1.2rem;
    background: var(--amber);
    color: var(--ink-deep);
    border: 1px solid var(--amber);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.ordenes-table.is-hidden {
    display: none;
}

.btn-agregar-hoja.is-hidden {
    display: none !important;
}

.gasto-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 6px;

    border: 1px solid #e5e5e5;
    border-radius: 6px;

    margin-bottom: 6px;

    background: var(--text-white);

    font-size: 13px;
}

.presupuesto-guardado {
    border: 2px solid var(--success) !important;
}

.pago-proveedor-pagado,
.pago-asociado-pagado {
    background: var(--blueprint) !important;
}

.pago-proveedor-pendiente,
.pago-asociado-pendiente {
    background: var(--danger) !important;
}

.credencial-print {
    font-family: Arial, sans-serif;
    padding: 20px;
}


/* =========================================================
   GENERADOR DE REPORTES
========================================================= */

.hoja {
    background: #ffffff;
    border: 1px solid #333333;

    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, .15);

    margin: 20px auto;
    padding: 20px;

    max-width: 1200px;
    min-height: 650px;

    page-break-after: always;
    position: relative;

    display: flex;
    flex-direction: column;
}

.hoja-header {
    display: grid;

    grid-template-columns:
        1fr 2fr 130px;

    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.tabla-header {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.tabla-header td {
    border: 1px solid #000000;
    padding: 5px 8px;
}

.empresa {
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    background: #f2f2f2;
}

.label {
    width: 100px;
    font-weight: bold;
    background: #f8f9fa;
}

.canvas-container {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: #fafafa;
    padding: 10px;
    margin: 15px 0;
}

.firmas-container {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 40px;

    margin-top: auto;
    padding-top: 30px;

    border-top:
        1px solid #dcdcdc;
}

.firma-linea {
    width: 85%;
    border-top: 2px solid #212529;
    margin: 0.5rem auto 0;
}

.tools {
    margin: 10px 0;
}

.input-fotos-canvas {
    display: none;
}


/* =========================================================
   GENERADOR - IMPRESIÓN
========================================================= */

@media print {

    @page {
        size: A4 landscape;
        margin: 0;
    }

    html,
    body {
        width: 297mm;
        height: 210mm;
        margin: 0;
        padding: 0;
        background: #ffffff !important;
    }

    body {
        zoom: 1;
    }

    .top-header,
    .tools,
    .no-print,
    button,
    .btn {
        display: none !important;
    }

    .container {
        width: 100%;
        max-width: 100%;
        margin: 0 !important;
        padding: 0 !important;
    }

    .trabajo-section {
        margin: 0 !important;
        padding: 0 !important;

        break-inside: avoid;
        page-break-inside: avoid;
    }

    .hoja {
        width: 297mm;
        height: 210mm;

        margin: 0 !important;

        padding:
            8mm
            10mm
            8mm
            10mm;

        border: none !important;
        box-shadow: none !important;

        page-break-after: always;
        break-after: page;

        overflow: hidden;

        display: flex;
        flex-direction: column;
        justify-content: space-between;

        background: #ffffff !important;
    }

    .canvas-container {
        flex-grow: 1;

        display: flex;
        align-items: center;
        justify-content: center;

        overflow: hidden;

        border: none !important;
        padding: 0 !important;

        margin:
            5mm
            0;
    }

    .canvas-container canvas {
        width: 100% !important;
        height: auto !important;
        max-height: 135mm !important;
        border: none !important;
    }

    .firmas-container {
        margin-top: 10mm;
        padding-top: 5mm;

        break-inside: avoid;
    }

    .tabla-header {
        font-size: 11px;
    }

    h4,
    h5,
    h6 {
        margin: 0;
    }
}


/* =========================================================
   LANDING PAGE MICARQ
   =========================================================
   Todo el landing queda encapsulado bajo .mic-landing
   para evitar conflictos con el resto del sistema.
   ========================================================= */

.mic-landing {
    --paper: #ECEEF1;
    --paper-line: #D7DBE0;
    --dur: 14s;
    --maxw: 1180px;

    background: var(--paper);
    color: var(--text-dark);
    font-family: 'IBM Plex Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.mic-landing,
.mic-landing * {
    box-sizing: border-box;
}

.mic-landing {
    scroll-behavior: smooth;
}

.mic-landing h1,
.mic-landing h2,
.mic-landing h3,
.mic-landing .display {
    font-family: 'Space Grotesk', sans-serif;
    margin: 0;
    letter-spacing: -0.01em;
}

.mic-landing .mono {
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.02em;
}

.mic-landing a {
    color: inherit;
    text-decoration: none;
}

.mic-landing img,
.mic-landing svg {
    display: block;
}

.mic-landing .wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
}

.mic-landing section {
    position: relative;
}

.mic-landing ::selection {
    background: var(--amber);
    color: var(--ink-deep);
}

.mic-landing :focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}


/* =========================================================
   NAV
   ========================================================= */

.mic-landing .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 18px 0;
    transition:
        background .3s ease,
        padding .3s ease,
        box-shadow .3s ease;
}

.mic-landing .nav.solid {
    background: rgba(35, 35, 41, 0.92);
    backdrop-filter: blur(8px);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.mic-landing .nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mic-landing .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk';
    font-weight: 700;
    font-size: 20px;
    color: #fff;
}

.mic-landing .brand .sq {
    width: 12px;
    height: 12px;
    background: var(--amber);
    transform: rotate(45deg);
}

.mic-landing .nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    transition: all .3s ease;
}

.mic-landing .nav-links a {
    color: #EDEFF2;
    font-size: 14.5px;
    font-weight: 500;
    opacity: .88;
    transition: opacity .2s;
}

.mic-landing .nav-links a:hover {
    opacity: 1;
}

.mic-landing .nav-cta {
    background: var(--amber);
    color: #1d1a12;
    padding: 10px 20px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.mic-landing .burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mic-landing .burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
}


/* =========================================================
HERO
========================================================= */

.mic-landing .hero {
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 39px,
            var(--blueprint-dim) 40px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 39px,
            var(--blueprint-dim) 40px
        ),
        var(--ink);

    padding: 130px 0 80px;
    overflow: hidden;
}

.mic-landing .hero .wrap {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}

.mic-landing .eyebrow {
    color: var(--amber);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.mic-landing .eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--amber);
}

.mic-landing .hero h1 {
    font-size: clamp(34px, 4.6vw, 54px);
    color: #fff;
    line-height: 1.08;
    font-weight: 700;
}

.mic-landing .hero h1 em {
    font-style: normal;
    color: var(--blueprint);
}

.mic-landing .hero p.lead {
    color: var(--steel);
    font-size: 17px;
    line-height: 1.65;
    max-width: 46ch;
    margin: 22px 0 32px;
}

.mic-landing .btn-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.mic-landing .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 14.5px;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.mic-landing .btn-primary {
    background: var(--amber);
    color: #1d1a12;
}

.mic-landing .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(232, 162, 58, .28);
}

.mic-landing .btn-outline {
    border-color: #ffffff44;
    color: #fff;
}

.mic-landing .btn-outline:hover {
    border-color: #fff;
    background: #ffffff10;
}

.mic-landing .btn-full {
    width: 100%;
    justify-content: center;
}


/* =========================================================
   BLUEPRINT FRAME
   ========================================================= */

.mic-landing .plate {
    position: relative;
    padding: 14px;
    border: 1px solid #ffffff2a;
}

.mic-landing .plate::before,
.mic-landing .plate::after,
.mic-landing .plate .tick-tl,
.mic-landing .plate .tick-br {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
}

.mic-landing .tick {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--blueprint);
}

.mic-landing .tick.tl {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.mic-landing .tick.tr {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
}

.mic-landing .tick.bl {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
}

.mic-landing .tick.br {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.mic-landing .plate-label {
    position: absolute;
    bottom: -11px;
    left: 20px;
    background: var(--ink);
    padding: 0 8px;
    font-size: 10.5px;
    color: var(--blueprint);
    letter-spacing: .08em;
}


/* =========================================================
   ANIMACIÓN — ESCENA
   ========================================================= */

.mic-landing .scene {
    position: relative;
    width: 100%;
    height: clamp(250px, 40vw, 460px);
    background: transparent;
    overflow: hidden;
}

.mic-landing .draw-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.mic-landing .draw-svg .outline {
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linejoin: miter;
    stroke-dasharray: 960;
    stroke-dashoffset: 960;
    animation:
        drawOutline
        var(--dur)
        cubic-bezier(.65, 0, .35, 1)
        infinite;
}

@keyframes drawOutline {
    0%, 2% {
        stroke-dashoffset: 960;
        opacity: 1;
    }

    30% {
        stroke-dashoffset: 0;
    }

    88% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    95% {
        opacity: 0;
    }

    100% {
        opacity: 0;
        stroke-dashoffset: 960;
    }
}

.mic-landing .win {
    fill: var(--amber);
    fill-opacity: .82;
    stroke: #fff;
    stroke-width: 1;
    opacity: 0;
    animation: winFill var(--dur) ease-out infinite;
}

.mic-landing .windows .win:nth-child(1) {
    animation-delay: .42s;
}

.mic-landing .windows .win:nth-child(2) {
    animation-delay: .50s;
}

.mic-landing .windows .win:nth-child(3) {
    animation-delay: .58s;
}

.mic-landing .windows .win:nth-child(4) {
    animation-delay: .66s;
}

.mic-landing .windows .win:nth-child(5) {
    animation-delay: .30s;
}

.mic-landing .windows .win:nth-child(6) {
    animation-delay: .38s;
}

.mic-landing .windows .win:nth-child(7) {
    animation-delay: .46s;
}

.mic-landing .windows .win:nth-child(8) {
    animation-delay: .54s;
}

.mic-landing .windows .win:nth-child(9) {
    animation-delay: .62s;
}

.mic-landing .windows .win:nth-child(10) {
    animation-delay: .70s;
}

.mic-landing .windows .win:nth-child(11) {
    animation-delay: .78s;
}

.mic-landing .windows .win:nth-child(12) {
    animation-delay: .86s;
}

.mic-landing .windows .win:nth-child(13) {
    animation-delay: .50s;
}

.mic-landing .windows .win:nth-child(14) {
    animation-delay: .58s;
}

.mic-landing .windows .win:nth-child(15) {
    animation-delay: .66s;
}

.mic-landing .windows .win:nth-child(16) {
    animation-delay: .74s;
}

@keyframes winFill {
    0%, 32% {
        opacity: 0;
    }

    36% {
        opacity: 1;
    }

    86% {
        opacity: 1;
    }

    92% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.mic-landing .dim-line {
    fill: none;
    stroke: var(--blueprint);
    stroke-width: 1.5;
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    opacity: 1;
    animation: dimDraw var(--dur) ease-in-out infinite;
}

.mic-landing .dim-tick {
    fill: none;
    stroke: var(--blueprint);
    stroke-width: 1.5;
    opacity: 0;
    animation: dimTick var(--dur) ease-in-out infinite;
}

@keyframes dimDraw {
    0%, 34% {
        stroke-dashoffset: 320;
    }

    50% {
        stroke-dashoffset: 0;
    }

    88% {
        stroke-dashoffset: 0;
    }

    95% {
        opacity: 0;
    }

    100% {
        opacity: 0;
        stroke-dashoffset: 320;
    }
}

@keyframes dimTick {
    0%, 34% {
        opacity: 0;
    }

    36% {
        opacity: 1;
    }

    88% {
        opacity: 1;
    }

    95% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.mic-landing .dim-label {
    position: absolute;
    left: 50%;
    bottom: 2%;
    transform: translateX(-50%);
    font-size: clamp(10px, 1.6vw, 13px);
    color: var(--blueprint);
    letter-spacing: .06em;
    opacity: 0;
    animation: dimLabelFade var(--dur) ease-in-out infinite;
}

@keyframes dimLabelFade {
    0%, 52% {
        opacity: 0;
    }

    56% {
        opacity: 1;
    }

    88% {
        opacity: 1;
    }

    95% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.mic-landing .compass {
    position: absolute;
    top: 14%;
    left: 6%;
    width: clamp(20px, 3.2vw, 30px);
    opacity: 0;
    animation: compassMove var(--dur) ease-in-out infinite;
}

.mic-landing .compass svg {
    width: 100%;
    height: auto;
    display: block;
}

.mic-landing .compass path,
.mic-landing .compass circle {
    fill: none;
    stroke: var(--blueprint);
    stroke-width: 2.4;
    stroke-linecap: round;
}

@keyframes compassMove {
    0% {
        opacity: 0;
        transform: translateX(0);
    }

    3% {
        opacity: 1;
    }

    28% {
        transform: translateX(230%);
        opacity: 1;
    }

    33% {
        opacity: 0;
        transform: translateX(230%);
    }

    100% {
        opacity: 0;
        transform: translateX(0);
    }
}

.mic-landing .wordmark {
    position: absolute;
    left: 6%;
    bottom: 5%;
    opacity: 0;
    transform: translateY(10px);
    animation:
        wordReveal
        var(--dur)
        cubic-bezier(.22, 1, .36, 1)
        infinite;
}

.mic-landing .word-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2.6vw, 26px);
    color: #fff;
    letter-spacing: .01em;
}

.mic-landing .word-underline {
    width: 78%;
    margin-top: 5px;
    height: 6px;
}

.mic-landing .word-underline path {
    fill: none;
    stroke: var(--amber);
    stroke-width: 2;
    stroke-dasharray: 180;
    stroke-dashoffset: 180;
    animation: underlineDraw var(--dur) ease-in-out infinite;
}

@keyframes wordReveal {
    0%, 66% {
        opacity: 0;
        transform: translateY(10px);
    }

    72% {
        opacity: 1;
        transform: translateY(0);
    }

    88% {
        opacity: 1;
        transform: translateY(0);
    }

    95% {
        opacity: 0;
        transform: translateY(-5px);
    }

    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

@keyframes underlineDraw {
    0%, 71% {
        stroke-dashoffset: 180;
    }

    80% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: 0;
    }
}


/* =========================================================
   SECCIONES GENERALES
   ========================================================= */

.mic-landing .section {
    padding: 96px 0;
}

.mic-landing .section-head {
    max-width: 640px;
    margin-bottom: 56px;
}

.mic-landing .section-eyebrow {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blueprint);
    margin-bottom: 14px;
    display: block;
}

.mic-landing .section h2 {
    font-size: clamp(26px, 3.6vw, 38px);
    font-weight: 700;
    color: var(--ink-deep);
    line-height: 1.15;
}

.mic-landing .section p.sub {
    color: #5a5c66;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 16px;
}


/* =========================================================
   SERVICIOS
   ========================================================= */

.mic-landing .services {
    background: var(--paper);
}

.mic-landing .svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.mic-landing .svc-card {
    background: #fff;
    border: 1px solid var(--paper-line);
    border-radius: 6px;
    padding: 34px 28px;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.mic-landing .svc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(56, 56, 68, .1);
}

.mic-landing .svc-icn {
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
}

.mic-landing .svc-icn svg {
    width: 100%;
    height: 100%;
}

.mic-landing .svc-icn path,
.mic-landing .svc-icn rect,
.mic-landing .svc-icn circle {
    fill: none;
    stroke: var(--ink);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mic-landing .svc-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
}

.mic-landing .svc-card p {
    color: #5a5c66;
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0;
}


/* =========================================================
   PROCESO
   ========================================================= */

.mic-landing .process {
    background: var(--ink-deep);
    color: #fff;
}

.mic-landing .process .section-head p.sub {
    color: var(--steel);
}

.mic-landing .process .section-head h2 {
    color: #fff;
}

.mic-landing .proc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid #ffffff22;
}

.mic-landing .proc-item {
    padding: 32px 24px 0;
    border-right: 1px solid #ffffff22;
}

.mic-landing .proc-item:last-child {
    border-right: none;
}

.mic-landing .proc-num {
    color: var(--amber);
    font-size: 14px;
    margin-bottom: 14px;
    display: block;
}

.mic-landing .proc-item h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
}

.mic-landing .proc-item p {
    color: var(--steel);
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   PROYECTOS
   ========================================================= */

.mic-landing .projects {
    background: var(--paper);
}

.mic-landing .proj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.mic-landing .proj-card {
    background: var(--ink);
    border-radius: 6px;
    overflow: hidden;
    color: #fff;
}

.mic-landing .proj-thumb {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 19px,
            #ffffff12 20px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 19px,
            #ffffff12 20px
        );
}

.mic-landing .proj-thumb svg {
    width: 64px;
    height: 64px;
}

.mic-landing .proj-thumb path {
    fill: none;
    stroke: var(--blueprint);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mic-landing .proj-body {
    padding: 22px 24px 26px;
}

.mic-landing .proj-tag {
    font-size: 11.5px;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
}

.mic-landing .proj-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0 6px;
}

.mic-landing .proj-card p {
    color: var(--steel);
    font-size: 13.5px;
    margin: 0;
}


/* =========================================================
   NOSOTROS + STATS
   ========================================================= */

.mic-landing .about {
    background: #fff;
}

.mic-landing .about .wrap {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 60px;
    align-items: center;
}

.mic-landing .about h2 {
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 700;
    color: var(--ink-deep);
    line-height: 1.2;
}

.mic-landing .about p.sub {
    color: #5a5c66;
    font-size: 16px;
    line-height: 1.7;
    margin-top: 18px;
    max-width: 52ch;
}

.mic-landing .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-self: center;
}

.mic-landing .stat {
    background: #f7f8fa;
    border: 1px solid var(--paper-line);
    border-left: 4px solid var(--amber);
    border-radius: 6px;
    padding: 22px 18px;
    transition: .25s;
}

.mic-landing .stat b {
    font-family: 'Space Grotesk';
    font-size: clamp(28px, 3vw, 38px);
    display: block;
    margin-bottom: 8px;
    color: var(--ink-deep);
}

.mic-landing .stat span {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: #666;
}


/* =========================================================
   CONTACTO
   ========================================================= */

.mic-landing .contact {
    background: var(--ink);
    color: #fff;
}

.mic-landing .contact .wrap {
    display: grid;
    grid-template-columns:
        minmax(280px, .9fr)
        minmax(320px, 1.1fr);
    gap: 60px;
    align-items: start;
}

.mic-landing .contact h2 {
    color: #fff;
    font-size: clamp(26px, 3.4vw, 36px);
}

.mic-landing .contact p.sub {
    color: var(--steel);
    font-size: 15.5px;
    line-height: 1.65;
    margin-top: 16px;
    max-width: 42ch;
}

.mic-landing .info-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mic-landing .info-list div {
    font-size: 14.5px;
    color: #EDEFF2;
}

.mic-landing .info-list span {
    display: block;
    color: var(--steel);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 3px;
}

.mic-landing .form-card {
    background: #EDEFF2;
    border: 1px solid #ffffff18;
    border-radius: 10px;
    padding: 34px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .18);
}

.mic-landing .field {
    margin-bottom: 18px;
}

.mic-landing .field label {
    display: block;
    font-size: 12.5px;
    color: var(--steel);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.mic-landing .field input,
.mic-landing .field select,
.mic-landing .field textarea {
    width: 100%;
    background: #22222a;
    border: 1px solid #ffffff22;
    border-radius: 6px;
    padding: 14px 15px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    transition: .2s;
}

.mic-landing .field input:focus,
.mic-landing .field select:focus,
.mic-landing .field textarea:focus {
    border-color: var(--amber);
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 162, 58, .15);
}

.mic-landing .field textarea {
    resize: vertical;
    min-height: 90px;
}

.mic-landing .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mic-landing .form-msg {
    display: none;
    background: #1f3a2e;
    border: 1px solid #3d7a5c;
    color: #bdf0d3;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 16px;
}

.mic-landing .form-msg.show {
    display: block;
}


/* =========================================================
   FOOTER
   ========================================================= */

.mic-landing footer {
    background: var(--ink-deep);
    color: var(--steel);
    padding: 56px 0 26px;
}

.mic-landing .foot-grid {
    display: grid;
    grid-template-columns:
        1.4fr
        1fr
        1fr
        1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.mic-landing .foot-brand p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 32ch;
    margin-top: 14px;
    color: var(--steel);
}

.mic-landing .foot-col h4 {
    color: #fff;
    font-size: 13.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.mic-landing .foot-col a {
    display: block;
    font-size: 14px;
    color: var(--steel);
    margin-bottom: 10px;
}

.mic-landing .foot-col a:hover {
    color: #fff;
}

.mic-landing .foot-bottom {
    border-top: 1px solid #ffffff18;
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    flex-wrap: wrap;
    gap: 12px;
}


/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */

.mic-landing .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity .6s ease,
        transform .6s ease;
}

.mic-landing .reveal.in {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   REDUCCIÓN DE MOVIMIENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .mic-landing *,
    .mic-landing *::before,
    .mic-landing *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}


/* =========================================================
   RESPONSIVE — 920px
   ========================================================= */

@media (max-width: 920px) {

    .mic-landing .hero .wrap {
        grid-template-columns: 1fr;
    }

    .mic-landing .svc-grid,
    .mic-landing .proj-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mic-landing .proc-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mic-landing .proc-item {
        border-bottom: 1px solid #ffffff22;
        padding-bottom: 24px;
    }

    .mic-landing .about .wrap,
    .mic-landing .contact .wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mic-landing .field-row {
        grid-template-columns: 1fr;
    }

    .mic-landing .foot-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .mic-landing .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #232329;
        padding: 28px 20px;
        flex-direction: column;
        gap: 22px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, .35);
    }

    .mic-landing .nav-links.open {
        display: flex;
    }

    .mic-landing .burger {
        display: block;
    }

    .mic-landing .stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 20px;
    }
}


/* =========================================================
   RESPONSIVE — 700px
   ========================================================= */

@media (max-width: 700px) {

    .mic-landing .proj-thumb {
        height: 150px;
    }

    .mic-landing .proj-body {
        padding: 20px;
    }

    .mic-landing .proj-card h3 {
        font-size: 17px;
    }
}


/* =========================================================
   RESPONSIVE — 600px
   ========================================================= */

@media (max-width: 600px) {

    .mic-landing .hero {
        padding: 100px 0 50px;
    }

    .mic-landing .hero .wrap {
        gap: 35px;
    }

    .mic-landing .hero h1 {
        font-size: 34px;
    }

    .mic-landing .hero p.lead {
        font-size: 15px;
    }

    .mic-landing .scene {
        height: 260px;
    }

    .mic-landing .plate {
        padding: 8px;
    }
}


/* =========================================================
   RESPONSIVE — 560px
   ========================================================= */

@media (max-width: 560px) {

    .mic-landing .svc-grid,
    .mic-landing .proj-grid {
        grid-template-columns: 1fr;
    }

    .mic-landing .proc-grid {
        grid-template-columns: 1fr;
    }

    .mic-landing .foot-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mic-landing .foot-brand {
        text-align: center;
    }

    .mic-landing .foot-brand .brand {
        justify-content: center;
    }

    .mic-landing .stats {
        grid-template-columns: 1fr;
    }

    .mic-landing .about {
        text-align: center;
    }

    .mic-landing .about p.sub {
        max-width: 100%;
    }

    .mic-landing .stats {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .mic-landing .stat {
        text-align: left;
    }

    .mic-landing .svc-card {
        padding: 28px 22px;
    }

    .mic-landing .svc-card h3 {
        font-size: 18px;
    }

    .mic-landing .svc-card p {
        font-size: 14px;
    }

    .mic-landing .contact {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .mic-landing .form-card {
        padding: 22px;
    }

    .mic-landing .contact h2 {
        font-size: 28px;
    }

    .mic-landing .info-list {
        margin-top: 25px;
    }

    .mic-landing .foot-bottom {
        flex-direction: column;
        text-align: center;
    }
}


/* ============================================================
LISTADO DE SUCURSALES
============================================================ */

body {
    overflow-x: hidden;
}

.table td,
.table th {
    white-space: nowrap;
    vertical-align: middle;
}


/* ============================================================
   LOGIN MICARQ
   ============================================================ */

.mic-login {
    min-height: 100%;
    margin: 0;
    padding: 24px;
    overflow-x: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--text-white);

    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 39px,
            var(--blueprint-dim) 40px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 39px,
            var(--blueprint-dim) 40px
        ),
        var(--ink);

    -webkit-font-smoothing: antialiased;
}

.mic-login .mono {
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.02em;
}

.mic-login .plate {
    position: relative;
    width: 100%;
    max-width: 400px;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;

    padding: 44px 38px 38px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, .25);

    animation: fadeUp .35s ease both;
}

@keyframes fadeUp {

    0% {
        opacity: 0;
        transform: translateY(14px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }

}

.mic-login .tick {
    position: absolute;

    width: 18px;
    height: 18px;

    border: 2px solid var(--blueprint);
}

.mic-login .tick.tl {
    top: -2px;
    left: -2px;

    border-right: none;
    border-bottom: none;
}

.mic-login .tick.tr {
    top: -2px;
    right: -2px;

    border-left: none;
    border-bottom: none;
}

.mic-login .tick.bl {
    bottom: -2px;
    left: -2px;

    border-right: none;
    border-top: none;
}

.mic-login .tick.br {
    bottom: -2px;
    right: -2px;

    border-left: none;
    border-top: none;
}

.mic-login .plate-label {
    position: absolute;

    top: -11px;
    left: 24px;

    background: var(--ink-deep);

    padding: 0 8px;

    font-size: 10.5px;
    color: var(--blueprint);

    letter-spacing: 0.08em;
}

.mic-login .brand {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 28px;

    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 19px;
}

.mic-login .brand .sq {
    width: 11px;
    height: 11px;

    background: var(--amber);

    transform: rotate(45deg);

    flex: none;
}

.mic-login h2 {
    margin: 0 0 6px;

    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 24px;
}

.mic-login .login-sub {
    margin: 0 0 26px;

    color: var(--steel);
    font-size: 14px;
}

.mic-login .error {
    margin-bottom: 20px;

    padding: 11px 14px;

    background: #3a1f22;
    border: 1px solid #7a3d42;
    border-radius: 4px;

    color: #f2b8bd;
    font-size: 13.5px;
}

.mic-login .form-group {
    margin-bottom: 18px;
}

.mic-login .form-group label {
    display: block;

    margin-bottom: 7px;

    color: var(--steel);

    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;

    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.mic-login .form-group input {
    width: 100%;

    padding: 15px 14px;

    background: #22222a;
    border: 1px solid #ffffff22;
    border-radius: 6px;

    color: var(--text-white);

    font-family: inherit;
    font-size: 15px;

    transition:
        border-color .2s,
        box-shadow .2s;
}

.mic-login .form-group input::placeholder {
    color: #6c6d78;
}

.mic-login .form-group input:focus {
    outline: none;

    border-color: var(--amber);

    box-shadow:
        0 0 0 3px rgba(232, 162, 58, .15);
}

.mic-login .forgot-password {
    margin: -8px 0 22px;

    text-align: right;
}

.mic-login .forgot-password a {
    color: var(--blueprint);
    font-size: 13px;
    text-decoration: none;
}

.mic-login .forgot-password a:hover {
    text-decoration: underline;
}

.mic-login button[type="submit"] {
    width: 100%;

    padding: 15px;

    border: none;
    border-radius: 6px;

    background: var(--amber);
    color: var(--text-dark);

    cursor: pointer;

    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.mic-login button[type="submit"]:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 22px rgba(232, 162, 58, .28);
}

.mic-login button[type="submit"]:active {
    transform: translateY(0);
}

.mic-login .back-link {
    display: block;

    margin-top: 24px;

    color: var(--steel);

    font-size: 13px;

    text-align: center;
}

.mic-login .back-link a {
    color: #EDEFF2;
}


/* ============================================================
   LOGIN — RESPONSIVE
   ============================================================ */

@media (max-width: 480px) {

    .mic-login {
        padding: 0;

        align-items: flex-start;
        padding-top: 20px;
    }

    .mic-login .plate {
        width: 100%;
        max-width: none;

        padding: 38px 12px 28px;

        border-radius: 8px;
    }

    .mic-login .brand {
        margin-bottom: 22px;
    }

    .mic-login h2 {
        font-size: 22px;
    }

    .mic-login .login-sub {
        font-size: 13.5px;
    }

    .mic-login .tick {
        width: 14px;
        height: 14px;
    }

    .mic-login .brand,
    .mic-login h2,
    .mic-login .login-sub,
    .mic-login form,
    .mic-login .back-link {
        margin-left: 10px;
        margin-right: 10px;
    }

}


/* ============================================================
   REPORTE FOTOGRÁFICO PDF
   ============================================================ */

.reporte-fotografico-pdf {
    min-height: 100%;
    margin: 0;

    background: #ffffff;

    font-family: 'Segoe UI', Arial, sans-serif;

    color: #000000;
}

.reporte-fotografico-pdf *,
.reporte-fotografico-pdf *::before,
.reporte-fotografico-pdf *::after {
    box-sizing: border-box;
}


/* ============================================================
   CONTENEDOR GENERAL
   ============================================================ */

.reporte-fotografico-pdf .container {
    max-width: 1300px;

    margin: 1rem auto;

    padding: 1rem;
}


/* ============================================================
   SECCIÓN DE TRABAJO
   ============================================================ */

.reporte-fotografico-pdf .trabajo-section {
    break-inside: avoid;
    page-break-inside: avoid;
}


/* ============================================================
   HOJA
   ============================================================ */

.reporte-fotografico-pdf .hoja {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100%;
    max-width: 1200px;
    min-height: 650px;

    margin: 10px auto;

    padding:
        0
        20px
        15px
        20px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #333333;
    border-radius: 0;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.15);

    page-break-after: always;
    page-break-inside: avoid;
    break-inside: avoid;
}


/* ============================================================
   HEADER
   ============================================================ */

.reporte-fotografico-pdf .hoja-header {
    display: grid;

    grid-template-columns:
        1fr
        2fr
        120px;

    gap: 10px;

    align-items: center;

    margin-bottom: 10px;

    padding-top: 0;
}

.reporte-fotografico-pdf .titulo-trabajo {
    align-self: center;

    padding: 0;
}

.reporte-fotografico-pdf .titulo-trabajo h4 {
    margin-top: 0;
    margin-bottom: 5px;
}

.reporte-fotografico-pdf .titulo-trabajo h5 {
    margin-top: 0;
}


/* ============================================================
   TABLA HEADER
   ============================================================ */

.reporte-fotografico-pdf .tabla-header {
    width: 95%;

    margin-top: 0;

    border-collapse: collapse;

    font-size: 12px;
}

.reporte-fotografico-pdf .tabla-header td {
    padding: 4px 8px;

    border: 1px solid #000000;
}

.reporte-fotografico-pdf .empresa {
    background: #f2f2f2;

    text-align: center;

    font-weight: bold;
    font-size: 18px;
}

.reporte-fotografico-pdf .label {
    width: 100px;

    background: #f8f9fa;

    font-weight: bold;
}

.reporte-fotografico-pdf .valor {
    font-weight: 500;
}


/* ============================================================
   INFORMACIÓN DE HOJA
   ============================================================ */

.reporte-fotografico-pdf .info-hoja {
    margin-top: 0;

    padding-top: 0;

    text-align: right;
}

.reporte-fotografico-pdf .info-hoja h5 {
    margin-top: 0;
    margin-bottom: 3px;
}


/* ============================================================
   GRID DE FOTOS
   ============================================================ */

.reporte-fotografico-pdf .grid-fotos {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    grid-auto-rows: 150px;

    gap: 8px;

    height: auto;

    margin-top: 8px;
    margin-bottom: 8px;

    overflow: hidden;

    align-content: start;
}

.reporte-fotografico-pdf .foto {
    position: relative;

    display: flex;
    flex-direction: column;

    justify-content: center;

    height: 150px;

    overflow: hidden;

    background: #ffffff;

    border: 2px solid #dee2e6;
    border-radius: 8px;
}

.reporte-fotografico-pdf .foto img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    background: #ffffff;
}


/* ============================================================
   BOTÓN ELIMINAR
   ============================================================ */

.reporte-fotografico-pdf .btn-eliminar:hover {
    background: #dc3545;
}


/* ============================================================
   FIRMAS
   ============================================================ */

.reporte-fotografico-pdf .firmas-container {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 40px;

    margin-top: auto;

    padding-top: 30px;

    border-top: 1px solid #dcdcdc;
}

.reporte-fotografico-pdf .firma-box {
    width: 100%;

    text-align: center;
}

.reporte-fotografico-pdf .linea-firma {
    width: 85%;

    margin:
        0
        auto
        10px;

    border-top: 2px solid #000000;
}

.reporte-fotografico-pdf .firma-box h6 {
    margin-bottom: 5px;

    font-weight: bold;
}

.reporte-fotografico-pdf .firma-box p {
    margin: 0;

    font-weight: 600;
}


/* ============================================================
   IMPRESIÓN — A4 HORIZONTAL
   ============================================================ */

@media print {

    @page {
        size: A4 landscape;
        margin: 1cm;
    }

    html,
    body.reporte-fotografico-pdf {
        width: 297mm;
        height: 210mm;

        background: #ffffff;
    }

    body.reporte-fotografico-pdf {
        margin: 0;
        padding: 0;
    }

    .reporte-fotografico-pdf .upload-area,
    .reporte-fotografico-pdf .btn {
        display: none !important;
    }

    .reporte-fotografico-pdf .container {
        width: 100%;
        max-width: 100%;

        margin: 0;
        padding: 0;
    }

    .reporte-fotografico-pdf .trabajo-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .reporte-fotografico-pdf .hoja {
        display: flex;
        flex-direction: column;

        justify-content: space-between;

        width: 100%;
        min-height: 188mm;

        margin: 0;

        padding:
            2mm
            8mm
            2mm
            8mm;

        overflow: hidden;

        border: none;

        box-shadow: none;

        page-break-after: always;
        break-after: page;
    }

    .reporte-fotografico-pdf .hoja:last-child {
        page-break-after: auto;
    }

    .reporte-fotografico-pdf .grid-fotos {
        gap: 10px;
    }

    .reporte-fotografico-pdf .foto img {
        height: 150px;
    }

    .reporte-fotografico-pdf .foto,
    .reporte-fotografico-pdf .tabla-header,
    .reporte-fotografico-pdf .firmas-container {
        break-inside: avoid;
    }

    .reporte-fotografico-pdf .btn-eliminar {
        display: none !important;
    }

}


/* ============================================================
   REPORTE FOTOGRÁFICO
   ============================================================ */

body.reporte-fotografico {
    background: #f0f2f5;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.reporte-fotografico .hoja {
    background: white;
    border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin: 10px auto;
    padding: 0 20px 15px 20px;
    max-width: 1200px;
    min-height: 650px;
    page-break-after: always;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    break-inside: avoid;
    page-break-inside: avoid;
}

.reporte-fotografico .hoja-header {
    display: grid;
    grid-template-columns: 1fr 2fr 120px;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding-top: 0;
}

.reporte-fotografico .titulo-trabajo {
    padding: 0;
    align-self: center;
}

.reporte-fotografico .titulo-trabajo h4 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #383844;
}

.reporte-fotografico .titulo-trabajo h5 {
    margin-top: 0;
    color: #383844;
}

.reporte-fotografico .tabla-header {
    width: 95%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 0;
}

.reporte-fotografico .tabla-header td {
    border: 1px solid #000;
    padding: 4px 8px;
    color: #383844;
    background: #ffffff;
}

.reporte-fotografico .empresa {
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    background: #ffffff;
    color: #383844;
}

.reporte-fotografico .label {
    width: 100px;
    font-weight: bold;
    background: #f8f9fa;
    color: #383844;
}

.reporte-fotografico .valor {
    font-weight: 500;
    color: #383844;
}

.reporte-fotografico .info-hoja {
    padding-top: 0;
    margin-top: 0;
    color: #007BFF;
}

.reporte-fotografico .info-hoja h5 {
    margin-top: 0;
    margin-bottom: 3px;
    color: #007BFF;
}

.reporte-fotografico .info-hoja small {
    color: #007BFF;
}

.reporte-fotografico .info-hoja .hoja-num {
    color: #007BFF;
}

.reporte-fotografico .grid-fotos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 150px);
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.reporte-fotografico .foto {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.reporte-fotografico .foto img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    background: #ffffff;

}

.reporte-fotografico .foto img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
}

.reporte-fotografico .btn-eliminar {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;

}

.reporte-fotografico .btn-eliminar:hover {
    background: #dc3545;
}

.reporte-fotografico .btn-editar-informacion {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(108, 117, 125, 0.9);
    color: white;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;

}

.reporte-fotografico .btn-editar-informacion:hover {
    background: #6c757d;

}

.reporte-fotografico .btn-rotar-foto {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(108, 117, 125, 0.9);
    color: white;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reporte-fotografico .btn-rotar-foto:hover {
    background: #6c757d;
}

.reporte-fotografico .foto-informacion {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 20;
    padding: 7px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff !important;
    font-size: 9px;
    line-height: 1.25;
    font-family: "IBM Plex Sans", sans-serif;
    text-align: left;
    box-sizing: border-box;
    max-width: calc(100% - 20px);

}

.reporte-fotografico .foto-informacion > div {
    margin: 0;
    padding: 0;
    color: #ffffff !important;
    font-size: 9px;

}

.reporte-fotografico .foto-informacion strong {
    color: #ffffff !important;
    font-size: 9px;
    font-weight: 600;

}

.reporte-fotografico .foto-informacion span {
    color: #ffffff !important;
    font-size: 9px;
    font-weight: 400;

}

.reporte-fotografico .foto-informacion > div {
    margin: 0;

    padding: 0;

}

.reporte-fotografico .foto-informacion strong {
    font-weight: 600;

}

.reporte-fotografico .foto-informacion span {
    font-weight: 400;

}

.reporte-fotografico .firmas-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid #dcdcdc;
}

.reporte-fotografico .firma-box {
    text-align: center;
}

.reporte-fotografico .linea-firma {
    border-top: 2px solid #000;
    width: 85%;
    margin: auto;
    margin-bottom: 10px;
}

.reporte-fotografico .firma-box h6 {
    margin-bottom: 5px;
    font-weight: bold;
}

.reporte-fotografico .firma-box p {
    margin: 0;
    font-weight: 600;
}

.reporte-fotografico .upload-area {
    margin-top: 15px;
    padding: 12px;
    border: 2px dashed #007BFF;
    border-radius: 8px;
    background: #f8f9fa;
}


/* ============================================================
   HEADER DEL REPORTE
   ============================================================ */

.reporte-fotografico .top-header {
    background: #007BFF;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

.reporte-fotografico .top-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.reporte-fotografico .top-header nav {
    margin-top: 8px;
}

.reporte-fotografico .top-header nav a {
    color: white;
    margin-right: 1rem;
    text-decoration: none;
    font-weight: 500;
}

.reporte-fotografico .top-header nav a:hover {
    text-decoration: underline;
}


/* ============================================================
CONTENEDOR
============================================================ */

.reporte-fotografico .container {
    max-width: 1300px;
    margin: 1rem auto;
    padding: 1rem;
}


/* ============================================================
   IMPRESIÓN / PDF
   ============================================================ */

@media print {

    @page {
        size: A4 landscape;
        margin: 1cm;
    }

    .reporte-fotografico .top-header {
        display: none !important;
    }

    html,
    body.reporte-fotografico {
        width: 297mm;
        height: 210mm;
        background: white;
    }

    body.reporte-fotografico {
        margin: 0;
        padding: 0;
    }

    .reporte-fotografico .upload-area,
    .reporte-fotografico .btn,
    .reporte-fotografico .no-print {
        display: none !important;
    }

    .reporte-fotografico .container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .reporte-fotografico .trabajo-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .reporte-fotografico .hoja {
        width: 100%;
        height: 188mm;
        margin: 0;
        padding: 2mm 8mm 2mm 8mm;
        border: none;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: hidden;
        page-break-after: always;
        break-after: page;
    }

    .reporte-fotografico .grid-fotos {
        gap: 10px;
    }

    .reporte-fotografico .foto img {
        height: 150px;
    }

    .reporte-fotografico .foto,
    .reporte-fotografico .tabla-header,
    .reporte-fotografico .firmas-container {
        break-inside: avoid;
    }

    .reporte-fotografico .btn-eliminar {
        display: none !important;
    }
}

@media print {

    .reporte-fotografico .foto-informacion {

        background: transparent !important;

        color: #222222 !important;

        border: none !important;

        font-size: 4.5px !important;

    }

    .reporte-fotografico .foto-informacion > div {

        color: #222222 !important;

        font-size: 9px !important;

    }

    .reporte-fotografico .foto-informacion strong {

        color: #111111 !important;

        font-size: 9px !important;

        font-weight: 700 !important;

    }

    .reporte-fotografico .foto-informacion span {

        color: #333333 !important;

        font-size: 9px !important;

        font-weight: 500 !important;

    }

}


/* ============================================================
   RESPONSIVA DE CONFORMIDAD
   ============================================================ */

body.responsiva-conformidad {
    background: #f2f2f2;
    padding: 20px;
}


/* ============================================================
   RESET LOCAL
   ============================================================ */

.responsiva-conformidad *,
.responsiva-conformidad *::before,
.responsiva-conformidad *::after {
    box-sizing: border-box;
}

.responsiva-conformidad {
    font-family: Arial, Helvetica, sans-serif;
}

.responsiva-conformidad .formato {
    width: 100%;
    max-width: 1600px;
    margin: auto;
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
}


/* ============================================================
   ENCABEZADO
   ============================================================ */

.responsiva-conformidad .header {
    background: #d9d9d9;
    text-align: center;
    padding: 12px;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
}

.responsiva-conformidad .titulo-principal {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}


/* ============================================================
   SECCIONES
   ============================================================ */

.responsiva-conformidad .section {
    border: 1px solid #999;
    margin-bottom: 20px;
}

.responsiva-conformidad .section-title {
    background: #ececec;
    padding: 8px;
    font-weight: bold;
    font-size: 15px;
    border-bottom: 1px solid #999;
}

.responsiva-conformidad .section-body {
    padding: 15px;
}

.responsiva-conformidad .section-body-justify {
    text-align: justify;
}


/* ============================================================
   GRID
   ============================================================ */

.responsiva-conformidad .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.responsiva-conformidad .grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.responsiva-conformidad .grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
}

.responsiva-conformidad .campo {
    display: flex;
    flex-direction: column;
}

.responsiva-conformidad .campo label {
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: bold;
}

.responsiva-conformidad .campo input,
.responsiva-conformidad .campo textarea {
    border: 1px solid #999;
    padding: 8px;
    min-height: 40px;
    width: 100%;
}

.responsiva-conformidad textarea {
    resize: none;
}


/* ============================================================
   CHECKS
   ============================================================ */

.responsiva-conformidad .check-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(180px, 1fr)
    );
    gap: 10px;
    margin-top: 10px;
}

.responsiva-conformidad .check-item {
    border: 1px solid #ccc;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}


/* ============================================================
   PREGUNTAS
   ============================================================ */

.responsiva-conformidad .pregunta {
    border-bottom: 1px solid #ddd;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.responsiva-conformidad .respuestas {
    display: flex;
    gap: 20px;
    white-space: nowrap;
}


/* ============================================================
   OBSERVACIONES
   ============================================================ */

.responsiva-conformidad .observaciones textarea {
    min-height: 120px;
}


/* ============================================================
   FIRMAS
   ============================================================ */

.firmas {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.firma-box {
    text-align: center;
}

.responsiva-conformidad .linea {
    border-top: 1px solid #000;
    margin-top: 70px;
    padding-top: 8px;
    font-size: 14px;
    font-weight: bold;
}

.responsiva-conformidad .sello {
    margin-top: 40px;
    border: 2px dashed #aaa;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
}


/* ============================================================
   ACCIONES / BOTONES
   ============================================================ */

.responsiva-conformidad .acciones-documentos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.responsiva-conformidad .btn {
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}

.responsiva-conformidad .btn-warning {
    background: #f0ad4e;
}

.responsiva-conformidad .btn-warning:hover {
    background: #d9922e;
}

.responsiva-conformidad .btn-danger {
    background: #d9534f;
}

.responsiva-conformidad .btn-danger:hover {
    background: #b52b27;
}

/* BOTÓN GUARDAR RESPONSIVA */
.btn-guardar-responsiva {
    display: block;
    margin: 30px auto;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {

    .responsiva-conformidad .grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .responsiva-conformidad .firmas {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 700px) {

    .responsiva-conformidad .grid-2,
    .responsiva-conformidad .grid-3,
    .responsiva-conformidad .grid-4 {
        grid-template-columns: 1fr;
    }

    .responsiva-conformidad .pregunta {
        flex-direction: column;
        align-items: flex-start;
    }

    .responsiva-conformidad .titulo-principal {
        font-size: 16px;
    }

    .responsiva-conformidad .header {
        font-size: 18px;
    }

}


/* ============================================================
IMPRESIÓN
============================================================ */

@media print {

    body.responsiva-conformidad {
        background: white;
        padding: 0;
    }

    .responsiva-conformidad .formato {
        border: none;
        max-width: 100%;
    }

    @page {
        size: landscape;
        margin: 10mm;
    }

}


/* =========================================================
   BOTONES DEL EDITOR DE PASOS
   ========================================================= */

.paso-acciones {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.paso-acciones button,
#pasos-container + button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.15s ease,
        opacity 0.2s ease;
}

.paso-acciones button:hover,
#pasos-container + button:hover {
    transform: translateY(-1px);
}

/* Agregar subpaso */
.paso-acciones .btn-agregar-subpaso {
    background: #5C8FB3;
    color: #ffffff;
}

.paso-acciones .btn-agregar-subpaso:hover {
    background: #4d7d9f;
}

/* Eliminar paso */
.paso-acciones .btn-eliminar-paso {
    background: #dc3545;
    color: #ffffff;
}

.paso-acciones .btn-eliminar-paso:hover {
    background: #bb2d3b;
}

/* Agregar paso principal */
#pasos-container + button {
    margin-top: 12px;
    margin-bottom: 18px;
    background: #E8A23A;
    color: #ffffff;
}

#pasos-container + button:hover {
    background: #d18f2e;
}


/* =========================================================
   ACCIONES DEL ACTA DE RECEPCIÓN
   ========================================================= */

.acta-acciones {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.acta-acciones button,
.btn-acta-guardar,
.btn-acta-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 16px;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.15s ease,
        opacity 0.2s ease;
}

.acta-acciones button:hover,
.btn-acta-guardar:hover,
.btn-acta-pdf:hover {
    transform: translateY(-1px);
}

/* Guardar */
.btn-acta-guardar {
    background: #28a745;
    color: #ffffff;
}

.btn-acta-guardar:hover {
    background: #218838;
}

/* PDF */
.acta-pdf-actual {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.btn-acta-pdf {
    background: #5C8FB3;
    color: #ffffff;
}

.btn-acta-pdf:hover {
    background: #4d7d9f;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 576px) {

    .reporte-fotografico .container {
        padding: 0.7rem;
    }

    .reporte-fotografico .top-header h1 {
        font-size: 22px;
    }

    .reporte-fotografico .top-header nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .reporte-fotografico-pdf .container {
        padding: 0.7rem;
    }

}


/* =====================================================
   RESPONSIVE FINAL
===================================================== */

@media (max-width: 768px) {

    h1 {
        font-size: 1.4rem;
    }

    .btn-sm {
        font-size: .8rem;
        padding: .25rem .5rem;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .btn-eliminar-responsive {
        width: 24px !important;
        height: 24px !important;

        min-width: 24px !important;
        min-height: 24px !important;

        font-size: 10px;
    }

}

.btn-mic.btn-secondary,
.btn-mic.btn-censurar,
.btn-mic.btn-reactivar {
    min-width: 100px;
    min-height: 38px;
    box-sizing: border-box;
}

/* =====================================================
   FORMULARIO CREAR PERSONAL
===================================================== */

.form-panel .form-grid {
    grid-template-columns: 1fr;
}

.form-panel .form-group {
    min-width: 0;
}

/* =====================================================
   ACCIONES — FORMULARIOS MICARQ
===================================================== */

.actions {
    display: flex;
    width: 100%;
    gap: 10px;
}

.actions .btn-mic {
    flex: 1;
    width: 50%;
    min-width: 0;
    box-sizing: border-box;
}

.actions .btn-secondary {
    background: var(--danger);
    color: var(--text-white);
}

.actions .btn-secondary:hover {
    background: var(--danger-hover);
}

/* =====================================================
   BOTONES EN FORM-GROUP
===================================================== */

.form-group.full-width > .btn-mic {
    width: calc(50% - 5px);
    min-width: 0;
    box-sizing: border-box;
}

.form-group.full-width > .btn-secondary {
    background: var(--danger);
    color: var(--text-white);
}

.form-group.full-width > .btn-secondary:hover {
    background: var(--danger-hover);
}


/* =====================================================
   ALERTAS — MICARQ
===================================================== */

.mic-alert {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
    padding: 12px 15px;
    border: 1px solid var(--danger);
    border-radius: 6px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.mic-alert-danger {
    background: rgba(220, 53, 69, 0.12);
    color: var(--danger);
    border-color: var(--danger);
}

/* =====================================================
   ESPECIALIDADES — LISTA EXISTENTE
===================================================== */

.especialidad-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.especialidad-item:last-child {
    border-bottom: none;
}

.especialidad-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.especialidad-info strong {
    color: var(--ink-deep);
}

.especialidad-info strong {
    color: var(--text-white);
}

.especialidad-info .text-muted {
    color: var(--text-white);
}

/* ACTIVAR — ÁMBAR MICARQ */
.especialidad-item .toggle-button.activo {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--ink-deep) !important;
}

.especialidad-item .toggle-button.activo:hover {
    background: var(--amber-hover);
    border-color: var(--amber-hover);
    color: var(--ink-deep) !important;
}

/* FILA DE RUBROS — DISTRIBUCIÓN UNIFORME */
.rubro-trabajo {
    display: flex;
    width: 100%;
}

.rubro-trabajo > .rubro-titulo,
.rubro-trabajo > .rubro-btn {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
}

/* RUBRO SELECCIONADO — NEGRITAS */
.rubro-btn.activo {
    font-weight: bold;
}

/* FILAS 6 Y 7 — DOS COLUMNAS */
.fila-doble {
    display: flex;
    width: 100%;
}

.fila-doble > .dato-linea {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}


/* VALIDACIÓN — FILAS CON SI / NO */
.encabezado-validacion {
    display: flex;
    width: 100%;
    box-sizing: border-box;
}

.titulo-validacion {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

.tabla-si-no {
    display: flex;
    width: 120px;
    flex-shrink: 0;
}

.celda-opcion {
    width: 60px;
    box-sizing: border-box;
    border: 1px solid #000;
    text-align: center;
    padding: 4px;
}

/* DESACTIVAR — ROJO */
.especialidad-item .toggle-button.inactivo {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--text-white) !important;
}

.especialidad-item .toggle-button.inactivo:hover {
    background: var(--danger-hover);
    border-color: var(--danger-hover);
}

/* CELULAR */
@media (max-width: 768px) {

    .especialidad-item {
        align-items: flex-start;
        gap: 10px;
    }

    .especialidad-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

}

/* =====================================================
   ENTIDADES — RESPONSIVE MÓVIL
===================================================== */

@media (max-width: 768px) {

    .entidad-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
    }

    .entidad-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-width: 0;
        line-height: 1.35;
    }

    .entidad-info strong {
        display: block;
        width: 100%;
    }

    .entidad-municipio {
        display: block;
        width: 100%;
    }

    .entidad-estado {
        display: block;
        width: 100%;
        white-space: nowrap;
    }

    .form-toggle-entidad {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        height: 100%;
    }

    .form-toggle-entidad .toggle-button {
        width: auto;
        min-width: 120px;
        margin: 0;
        white-space: nowrap;
    }

}

/* =====================================================
   LISTA DE PLAZAS — ACCIÓN PRINCIPAL
===================================================== */

.actions-top {
    width: 100%;
}

.actions-top .btn-mic {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
}

/* =====================================================
   LISTA DE PLAZAS — BOTONES DE ACCIÓN
===================================================== */

.button-stack {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
}

.button-stack form {
    width: 100%;
    margin: 0;
}

.button-stack .btn-mic {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
}

/* =====================================================
   LISTADO DE SUCURSALES
===================================================== */

.sucursales-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-light);
}

.sucursales-table th {
    padding: 10px 12px;
    background: var(--ink-deep);
    color: var(--text-white);
    border: 1px solid var(--border);
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.sucursales-table td {
    padding: 9px 12px;
    border: 1px solid var(--border);
    color: var(--ink);
    vertical-align: middle;
    white-space: nowrap;
}

.sucursales-table tbody tr:hover {
    background: var(--hover-light);
}

.sucursales-table .badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: .8rem;
    font-weight: 600;
}

.sucursales-table .badge-activo {
    background: var(--success);
    color: var(--text-white);
}

.sucursales-table .badge-inactivo {
    background: var(--danger);
    color: var(--text-white);
}

/* =====================================================
   LISTADO DE SUCURSALES — FONDO MICARQ
===================================================== */

body.mic-listado-sucursales {
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 39px,
            var(--blueprint-dim) 40px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 39px,
            var(--blueprint-dim) 40px
        ),
        var(--ink);
}

/* =====================================================
   LISTADO DE SUCURSALES — CAMPOS DE FORMULARIO
===================================================== */

body.mic-listado-sucursales .form-control,
body.mic-listado-sucursales .form-select {
    background-color: var(--bs-body-bg) !important;
    background: var(--bs-body-bg) !important;
    color: var(--ink) !important;
    border-color: var(--border);
}

body.mic-listado-sucursales .form-control:focus,
body.mic-listado-sucursales .form-select:focus {
    background-color: var(--bs-body-bg) !important;
    background: var(--bs-body-bg) !important;
    color: var(--ink) !important;
    border-color: var(--blueprint);
    box-shadow: 0 0 0 .2rem var(--blueprint-dim);
}


/* =====================================================
   ACCIONES — FORMULARIO SUCURSAL
===================================================== */

body.mic-listado-sucursales .acciones {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px;
    width: 100%;
}

body.mic-listado-sucursales .acciones > a,
body.mic-listado-sucursales .acciones > button {
    flex: 0 0 calc(50% - 6px) !important;
    width: calc(50% - 6px) !important;
    max-width: calc(50% - 6px) !important;
    min-width: 0 !important;
    margin: 0 !important;
}