/* ==========================================
   UNIDAD COORDINADORA DE ARCHIVOS
========================================== */

/* Título */
h1 {
    text-align: center;
    margin-bottom: 30px;
}

/* Cuadrícula de tarjetas */
.uca-tarjetas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;

    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 10px;
}

/* Tarjeta individual */
.uca-tarjeta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    width: 100%;
    min-width: 0;
    padding: 18px;

    background-color: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 18px;

    color: #4f172d;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;

    box-sizing: border-box;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease;
}

/* Imágenes uniformes */
.uca-tarjeta img {
    display: block;

    width: 100%;
    max-width: 260px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;

    margin: 0 auto 14px;
    border-radius: 18px;
}

/* Texto de las tarjetas */
.uca-tarjeta span {
    display: block;
    width: 100%;
}

/* Efecto al pasar el cursor */
.uca-tarjeta:hover {
    transform: translateY(-5px);

    background-color: #ffffff;
    border-color: #b7a387;

    color: #4f172d;
    text-decoration: none;

    box-shadow: 0 8px 20px rgba(79, 23, 45, 0.14);
}

/* Accesibilidad con teclado */
.uca-tarjeta:focus-visible {
    outline: 3px solid #b7a387;
    outline-offset: 3px;
}

/* Tabletas y celulares */
@media (max-width: 600px) {
    .uca-tarjetas {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 20px;
    }

    .uca-tarjeta img {
        max-width: 240px;
    }
}