/* =====================================================
   MINIALFA
   CHECADAS - PANTALLA PRINCIPAL
===================================================== */


/* =====================================================
   PANEL
===================================================== */

.checks-panel {
    padding:
        clamp(20px, 3vw, 30px);

    background:
        var(--surface);

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow);
}


/* =====================================================
   ENCABEZADO
===================================================== */

.checks-header {
    margin-bottom:
        24px;

    display:
        flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    gap:
        20px;
}


.checks-title {
    max-width:
        720px;
}


.checks-eyebrow {
    display:
        block;

    color:
        var(--accent-dark);

    font-size:
        0.72rem;

    font-weight:
        800;

    letter-spacing:
        0.09em;

    text-transform:
        uppercase;
}


.checks-title h2 {
    margin:
        4px 0 6px;

    color:
        var(--brand-dark);

    font-size:
        clamp(
            1.25rem,
            2.2vw,
            1.55rem
        );

    line-height:
        1.2;
}


.checks-title p {
    margin:
        0;

    color:
        var(--muted);

    font-size:
        0.9rem;

    line-height:
        1.55;
}


/* =====================================================
   ICONO ENCABEZADO
===================================================== */

.checks-header-icon {
    width:
        52px;

    height:
        52px;

    display:
        grid;

    place-items:
        center;

    flex:
        0 0 auto;

    color:
        var(--accent-dark);

    background:
        #e3f3f3;

    border:
        1px solid
        #c6e1e2;

    border-radius:
        14px;
}


.checks-header-icon svg {
    fill:
        none;

    stroke:
        currentColor;

    stroke-width:
        1.8;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;
}


/* =====================================================
   GRID
===================================================== */

.checks-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap:
        18px;
}


/* =====================================================
   TARJETAS

   Nombres específicos para evitar colisiones con
   checadas_importar.css.
===================================================== */

.checks-option-card {
    appearance:
        none;

    -webkit-appearance:
        none;

    width:
        100%;

    min-height:
        146px;

    padding:
        22px;

    display:
        grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items:
        center;

    gap:
        17px;

    color:
        var(--text);

    background:
        var(--surface-soft);

    border:
        1px solid
        var(--border);

    border-radius:
        15px;

    box-shadow:
        none;

    font:
        inherit;

    text-align:
        left;

    text-decoration:
        none;

    cursor:
        pointer;

    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease;
}


.checks-option-card:hover {
    background:
        #ffffff;

    transform:
        translateY(-2px);
}


.checks-option-card:active {
    transform:
        translateY(1px)
        scale(0.985);
}


/* =====================================================
   COLORES POR OPCIÓN
===================================================== */

.checks-option-history:hover {
    border-color:
        #8bc2c5;
}


.checks-option-import:hover {
    border-color:
        #9bbbd0;
}


/* =====================================================
   ICONOS
===================================================== */

.checks-option-icon {
    width:
        54px;

    height:
        54px;

    display:
        grid;

    place-items:
        center;

    flex:
        0 0 auto;

    border-radius:
        14px;

    transition:
        transform 0.16s ease;
}


.checks-option-icon svg,
.checks-option-arrow svg,
.checks-info-note svg {
    fill:
        none;

    stroke:
        currentColor;

    stroke-width:
        1.8;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;
}


/* HISTORIAL */

.checks-option-history
.checks-option-icon {
    color:
        var(--accent-dark);

    background:
        #dff3f4;
}


/* IMPORTAR */

.checks-option-import
.checks-option-icon {
    color:
        #245c78;

    background:
        #e5f0f6;
}


.checks-option-card:hover
.checks-option-icon {
    transform:
        scale(1.04);
}


/* =====================================================
   CONTENIDO
===================================================== */

.checks-option-content {
    min-width:
        0;
}


.checks-option-label {
    display:
        block;

    margin-bottom:
        3px;

    color:
        var(--muted);

    font-size:
        0.69rem;

    font-weight:
        800;

    letter-spacing:
        0.07em;

    text-transform:
        uppercase;
}


.checks-option-content h3 {
    margin:
        0 0 5px;

    color:
        var(--brand-dark);

    font-size:
        1.04rem;

    font-weight:
        780;

    line-height:
        1.25;
}


.checks-option-content p {
    margin:
        0;

    color:
        var(--muted);

    font-size:
        0.84rem;

    line-height:
        1.5;
}


/* =====================================================
   FLECHA
===================================================== */

.checks-option-arrow {
    width:
        34px;

    height:
        34px;

    display:
        grid;

    place-items:
        center;

    flex:
        0 0 auto;

    color:
        var(--muted);

    border-radius:
        9px;

    transition:
        color 0.16s ease,
        background-color 0.16s ease,
        transform 0.16s ease;
}


.checks-option-history:hover
.checks-option-arrow {
    color:
        var(--accent-dark);

    background:
        #e7f5f5;

    transform:
        translateX(3px);
}


.checks-option-import:hover
.checks-option-arrow {
    color:
        #245c78;

    background:
        #e8f1f6;

    transform:
        translateX(3px);
}


/* =====================================================
   FOCUS
===================================================== */

.checks-option-card:focus-visible {
    outline:
        3px solid
        rgba(8, 122, 131, 0.18);

    outline-offset:
        3px;
}


/* =====================================================
   NOTA INFERIOR
===================================================== */

.checks-info-note {
    margin-top:
        20px;

    padding:
        12px 14px;

    display:
        flex;

    align-items:
        flex-start;

    gap:
        10px;

    color:
        #075985;

    background:
        #edf7fb;

    border:
        1px solid
        #cfe4ee;

    border-radius:
        11px;
}


.checks-info-note svg {
    margin-top:
        1px;

    flex:
        0 0 auto;
}


.checks-info-note p {
    margin:
        0;

    font-size:
        0.77rem;

    line-height:
        1.5;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 760px) {

    .checks-grid {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 700px) {

    .checks-option-card {
        min-height:
            118px;

        padding:
            18px;
    }


    .checks-header-icon {
        width:
            48px;

        height:
            48px;
    }

}


@media (max-width: 480px) {

    .checks-header-icon {
        display:
            none;
    }


    .checks-option-card {
        grid-template-columns:
            auto
            minmax(0, 1fr);

        gap:
            14px;
    }


    .checks-option-arrow {
        display:
            none;
    }


    .checks-option-icon {
        width:
            48px;

        height:
            48px;
    }

}


/* =====================================================
   MOVIMIENTO REDUCIDO
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .checks-option-card,
    .checks-option-icon,
    .checks-option-arrow {
        transition:
            none;
    }

}