/**
 * CINIA - Enlaces de Interés
 * Estilos para la página de enlaces
 */

/* ========================================
   GRID DE ENLACES
   ======================================== */

.enlaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* ========================================
   CARD DE ENLACE
   ======================================== */

.enlace-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.enlace-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-color: #ad060e;
}

.enlace-link {
    display: flex;
    align-items: flex-start;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    gap: 20px;
}

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

.enlace-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ad060e 0%, #d32f2f 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.enlace-icon i {
    font-size: 32px;
    color: white;
}

.enlace-card:hover .enlace-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(173, 6, 14, 0.4);
}

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

.enlace-content {
    flex: 1;
}

.enlace-content h4 {
    margin: 0 0 8px 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #333;
    transition: color 0.3s ease;
}

.enlace-card:hover .enlace-content h4 {
    color: #ad060e;
}

.enlace-content p {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.enlace-external {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #999;
    margin-top: 4px;
}

.enlace-external i {
    font-size: 14px;
}

/* ========================================
   CATEGORÍAS (opcional para futuro)
   ======================================== */

.enlace-card[data-categoria="documento"] .enlace-icon {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

.enlace-card[data-categoria="externo"] .enlace-icon {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.enlace-card[data-categoria="interno"] .enlace-icon {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

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

@media (max-width: 768px) {
    .enlaces-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .enlace-link {
        padding: 20px;
        gap: 16px;
    }
    
    .enlace-icon {
        width: 50px;
        height: 50px;
    }
    
    .enlace-icon i {
        font-size: 26px;
    }
    
    .enlace-content h4 {
        font-size: 1rem;
    }
}

/* ========================================
   ACCESIBILIDAD
   ======================================== */

.enlace-link:focus {
    outline: 3px solid #ad060e;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .enlace-card,
    .enlace-icon,
    .enlace-content h4 {
        transition: none;
    }
    
    .enlace-card:hover {
        transform: none;
    }
}

/* ========================================
   PRINT
   ======================================== */

@media print {
    .enlace-card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .enlace-icon {
        background: #ad060e !important;
    }
}


