/* ==========================================================
   ESTILOS DE TRÁMITES Y DOCUMENTOS
   ========================================================== */

/* Ajuste del encabezado para no chocar con el navbar */
.tramites-header {
    background-color: #0c1228;
    margin-top: 80px;
    padding-top: 50px;
    padding-bottom: 50px;
}

/* Tarjeta Contenedora Principal */
.card-tramite {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f7;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.highlight-card {
    border-top: 5px solid #f5a425;
}

/* Iconos circulares */
.card-tramite-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 15px;
}

.icon-blue { background-color: #e8f2fe; color: #2563eb; }
.icon-amber { background-color: #fff4e5; color: #f5a425; }
.icon-green { background-color: #e8f8f0; color: #2e7d32; }

.card-tramite-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0c1228;
    margin-bottom: 8px;
}

.card-tramite-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 15px;
}

/* Cuadrícula de PDFs dentro de la primera tarjeta */
.pdf-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.pdf-card-item {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pdf-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    background: #ffffff;
}

.pdf-mini-prev {
    width: 100%;
    height: 160px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    pointer-events: none; /* Desactiva interacción con la vista previa */
}

.pdf-title-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    margin: 10px 0;
    line-height: 1.3;
}

/* Botón de Descarga */
.btn-pdf-download {
    display: inline-block;
    padding: 6px 12px;
    background-color: #0c1228;
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.btn-pdf-download:hover {
    background-color: #f5a425;
    color: #0c1228 !important;
}

/* Botón Amarillo de Google Forms */
.btn-amber-custom {
    background-color: #f5a425;
    color: #0c1228 !important;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.btn-amber-custom:hover {
    background-color: #e0931f;
}