/* css/documentos.css - Estilo Documentos Oficiales */

/* --- A. Buscador (Hereda de styles.css, pero con ajustes específicos) --- */
/* En tu HTML cambia 'doc-search-wrapper' por 'search-unified-style' */
.search-unified-style .doc-search-input {
    /* Mismo estilo para que no rompa el diseño */
    font-size: 1rem;
    padding: 8px;
}

/* --- B. Tarjetas de Documentos --- */
.doc-card {
    background: #fff;
    border-radius: 16px; /* Uniforme con Calendario/Noticias */
    padding: 1.8rem;
    display: flex;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); /* Sombra suave unificada */
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(46, 125, 50, 0.12); /* Sombra verde al hover */
    border-color: rgba(46, 125, 50, 0.2);
}

/* Icono del archivo */
.doc-icon-box {
    font-size: 2.8rem;
    margin-right: 1.5rem;
    min-width: 70px;
    text-align: center;
    /* Efecto sutil en el icono */
    transition: transform 0.3s ease;
}
.doc-card:hover .doc-icon-box {
    transform: scale(1.1);
}

/* Contenido */
.doc-content {
    flex-grow: 1;
    overflow: hidden;
}

.doc-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-deep-green);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.doc-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.doc-meta {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    gap: 15px;
    align-items: center;
    font-weight: 500;
}

/* Botón de Acción */
.doc-action {
    margin-left: 1.5rem;
}
.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f7f1; /* Verde muy claro */
    color: var(--primary-deep-green);
    border: 1px solid transparent; /* Sin borde visible por defecto */
    width: 45px;
    height: 45px;
    border-radius: 50%; /* Botón circular moderno */
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-download:hover {
    background-color: var(--primary-deep-green);
    color: white;
    transform: rotate(90deg); /* Pequeña rotación divertida */
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}
.btn-download i { font-size: 1.2rem; }

/* Responsive */
@media (max-width: 576px) {
    .doc-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    .doc-icon-box {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    .doc-action {
        margin-left: 0;
        margin-top: 1.2rem;
        width: 100%;
    }
    .btn-download {
        width: 100%;
        border-radius: 50px; /* Vuelve a ser pastilla en móvil */
        height: auto;
        padding: 10px;
        transform: none !important; /* Quitar rotación en móvil */
    }
    .doc-meta { justify-content: center; }
}
